aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2025-02-13 22:44:48 -0800
committerMark Adler <madler@alumni.caltech.edu>2025-02-13 22:44:48 -0800
commit7108497fda9d4536a1afade7f42266e06dca4488 (patch)
treeaa923ec19810dec769ebcbe4218038e529840a75 /configure
parent00161eff1de25e9eed56bffdbe58f2c07ca16e51 (diff)
downloadzlib-7108497fda9d4536a1afade7f42266e06dca4488.tar.gz
zlib-7108497fda9d4536a1afade7f42266e06dca4488.tar.bz2
zlib-7108497fda9d4536a1afade7f42266e06dca4488.zip
Check that HAVE_UNISTD_H and HAVE_STDARG_H are not defined as 0.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 393c23c..1834659 100755
--- a/configure
+++ b/configure
@@ -611,7 +611,7 @@ cat > $test.c <<EOF
611int main() { return 0; } 611int main() { return 0; }
612EOF 612EOF
613if try $CC -c $CFLAGS $test.c; then 613if try $CC -c $CFLAGS $test.c; then
614 sed < zconf.h "/^#ifdef HAVE_UNISTD_H.* may be/s/def HAVE_UNISTD_H\(.*\) may be/ 1\1 was/" > zconf.temp.h 614 sed < zconf.h "/^#if HAVE_UNISTD_H-0.* may be/s/ HAVE_UNISTD_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
615 mv zconf.temp.h zconf.h 615 mv zconf.temp.h zconf.h
616 echo "Checking for unistd.h... Yes." | tee -a configure.log 616 echo "Checking for unistd.h... Yes." | tee -a configure.log
617else 617else
@@ -626,7 +626,7 @@ cat > $test.c <<EOF
626int main() { return 0; } 626int main() { return 0; }
627EOF 627EOF
628if try $CC -c $CFLAGS $test.c; then 628if try $CC -c $CFLAGS $test.c; then
629 sed < zconf.h "/^#ifdef HAVE_STDARG_H.* may be/s/def HAVE_STDARG_H\(.*\) may be/ 1\1 was/" > zconf.temp.h 629 sed < zconf.h "/^#if HAVE_STDARG_H-0.* may be/s/ HAVE_STDARG_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
630 mv zconf.temp.h zconf.h 630 mv zconf.temp.h zconf.h
631 echo "Checking for stdarg.h... Yes." | tee -a configure.log 631 echo "Checking for stdarg.h... Yes." | tee -a configure.log
632else 632else