Changeset 699 for trunk

Show
Ignore:
Timestamp:
06/10/08 17:13:50 (7 months ago)
Author:
andreas
Message:

improved gdal and postgresql detection

Location:
trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r691 r699  
    7474fi 
    7575 
     76AX_BOOST_IOSTREAMS 
     77if test "x$ax_cv_boost_iostreams" = "xno"; then 
     78  echo 
     79  echo "Error: You need to install the boost iostreams library!" 
     80  echo 
     81  exit 
     82fi 
     83 
     84 
    7685AX_LIB_POSTGRESQL 
    77 if test "$found_postgresql" = "yes"; then 
    78   AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes") 
    79 fi 
     86if test "x$found_postgresql" = "xyes"; then 
     87  echo "checking whether to enable postgresql... yes" 
     88else 
     89  echo "checking whether to enable postgresql... no" 
     90fi 
     91AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes") 
     92 
     93AC_ARG_WITH(gdal-config, 
     94[  --with-gdal-config=GDAL_CONFIG    use gdal-config specified ], 
     95[ 
     96  GDAL_CONFIG=$withval; 
     97  echo "using "$GDAL_CONFIG" for gdal-config"; 
     98],[ 
     99  PROG="gdal-config"; 
     100  AC_PATH_PROG(GDAL_CONFIG, $PROG, "", $PATH) 
     101]) 
     102GDAL_CFLAGS=`$GDAL_CONFIG --cflags` 
     103GDAL_LIBS=`$GDAL_CONFIG --libs` 
     104AC_SUBST(GDAL_CFLAGS) 
     105AC_SUBST(GDAL_LIBS) 
     106 
    80107 
    81108AX_CHECK_TIFF 
  • trunk/plugins/input/gdal/Makefile.am

    r526 r699  
    77        gdal_featureset.cpp 
    88 
     9gdal_la_LIBADD = \ 
     10        ${GDAL_LDFLAGS} 
     11 
    912gdal_la_CXXFLAGS = \ 
    10         -I../../../include 
     13        ${GDAL_CFLAGS} \ 
     14        -I../../../include 
    1115 
    1216gdal_la_LDFLAGS = \