aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libspatialite/fix-linux-configure.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libspatialite/fix-linux-configure.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libspatialite/fix-linux-configure.patch')
-rw-r--r--vcpkg/ports/libspatialite/fix-linux-configure.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/libspatialite/fix-linux-configure.patch b/vcpkg/ports/libspatialite/fix-linux-configure.patch
new file mode 100644
index 0000000..afb54db
--- /dev/null
+++ b/vcpkg/ports/libspatialite/fix-linux-configure.patch
@@ -0,0 +1,30 @@
+diff --git a/configure.ac b/configure.ac
+index ead87caff..47abb90f0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -302,6 +302,7 @@ if test x"$enable_geos" != "xno"; then
+ #-----------------------------------------------------------------------
+ # --with-geosconfig
+ #
++ if 0; then
+ AC_ARG_WITH([geosconfig],
+ [AS_HELP_STRING([--with-geosconfig=FILE], [specify an alternative geos-config file])],
+ [GEOSCONFIG="$withval"], [GEOSCONFIG=""])
+@@ -327,14 +328,17 @@ if test x"$enable_geos" != "xno"; then
+ # Ensure that we can parse geos_c.h
+ CPPFLAGS_SAVE="$CPPFLAGS"
+ CPPFLAGS="$GEOS_CFLAGS"
++ fi
+ AC_CHECK_HEADERS([geos_c.h],, [AC_MSG_ERROR([could not find geos_c.h - you may need to specify the directory of a geos-config file using --with-geosconfig])])
++ if 0; then
+ CPPFLAGS="$CPPFLAGS_SAVE"
+ # Ensure we can link against libgeos_c
+ LIBS_SAVE="$LIBS"
+ LIBS="$GEOS_LDFLAGS"
+ AC_SEARCH_LIBS(GEOSCoveredBy,geos_c,,AC_MSG_ERROR([could not find libgeos_c (or obsolete 'libgeos_c' < v.3.3.0 found) - you may need to specify the directory of a geos-config file using --with-geosconfig]))
+ LIBS="$LIBS_SAVE"
+ LIBS="$LIBS $GEOS_LDFLAGS -lgeos_c"
++ fi
+
+ #-----------------------------------------------------------------------
+ # --enable-controlpoints