]> granicus.if.org Git - postgis/commitdiff
Don't re-implement AC_PATH_PROG for gdal-config
authorSandro Santilli <strk@keybit.net>
Wed, 14 Mar 2012 16:35:02 +0000 (16:35 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 14 Mar 2012 16:35:02 +0000 (16:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9498 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 52a4eb95f27c9ac3b2a830377ae74ed87651642e..b13054ad254a142a0dbd70efa417bf924d9c0b12 100644 (file)
@@ -943,16 +943,10 @@ if test "x$with_raster" != "xno"; then
                [gdalconfig],
                AC_HELP_STRING([--with-gdalconfig=@<:@ARG@:>@],[specify location of gdal-config (ARG=path).  Only used with --with-raster]),
                [GDAL_CONFIG="$withval"],
-               [GDAL_CONFIG=""])
+               [AC_PATH_PROG([GDAL_CONFIG], [gdal-config], [])]
+  )
 
        AC_MSG_CHECKING([for GDAL >= $GDAL_MIN_VERSION])
-       if test "x$GDAL_CONFIG" = "x"; then
-               dnl If GDAL_CONFIG path not provided, try to find it
-               GDAL_CONFIG_TMP=`which gdal-config`
-               if test "`basename xx/${GDAL_CONFIG_TMP}`" = "gdal-config" ; then
-                       GDAL_CONFIG=${GDAL_CONFIG_TMP}
-               fi
-       fi
 
        if test -x "$GDAL_CONFIG"; then
                dnl Extract the version information from gdal-config