-# From configure.in Revision: 1.62
+# From configure.in Revision: 1.63
ac_aux_dir=
for ac_dir in aux $srcdir/aux; do
if test -f $ac_dir/install-sh; then
echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
if test "$ac_cv_func_regcomp" = "no" ; then
- COMPILE_GNUREGEX="yes"
+ USE_GNUREGEX="yes"
else
- COMPILE_GNUREGEX="no"
+ USE_GNUREGEX="no"
fi
case "$host" in
*-sun-solaris2.[0-4])
- COMPILE_GNUREGEX="yes"
- ;;
+ USE_GNUREGEX="yes"
+ ;;
+ *-next-nextstep*)
+ USE_GNUREGEX="yes"
+ ;;
esac
-echo "$ac_t""$COMPILE_GNUREGEX" 1>&6
-if test "$COMPILE_GNUREGEX" = "yes"; then
+echo "$ac_t""$USE_GNUREGEX" 1>&6
+if test "$USE_GNUREGEX" = "yes"; then
REGEXLIB="-lregex"
LIBREGEX="libregex.a"
+ cat >> confdefs.h <<\EOF
+#define USE_GNUREGEX 1
+EOF
+
fi
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2705 "configure"
+#line 2712 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
SQUID_MAXFD=256
else
cat > conftest.$ac_ext <<EOF
-#line 2755 "configure"
+#line 2762 "configure"
#include "confdefs.h"
#include <stdio.h>
}
EOF
-{ (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_MAXFD=`cat conftestval`
else
SQUID_UDP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2826 "configure"
+#line 2833 "configure"
#include "confdefs.h"
#include <stdlib.h>
}
EOF
-{ (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_UDP_SO_SNDBUF=`cat conftestval`
else
SQUID_UDP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2864 "configure"
+#line 2871 "configure"
#include "confdefs.h"
#include <stdlib.h>
}
EOF
-{ (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_UDP_SO_RCVBUF=`cat conftestval`
else
SQUID_TCP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2902 "configure"
+#line 2909 "configure"
#include "confdefs.h"
#include <stdlib.h>
}
EOF
-{ (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_TCP_SO_SNDBUF=`cat conftestval`
else
SQUID_TCP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2940 "configure"
+#line 2947 "configure"
#include "confdefs.h"
#include <stdlib.h>
}
EOF
-{ (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if 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
cat > conftest.$ac_ext <<EOF
-#line 2975 "configure"
+#line 2982 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() { return 0; }
char *s = sys_errlist[0];
; return 0; }
EOF
-if { (eval echo configure:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 2999 "configure"
+#line 3006 "configure"
#include "confdefs.h"
extern int _dns_ttl_;
int main() { return 0; }
return _dns_ttl_;
; return 0; }
EOF
-if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.63 1997/01/03 22:59:08 wessels Exp $
+dnl $Id: configure.in,v 1.64 1997/01/07 20:05:33 wessels Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.63 $)dnl
+AC_REVISION($Revision: 1.64 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(aux)
AC_MSG_CHECKING(if GNUregex needs to be compiled)
if test "$ac_cv_func_regcomp" = "no" ; then
- COMPILE_GNUREGEX="yes"
+ USE_GNUREGEX="yes"
else
- COMPILE_GNUREGEX="no"
+ USE_GNUREGEX="no"
fi
case "$host" in
[*-sun-solaris2.[0-4]])
- COMPILE_GNUREGEX="yes"
- ;;
+ USE_GNUREGEX="yes"
+ ;;
+ [*-next-nextstep*])
+ USE_GNUREGEX="yes"
+ ;;
esac
-AC_MSG_RESULT($COMPILE_GNUREGEX)
-if test "$COMPILE_GNUREGEX" = "yes"; then
+AC_MSG_RESULT($USE_GNUREGEX)
+if test "$USE_GNUREGEX" = "yes"; then
REGEXLIB="-lregex"
LIBREGEX="libregex.a"
+ AC_DEFINE(USE_GNUREGEX)
fi
AC_SUBST(REGEXLIB)
AC_SUBST(LIBREGEX)
/*
- * $Id: debug.cc,v 1.39 1997/01/03 22:59:15 wessels Exp $
+ * $Id: debug.cc,v 1.40 1997/01/07 20:05:42 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
#include "squid.h"
-const char *volatile _db_file = __FILE__;
-volatile int _db_line = 0;
-
FILE *debug_log = NULL;
static char *debug_log_file = NULL;
static const char *const w_space = " \t\n\r";
LOCAL_ARRAY(char, tmpbuf, BUFSIZ);
#endif
- if (debug_log == NULL)
- return;
-
#ifdef __STDC__
+ if (level > debugLevels[section])
+ return;
va_start(args, format);
#else
va_start(args);
section = va_arg(args, int);
level = va_arg(args, int);
- format = va_arg(args, const char *);
-#endif
-
if (level > debugLevels[section]) {
va_end(args);
return;
}
-#ifdef LOG_FILE_AND_LINE
- sprintf(f, "%s %-10.10s %4d| %s",
- accessLogTime(squid_curtime),
- _db_file,
- _db_line,
- format);
-#else
+ format = va_arg(args, const char *);
+#endif
+
+ if (debug_log == NULL)
+ return;
sprintf(f, "%s| %s",
accessLogTime(squid_curtime),
format);
-#endif
-
#if HAVE_SYSLOG
/* level 0 go to syslog */
if (level == 0 && opt_syslog_enable) {
syslog(LOG_ERR, "%s", tmpbuf);
}
#endif /* HAVE_SYSLOG */
-
/* write to log file */
vfprintf(debug_log, f, args);
if (unbuffered_logs)