configure
上传用户:zm130024
上传日期:2007-01-04
资源大小:432k
文件大小:240k
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated automatically using autoconf version 2.13
- # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- # Defaults:
- ac_help=
- ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_help="$ac_help
- --enable-shared build shared libraries [default=yes]
- --enable-shared=PKGS only build shared libraries if the current package
- appears as an element in the PKGS list"
- ac_help="$ac_help
- --enable-static build static libraries [default=yes]
- --enable-static=PKGS only build shared libraries if the current package
- appears as an element in the PKGS list"
- ac_help="$ac_help
- --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
- ac_help="$ac_help
- --enable-debug compile with debugging support"
- ac_help="$ac_help
- --enable-warnings show compilation warnings"
- ac_help="$ac_help
- --enable-diagnostic enable diagnostic"
- ac_help="$ac_help
- --enable-profiling compile with profiling support in server"
- ac_help="$ac_help
- --enable-linting enable lint"
- ac_help="$ac_help
- --disable-libwrap never use libwrap, even if it is available"
- ac_help="$ac_help
- --disable-preload disable support for preloading shared libraries"
- ac_help="$ac_help
- --with-domainname=NAME hardcode local domainname (only on broken platforms)"
- ac_help="$ac_help
- --with-socks-conf=FILE change location of socks client configuration file"
- ac_help="$ac_help
- --with-sockd-conf=FILE change location of socks server configuration file"
- ac_help="$ac_help
- --with-pidfile=FILE change location of server pidfile"
- ac_help="$ac_help
- --with-libc=NAME manually set name of c library if necessary"
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- build=NONE
- cache_file=./config.cache
- exec_prefix=NONE
- host=NONE
- no_create=
- nonopt=NONE
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- target=NONE
- verbose=
- x_includes=NONE
- x_libraries=NONE
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datadir='${prefix}/share'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- infodir='${prefix}/info'
- mandir='${prefix}/man'
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
- ac_prev=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=$ac_option"
- ac_prev=
- continue
- fi
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case "$ac_option" in
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=*
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=*
- | --da=*)
- datadir="$ac_optarg" ;;
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec-
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=*
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=*
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- Usage: configure [options] [host]
- Options: [defaults in brackets after descriptions]
- Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print `checking...' messages
- --version print the version of autoconf that created configure
- Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
- EOF
- cat << EOF
- Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
- Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
- -includedir | --includedir | --includedi | --included | --include
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=*
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=*
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated
- | --localstate | --localstat | --localsta | --localst
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=*
- | --localstate=* | --localstat=* | --localsta=* | --localst=*
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre
- | --no-cr | --no-c)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=*
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=*
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=*
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=*
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
- -program-transform-name | --program-transform-name
- | --program-transform-nam | --program-transform-na
- | --program-transform-n | --program-transform-
- | --program-transform | --program-transfor
- | --program-transfo | --program-transf
- | --program-trans | --program-tran
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=*
- | --program-transform-nam=* | --program-transform-na=*
- | --program-transform-n=* | --program-transform-=*
- | --program-transform=* | --program-transfor=*
- | --program-transfo=* | --program-transf=*
- | --program-trans=* | --program-tran=*
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=*
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta
- | --sharedst | --shareds | --shared | --share | --shar
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=*
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=*
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=*
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=*
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.13"
- exit 0 ;;
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=*
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=*
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- # File descriptor usage:
- # 0 standard input
- # 1 file creation
- # 2 errors and warnings
- # 3 some systems may open it to /dev/tty
- # 4 used on the Kubota Titan
- # 6 checking for... messages and results
- # 5 compiler messages saved in config.log
- if test "$silent" = yes; then
- exec 6>/dev/null
- else
- exec 6>&1
- fi
- exec 5>./config.log
- echo "
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- " 1>&5
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Also quote any args containing shell metacharacters.
- ac_configure_args=
- for ac_arg
- do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[[]~#$^&*(){}\|;<>?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
- done
- # NLS nuisances.
- # Only set these to C if already set. These must not be set unconditionally
- # because not all systems understand e.g. LANG=C (notably SCO).
- # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
- # Non-C LC_CTYPE values break the ctype check.
- if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
- if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- echo > confdefs.h
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=include/socks.h
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- srcdir=`echo "${srcdir}" | sed 's%([^/])/*$%1%'`
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
- fi
- for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
- done
- if test -r "$cache_file"; then
- echo "loading cache $cache_file"
- . $cache_file
- else
- echo "creating cache $cache_file"
- > $cache_file
- fi
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_exeext=
- ac_objext=o
- if (echo "testingc"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
- ' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
- else
- ac_n= ac_c='c' ac_t=
- fi
- #set this to enable prerelease, changes some defaults (debug enabled)
- #prerelease="1"
- if test x$prerelease != x; then
- prename="-pre$prerelease"
- else
- prename=""
- fi
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:599: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- if eval "test "`echo '$''{'ac_cv_path_install'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
- fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
- echo "configure:652: checking whether build environment is sane" >&5
- # Just in case
- sleep 1
- echo timestamp > conftestfile
- # Do `set' in a subshell so we don't clobber the current shell's
- # arguments. Must try -L first in case configure is actually a
- # symlink; some systems play weird games with the mod time of symlinks
- # (eg FreeBSD returns the mod time of the symlink's containing
- # directory).
- if (
- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftestfile`
- fi
- if test "$*" != "X $srcdir/configure conftestfile"
- && test "$*" != "X conftestfile $srcdir/configure"; then
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
- alias in your environment" 1>&2; exit 1; }
- fi
- test "$2" = conftestfile
- )
- then
- # Ok.
- :
- else
- { echo "configure: error: newly created file is older than distributed files!
- Check your system clock" 1>&2; exit 1; }
- fi
- rm -f conftest*
- echo "$ac_t""yes" 1>&6
- if test "$program_transform_name" = s,x,x,; then
- program_transform_name=
- else
- # Double any or $. echo might interpret backslashes.
- cat <<EOF_SED > conftestsed
- s,\,\\,g; s,$,$$,g
- EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "$program_prefix" != NONE &&
- program_transform_name="s,^,${program_prefix},; $program_transform_name"
- # Use a double $ so make ignores it.
- test "$program_suffix" != NONE &&
- program_transform_name="s,$$,${program_suffix},; $program_transform_name"
- # sed with no file args requires a program.
- test "$program_transform_name" = "" && program_transform_name="s,x,x,"
- echo $ac_n "checking whether ${MAKE-make} sets ${MAKE}""... $ac_c" 1>&6
- echo "configure:709: checking whether ${MAKE-make} sets ${MAKE}" >&5
- set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftestmake <<EOF
- all:
- @echo 'ac_maketemp="${MAKE}"'
- EOF
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
- if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
- else
- eval ac_cv_prog_make_${ac_make}_set=no
- fi
- rm -f conftestmake
- fi
- if eval "test "`echo '$ac_cv_prog_make_'${ac_make}_set`" = yes"; then
- echo "$ac_t""yes" 1>&6
- SET_MAKE=
- else
- echo "$ac_t""no" 1>&6
- SET_MAKE="MAKE=${MAKE-make}"
- fi
- PACKAGE=dante
- VERSION=1.1.1$prename
- if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
- fi
- cat >> confdefs.h <<EOF
- #define PACKAGE "$PACKAGE"
- EOF
- cat >> confdefs.h <<EOF
- #define VERSION "$VERSION"
- EOF
- missing_dir=`cd $ac_aux_dir && pwd`
- echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
- echo "configure:755: checking for working aclocal" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL=aclocal
- echo "$ac_t""found" 1>&6
- else
- ACLOCAL="$missing_dir/missing aclocal"
- echo "$ac_t""missing" 1>&6
- fi
- echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
- echo "configure:768: checking for working autoconf" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (autoconf --version) < /dev/null > /dev/null 2>&1; then
- AUTOCONF=autoconf
- echo "$ac_t""found" 1>&6
- else
- AUTOCONF="$missing_dir/missing autoconf"
- echo "$ac_t""missing" 1>&6
- fi
- echo $ac_n "checking for working automake""... $ac_c" 1>&6
- echo "configure:781: checking for working automake" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (automake --version) < /dev/null > /dev/null 2>&1; then
- AUTOMAKE=automake
- echo "$ac_t""found" 1>&6
- else
- AUTOMAKE="$missing_dir/missing automake"
- echo "$ac_t""missing" 1>&6
- fi
- echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
- echo "configure:794: checking for working autoheader" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (autoheader --version) < /dev/null > /dev/null 2>&1; then
- AUTOHEADER=autoheader
- echo "$ac_t""found" 1>&6
- else
- AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ac_t""missing" 1>&6
- fi
- echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
- echo "configure:807: checking for working makeinfo" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
- MAKEINFO=makeinfo
- echo "$ac_t""found" 1>&6
- else
- MAKEINFO="$missing_dir/missing makeinfo"
- echo "$ac_t""missing" 1>&6
- fi
- #NOTE: save CFLAGS; wish to compile without -O2 when debugging
- oCFLAGS=$CFLAGS
- unset CFLAGS
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- p=${PACKAGE-default}
- case "$enableval" in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- else
- enable_shared=yes
- fi
- # Check whether --enable-static or --disable-static was given.
- if test "${enable_static+set}" = set; then
- enableval="$enable_static"
- p=${PACKAGE-default}
- case "$enableval" in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- else
- enable_static=yes
- fi
- # Make sure we can run config.sub.
- if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:879: checking host system type" >&5
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
- host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/1/'`
- host_vendor=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/2/'`
- host_os=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/3/'`
- echo "$ac_t""$host" 1>&6
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:902: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_RANLIB'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:932: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:962: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
- fi
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1013: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in $PATH" 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- cat > conftest.$ac_ext << EOF
- #line 1056 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:1061: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:1087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- echo "configure:1092: checking whether we are using GNU C" >&5
- if eval "test "`echo '$''{'ac_cv_prog_gcc'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.c <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- fi
- fi
- echo "$ac_t""$ac_cv_prog_gcc" 1>&6
- if test $ac_cv_prog_gcc = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- echo "configure:1120: checking whether ${CC-cc} accepts -g" >&5
- if eval "test "`echo '$''{'ac_cv_prog_cc_g'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- echo 'void f(){}' > conftest.c
- if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
- else
- ac_cv_prog_cc_g=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- # Check whether --with-gnu-ld or --without-gnu-ld was given.
- if test "${with_gnu_ld+set}" = set; then
- withval="$with_gnu_ld"
- test "$withval" = no || with_gnu_ld=yes
- else
- with_gnu_ld=no
- fi
- ac_prog=ld
- if test "$ac_cv_prog_gcc" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
- echo "configure:1164: checking for ld used by GCC" >&5
- ac_prog=`($CC -print-prog-name=ld) 2>&5`
- case "$ac_prog" in
- # Accept absolute paths.
- /* | A-Za-z:\*)
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
- elif test "$with_gnu_ld" = yes; then
- echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
- echo "configure:1182: checking for GNU ld" >&5
- else
- echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
- echo "configure:1185: checking for non-GNU ld" >&5
- fi
- if eval "test "`echo '$''{'ac_cv_path_LD'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog"; then
- ac_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- fi
- fi
- done
- IFS="$ac_save_ifs"
- else
- ac_cv_path_LD="$LD" # Let the user override the test with a path.
- fi
- fi
- LD="$ac_cv_path_LD"
- if test -n "$LD"; then
- echo "$ac_t""$LD" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -z "$LD" && { echo "configure: error: no acceptable ld found in $PATH" 1>&2; exit 1; }
- echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
- echo "configure:1221: checking if the linker ($LD) is GNU ld" >&5
- if eval "test "`echo '$''{'ac_cv_prog_gnu_ld'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # I'd rather use --version here, but apparently some GNU ld's only accept -v.
- if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- ac_cv_prog_gnu_ld=yes
- else
- ac_cv_prog_gnu_ld=no
- fi
- fi
- echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
- echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
- echo "configure:1237: checking for BSD-compatible nm" >&5
- if eval "test "`echo '$''{'ac_cv_path_NM'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$NM" in
- /* | A-Za-z:\*)
- ac_cv_path_NM="$NM" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/nm; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- ac_cv_path_NM="$ac_dir/nm -B"
- elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- ac_cv_path_NM="$ac_dir/nm -p"
- else
- ac_cv_path_NM="$ac_dir/nm"
- fi
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
- ;;
- esac
- fi
- NM="$ac_cv_path_NM"
- echo "$ac_t""$NM" 1>&6
- echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
- echo "configure:1274: checking whether ln -s works" >&5
- if eval "test "`echo '$''{'ac_cv_prog_LN_S'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- rm -f conftestdata
- if ln -s X conftestdata 2>/dev/null
- then
- rm -f conftestdata
- ac_cv_prog_LN_S="ln -s"
- else
- ac_cv_prog_LN_S=ln
- fi
- fi
- LN_S="$ac_cv_prog_LN_S"
- if test "$ac_cv_prog_LN_S" = "ln -s"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
- # Check for any special flags to pass to ltconfig.
- libtool_flags=
- test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
- test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
- test "$silent" = yes && libtool_flags="$libtool_flags --silent"
- test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
- test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
- # Some flags need to be propagated to the compiler or linker for good
- # libtool support.
- case "$host" in
- *-*-irix6*)
- # Find out which ABI we are using.
- echo '#line 1310 "configure"' > conftest.$ac_ext
- if { (eval echo configure:1311: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- case "`/usr/bin/file conftest.o`" in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- *-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- CFLAGS="$CFLAGS -belf"
- ;;
- esac
- # Actually configure libtool. ac_aux_dir is where install-sh is found.
- CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS"
- LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S"
- ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
- $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host
- || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
- autoconf_compflags=$CFLAGS
- CFLAGS=$oCFLAGS
- # Make sure we can run config.sub.
- if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:1350: checking host system type" >&5
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
- host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/1/'`
- host_vendor=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/2/'`
- host_os=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/3/'`
- echo "$ac_t""$host" 1>&6
- if test x$prerelease != x; then
- PRERELEASE_TRUE=
- PRERELEASE_FALSE='#'
- else
- PRERELEASE_TRUE='#'
- PRERELEASE_FALSE=
- fi
- #known keywords for --enable/disable-foo(=yes/no)?
- KNOWN_KEYWORDS="shared|static|debug|warnings|diagnostic|profiling|linting|libwrap|preload"
- for keyword in `set | egrep '^enable_' | sed -e 's/^enable_(.*)=.*/1/'`;
- do
- echo $keyword | egrep "^(${KNOWN_KEYWORDS})$" > /dev/null
- if test $? -ne 0; then
- echo "configure: warning: unknown option '$keyword'" 1>&2
- sleep 10;
- fi
- done
- #solaris 2.5.1 is broken in many places
- case $host in
- *-*-solaris2.5.1)
- echo "configure: warning: the server might not work properly on solaris 2.5.1" 1>&2
- cat >> confdefs.h <<EOF
- #define HAVE_SOLARIS_2_5_1 1
- EOF
- ;;
- esac
- #disable acceptlock
- #XXX add proper test for this?
- case $host in
- *-*-*bsd*)
- no_acceptlock=t
- ;;
- alpha-dec-osf*)
- no_acceptlock=t
- ;;
- *-*-solaris2.6)
- no_acceptlock=t
- ;;
- *-*-solaris2.7)
- no_acceptlock=t
- ;;
- esac
- case $host in
- alpha-dec-osf*)
- cat >> confdefs.h <<EOF
- #define HAVE_DEC_PROTO 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_EXTRA_OSF_SYMBOLS 1
- EOF
- PRELOAD="RLD"
- CPPFLAGS="${CPPFLAGS} -D_XOPEN_SOURCE_EXTENDED -DBYTE_ORDER=LITTLE_ENDIAN -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_OSF_SOURCE"
- ;;
- *-*-hpux*)
- #hpux needs _PROTOTYPES to include prototypes
- #for configure (at least when cc is used)
- CPPFLAGS="${CPPFLAGS} -D_PROTOTYPES"
- ;;
- *-*-sunos4*)
- #XXX hardcode library path (find better way to do this?)
- cat >> confdefs.h <<EOF
- #define LIBRARY_PATH "/usr/lib/"
- EOF
- base_library_path="/usr/lib/"
- echo "configure: warning: "notice: hardcoding /usr/lib for dlopen"" 1>&2
- #nonstandard libfunction workaround #XXX proper test
- cat >> confdefs.h <<EOF
- #define HAVE_BROKEN_VSPRINTF 1
- EOF
- #link problems with libresolv, hardcode domainname
- if test -s /etc/resolv.conf; then
- domainname_hardcoded=`grep domain /etc/resolv.conf | awk '{ print $2 }'`
- fi
- no_res_init=t
- cat >> confdefs.h <<EOF
- #define HAVE_NO_RESOLVESTUFF 1
- EOF
- ;;
- *-*-solaris*)
- cat >> confdefs.h <<EOF
- #define HAVE_SENDMSG_DEADLOCK 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_SOLARIS_BUGS 1
- EOF
- cat >> confdefs.h <<EOF
- #define BSD_COMP 1
- EOF
- ;;
- *-*-linux-*) # XXX This might only concern 2.0.x kernels (add test?)
- cat >> confdefs.h <<EOF
- #define HAVE_DEFECT_RECVMSG 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_LINUX_BUGS 1
- EOF
- cat >> confdefs.h <<EOF
- #define SPT_PADCHAR ' '
- EOF
- ;;
- *-*-openbsd*) #static sockd when profiling is enabled
- no_dynamic_profiled_sockd=t
- ;;
- *-*-irix*)
- PRELOAD="RLD"
- ;;
- esac
- case $PRELOAD in
- RLD)
- PRELOAD_SEPERATOR=":"
- PRELOAD_VARIABLE="_RLD_LIST"
- PRELOAD_POSTFIX="DEFAULT"
- ;;
- *)
- PRELOAD_SEPERATOR=" "
- PRELOAD_VARIABLE="LD_PRELOAD"
- PRELOAD_POSTFIX=""
- ;;
- esac
- #define hosttype
- cat >> confdefs.h <<EOF
- #define HAVE_HOST_TYPE "$host"
- EOF
- #XXX add proper test for this?
- if test x$no_acceptlock != xt; then
- cat >> confdefs.h <<EOF
- #define NEED_ACCEPTLOCK 1
- EOF
- fi
- echo $ac_n "checking for compiler flags""... $ac_c" 1>&6
- echo "configure:1540: checking for compiler flags" >&5
- case $host in
- #XXX check for compiler type, not architecture
- *-*-solaris*)
- if test "x$GCC" = x; then
- #-xs provides allows easier debugging with gdb
- comp_flags="-Xt -xs" #XXX -Xt needed to compile?
- #XXX due to some problems with sockaddr alignment
- #XXX sun cc needs -misalign
- comp_flags="$comp_flags -misalign -xO0"
- echo "$ac_t""$comp_flags" 1>&6
- echo "configure: warning: there might currenly be some performance problems with suncc - it needs -misalign" 1>&2
- $CC 2>&1 | grep ucbcc > /dev/null
- if test $? -eq 0; then
- #XXX ucbcc uses includes from /usr/ucbinclude, but these are
- #not complete. add /usr/include to include path to get
- #all prototypes (read/write are missing)
- #XXX
- host_cc="solaris-ucbcc"
- CPPFLAGS="-I/usr/include $CPPFLAGS${CPPFLAGS:+ } "
- fi
- fi
- # AC_MSG_RESULT($comp_flags)
- ;;
- alpha-dec-osf*) #XXX is it possible to get it to work with -newc?
- if test "x$GCC" = x; then
- comp_flags="-std1 -oldc"
- fi
- echo "$ac_t""$comp_flags" 1>&6
- ;;
- *)
- echo "$ac_t""none" 1>&6
- ;;
- #XXX make sure compiling with compiler options works
- esac
- echo $ac_n "checking for support for -pipe compiler flag""... $ac_c" 1>&6
- echo "configure:1580: checking for support for -pipe compiler flag" >&5
- oCFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -pipe"
- 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 1587 "configure"
- #include "confdefs.h"
- int main()
- {
- return 0;
- }
- EOF
- if { (eval echo configure:1595: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- comp_flags="${comp_flags} -pipe"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- CFLAGS="$oCFLAGS"
- echo $ac_n "checking for compilation with debugging""... $ac_c" 1>&6
- echo "configure:1612: checking for compilation with debugging" >&5
- # Check whether --enable-debug or --disable-debug was given.
- if test "${enable_debug+set}" = set; then
- enableval="$enable_debug"
- debug_enabled=t
- else
- if test x$prerelease != x; then
- debug_enabled=t
- fi
- fi
- if test x$debug_enabled = xt; then
- #no optimalization wanted
- if test $ac_cv_prog_cc_g = yes; then
- CFLAGS="$CFLAGS -g"
- fi
- CPPFLAGS="-DDEBUG $CPPFLAGS"
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- #autoconf_compflags is set to "-g -O2" with GCC
- CFLAGS="$CFLAGS $autoconf_compflags"
- fi
- #-Wall ?
- echo $ac_n "checking for warning flags""... $ac_c" 1>&6
- echo "configure:1639: checking for warning flags" >&5
- # Check whether --enable-warnings or --disable-warnings was given.
- if test "${enable_warnings+set}" = set; then
- enableval="$enable_warnings"
- enable_warnings=t
- else
- if test x$prerelease != x; then
- enable_warnings=t
- fi
- fi
- #construct warning flags in $warn
- if test x$enable_warnings != x; then
- #try to enable compiler specific warning flags
- if test "x$GCC" = x; then
- case $host in
- *sunos4*) #sunos cc
- # warn=""
- true
- ;;
- alpha-dec-osf*) #osf cc
- # warn="-w0 -check -portable -warnprotos"
- true
- ;;
- *-*-solaris*)
- warn="-v" #XXX sun cc won't link with -vc defined
- true
- ;;
- *-*-irix*) #sgi cc
- warn="-fullwarn"
- ;;
- *) #try -Wall (gcc)
- warn="-Wall"
- ;;
- esac
- else
- #gcc warnings
- warn="-Wall -W -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wbad-function-cast -Wpointer-arith -Wundef"
- #warn="$warn -Wold-style-cast -Winline -Waggregate-return -Wconversion -Wwrite-strings -Wtraditional -Wshadow"
- fi
- oCFLAGS=$CFLAGS
- CFLAGS="$CFLAGS $warn"
- #make sure compilation is still possible
- cat > conftest.$ac_ext <<EOF
- #line 1690 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:1697: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""$warn" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""none" 1>&6
- unset warn
- fi
- rm -f conftest*
- CFLAGS=$oCFLAGS
- else
- echo "$ac_t""none" 1>&6
- fi
- #NOTE: set warnings at the bottom; might interfere with tests
- CFLAGS="$CFLAGS $comp_flags"
- #-DDIAGNOSTICS?
- echo $ac_n "checking for compliation with DIAGNOSTIC""... $ac_c" 1>&6
- echo "configure:1718: checking for compliation with DIAGNOSTIC" >&5
- # Check whether --enable-diagnostic or --disable-diagnostic was given.
- if test "${enable_diagnostic+set}" = set; then
- enableval="$enable_diagnostic"
- cat >> confdefs.h <<EOF
- #define DIAGNOSTIC 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- if test x$prerelease != x; then
- cat >> confdefs.h <<EOF
- #define DIAGNOSTIC 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # Check whether --enable-profiling or --disable-profiling was given.
- if test "${enable_profiling+set}" = set; then
- enableval="$enable_profiling"
- cat >> confdefs.h <<EOF
- #define HAVE_PROFILING 1
- EOF
- s_profiling=t
- fi
- if test x$s_profiling = xt; then
- SPROFIL_TRUE=
- SPROFIL_FALSE='#'
- else
- SPROFIL_TRUE='#'
- SPROFIL_FALSE=
- fi
- #static or dynamic sockd?
- if test x$no_dynamic_profiled_sockd = xt; then
- STATIC_SOCKD_TRUE=
- STATIC_SOCKD_FALSE='#'
- else
- STATIC_SOCKD_TRUE='#'
- STATIC_SOCKD_FALSE=
- fi
- if test x$no_dynamic_profiled_sockd = xt; then
- echo "configure: warning: sockd is built static when profiling is enabled" 1>&2
- fi
- # Check whether --enable-linting or --disable-linting was given.
- if test "${enable_linting+set}" = set; then
- enableval="$enable_linting"
- s_linting=t
- fi
- if test x$s_linting = xt; then
- LINT_TRUE=
- LINT_FALSE='#'
- else
- LINT_TRUE='#'
- LINT_FALSE=
- fi
- echo $ac_n "checking whether libwrap should be disabled""... $ac_c" 1>&6
- echo "configure:1791: checking whether libwrap should be disabled" >&5
- # Check whether --enable-libwrap or --disable-libwrap was given.
- if test "${enable_libwrap+set}" = set; then
- enableval="$enable_libwrap"
- if test x$enableval = xno; then
- no_libwrap=t
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- #add /usr/local/include to directories to include path if tcpd.h
- #can be found there)
- for dir in /local/include /usr/local/include; do
- if test -f $dir/tcpd.h; then
- CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I${dir}"
- break
- fi
- done
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1820: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_YACC'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- YACC="$ac_cv_prog_YACC"
- if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
- for ac_prog in mawk gawk nawk awk
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1855: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_AWK'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AWK="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- AWK="$ac_cv_prog_AWK"
- if test -n "$AWK"; then
- echo "$ac_t""$AWK" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$AWK" && break
- done
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:1885: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if eval "test "`echo '$''{'ac_cv_prog_CPP'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 1900 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1906: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 1917 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1923: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
- #line 1934 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1940: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- fi
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
- missing_dir=`cd $ac_aux_dir && pwd`
- for ac_prog in flex lex
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1970: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_LEX'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$LEX" && break
- done
- test -n "$LEX" || LEX=""$missing_dir/missing flex""
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2003: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_prog_LEX'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
- fi
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$LEXLIB"
- then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:2037: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | 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="-l$ac_lib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2045 "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 yywrap();
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:2056: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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
- LEXLIB="-l$ac_lib"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking lex output file root""... $ac_c" 1>&6
- echo "configure:2079: checking lex output file root" >&5
- if eval "test "`echo '$''{'ac_cv_prog_lex_root'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # The minimal lex program is just a single line: %%. But some broken lexes
- # (Solaris, I think it was) want two %% lines, so accommodate them.
- echo '%%
- %%' | $LEX
- if test -f lex.yy.c; then
- ac_cv_prog_lex_root=lex.yy
- elif test -f lexyy.c; then
- ac_cv_prog_lex_root=lexyy
- else
- { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
- fi
- fi
- echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
- LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
- echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
- echo "configure:2100: checking whether yytext is a pointer" >&5
- if eval "test "`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # POSIX says lex can declare yytext either as a pointer or an array; the
- # default is implementation-dependent. Figure out which it is, since
- # not all implementations provide the %pointer and %array declarations.
- ac_cv_prog_lex_yytext_pointer=no
- echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
- ac_save_LIBS="$LIBS"
- LIBS="$LIBS $LEXLIB"
- cat > conftest.$ac_ext <<EOF
- #line 2112 "configure"
- #include "confdefs.h"
- `cat $LEX_OUTPUT_ROOT.c`
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:2119: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_prog_lex_yytext_pointer=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- rm -f "${LEX_OUTPUT_ROOT}.c"
- fi
- echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
- if test $ac_cv_prog_lex_yytext_pointer = yes; then
- cat >> confdefs.h <<EOF
- #define YYTEXT_POINTER 1
- EOF
- fi
- echo $ac_n "checking size of char""... $ac_c" 1>&6
- echo "configure:2142: checking size of char" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_char'+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 2150 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(char));
- exit(0);
- }
- EOF
- if { (eval echo configure:2161: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_char=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_char=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_char" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_CHAR $ac_cv_sizeof_char
- EOF
- echo $ac_n "checking size of short""... $ac_c" 1>&6
- echo "configure:2181: checking size of short" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_short'+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 2189 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(short));
- exit(0);
- }
- EOF
- if { (eval echo configure:2200: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_short=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_short=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_short" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- EOF
- echo $ac_n "checking size of int""... $ac_c" 1>&6
- echo "configure:2220: checking size of int" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_int'+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 2228 "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:2239: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./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:2259: 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 2267 "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:2278: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./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
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:2299: checking for ANSI C header files" >&5
- if eval "test "`echo '$''{'ac_cv_header_stdc'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2304 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2312: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2329 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2347 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 2368 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:2379: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<EOF
- #define STDC_HEADERS 1
- EOF
- fi
- echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
- echo "configure:2403: checking for sys/wait.h that is POSIX.1 compatible" >&5
- if eval "test "`echo '$''{'ac_cv_header_sys_wait_h'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2408 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/wait.h>
- #ifndef WEXITSTATUS
- #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
- #endif
- #ifndef WIFEXITED
- #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
- #endif
- int main() {
- int s;
- wait (&s);
- s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
- ; return 0; }
- EOF
- if { (eval echo configure:2424: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_sys_wait_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
- if test $ac_cv_header_sys_wait_h = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_SYS_WAIT_H 1
- EOF
- fi
- for ac_hdr in fcntl.h limits.h malloc.h paths.h strings.h syslog.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2448: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2453 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2458: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in unistd.h crypt.h sys/file.h sys/ioctl.h sys/time.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2488: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2493 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2498: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in netinet/ip_var.h tcpd.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2528: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2533 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2538: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- case $host in
- alpha-dec-osf*)
- for ac_hdr in netinet/ip.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2571: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2576 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2581: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- ;;
- *) ;;
- esac
- #build without support for preloading?
- echo $ac_n "checking whether preloading should be disabled""... $ac_c" 1>&6
- echo "configure:2613: checking whether preloading should be disabled" >&5
- # Check whether --enable-preload or --disable-preload was given.
- if test "${enable_preload+set}" = set; then
- enableval="$enable_preload"
- if test x$enableval = xno; then
- no_preload=t
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- #allow manual specification
- echo $ac_n "checking for hardcoded domainname""... $ac_c" 1>&6
- echo "configure:2630: checking for hardcoded domainname" >&5
- # Check whether --with-domainname or --without-domainname was given.
- if test "${with_domainname+set}" = set; then
- withval="$with_domainname"
- domainname_hardcoded=$withval
- fi
- if test x${domainname_hardcoded} != x; then
- cat >> confdefs.h <<EOF
- #define SOCKS_DOMAINNAME "${domainname_hardcoded}"
- EOF
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: using hardcoded domainname ${domainname_hardcoded}" 1>&2
- else
- echo "$ac_t""no" 1>&6
- if test x${no_res_init} = xt; then
- echo "configure: warning: unable to locate domainname" 1>&2
- fi
- fi
- #allow default file locations to be overridden
- echo $ac_n "checking for socks config file location""... $ac_c" 1>&6
- echo "configure:2654: checking for socks config file location" >&5
- # Check whether --with-socks-conf or --without-socks-conf was given.
- if test "${with_socks_conf+set}" = set; then
- withval="$with_socks_conf"
- echo "$ac_t""$withval" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SOCKS_CONFIGFILE 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_ALT_SOCKS_CONFIGFILE "$withval"
- EOF
- else
- echo "$ac_t""default" 1>&6
- fi
- echo $ac_n "checking for sockd config file location""... $ac_c" 1>&6
- echo "configure:2674: checking for sockd config file location" >&5
- # Check whether --with-sockd-conf or --without-sockd-conf was given.
- if test "${with_sockd_conf+set}" = set; then
- withval="$with_sockd_conf"
- echo "$ac_t""$withval" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SOCKD_CONFIGFILE 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_ALT_SOCKD_CONFIGFILE "$withval"
- EOF
- else
- echo "$ac_t""default" 1>&6
- fi
- echo $ac_n "checking for pid file location""... $ac_c" 1>&6
- echo "configure:2694: checking for pid file location" >&5
- # Check whether --with-pidfile or --without-pidfile was given.
- if test "${with_pidfile+set}" = set; then
- withval="$with_pidfile"
- echo "$ac_t""$withval" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SOCKD_PIDFILE 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_ALT_SOCKD_PIDFILE "$withval"
- EOF
- else
- echo "$ac_t""default" 1>&6
- fi
- # SOCKSLIBRARY_DYNAMIC is set in the lib directory when preloading
- # is supported (and requested).
- # HAVE_DLFCN_H only determines if the include file exists
- ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
- echo "configure:2718: checking for dlfcn.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2723 "configure"
- #include "confdefs.h"
- #include <dlfcn.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2728: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_DLFCN_H 1
- EOF
- have_dlfcn_h=t
- else
- echo "$ac_t""no" 1>&6
- fi
- #XXX only set conditional if building of shared libraries are enabled
- if test x$have_dlfcn_h = xt; then
- BUILD_PRELOAD_LIB_TRUE=
- BUILD_PRELOAD_LIB_FALSE='#'
- else
- BUILD_PRELOAD_LIB_TRUE='#'
- BUILD_PRELOAD_LIB_FALSE=
- fi
- ac_safe=`echo "sys/sockio.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for sys/sockio.h""... $ac_c" 1>&6
- echo "configure:2767: checking for sys/sockio.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2772 "configure"
- #include "confdefs.h"
- #include <sys/sockio.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2777: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SYS_SOCKIO_H 1
- EOF
- have_sys_sockio_h=t
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking whether <sys/types.h> defines const""... $ac_c" 1>&6
- echo "configure:2804: checking whether <sys/types.h> defines const" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2806 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #ifdef const
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- check_const="yes"
- fi
- rm -f conftest*
- if test x$check_const = xyes; then
- echo $ac_n "checking for working const""... $ac_c" 1>&6
- echo "configure:2828: checking for working const" >&5
- if eval "test "`echo '$''{'ac_cv_c_const'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2833 "configure"
- #include "confdefs.h"
- int main() {
- /* Ultrix mips cc rejects this. */
- typedef int charset[2]; const charset x;
- /* SunOS 4.1.1 cc rejects this. */
- char const *const *ccp;
- char **p;
- /* NEC SVR4.0.2 mips cc rejects this. */
- struct point {int x, y;};
- static struct point const zero = {0,0};
- /* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
- const char *g = "string";
- ccp = &g + (g ? g-g : 0);
- /* HPUX 7.0 cc rejects these. */
- ++ccp;
- p = (char**) ccp;
- ccp = (char const *const *) p;
- { /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
- *t++ = 0;
- }
- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
- }
- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
- }
- { /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
- }
- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
- }
- ; return 0; }
- EOF
- if { (eval echo configure:2882: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_c_const" 1>&6
- if test $ac_cv_c_const = no; then
- cat >> confdefs.h <<EOF
- #define const
- EOF
- fi
- fi
- echo $ac_n "checking whether <netdb.h> declares h_errno""... $ac_c" 1>&6
- echo "configure:2905: checking whether <netdb.h> declares h_errno" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2907 "configure"
- #include "confdefs.h"
- #include <netdb.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "h_errno" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_H_ERRNO 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- #XXXsys/socket.h?
- echo $ac_n "checking for struct ip_opts in <netinet/in.h>""... $ac_c" 1>&6
- echo "configure:2930: checking for struct ip_opts in <netinet/in.h>" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2932 "configure"
- #include "confdefs.h"
- #include <netinet/ip_var.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "struct.*ipoption" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_STRUCT_IPOPTS 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking whether <sys/types.h> defines inline""... $ac_c" 1>&6
- echo "configure:2954: checking whether <sys/types.h> defines inline" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2956 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #ifdef inline
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- check_inline="yes"
- fi
- rm -f conftest*
- if test x$check_inline="yes";then
- echo $ac_n "checking for inline""... $ac_c" 1>&6
- echo "configure:2978: checking for inline" >&5
- if eval "test "`echo '$''{'ac_cv_c_inline'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_c_inline=no
- for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
- #line 2985 "configure"
- #include "confdefs.h"
- int main() {
- } $ac_kw foo() {
- ; return 0; }
- EOF
- if { (eval echo configure:2992: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- fi
- echo "$ac_t""$ac_cv_c_inline" 1>&6
- case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<EOF
- #define inline
- EOF
- ;;
- *) cat >> confdefs.h <<EOF
- #define inline $ac_cv_c_inline
- EOF
- ;;
- esac
- fi
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:3020: checking for uid_t in sys/types.h" >&5
- if eval "test "`echo '$''{'ac_cv_type_uid_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3025 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:3054: 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 3059 "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 "(^|[^a-zA-Z_0-9])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 long
- EOF
- fi
- echo $ac_n "checking for pid_t""... $ac_c" 1>&6
- echo "configure:3087: 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 3092 "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 "(^|[^a-zA-Z_0-9])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:3120: 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 3125 "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 "(^|[^a-zA-Z_0-9])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
- EOF
- fi
- echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
- echo "configure:3153: checking for st_blksize in struct stat" >&5
- if eval "test "`echo '$''{'ac_cv_struct_st_blksize'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3158 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/stat.h>
- int main() {
- struct stat s; s.st_blksize;
- ; return 0; }
- EOF
- if { (eval echo configure:3166: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_st_blksize=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_st_blksize=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
- if test $ac_cv_struct_st_blksize = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ST_BLKSIZE 1
- EOF
- fi
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:3187: checking whether time.h and sys/time.h may both be included" >&5
- if eval "test "`echo '$''{'ac_cv_header_time'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3192 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:3201: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
- echo "configure:3222: checking whether struct tm is in sys/time.h or time.h" >&5
- if eval "test "`echo '$''{'ac_cv_struct_tm'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3227 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <time.h>
- int main() {
- struct tm *tp; tp->tm_sec;
- ; return 0; }
- EOF
- if { (eval echo configure:3235: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm" 1>&6
- if test $ac_cv_struct_tm = sys/time.h; then
- cat >> confdefs.h <<EOF
- #define TM_IN_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
- echo "configure:3256: checking for tm_zone in struct tm" >&5
- if eval "test "`echo '$''{'ac_cv_struct_tm_zone'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3261 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <$ac_cv_struct_tm>
- int main() {
- struct tm tm; tm.tm_zone;
- ; return 0; }
- EOF
- if { (eval echo configure:3269: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm_zone=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm_zone=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
- if test "$ac_cv_struct_tm_zone" = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_TM_ZONE 1
- EOF
- else
- echo $ac_n "checking for tzname""... $ac_c" 1>&6
- echo "configure:3289: checking for tzname" >&5
- if eval "test "`echo '$''{'ac_cv_var_tzname'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3294 "configure"
- #include "confdefs.h"
- #include <time.h>
- #ifndef tzname /* For SGI. */
- extern char *tzname[]; /* RS6000 and others reject char **tzname. */
- #endif
- int main() {
- atoi(*tzname);
- ; return 0; }
- EOF
- if { (eval echo configure:3304: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_var_tzname=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_var_tzname=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_var_tzname" 1>&6
- if test $ac_cv_var_tzname = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_TZNAME 1
- EOF
- fi
- fi
- echo $ac_n "checking to see if openlog accepts LOG_PERROR""... $ac_c" 1>&6
- echo "configure:3327: checking to see if openlog accepts LOG_PERROR" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3329 "configure"
- #include "confdefs.h"
- #include <syslog.h>
- #ifdef LOG_PERROR
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_OPENLOG_LOG_PERROR 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking to see if stdlib.h defines EXIT_FAILURE""... $ac_c" 1>&6
- echo "configure:3354: checking to see if stdlib.h defines EXIT_FAILURE" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3356 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #ifdef EXIT_FAILURE
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define NEED_EXIT_FAILURE 1
- EOF
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- #XXX actually checks if AF_UNIX should be used instead of AF_LOCAL
- echo $ac_n "checking whether <sys/socket.h> uses AF_UNIX""... $ac_c" 1>&6
- echo "configure:3382: checking whether <sys/socket.h> uses AF_UNIX" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3384 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef AF_LOCAL
- #else
- #ifdef AF_UNIX
- yes
- #endif
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define NEED_AF_LOCAL 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for SIGINFO""... $ac_c" 1>&6
- echo "configure:3413: checking for SIGINFO" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3415 "configure"
- #include "confdefs.h"
- #include <signal.h>
- #ifdef SIGINFO
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_SIGNAL_SIGINFO 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking to see if MSG_WAITALL exists""... $ac_c" 1>&6
- echo "configure:3440: checking to see if MSG_WAITALL exists" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3442 "configure"
- #include "confdefs.h"
- #include <sys/socket.h>
- #ifdef MSG_WAITALL
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_MSG_WAITALL 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- #SO_SNDLOWAT
- #irix 6.2 only seems to look at lowest 8 bit of value
- #solaris also seems to be broken (up to 2.6 atleast)
- echo $ac_n "checking whether a working SO_SNDLOWAT exists""... $ac_c" 1>&6
- echo "configure:3470: checking whether a working SO_SNDLOWAT exists" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3472 "configure"
- #include "confdefs.h"
- #include <sys/socket.h>
- #ifdef SO_SNDLOWAT
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
-
- case $host in
- *bsd*)
- so_sndlowat=t
- ;;
- *-osf*)
- so_sndlowat=t
- ;;
- esac
- if test "x${so_sndlowat}" = xt; then
- cat >> confdefs.h <<EOF
- #define HAVE_SO_SNDLOWAT 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""disabled" 1>&6
- echo "configure: warning: performance in the server might be degraded without support for the SO_SNDLOWAT socket option" 1>&2
- fi
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- echo "configure: warning: performance in the server might be degraded without support for the SO_SNDLOWAT socket option" 1>&2
- fi
- rm -f conftest*
- echo $ac_n "checking whether realloc with a NULL pointer calls malloc""... $ac_c" 1>&6
- echo "configure:3512: checking whether realloc with a NULL pointer calls malloc" >&5
- 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 3517 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #ifndef NULL
- #define NULL (char *)0
- #endif
- int main()
- {
- /* will assume this test doesn't fail because of lack of memory */
- if (realloc(NULL, 1) == NULL)
- return 1;
- else
- return 0;
- }
- EOF
- if { (eval echo configure:3534: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_NOMALLOC_REALLOC 1
- EOF
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- echo $ac_n "checking whether free with can be called with NULL""... $ac_c" 1>&6
- echo "configure:3552: checking whether free with can be called with NULL" >&5
- 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 3557 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #ifndef NULL
- #define NULL (char *)0
- #endif
- int main()
- {
- /* will assume core dump/seg fault if it doesn't work */
- free(NULL);
- return 0;
- }
- EOF
- if { (eval echo configure:3572: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_NONULL_FREE 1
- EOF
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- #A good time to save the cache (L_SOCKPROTO might fail)
- 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 | grep ac_space) 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
- #find prototypes for interposition.c
- if test x$no_preload != xt; then
- unset failproto
- if test "x${ac_cv_header_stdc}" = xyes; then
- #does $CPP define __STDC__?
- cat > conftest.$ac_ext <<EOF
- #line 3647 "configure"
- #include "confdefs.h"
- #ifdef __STDC__
- yes
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- CPPFLAG_STDC=""
- else
- rm -rf conftest*
- CPPFLAG_STDC="-D__STDC__"
- fi
- rm -f conftest*
- #L_SOCKPROTO is used to determine the argument types of the functions
- #which are used in dlib/interposition.c. It compares the prototypes in
- #(mainly) <sys/socket.h> and compares them to a list of known
- #values. The arguments to L_SOCKPROTO are:
- #1: the name of the function
- #2: shell code which is executed if no known prototype is found
- #3...: a list of known types, the first is a list of known return values,
- # the second a list of known values for the first argument etc.
- #To add new values to the list simply add the new values at the end of
- #the list.
-
- nargs=6
- paramcnt=4
- func=connect
- ucfunc=CONNECT
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:3687: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "const struct sockaddr *" "__CONST_SOCKADDR_ARG" "struct sockaddr *" "const void *" "__const struct sockaddr *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "socklen_t" "int" "size_t"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=6
- paramcnt=4
- func=accept
- ucfunc=ACCEPT
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:3871: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "struct sockaddr *" "__SOCKADDR_ARG" "__const struct sockaddr *" "void *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "socklen_t *" "int *" "Psocklen_t" "size_t"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=6
- paramcnt=4
- func=bind
- ucfunc=BIND
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:4055: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "const struct sockaddr *" "__CONST_SOCKADDR_ARG" "struct sockaddr *" "const void *" "__const struct sockaddr *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "socklen_t" "int" "size_t"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=6
- paramcnt=4
- func=getpeername
- ucfunc=GETPEERNAME
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:4239: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "struct sockaddr *" "__SOCKADDR_ARG" "void *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "socklen_t *" "int *" "Psocklen_t" "size_t *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=6
- paramcnt=4
- func=getsockname
- ucfunc=GETSOCKNAME
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:4423: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "struct sockaddr *" "__SOCKADDR_ARG" "void *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int *" "socklen_t *" "Psocklen_t" "size_t *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=9
- paramcnt=7
- func=recvfrom
- ucfunc=RECVFROM
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:4607: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "ssize_t" "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #second argument
-
- _arg=2
- _param=conftest.out_param_2
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "void *" "char *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #third argument
-
- _arg=3
- _param=conftest.out_param_3
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "size_t" "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #fourth argument
-
- _arg=4
- _param=conftest.out_param_4
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int" "unsigned int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #fifth argument
-
- _arg=5
- _param=conftest.out_param_5
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "struct sockaddr *" "__SOCKADDR_ARG" "void *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #sixth argument
-
- _arg=6
- _param=conftest.out_param_6
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "socklen_t *" "int *" "Psocklen_t" "size_t *"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #failure
- if test "x$failure" != x; then
- echo "$ac_t""failure" 1>&6
- echo "$failure" | tr '|' 'n'
- failproto=t
- else
- echo "$ac_t""ok" 1>&6
- fi
- rm -f conftest.*
-
- nargs=7
- paramcnt=5
- func=send
- ucfunc=SEND
- echo $ac_n "checking prototypes for $func""... $ac_c" 1>&6
- echo "configure:4869: checking prototypes for $func" >&5
- unset failure
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/uio.h>
- #include <unistd.h>
- EOF
- ${CPP} ${CPPFLAGS} ${CPPFLAG_STDC} conftest.$ac_ext | $AWK "{ if (/[^a-z0-9]${func}[^a-z0-9]/) { s=10 }; if ( s > 0 ) { s -= 1; print; } }" | egrep -v '^#' | tr 'n' ' ' | tr -s '/' | tr ';' 'n' | grep -v "__${func}" | egrep "[^a-z0-9]${func}[^a-z0-9]" | tr -s '[:blank:]' | sed -e 's/extern//' > conftest.out_proto
- cnt=0
- while test $cnt -lt $paramcnt; do
- if test $cnt -eq 0; then
- cat conftest.out_proto | sed -e "s/${func}.*//" | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- else
- cat conftest.out_proto | sed -e "s/.*${func}//" | sed -e "s/[()]//g" | cut -d, -f $cnt | sed -e 's/^[ ]*//' | sed -e 's/[ ]*$//g' > conftest.out_param
- fi
- cat conftest.out_param | tr -s '[:blank:]' > conftest.out_nospace
- if test -s conftest.out_nospace; then
- cp -f conftest.out_param conftest.out_param_${cnt}
- else
- echo "not found" > conftest.out_param_${cnt}
- echo "warning: found no argument"
- fi
- #XXX avoid subshell
- case $cnt in
- 0) cnt=1;;
- 1) cnt=2;;
- 2) cnt=3;;
- 3) cnt=4;;
- 4) cnt=5;;
- 5) cnt=6;;
- 6) cnt=7;;
- 7) cnt=8;;
- 8) cnt=9;;
- 9) cnt=10;;
- 10) cnt=11;;
- esac
- done
- #return value
-
- _arg=0
- _param=conftest.out_param_0
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "ssize_t" "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"
- fi
- failure="$failure ${_func} (${_arg}): (`cat ${_param}`)"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_PROT_${_ucfunc}_${_arg} ${val}
- EOF
- fi
- #first argument
-
- _arg=1
- _param=conftest.out_param_1
- _func=$func
- _ucfunc=$ucfunc
- unset _nofunc
- for val in "int"
- do
- cat ${_param} | egrep "^${val}" > /dev/null
- test $? -eq 0 && _nofunc="" && break
- _nofunc=t
- done
- if test "x${_nofunc}" = xt; then
- if test "x$failure" != x; then
- failure="$failure|"