From: Sebastian Pop Date: Thu, 13 Dec 2018 16:04:58 +0000 (-0600) Subject: remove unused configure check for HAVE_STDARG_H X-Git-Tag: 1.9.9-b1~573 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10c4c68e5c705a97440c34894ed020fbef708401;p=thirdparty%2Fzlib-ng.git remove unused configure check for HAVE_STDARG_H --- diff --git a/CMakeLists.txt b/CMakeLists.txt index eed40c204..07889e54f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,7 +234,6 @@ endif() # Check for unistd.h and stdarg.h # check_include_file(unistd.h Z_HAVE_UNISTD_H) -check_include_file(stdarg.h Z_HAVE_STDARG_H) if(WITH_SANITIZERS AND WITH_MSAN) message(FATAL_ERROR "Memory sanitizer is incompatible with address sanitizer") @@ -564,7 +563,6 @@ macro(generate_cmakein input output) if (_line STREQUAL "#define ZCONF_H") file(APPEND ${output} "#cmakedefine Z_HAVE_UNISTD_H\n") - file(APPEND ${output} "#cmakedefine Z_HAVE_STDARG_H\n") endif() endforeach() endmacro(generate_cmakein) diff --git a/Makefile.in b/Makefile.in index b5dda1b16..958fd8cb7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -365,7 +365,7 @@ distclean: clean @if [ -f zconf.h.in ]; then \ cp -p $(SRCDIR)/zconf.h.in zconf.h ; \ TEMPFILE=zconfh_$$ ; \ - echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n#cmakedefine Z_HAVE_STDARG_H\n" >> $$TEMPFILE &&\ + echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n" >> $$TEMPFILE &&\ sed -f $$TEMPFILE $(SRCDIR)/zconf.h.in > zconf.h.cmakein &&\ touch -r $(SRCDIR)/zconf.h.in zconf.h.cmakein &&\ rm $$TEMPFILE ; fi diff --git a/configure b/configure index 22e7a6a1d..c1a15e800 100755 --- a/configure +++ b/configure @@ -709,19 +709,6 @@ fi echo >> configure.log -# check for stdarg.h and save result in zconf.h -cat > $test.c < -int main() { return 0; } -EOF -if try $CC -c $CFLAGS $test.c; then - sed < zconf${SUFFIX}.h "/^#ifdef HAVE_STDARG_H.* may be/s/def HAVE_STDARG_H\(.*\) may be/ 1\1 was/" > zconf${SUFFIX}.temp.h - mv zconf${SUFFIX}.temp.h zconf${SUFFIX}.h - echo "Checking for stdarg.h... Yes." | tee -a configure.log -else - echo "Checking for stdarg.h... No." | tee -a configure.log -fi - # if --zlib-compat was requested if test $compat -eq 1; then gzfileops=1 diff --git a/zconf-ng.h.in b/zconf-ng.h.in index 73845eed4..731502552 100644 --- a/zconf-ng.h.in +++ b/zconf-ng.h.in @@ -111,10 +111,6 @@ typedef void *voidp; # define Z_HAVE_UNISTD_H #endif -#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ -# define Z_HAVE_STDARG_H -#endif - #include /* for off_t */ #include /* for va_list */ diff --git a/zconf.h.in b/zconf.h.in index 8f741c465..fd019ba82 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -111,10 +111,6 @@ typedef void *voidp; # define Z_HAVE_UNISTD_H #endif -#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ -# define Z_HAVE_STDARG_H -#endif - #include /* for off_t */ #include /* for va_list */