diff --git a/configure b/configure
index aafdad55b..11dde35fa 100644
--- a/configure
+++ b/configure
@@ -18089,7 +18089,7 @@ return GEOSCoveredBy ();
   return 0;
 }
 _ACEOF
-for ac_lib in '' geos_c; do
+for ac_lib in '' geos_cd; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else
@@ -18124,7 +18124,7 @@ else
 fi
 
   LIBS="$LIBS_SAVE"
-  LIBS="$LIBS $GEOS_LDFLAGS -lgeos_c"
+  LIBS="$LIBS $GEOS_LDFLAGS -lgeos_cd"
 
   #-----------------------------------------------------------------------
   #   --enable-controlpoints
@@ -18176,7 +18176,7 @@ return GEOSDelaunayTriangulation ();
   return 0;
 }
 _ACEOF
-for ac_lib in '' geos_c; do
+for ac_lib in '' geos_cd; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else
@@ -18240,7 +18240,7 @@ fi
 done
 
 	  _save_libs="$LIBS"
-	  LIBS=$LIBS' -llwgeom -lgeos_c'
+	  LIBS=$LIBS' -llwgeom -lgeos_cd'
 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 int main() { return lwgeom_make_valid(); return 0; }
@@ -18255,7 +18255,7 @@ fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 	  LIBS="$_save_libs"
-	  LIBS=$LIBS' -llwgeom -lgeos_c'
+	  LIBS=$LIBS' -llwgeom -lgeos_cd'
 	#
 	# testing for PostGIS 2.1 - lwgeom_set_handlers
 	#
@@ -18283,7 +18283,7 @@ return lwgeom_set_handlers ();
   return 0;
 }
 _ACEOF
-for ac_lib in '' geos_c; do
+for ac_lib in '' geos_cd; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else
