aboutsummaryrefslogtreecommitdiff
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
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.
-rwxr-xr-xconfigure4
-rw-r--r--zconf.h4
-rw-r--r--zconf.h.in4
3 files changed, 6 insertions, 6 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
diff --git a/zconf.h b/zconf.h
index d6c159a..bc3ef07 100644
--- a/zconf.h
+++ b/zconf.h
@@ -436,11 +436,11 @@ typedef uLong FAR uLongf;
436 typedef unsigned long z_crc_t; 436 typedef unsigned long z_crc_t;
437#endif 437#endif
438 438
439#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 439#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
440# define Z_HAVE_UNISTD_H 440# define Z_HAVE_UNISTD_H
441#endif 441#endif
442 442
443#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 443#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
444# define Z_HAVE_STDARG_H 444# define Z_HAVE_STDARG_H
445#endif 445#endif
446 446
diff --git a/zconf.h.in b/zconf.h.in
index d6c159a..bc3ef07 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -436,11 +436,11 @@ typedef uLong FAR uLongf;
436 typedef unsigned long z_crc_t; 436 typedef unsigned long z_crc_t;
437#endif 437#endif
438 438
439#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 439#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
440# define Z_HAVE_UNISTD_H 440# define Z_HAVE_UNISTD_H
441#endif 441#endif
442 442
443#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 443#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
444# define Z_HAVE_STDARG_H 444# define Z_HAVE_STDARG_H
445#endif 445#endif
446 446