Hello,

I am trying to build Grass from source on Leopard(Mac OS X 10.5.2 with gcc 4.0.1).

While PROJ.4 built and installed without problem, configure failed for GRASS proper. The resulting error is ... "checking External PROJ.4 version... configure: error: *** Could not determine External PROJ.4 version."

Consider this line from the trace output of the configure script.

+ eval echo configure:6910: '"${CC-cc}' -o conftest '$CFLAGS' '$CPPFLAGS' '$LDFLAGS' 'conftest.$ac_ext' '$LIBS' '1>&5"' ++ echo configure:6910: 'gcc -o conftest.dSYM -g -O2 conftest.c 1>&5'

The dSYM file extension on the output file is the critical bit. If the output file ends with a dSYM file extension, only supporting data is generated. No executable. (see example below). I worked around the problem by deleting references to ${ac_exeext}. What's the right fix for the configure script? Apparently there is a supporting script to autoconf which needs to be updated, right?

Sincerely,

-John

%%% with file extension - no executable

[Macintosh:grass/grass63_release/try] jkern% gcc -o try.dSYM -g -O2 try.c
[Macintosh:grass/grass63_release/try] jkern% ls -l
total 8
-rw-r--r--  1 jkern  staff  171 May  2 16:04 try.c
drwxr-xr-x  3 jkern  staff  102 May  8 18:02 try.dSYM
[Macintosh:grass/grass63_release/try] jkern% ls -R
try.c           try.dSYM

./try.dSYM:
Contents

./try.dSYM/Contents:
Info.plist      Resources

./try.dSYM/Contents/Resources:
DWARF

./try.dSYM/Contents/Resources/DWARF:
try.dSYM
[Macintosh:grass/grass63_release/try] jkern%

%%%% without the extension - all is well.

[Macintosh:grass/grass63_release/try] jkern% gcc -o try -g -02 try.c
[Macintosh:grass/grass63_release/try] jkern% ls -l
total 40
-rwxr-xr-x  1 jkern  staff  12832 May  8 19:24 try
-rw-r--r--  1 jkern  staff    171 May  2 16:04 try.c
drwxr-xr-x  3 jkern  staff    102 May  8 19:24 try.dSYM

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to