From cf9c48e2c6b7bef73faa4743d20ce0befbdbb8e4 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Wed, 14 Mar 2012 19:05:02 +0000 Subject: [PATCH] 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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])], []) -- 2.50.1