From: Bborie Park Date: Wed, 14 Mar 2012 19:05:02 +0000 (+0000) Subject: Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for checking GDAL libraries X-Git-Tag: 2.0.0beta4~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf9c48e2c6b7bef73faa4743d20ce0befbdbb8e4;p=postgis Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for checking GDAL libraries git-svn-id: http://svn.osgeo.org/postgis/trunk@9499 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index b13054ad2..a20f832cf 100644 --- a/configure.ac +++ b/configure.ac @@ -989,14 +989,14 @@ if test "x$with_raster" != "xno"; then [AC_MSG_ERROR([could not find headers include related to gdal])]) dnl Ensure we can link against gdal - AC_CHECK_LIB([gdal], [GDALAllRegister], [], [AC_MSG_ERROR([could not find gdal])], []) + AC_SEARCH_LIBS([GDALAllRegister], [gdal], [], [AC_MSG_ERROR([could not find gdal])], []) LIBS="$LIBGDAL_LDFLAGS" dnl Check if the new polygonize function is present - AC_CHECK_LIB( - [gdal], + AC_SEARCH_LIBS( [GDALFPolygonize], + [gdal], [AC_DEFINE_UNQUOTED([GDALFPOLYGONIZE], [1], [Define to 1 if GDALFPolygonize function is available])], [])