From: wessels <> Date: Sat, 30 May 1998 03:34:32 +0000 (+0000) Subject: update X-Git-Tag: SQUID_3_0_PRE1~3206 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19f8da406704a54ac0b8ac0fbd049eae430a76d7;p=thirdparty%2Fsquid.git update --- diff --git a/configure b/configure index 51241e22d4..76e664b5af 100755 --- a/configure +++ b/configure @@ -566,7 +566,7 @@ fi -# From configure.in Revision: 1.128 +# From configure.in Revision: 1.130 ac_aux_dir= for ac_dir in cfgaux $srcdir/cfgaux; do if test -f $ac_dir/install-sh; then @@ -4127,20 +4127,56 @@ cat >> confdefs.h <&6 +echo "configure:4133: checking what snprintf() returns when truncating" >&5 + if test "$cross_compiling" = yes; then + SNPRINTF_TRUNC_RET=-1 +else + cat > conftest.$ac_ext < + main () + { + char buf[10]; + int x; + x = snprintf(buf, 10, "ABCDEFGHIJKLM"); + fprintf (fopen("conftestval", "w"), "%d\n", x); + exit(0); + } + +EOF +if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +then + SNPRINTF_TRUNC_RET=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + SNPRINTF_TRUNC_RET=-1 +fi +rm -fr conftest* +fi + + echo "$ac_t""$SNPRINTF_TRUNC_RET" 1>&6 +fi + echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6 -echo "configure:4132: checking if sys_errlist is already defined" >&5 +echo "configure:4168: checking if sys_errlist is already defined" >&5 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *s = sys_errlist0; ; return 0; } EOF -if { (eval echo configure:4144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_needs_sys_errlist="no" else @@ -4162,16 +4198,16 @@ EOF fi echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6 -echo "configure:4166: checking for libresolv _dns_ttl_ hack" >&5 +echo "configure:4202: checking for libresolv _dns_ttl_ hack" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF