[GRASS5] Re: auto-locate EPSG
Markus Neteler
neteler at itc.it
Thu Apr 27 08:59:58 EDT 2006
Hamish wrote:
>>>>>>the new auto-locate EPSG file isn't working for me.
>>>>>>
>>>>>>
>>>>..
>>>>
>>>>
>>>>>configure now defines via hack (I didn't receive an answer how
>>>>>to do it properly) where the PROJ software is installed.
>>>>>
>>>>>See configure.in, line 583 ff.
>>>>>
>>>>>
>..
>
>
>># Define share/proj/ directory for epsg code file
>>PROJSHARE=
>>if test -n "$PROJINC"; then
>> PROJSHARE="$PROJINC/../share/proj"
>>else
>> for testdir in /usr /usr/local ; do
>> if test -d $testdir/share/proj ; then
>> PROJSHARE=$testdir/share/proj
>> break
>> fi
>> done
>>fi
>>
>>"$PROJINC/../share/proj" could be better evaluated? use $PROJLIB ?
>>
>>where does epsg get stored on a Mac, Cygwin, windows native, etc?
>>
>>how does PROJ4 know where to find it if PROJ_LIB isn't set?
>>
>>
>
>
>The above test sets it correctly for me (file is in /usr/share/proj/)
>
>If none of those tests find it, default to /usr/local/share/proj as
>a hint?
>
>
Yes, that should be ok.
>Could someone quickly explain to me the relationship between configure.in
>and configure?
>
configure is autogenerated from configure.in by autoconf-2.13
So, the file configure.in has to be worked on, not configure.
Unfortunately a macro seems to be
missing for the .../share/ stuff, that's why this damn hack is needed.
Markus
More information about the grass-dev
mailing list