]> granicus.if.org Git - postgis/commitdiff
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for checking GDAL libraries
authorBborie Park <bkpark at ucdavis.edu>
Wed, 14 Mar 2012 19:05:02 +0000 (19:05 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Wed, 14 Mar 2012 19:05:02 +0000 (19:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9499 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index b13054ad254a142a0dbd70efa417bf924d9c0b12..a20f832cf13ffcc96f1a0acd197201f9e9b0c3e8 100644 (file)
@@ -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])],
                        [])