]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
[configure] Propagate -DWITH_GZFILEOP to pkgconfig.
authorMika T. Lindqvist <postmaster@raasu.org>
Tue, 7 Nov 2023 17:06:21 +0000 (19:06 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 8 Nov 2023 10:34:53 +0000 (11:34 +0100)
configure
zlib.pc.in

index a660a17e870c01410b358bda6cd9faf569945cdc..501f51badde196240b3bf0673c22e9ba59471a8b 100755 (executable)
--- a/configure
+++ b/configure
@@ -76,6 +76,7 @@ RCFLAGS=
 RCOBJS=
 STRIP=
 ARCHS=
+PC_CFLAGS=
 prefix=${prefix-/usr/local}
 exec_prefix=${exec_prefix-'${prefix}'}
 bindir=${bindir-'${exec_prefix}/bin'}
@@ -2140,6 +2141,10 @@ if test -n "$EMU_RUN"; then
     echo "Using cross-compile emulator: $EMU_RUN"
 fi
 
+if test $gzfileops -eq 1; then
+    PC_CFLAGS="-DWITH_GZFILEOP"
+fi
+
 # Generate Makefile in test dir
 mkdir -p test
 sed < $SRCDIR/test/Makefile.in "
@@ -2182,6 +2187,7 @@ sed < $SRCDIR/zlib.pc.in "
 " | sed -e "
 s/\@VERSION\@/$VER/g;
 s/\@SUFFIX\@/$SUFFIX/g;
+s/\@PKG_CONFIG_CFLAGS\@/$PC_CFLAGS/g;
 " > ${LIBNAME2}.pc
 
 # done
index a0678fbe03f0961597495f6e3541d93e364207ea..45b35989b1cb410acde755f8a79ba00445acc73b 100644 (file)
@@ -11,4 +11,4 @@ Version: @VERSION@
 
 Requires:
 Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@
-Cflags: -I${includedir}
+Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@