aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index 060acb7..52a50fb 100755
--- a/configure
+++ b/configure
@@ -367,6 +367,21 @@ EOF
367 fi 367 fi
368fi 368fi
369 369
370echo >> configure.log
371
372cat > $test.c <<EOF
373#include <string.h>
374#include <errno.h>
375int main() { return strlen(strerror(errno)); }
376EOF
377if try $CC $CFLAGS -o $test $test.c; then
378 echo "Checking for strerror... Yes." | tee -a configure.log
379else
380 CFLAGS="${CFLAGS} -DNO_STRERROR"
381 SFLAGS="${SFLAGS} -DNO_STRERROR"
382 echo "Checking for strerror... No." | tee -a configure.log
383fi
384
370cp -p zconf.h.in zconf.h 385cp -p zconf.h.in zconf.h
371 386
372echo >> configure.log 387echo >> configure.log
@@ -435,7 +450,6 @@ int main()
435 return 0; 450 return 0;
436} 451}
437EOF 452EOF
438
439if try $CC -c $CFLAGS $test.c; then 453if try $CC -c $CFLAGS $test.c; then
440 echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()." | tee -a configure.log 454 echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()." | tee -a configure.log
441 455