Skip to content

Commit

Permalink
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for checking GDAL libraries
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@9499 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
dustymugs committed Mar 14, 2012
1 parent 9003528 commit 47f3cbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Expand Up @@ -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])],
[])

Expand Down

0 comments on commit 47f3cbd

Please sign in to comment.