-# From configure.in Revision: 1.160
+# From configure.in Revision: 1.161
ac_aux_dir=
for ac_dir in cfgaux $srcdir/cfgaux; do
if test -f $ac_dir/install-sh; then
#include <sys/types.h>
#endif
main() {
- fprintf (fopen("conftestval", "w"), "%d\n", FD_SETSIZE);
+ FILE *fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", FD_SETSIZE);
exit(0);
}
EOF
-if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
DEFAULT_FD_SETSIZE=`cat conftestval`
else
echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
-echo "configure:4240: checking Maximum number of filedescriptors we can open" >&5
+echo "configure:4241: checking Maximum number of filedescriptors we can open" >&5
if test "$cross_compiling" = yes; then
SQUID_MAXFD=256
else
cat > conftest.$ac_ext <<EOF
-#line 4245 "configure"
+#line 4246 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/param.h>
#include <sys/resource.h>
main() {
+ FILE *fp;
int i,j;
#if __CYGWIN32__
/* getrlimit and sysconf returns bogous values on cygwin32.
i++;
#endif
#endif /* __CYGWIN32__ */
- fprintf (fopen("conftestval", "w"), "%d\n", i);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", i);
exit(0);
}
EOF
-if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
SQUID_MAXFD=`cat conftestval`
else
fi
echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
-echo "configure:4330: checking Default UDP send buffer size" >&5
+echo "configure:4333: checking Default UDP send buffer size" >&5
if test "$cross_compiling" = yes; then
SQUID_UDP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 4335 "configure"
+#line 4338 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
if (val<=0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
EOF
-if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
SQUID_UDP_SO_SNDBUF=`cat conftestval`
else
echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
-echo "configure:4373: checking Default UDP receive buffer size" >&5
+echo "configure:4378: checking Default UDP receive buffer size" >&5
if test "$cross_compiling" = yes; then
SQUID_UDP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 4378 "configure"
+#line 4383 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
EOF
-if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
SQUID_UDP_SO_RCVBUF=`cat conftestval`
else
echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
-echo "configure:4416: checking Default TCP send buffer size" >&5
+echo "configure:4423: checking Default TCP send buffer size" >&5
if test "$cross_compiling" = yes; then
SQUID_TCP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 4421 "configure"
+#line 4428 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
EOF
-if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
SQUID_TCP_SO_SNDBUF=`cat conftestval`
else
echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
-echo "configure:4459: checking Default TCP receive buffer size" >&5
+echo "configure:4468: checking Default TCP receive buffer size" >&5
if test "$cross_compiling" = yes; then
SQUID_TCP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 4464 "configure"
+#line 4473 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
EOF
-if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
SQUID_TCP_SO_RCVBUF=`cat conftestval`
else
echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
-echo "configure:4502: checking if sys_errlist is already defined" >&5
+echo "configure:4513: 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 <<EOF
-#line 4507 "configure"
+#line 4518 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
char *s = sys_errlist0;
; return 0; }
EOF
-if { (eval echo configure:4514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_needs_sys_errlist="no"
else
fi
echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
-echo "configure:4536: checking for libresolv _dns_ttl_ hack" >&5
+echo "configure:4547: checking for libresolv _dns_ttl_ hack" >&5
cat > conftest.$ac_ext <<EOF
-#line 4538 "configure"
+#line 4549 "configure"
#include "confdefs.h"
extern int _dns_ttl_;
int main() {
return _dns_ttl_;
; return 0; }
EOF
-if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4556: \"$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
rm -f conftest*
echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
-echo "configure:4561: checking if inet_ntoa() actually works" >&5
+echo "configure:4572: checking if inet_ntoa() actually works" >&5
if test "$cross_compiling" = yes; then
INET_NTOA_RESULT="broken"
else
cat > conftest.$ac_ext <<EOF
-#line 4566 "configure"
+#line 4577 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <arpa/inet.h>
main ()
{
+ FILE *fp;
struct in_addr in;
in.s_addr = inet_addr("1.2.3.4");
- fprintf (fopen("conftestval", "w"), "%s\n", inet_ntoa(in));
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%s\n", inet_ntoa(in));
exit(0);
}
EOF
-if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
INET_NTOA_RESULT=`cat conftestval`
else
if test "$ac_cv_func_statvfs" = "yes" ; then
echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
-echo "configure:4607: checking for working statvfs() interface" >&5
+echo "configure:4620: checking for working statvfs() interface" >&5
cat > conftest.$ac_ext <<EOF
-#line 4609 "configure"
+#line 4622 "configure"
#include "confdefs.h"
#include <stdlib.h>
; return 0; }
EOF
-if { (eval echo configure:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_func_statvfs=yes
else
fi
echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
-echo "configure:4640: checking for _res.nsaddr_list" >&5
+echo "configure:4653: checking for _res.nsaddr_list" >&5
if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4645 "configure"
+#line 4658 "configure"
#include "confdefs.h"
#if HAVE_SYS_TYPES_H
_res.nsaddr_list[0];
; return 0; }
EOF
-if { (eval echo configure:4668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_have_res_nsaddr_list="yes"
else
if test $ac_cv_have_res_nsaddr_list = "no" ; then
echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
-echo "configure:4690: checking for _res.ns_list" >&5
+echo "configure:4703: checking for _res.ns_list" >&5
if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4695 "configure"
+#line 4708 "configure"
#include "confdefs.h"
#if HAVE_SYS_TYPES_H
_res.ns_list[0].addr;
; return 0; }
EOF
-if { (eval echo configure:4718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_have_res_ns_list="yes"
else
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.161 1998/12/11 21:01:09 wessels Exp $
+dnl $Id: configure.in,v 1.162 1999/01/11 20:34:14 wessels Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.161 $)dnl
+AC_REVISION($Revision: 1.162 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(cfgaux)
#include <sys/types.h>
#endif
main() {
- fprintf (fopen("conftestval", "w"), "%d\n", FD_SETSIZE);
+ FILE *fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", FD_SETSIZE);
exit(0);
}
],
#include <sys/param.h>
#include <sys/resource.h>
main() {
+ FILE *fp;
int i,j;
#if __CYGWIN32__
/* getrlimit and sysconf returns bogous values on cygwin32.
i++;
#endif
#endif /* __CYGWIN32__ */
- fprintf (fopen("conftestval", "w"), "%d\n", i);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", i);
exit(0);
}
],
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
if (val<=0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
],
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
],
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
],
#include <netinet/in.h>
main ()
{
+ FILE *fp;
int fd,val=0,len=sizeof(int);
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
if (val <= 0) exit(1);
- fprintf (fopen("conftestval", "w"), "%d\n", val);
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%d\n", val);
exit(0);
}
],
#include <arpa/inet.h>
main ()
{
+ FILE *fp;
struct in_addr in;
in.s_addr = inet_addr("1.2.3.4");
- fprintf (fopen("conftestval", "w"), "%s\n", inet_ntoa(in));
+ fp = fopen("conftestval", "w");
+ fprintf (fp, "%s\n", inet_ntoa(in));
exit(0);
}
],