diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2025-02-13 22:44:48 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2025-02-13 22:44:48 -0800 |
commit | 7108497fda9d4536a1afade7f42266e06dca4488 (patch) | |
tree | aa923ec19810dec769ebcbe4218038e529840a75 | |
parent | 00161eff1de25e9eed56bffdbe58f2c07ca16e51 (diff) | |
download | zlib-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-x | configure | 4 | ||||
-rw-r--r-- | zconf.h | 4 | ||||
-rw-r--r-- | zconf.h.in | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -611,7 +611,7 @@ cat > $test.c <<EOF | |||
611 | int main() { return 0; } | 611 | int main() { return 0; } |
612 | EOF | 612 | EOF |
613 | if try $CC -c $CFLAGS $test.c; then | 613 | if 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 |
617 | else | 617 | else |
@@ -626,7 +626,7 @@ cat > $test.c <<EOF | |||
626 | int main() { return 0; } | 626 | int main() { return 0; } |
627 | EOF | 627 | EOF |
628 | if try $CC -c $CFLAGS $test.c; then | 628 | if 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 |
632 | else | 632 | else |
@@ -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 | ||
@@ -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 | ||