Skip to content

Commit 10c4c68

Browse files
Sebastian PopDead2
Sebastian Pop
authored andcommitted
remove unused configure check for HAVE_STDARG_H
1 parent c534d1a commit 10c4c68

File tree

5 files changed

+1
-24
lines changed

5 files changed

+1
-24
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ endif()
234234
# Check for unistd.h and stdarg.h
235235
#
236236
check_include_file(unistd.h Z_HAVE_UNISTD_H)
237-
check_include_file(stdarg.h Z_HAVE_STDARG_H)
238237

239238
if(WITH_SANITIZERS AND WITH_MSAN)
240239
message(FATAL_ERROR "Memory sanitizer is incompatible with address sanitizer")
@@ -564,7 +563,6 @@ macro(generate_cmakein input output)
564563

565564
if (_line STREQUAL "#define ZCONF_H")
566565
file(APPEND ${output} "#cmakedefine Z_HAVE_UNISTD_H\n")
567-
file(APPEND ${output} "#cmakedefine Z_HAVE_STDARG_H\n")
568566
endif()
569567
endforeach()
570568
endmacro(generate_cmakein)

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ distclean: clean
365365
@if [ -f zconf.h.in ]; then \
366366
cp -p $(SRCDIR)/zconf.h.in zconf.h ; \
367367
TEMPFILE=zconfh_$$ ; \
368-
echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n#cmakedefine Z_HAVE_STDARG_H\n" >> $$TEMPFILE &&\
368+
echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n" >> $$TEMPFILE &&\
369369
sed -f $$TEMPFILE $(SRCDIR)/zconf.h.in > zconf.h.cmakein &&\
370370
touch -r $(SRCDIR)/zconf.h.in zconf.h.cmakein &&\
371371
rm $$TEMPFILE ; fi

configure

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -709,19 +709,6 @@ fi
709709

710710
echo >> configure.log
711711

712-
# check for stdarg.h and save result in zconf.h
713-
cat > $test.c <<EOF
714-
#include <stdarg.h>
715-
int main() { return 0; }
716-
EOF
717-
if try $CC -c $CFLAGS $test.c; then
718-
sed < zconf${SUFFIX}.h "/^#ifdef HAVE_STDARG_H.* may be/s/def HAVE_STDARG_H\(.*\) may be/ 1\1 was/" > zconf${SUFFIX}.temp.h
719-
mv zconf${SUFFIX}.temp.h zconf${SUFFIX}.h
720-
echo "Checking for stdarg.h... Yes." | tee -a configure.log
721-
else
722-
echo "Checking for stdarg.h... No." | tee -a configure.log
723-
fi
724-
725712
# if --zlib-compat was requested
726713
if test $compat -eq 1; then
727714
gzfileops=1

zconf-ng.h.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ typedef void *voidp;
111111
# define Z_HAVE_UNISTD_H
112112
#endif
113113

114-
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
115-
# define Z_HAVE_STDARG_H
116-
#endif
117-
118114
#include <sys/types.h> /* for off_t */
119115
#include <stdarg.h> /* for va_list */
120116

zconf.h.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ typedef void *voidp;
111111
# define Z_HAVE_UNISTD_H
112112
#endif
113113

114-
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
115-
# define Z_HAVE_STDARG_H
116-
#endif
117-
118114
#include <sys/types.h> /* for off_t */
119115
#include <stdarg.h> /* for va_list */
120116

0 commit comments

Comments
 (0)