configure
上传用户:liugui
上传日期:2007-01-04
资源大小:822k
文件大小:136k
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 2650 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(int));
- exit(0);
- }
- EOF
- if { (eval echo configure:2661: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_int=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_int=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_int" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- EOF
- echo $ac_n "checking size of long""... $ac_c" 1>&6
- echo "configure:2681: checking size of long" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 2689 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(long));
- exit(0);
- }
- EOF
- if { (eval echo configure:2700: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_long" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- EOF
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
- echo "configure:2723: checking for working alloca.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_alloca_h'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2728 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() {
- char *p = alloca(2 * sizeof(int));
- ; return 0; }
- EOF
- if { (eval echo configure:2735: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ac_cv_header_alloca_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_alloca_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
- if test $ac_cv_header_alloca_h = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA_H 1
- EOF
- fi
- echo $ac_n "checking for alloca""... $ac_c" 1>&6
- echo "configure:2756: checking for alloca" >&5
- if eval "test "`echo '$''{'ac_cv_func_alloca_works'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2761 "configure"
- #include "confdefs.h"
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # if HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- char *alloca ();
- # endif
- # endif
- # endif
- #endif
- int main() {
- char *p = (char *) alloca(1);
- ; return 0; }
- EOF
- if { (eval echo configure:2784: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ac_cv_func_alloca_works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_alloca_works=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
- if test $ac_cv_func_alloca_works = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA 1
- EOF
- fi
- if test $ac_cv_func_alloca_works = no; then
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.o
- cat >> confdefs.h <<EOF
- #define C_ALLOCA 1
- EOF
- echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
- echo "configure:2816: checking whether alloca needs Cray hooks" >&5
- if eval "test "`echo '$''{'ac_cv_os_cray'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2821 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- #else
- wenotbecray
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "webecray" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_os_cray=yes
- else
- rm -rf conftest*
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_os_cray" 1>&6
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:2846: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2851 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:2874: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define CRAY_STACKSEG_END $ac_func
- EOF
- break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
- echo "configure:2901: checking stack direction for C alloca" >&5
- if eval "test "`echo '$''{'ac_cv_c_stack_direction'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- #line 2909 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
- if (addr == 0)
- {
- addr = &dummy;
- return find_stack_direction ();
- }
- else
- return (&dummy > addr) ? 1 : -1;
- }
- main ()
- {
- exit (find_stack_direction() < 0);
- }
- EOF
- if { (eval echo configure:2928: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_stack_direction=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_stack_direction=-1
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
- fi
- echo $ac_n "checking for pid_t""... $ac_c" 1>&6
- echo "configure:2951: checking for pid_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_pid_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2956 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_pid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_pid_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_pid_t" 1>&6
- if test $ac_cv_type_pid_t = no; then
- cat >> confdefs.h <<EOF
- #define pid_t int
- EOF
- fi
- echo $ac_n "checking for size_t""... $ac_c" 1>&6
- echo "configure:2984: checking for size_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_size_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2989 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
- else
- rm -rf conftest*
- ac_cv_type_size_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_size_t" 1>&6
- if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<EOF
- #define size_t unsigned int
- EOF
- fi
- echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
- echo "configure:3017: checking for ssize_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_ssize_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3022 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_ssize_t=yes
- else
- rm -rf conftest*
- ac_cv_type_ssize_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
- if test $ac_cv_type_ssize_t = no; then
- cat >> confdefs.h <<EOF
- #define ssize_t int
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:3050: checking for off_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_off_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3055 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<EOF
- #define off_t int
- EOF
- fi
- echo $ac_n "checking for mode_t""... $ac_c" 1>&6
- echo "configure:3083: checking for mode_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_mode_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3088 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_mode_t=yes
- else
- rm -rf conftest*
- ac_cv_type_mode_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_mode_t" 1>&6
- if test $ac_cv_type_mode_t = no; then
- cat >> confdefs.h <<EOF
- #define mode_t u_short
- EOF
- fi
- echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
- echo "configure:3116: checking for fd_mask" >&5
- if eval "test "`echo '$''{'ac_cv_type_fd_mask'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3121 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "fd_mask[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_fd_mask=yes
- else
- rm -rf conftest*
- ac_cv_type_fd_mask=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
- if test $ac_cv_type_fd_mask = no; then
- cat >> confdefs.h <<EOF
- #define fd_mask int
- EOF
- fi
- echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
- echo "configure:3150: checking for socklen_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_socklen_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 3156 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_socklen_t=yes
- else
- rm -rf conftest*
- ac_cv_type_socklen_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
- if test $ac_cv_type_socklen_t = no; then
- cat >> confdefs.h <<EOF
- #define socklen_t int
- EOF
- fi
- echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
- echo "configure:3187: checking for main in -lnsl" >&5
- ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3195 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3202: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lnsl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
- echo "configure:3230: checking for main in -lsocket" >&5
- ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3238 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3245: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lsocket $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
- echo "skipping libmalloc check (--enable-dlmalloc specified)"
- else
- echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
- echo "configure:3277: checking for main in -lgnumalloc" >&5
- ac_lib_var=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgnumalloc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3285 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3292: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lgnumalloc $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
- echo "Disabling extended malloc functions when using gnumalloc"
- ac_cv_func_mallinfo=no
- ac_cv_func_mallocblksize=no
- ac_cv_func_mallopt=no
- else
- case "$host" in
- *-sun-solaris*)
- echo "skipping libmalloc check for $host"
- ;;
- i386-*-freebsd*)
- echo "skipping libmalloc check for $host"
- ;;
- *)
-
- echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
- echo "configure:3335: checking for main in -lmalloc" >&5
- ac_lib_var=`echo malloc'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lmalloc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3343 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3350: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lmalloc $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- fi
- echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
- echo "configure:3383: checking for main in -lbsd" >&5
- ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lbsd $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3391 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3398: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lbsd $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
- echo "configure:3426: checking for main in -lregex" >&5
- ac_lib_var=`echo regex'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lregex $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3434 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3441: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- REGEXLIB="-lregex"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
- echo "configure:3462: checking for gethostbyname in -lbind" >&5
- ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lbind $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3470 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:3481: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lbind $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_bind_gethostbyname = "no" ; then
- case "$host" in
- i386-*-freebsd*)
- echo "skipping libresolv checks for $host"
- ;;
- *)
- echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
- echo "configure:3515: checking for inet_aton in -lresolv" >&5
- ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lresolv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3523 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_aton();
- int main() {
- inet_aton()
- ; return 0; }
- EOF
- if { (eval echo configure:3534: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
- echo "configure:3550: checking for inet_aton in -l44bsd" >&5
- ac_lib_var=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-l44bsd $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3558 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_aton();
- int main() {
- inet_aton()
- ; return 0; }
- EOF
- if { (eval echo configure:3569: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-l44bsd $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
- echo "configure:3601: checking for main in -lresolv" >&5
- ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lresolv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3609 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3616: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lresolv $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
- echo "configure:3647: checking for main in -lm" >&5
- ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3655 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3662: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lm $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
- echo "configure:3691: checking for crypt in -lcrypt" >&5
- ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3699 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char crypt();
- int main() {
- crypt()
- ; return 0; }
- EOF
- if { (eval echo configure:3710: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcrypt $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_crypt_crypt = "yes"; then
- CRYPTLIB="-lcrypt"
- fi
- echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
- echo "configure:3743: checking for main in -lpthread" >&5
- ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3751 "configure"
- #include "confdefs.h"
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:3758: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lpthread $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_pthread_main = "yes"; then
- PTHREADLIB="-lpthread"
- fi
- case "$host" in
- *-pc-sco3.2*)
- echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
- echo "configure:3793: checking for strftime in -lintl" >&5
- ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lintl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3801 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strftime();
- int main() {
- strftime()
- ; return 0; }
- EOF
- if { (eval echo configure:3812: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lintl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- case "$host" in
- i386-*-solaris2.*)
- if test "$GCC" = "yes"; then
- echo "Removing -O for gcc on $host"
- CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
- fi
- ;;
- *-sgi-irix*)
- echo "Removing -lsocket for IRIX..."
- LIBS=`echo $LIBS | sed -e s/-lsocket//`
- echo "Removing -lnsl for IRIX..."
- LIBS=`echo $LIBS | sed -e s/-lnsl//`
- echo "Removing -lbsd for IRIX..."
- LIBS=`echo $LIBS | sed -e s/-lbsd//`
- ;;
- *-ibm-aix*)
- echo "Removing -lbsd for AIX..."
- LIBS=`echo $LIBS | sed -e s/-lbsd//`
- echo "disabling snprintf/vsnprintf for $host"
- ac_cv_func_snprintf=no
- ac_cv_func_vsnprintf=no
- ;;
- *m88k*)
- CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
- cat >> confdefs.h <<EOF
- #define GETTIMEOFDAY_NO_TZP 1
- EOF
- ;;
- *-*-solaris2.[0-4])
- cat >> confdefs.h <<EOF
- #define GETTIMEOFDAY_NO_TZP 1
- EOF
- ;;
- *-sony-newsos[56]*)
- cat >> confdefs.h <<EOF
- #define GETTIMEOFDAY_NO_TZP 1
- EOF
- ;;
- esac
- # Recommended by Balint Nagy Endre <bne@CareNet.hu>
- case "$host" in
- *-univel-sysv4.2MP)
- if test `uname -v` = "2.03"; then
- echo "disabling mallinfo for $host"
- ac_cv_func_mallinfo=no
- fi
- ;;
- esac
- # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
- # when running configure.
- if test -z "$ac_cv_func_poll"; then
- case "$host" in
- alpha-dec-osf3.*)
- # John Kay (jkay@nlanr.net) 19970818
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
- ;;
- *-hp-hpux*.*)
- # Duane Wessels
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
- ;;
- *-linux-*)
- # Henrik Nordstrom (hno@hem.passagen.se) 19980817
- # poll is problematic on Linux. We disable it
- # by default until Linux gets it right.
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
- ;;
- powerpc-ibm-aix4.1.*)
- # Mike Laster (mlaster@metavillage.com) 19981021
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
- ;;
- *-pc-sco3.2*)
- # Robert Side <rside@aiinc.bc.ca>
- # Mon, 18 Jan 1999 17:48:00 GMT
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
- ;;
- esac
- fi
- for ac_func in
- bcopy
- crypt
- drand48
- fchmod
- getdtablesize
- getpagesize
- getrusage
- getspnam
- lrand48
- mallinfo
- mallocblksize
- mallopt
- memcpy
- memmove
- memset
- mktime
- mstats
- poll
- putenv
- random
- regcomp
- regexec
- regfree
- res_init
- rint
- seteuid
- setpgrp
- setrlimit
- setsid
- sigaction
- snprintf
- srand48
- srandom
- statvfs
- sysconf
- syslog
- tempnam
- timegm
- vsnprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3973: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3978 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4001: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$async_io" = "yes" ; then
- for ac_func in
- pthread_attr_setscope
- pthread_setschedparam
- pthread_attr_setschedparam
-
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4034: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4039 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4062: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
- echo "configure:4089: checking if setresuid is implemented" >&5
- if eval "test "`echo '$''{'ac_cv_func_setresuid'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4097 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- int main() {
- if(setresuid(-1,-1,-1)) {
- perror("setresuid:");
- exit(1);
- }
- exit(0);
- }
-
- EOF
- if { (eval echo configure:4110: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setresuid="yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setresuid="no"
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_func_setresuid" 1>&6
- if test "$ac_cv_func_setresuid" = "yes" ; then
- cat >> confdefs.h <<EOF
- #define HAVE_SETRESUID 1
- EOF
- fi
- if test "$IPF_TRANSPARENT" ; then
- echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
- echo "configure:4135: checking if IP-Filter header files are installed" >&5
- if test "$ac_cv_header_ip_compat_h" = "no" ||
- test "$ac_cv_header_ip_fil_h" = "no" ||
- test "$ac_cv_header_ip_nat_h" = "no" ; then
- IPF_TRANSPARENT="no"
- cat >> confdefs.h <<EOF
- #define IPF_TRANSPARENT 0
- EOF
- else
- IPF_TRANSPARENT="yes"
- cat >> confdefs.h <<EOF
- #define IPF_TRANSPARENT 1
- EOF
- fi
- echo "$ac_t""$IPF_TRANSPARENT" 1>&6
- fi
- if test "$IPF_TRANSPARENT" = "no" ; then
- echo "WARNING: Cannot find necessary IP-Filter header files"
- echo " Transparent Proxy support WILL NOT be enabled"
- sleep 10
- fi
- if test -z "$USE_GNUREGEX" ; then
- case "$host" in
- *-sun-solaris2.[0-4])
- USE_GNUREGEX="yes"
- ;;
- *-next-nextstep*)
- USE_GNUREGEX="yes"
- ;;
- esac
- fi
- echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
- echo "configure:4170: checking if GNUregex needs to be compiled" >&5
- if test -z "$USE_GNUREGEX"; then
- if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
- USE_GNUREGEX="yes"
- else
- cat > conftest.$ac_ext <<EOF
- #line 4176 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <regex.h>
- int main() {
- regex_t t; regcomp(&t,"",0);
- ; return 0; }
- EOF
- if { (eval echo configure:4184: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- USE_GNUREGEX="no"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- USE_GNUREGEX="yes"
- fi
- rm -f conftest*
- fi
- fi
- 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
- for ac_func in
- drand48
- tempnam
- strerror
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4215: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4220 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4243: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- LIBOBJS="$LIBOBJS ${ac_func}.o"
- fi
- done
- echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
- echo "configure:4271: checking Default FD_SETSIZE value" >&5
- if test "$cross_compiling" = yes; then
- DEFAULT_FD_SETSIZE=256
- else
- cat > conftest.$ac_ext <<EOF
- #line 4276 "configure"
- #include "confdefs.h"
- #if HAVE_STDIO_H
- #include <stdio.h>
- #endif
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #if HAVE_SYS_SELECT_H
- #include <sys/select.h>
- #endif
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- main() {
- FILE *fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", FD_SETSIZE);
- exit(0);
- }
- EOF
- if { (eval echo configure:4301: "$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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- DEFAULT_FD_SETSIZE=256
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
- cat >> confdefs.h <<EOF
- #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
- EOF
- echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
- echo "configure:4320: 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 4325 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <unistd.h>
- #include <sys/time.h> /* needed on FreeBSD */
- #include <sys/param.h>
- #include <sys/resource.h>
- main() {
- FILE *fp;
- int i,j;
- #if __CYGWIN32__
- /* getrlimit and sysconf returns bogous values on cygwin32.
- * Number of fds is virtually unlimited in cygwin (sys/param.h)
- */
- i = NOFILE;
- #else
- #if HAVE_SETRLIMIT
- struct rlimit rl;
- #if defined(RLIMIT_NOFILE)
- if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
- perror("getrlimit: RLIMIT_NOFILE");
- } else {
- rl.rlim_cur = rl.rlim_max; /* set it to the max */
- if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
- perror("setrlimit: RLIMIT_NOFILE");
- }
- }
- #elif defined(RLIMIT_OFILE)
- if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
- perror("getrlimit: RLIMIT_OFILE");
- } else {
- rl.rlim_cur = rl.rlim_max; /* set it to the max */
- if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
- perror("setrlimit: RLIMIT_OFILE");
- }
- }
- #endif /* RLIMIT_NOFILE */
- #endif /* HAVE_SETRLIMIT */
- #if HAVE_GETRLIMIT && defined(RLIMIT_NOFILE)
- if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
- perror("getrlimit: RLIMIT_NOFILE");
- }
- i = rl.rlim_cur;
- #elif HAVE_SYSCONF && defined(_SC_OPEN_MAX)
- i = sysconf(_SC_OPEN_MAX);
- #elif HAVE_GETDTABLESIZE && !defined(__linux__)
- i = getdtablesize();
- #elif defined(OPEN_MAX)
- i = OPEN_MAX;
- #elif defined(NOFILE)
- i = NOFILE;
- #elif defined(_NFILE)
- i = _NFILE;
- #else
- while((j=open("/dev/null", 0)) > 0) i=j;
- close(i); close(i-1);
- i++;
- #endif
- #endif /* __CYGWIN32__ */
- fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", i);
- exit(0);
- }
- EOF
- if { (eval echo configure:4391: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- SQUID_MAXFD=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- SQUID_MAXFD=256
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$SQUID_MAXFD" 1>&6
- cat >> confdefs.h <<EOF
- #define SQUID_MAXFD $SQUID_MAXFD
- EOF
- if test "$SQUID_MAXFD" -lt 512 ; then
- echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
- echo " cache will be very busy. Please see the FAQ page"
- echo " http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors"
- echo " on how to increase your filedescriptor limit"
- sleep 10
- fi
- echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
- echo "configure:4417: 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 4422 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/socket.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);
- fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", val);
- exit(0);
- }
- EOF
- if { (eval echo configure:4443: "$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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- SQUID_UDP_SO_SNDBUF=16384
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
- cat >> confdefs.h <<EOF
- #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
- EOF
- echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
- echo "configure:4462: 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 4467 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/socket.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);
- fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", val);
- exit(0);
- }
- EOF
- if { (eval echo configure:4488: "$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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- SQUID_UDP_SO_RCVBUF=16384
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
- cat >> confdefs.h <<EOF
- #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
- EOF
- echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
- echo "configure:4507: 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 4512 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- main ()
- {
- FILE *fp;
- int fd,val=0,len=sizeof(int);
- FILE *fp;
- 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);
- fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", val);
- exit(0);
- }
- EOF
- if { (eval echo configure:4534: "$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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- SQUID_TCP_SO_SNDBUF=16384
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
- cat >> confdefs.h <<EOF
- #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
- EOF
- echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
- echo "configure:4553: 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 4558 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- main ()
- {
- FILE *fp;
- int fd,val=0,len=sizeof(int);
- FILE *fp;
- 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);
- fp = fopen("conftestval", "w");
- fprintf (fp, "%dn", val);
- exit(0);
- }
- EOF
- if { (eval echo configure:4580: "$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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- SQUID_TCP_SO_RCVBUF=16384
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
- cat >> confdefs.h <<EOF
- #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
- EOF
- echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
- echo "configure:4599: 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 4604 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- char *s = sys_errlist0;
- ; return 0; }
- EOF
- if { (eval echo configure:4611: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_needs_sys_errlist="no"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_needs_sys_errlist="yes"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
- if test "$ac_cv_needs_sys_errlist" = "yes" ; then
- cat >> confdefs.h <<EOF
- #define NEED_SYS_ERRLIST 1
- EOF
- fi
- echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
- echo "configure:4633: checking for libresolv _dns_ttl_ hack" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4635 "configure"
- #include "confdefs.h"
- extern int _dns_ttl_;
- int main() {
- return _dns_ttl_;
- ; return 0; }
- EOF
- if { (eval echo configure:4642: "$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
- #define LIBRESOLV_DNS_TTL_HACK 1
- EOF
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
- echo "configure:4658: checking if inet_ntoa() actually works" >&5
- if test "$cross_compiling" = yes; then
- INET_NTOA_RESULT="broken"
- else
- cat > conftest.$ac_ext <<EOF
- #line 4663 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- main ()
- {
- FILE *fp;
- struct in_addr in;
- in.s_addr = inet_addr("1.2.3.4");
- fp = fopen("conftestval", "w");
- fprintf (fp, "%sn", inet_ntoa(in));
- exit(0);
- }
- EOF
- if { (eval echo configure:4682: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- INET_NTOA_RESULT=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- INET_NTOA_RESULT="broken"
- fi
- rm -fr conftest*
- fi
- if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
- echo "$ac_t"""yes"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- echo "Will use our own inet_ntoa()."
- LIBOBJS="$LIBOBJS inet_ntoa.o"
- # echo "WARNING: This looks bad, and probably prevents Squid from working."
- # echo " If you're on IRIX and using GCC 2.8, you probably need"
- # echo " to use the IRIX C compiler instead."
- # sleep 10
- fi
- if test "$ac_cv_func_statvfs" = "yes" ; then
- echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
- echo "configure:4708: checking for working statvfs() interface" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4710 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/statvfs.h>
- int main() {
- struct statvfs sfs;
- sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
- sfs.f_files = sfs.f_ffree = 0;
- statvfs("/tmp", &sfs);
- ; return 0; }
- EOF
- if { (eval echo configure:4727: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_func_statvfs=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_statvfs=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_func_statvfs" 1>&6
- fi
- echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
- echo "configure:4741: 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 4746 "configure"
- #include "confdefs.h"
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if HAVE_ARPA_INET_H
- #include <arpa/inet.h>
- #endif
- #if HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- #if HAVE_RESOLV_H
- #include <resolv.h>
- #endif
- int main() {
- _res.nsaddr_list[0];
- ; return 0; }
- EOF
- if { (eval echo configure:4769: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_have_res_nsaddr_list="yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_have_res_nsaddr_list="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_have_res_nsaddr_list" 1>&6
- if test $ac_cv_have_res_nsaddr_list = "yes" ; then
- cat >> confdefs.h <<EOF
- #define HAVE_RES_NSADDR_LIST 1
- EOF
- fi
- if test $ac_cv_have_res_nsaddr_list = "no" ; then
- echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
- echo "configure:4791: 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 4796 "configure"
- #include "confdefs.h"
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if HAVE_ARPA_INET_H
- #include <arpa/inet.h>
- #endif
- #if HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- #if HAVE_RESOLV_H
- #include <resolv.h>
- #endif
- int main() {
- _res.ns_list[0].addr;
- ; return 0; }
- EOF
- if { (eval echo configure:4819: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_have_res_ns_list="yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_have_res_ns_list="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_have_res_ns_list" 1>&6
- if test $ac_cv_have_res_ns_list = "yes" ; then
- cat >> confdefs.h <<EOF
- #define HAVE_RES_NS_LIST 1
- EOF
- fi
- fi
- XTRA_OBJS=''
- if test "$ac_cv_lib_malloc_main" = "yes" ; then
- if test -r /usr/lib/debug/malloc.o ; then
- XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
- fi
- if test -r /usr/lib/debug/mallocmap.o ; then
- XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
- fi
- fi
- if test -z "$XTRA_LIBS"; then
- XTRA_LIBS="$LIBS"
- XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/-lcrypt//"`
- XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/-lpthread//"`
- XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
- LIBS=''
- fi
- rm -f core
- trap '' 1 2 15
- cat > confcache <<EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set) 2>&1` in
- *ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\ into \, and sed turns \ into ).
- sed -n
- -e "s/'/'\\''/g"
- -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.12"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "
- ./makefile
- ./lib/Makefile
- ./include/config.h
- ./scripts/Makefile
- ./scripts/RunCache
- ./scripts/RunAccel
- ./src/Makefile
- ./contrib/Makefile
- $SNMP_MAKEFILE
- ./icons/Makefile
- ./errors/Makefile
- ./auth_modules/dummy
- ./auth_modules/NCSA/Makefile
- include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@exec_suffix@%$exec_suffix%g
- s%@cgi_suffix@%$cgi_suffix%g
- s%@CACHE_HTTP_PORT@%$CACHE_HTTP_PORT%g
- s%@CACHE_ICP_PORT@%$CACHE_ICP_PORT%g
- s%@CC@%$CC%g
- s%@LIBDLMALLOC@%$LIBDLMALLOC%g
- s%@LIB_MALLOC@%$LIB_MALLOC%g
- s%@ASYNC_OBJS@%$ASYNC_OBJS%g
- s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
- s%@DELAY_OBJS@%$DELAY_OBJS%g
- s%@SNMPLIB@%$SNMPLIB%g
- s%@SNMP_OBJS@%$SNMP_OBJS%g
- s%@makesnmplib@%$makesnmplib%g
- s%@HTCP_OBJS@%$HTCP_OBJS%g
- s%@ERR_LANGUAGE@%$ERR_LANGUAGE%g
- s%@LEAKFINDER_OBJS@%$LEAKFINDER_OBJS%g
- s%@CPP@%$CPP%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@RANLIB@%$RANLIB%g
- s%@LN_S@%$LN_S%g
- s%@SH@%$SH%g
- s%@FALSE@%$FALSE%g
- s%@TRUE@%$TRUE%g
- s%@RM@%$RM%g
- s%@MV@%$MV%g
- s%@MKDIR@%$MKDIR%g
- s%@LN@%$LN%g
- s%@PERL@%$PERL%g
- s%@MAKEDEPEND@%$MAKEDEPEND%g
- s%@AR@%$AR%g
- s%@AR_R@%$AR_R%g
- s%@ALLOCA@%$ALLOCA%g
- s%@CRYPTLIB@%$CRYPTLIB%g
- s%@PTHREADLIB@%$PTHREADLIB%g
- s%@REGEXLIB@%$REGEXLIB%g
- s%@LIBREGEX@%$LIBREGEX%g
- s%@LIBOBJS@%$LIBOBJS%g
- s%@XTRA_OBJS@%$XTRA_OBJS%g
- s%@XTRA_LIBS@%$XTRA_LIBS%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"
- ./makefile
- ./lib/Makefile
- ./include/config.h
- ./scripts/Makefile
- ./scripts/RunCache
- ./scripts/RunAccel
- ./src/Makefile
- ./contrib/Makefile
- $SNMP_MAKEFILE
- ./icons/Makefile
- ./errors/Makefile
- ./auth_modules/dummy
- ./auth_modules/NCSA/Makefile
- "}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/autoconf.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1