Commit 4420074 for zlib
commit 442007457fa6f18e338605794475f47fa214636e
Author: Mark Adler <git@madler.net>
Date: Fri Oct 30 19:19:24 2026 -0700
Use the generated zconf.h for the test programs when out of tree.
When configure was run out of tree, the test programs were
compiled with the source tree's unconfigured zconf.h instead of the
one configure generated. Now the generated zconf.h is used.
diff --git a/configure b/configure
index 4e6c8d8..61ca1c8 100755
--- a/configure
+++ b/configure
@@ -26,7 +26,7 @@ if test $SRCDIR = "."; then
SRCDIR=""
else
ZINC='-I. -include zconf.h'
- ZINCOUT='-I. -I$(SRCDIR)'
+ ZINCOUT='-I. -I$(SRCDIR) -include zconf.h'
SRCDIR="$SRCDIR/"
fi
@@ -403,6 +403,7 @@ else
fi
if test -n "$ZINC"; then
ZINC='-I- -I. -I$(SRCDIR)'
+ ZINCOUT='-I- -I. -I$(SRCDIR)'
fi
;;
SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"}