#! /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:# From configure.in 1.0 ac_help="$ac_help --enable-subdir enable local building as subdirectory (default=no)" # configuration header if test ".`echo dummy $@ | grep enable-subdir`" != .; then enable_subdir=yes fi if test ".`echo dummy $@ | grep help`" = .; then # bootstrapping shtool ac_prog=$0 ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'` test ".$ac_srcdir" = ".$ac_prog" && ac_srcdir=. ac_shtool="${CONFIG_SHELL-/bin/sh} $ac_srcdir/shtool" # find out terminal sequences if test ".$enable_subdir" != .yes; then TB=`$ac_shtool echo -n -e %B 2>/dev/null` TN=`$ac_shtool echo -n -e %b 2>/dev/null` else TB='' TN='' fi # find out package version PTH_VERSION_STR="`$ac_shtool version -lc -dlong $ac_srcdir/pth_vers.c`" # friendly header ;) if test ".$enable_subdir" != .yes; then echo "Configuring ${TB}GNU Pth${TN} (Portable Threads), Version ${TB}${PTH_VERSION_STR}${TN}" echo "Copyright (c) 1999-2002 Ralf S. Engelschall " fi # additionally find out hex version PTH_VERSION_HEX="`$ac_shtool version -lc -dhex $ac_srcdir/pth_vers.c`" fi ac_help="$ac_help --with-param=ID[,ID,..] load parameters from config.param" ac_prev="" ac_param="" if test -f config.param; then ac_param="config.param:common" fi for ac_option do if test ".$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 case "$ac_option" in --with-param=* ) case $ac_optarg in *:* ) ac_from=`echo $ac_optarg | sed -e 's/:.*//'` ac_what=`echo $ac_optarg | sed -e 's/.*://'` ;; * ) ac_from="config.param" ac_what="$ac_optarg" ;; esac if test ".$ac_param" = .; then ac_param="$ac_from:$ac_what" else ac_param="$ac_param,$ac_from:$ac_what" fi ;; esac done if test ".$ac_param" != .; then # echo "loading parameters" OIFS="$IFS" IFS="," pconf="/tmp/autoconf.$$" echo "ac_options=''" >$pconf ac_from="config.param" for ac_section in $ac_param; do case $ac_section in *:* ) ac_from=`echo "$ac_section" | sed -e 's/:.*//'` ac_section=`echo "$ac_section" | sed -e 's/.*://'` ;; esac (echo ''; cat $ac_from; echo '') |\ sed -e "1,/[ ]*[ ]*${ac_section}[ ]*{[ ]*/d" \ -e '/[ ]*}[ ]*/,$d' \ -e ':join' -e '/\\[ ]*$/N' -e 's/\\[ ]*\n[ ]*//' -e 'tjoin' \ -e 's/^[ ]*//g' \ -e 's/^\([^-].*=.*\) IF \(.*\)$/if \2; then \1; fi/' \ -e 's/^\(--.*=.*\) IF \(.*\)$/if \2; then ac_options="$ac_options \1"; fi/' \ -e 's/^\(--.*\) IF \(.*\)$/if \2; then ac_options="$ac_options \1"; fi/' \ -e 's/^\(--.*=.*\)$/ac_options="$ac_options \1"/' \ -e 's/^\(--.*\)$/ac_options="$ac_options \1"/' \ >>$pconf done IFS="$OIFS" . $pconf rm -f $pconf >/dev/null 2>&1 if test ".$*" = .; then set -- $ac_options else set -- "$@" $ac_options fi fi ac_default_prefix=/usr/local ac_help="$ac_help --enable-debug build for debugging (default=no)" ac_help="$ac_help --enable-profile build for profiling (default=no)" ac_help="$ac_help --enable-optimize build with optimization (default=no)" ac_help="$ac_help --enable-static build static libraries (default=yes)" ac_help="$ac_help --enable-shared build shared libraries (default=yes)" ac_help="$ac_help --with-mctx-mth=ID force mctx method (mcsc,sjlj)" ac_help="$ac_help --with-mctx-dsp=ID force mctx dispatching (sc,ssjlj,sjlj,usjlj,sjlje,...)" ac_help="$ac_help --with-mctx-stk=ID force mctx stack setup (mc,ss,sas,...)" ac_help="$ac_help --enable-syscall-soft enable soft system call mapping (default=no)" ac_help="$ac_help --enable-syscall-hard enable hard system call mapping (default=no)" ac_help="$ac_help --enable-batch enable batch build mode (default=no)" ac_help="$ac_help --enable-maintainer enable maintainer build targets (default=no)" ac_help="$ac_help --enable-tests enable test build targets (default=yes)" ac_help="$ac_help --enable-pthread build Pthread library (default=no)" ac_help="$ac_help --with-sfio[=DIR] build against Sfio library (default=no)" ac_help="$ac_help --with-dmalloc[=DIR] build against Dmalloc library (default=no)" # 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= sitefile= 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 --site-file=FILE use FILE as the site file --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" ;; -site-file | --site-file | --site-fil | --site-fi | --site-f) ac_prev=sitefile ;; -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) sitefile="$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=README # 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 "$sitefile"; then 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 else CONFIG_SITE="$sitefile" 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 "testing\c"; 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 # Check whether --enable-subdir or --disable-subdir was given. if test "${enable_subdir+set}" = set; then enableval="$enable_subdir" else enable_subdir=no fi if test ".$enable_subdir" = .yes; then enable_batch=yes enable_shared=no fi ac_prog=$0 ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'` if test ".$ac_srcdir" = ".$ac_prog"; then ac_srcdir="" elif test "x$ac_srcdir" = "x."; then ac_srcdir="" else if test ".$CFLAGS" = .; then CFLAGS="-I$ac_srcdir" else CFLAGS="$CFLAGS -I$ac_srcdir" fi ac_srcdir="$ac_srcdir/" fi srcdir_prefix="$ac_srcdir" if test ".$host" != .NONE; then PLATFORM="$host" elif test ".$nonopt" != .NONE; then PLATFORM="$nonopt" else PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess` fi PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub $PLATFORM` || exit 1 if test ".$enable_subdir" != .yes; then echo "Platform: ${TB}${PLATFORM}${TN}" fi if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Build Tools:${TN}" 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:749: 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:779: 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:830: 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:862: 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 873 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:878: \"$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:904: 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:909: 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 <&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:937: 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 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:969: 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 < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:990: \"$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 < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1007: \"$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 < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1024: \"$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 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:1049: 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 # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" if test ".$ac_cv_prog_gcc" = ".yes"; then case "$CFLAGS" in *-O* ) ;; * ) CFLAGS="$CFLAGS -O2" ;; esac case "$CFLAGS" in *-g* ) ;; * ) CFLAGS="$CFLAGS -g" ;; esac case "$CFLAGS" in *-pipe* ) ;; * ) echo $ac_n "checking for compiler option -pipe""... $ac_c" 1>&6 echo "configure:1090: checking for compiler option -pipe" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_pipe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_pipe=no else ac_cv_compiler_option_pipe=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_pipe" = .yes; then CFLAGS="$CFLAGS -pipe" else : fi echo "$ac_t""$ac_cv_compiler_option_pipe" 1>&6 ;; esac echo $ac_n "checking for compiler option -ggdb3""... $ac_c" 1>&6 echo "configure:1116: checking for compiler option -ggdb3" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_ggdb3'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_ggdb3=no else ac_cv_compiler_option_ggdb3=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_ggdb3" = .yes; then CFLAGS="$CFLAGS -ggdb3" else : fi echo "$ac_t""$ac_cv_compiler_option_ggdb3" 1>&6 case $PLATFORM in *-*-freebsd*|*-*-solaris* ) CFLAGS="$CFLAGS -pedantic" ;; esac CFLAGS="$CFLAGS -Wall" WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline" WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs" echo $ac_n "checking for compiler option -W""... $ac_c" 1>&6 echo "configure:1147: checking for compiler option -W" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_wmore'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_wmore=no else ac_cv_compiler_option_wmore=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_wmore" = .yes; then CFLAGS="$CFLAGS $WMORE" else : fi echo "$ac_t""$ac_cv_compiler_option_wmore" 1>&6 echo $ac_n "checking for compiler option -Wno-long-long""... $ac_c" 1>&6 echo "configure:1172: checking for compiler option -Wno-long-long" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_wnolonglong'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_wnolonglong=no else ac_cv_compiler_option_wnolonglong=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then CFLAGS="$CFLAGS -Wno-long-long" else : fi echo "$ac_t""$ac_cv_compiler_option_wnolonglong" 1>&6 else case "$CFLAGS" in *-g* ) ;; * ) CFLAGS="$CFLAGS -g" ;; esac fi msg="enabled" cat >> confdefs.h <<\EOF #define PTH_DEBUG 1 EOF else if test ".$ac_cv_prog_gcc" = ".yes"; then case "$CFLAGS" in *-pipe* ) ;; * ) echo $ac_n "checking for compiler option -pipe""... $ac_c" 1>&6 echo "configure:1214: checking for compiler option -pipe" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_pipe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_pipe=no else ac_cv_compiler_option_pipe=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_pipe" = .yes; then CFLAGS="$CFLAGS -pipe" else : fi echo "$ac_t""$ac_cv_compiler_option_pipe" 1>&6 ;; esac fi case "$CFLAGS" in *-g* ) CFLAGS=`echo "$CFLAGS" |\ sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; esac case "$CXXFLAGS" in *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\ sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; esac msg="disabled" fi echo $ac_n "checking for compilation debug mode""... $ac_c" 1>&6 echo "configure:1252: checking for compilation debug mode" >&5 echo "$ac_t""$msg" 1>&6 if test ".$msg" = .enabled; then enable_shared=no fi echo $ac_n "checking for compilation profile mode""... $ac_c" 1>&6 echo "configure:1259: checking for compilation profile mode" >&5 # Check whether --enable-profile or --disable-profile was given. if test "${enable_profile+set}" = set; then enableval="$enable_profile" if test ".$ac_cv_prog_gcc" = ".no"; then { echo "configure: error: profiling requires gcc and gprof" 1>&2; exit 1; } fi CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2//g'` CFLAGS="$CFLAGS -O0 -pg" LDFLAGS="$LDFLAGS -pg" msg="enabled" else msg="disabled" fi echo "$ac_t""$msg" 1>&6 if test ".$msg" = .enabled; then enable_shared=no fi # Check whether --enable-optimize or --disable-optimize was given. if test "${enable_optimize+set}" = set; then enableval="$enable_optimize" if test ".$ac_cv_prog_gcc" = ".yes"; then # compiler is gcc case "$CFLAGS" in *-O* ) ;; * ) CFLAGS="$CFLAGS -O2" ;; esac case "$CFLAGS" in *-pipe* ) ;; * ) echo $ac_n "checking for compiler option -pipe""... $ac_c" 1>&6 echo "configure:1293: checking for compiler option -pipe" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_pipe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_pipe=no else ac_cv_compiler_option_pipe=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_pipe" = .yes; then CFLAGS="$CFLAGS -pipe" else : fi echo "$ac_t""$ac_cv_compiler_option_pipe" 1>&6 ;; esac OPT_CFLAGS='-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math' echo $ac_n "checking for compiler option -f for optimizations""... $ac_c" 1>&6 echo "configure:1320: checking for compiler option -f for optimizations" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_optimize_std'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_optimize_std=no else ac_cv_compiler_option_optimize_std=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_optimize_std" = .yes; then CFLAGS="$CFLAGS $OPT_CFLAGS" else : fi echo "$ac_t""$ac_cv_compiler_option_optimize_std" 1>&6 case $PLATFORM in i?86*-*-*|?86*-*-* ) OPT_CFLAGS='-malign-functions=4 -malign-jumps=4 -malign-loops=4' echo $ac_n "checking for compiler option -f for Intel x86 CPU""... $ac_c" 1>&6 echo "configure:1348: checking for compiler option -f for Intel x86 CPU" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_optimize_x86'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_optimize_x86=no else ac_cv_compiler_option_optimize_x86=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_optimize_x86" = .yes; then CFLAGS="$CFLAGS $OPT_CFLAGS" else : fi echo "$ac_t""$ac_cv_compiler_option_optimize_x86" 1>&6 ;; esac else # compiler is NOT gcc case "$CFLAGS" in *-O* ) ;; * ) CFLAGS="$CFLAGS -O" ;; esac case $PLATFORM in *-*-solaris* ) echo $ac_n "checking for compiler option -fast""... $ac_c" 1>&6 echo "configure:1383: checking for compiler option -fast" >&5 if eval "test \"`echo '$''{'ac_cv_compiler_option_fast'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <conftest.out 2>conftest.err if test $? -ne 0 -o -s conftest.err; then ac_cv_compiler_option_fast=no else ac_cv_compiler_option_fast=yes fi rm -f conftest.$ac_ext conftest.out conftest.err fi if test ".$ac_cv_compiler_option_fast" = .yes; then CFLAGS="$CFLAGS -fast" else : fi echo "$ac_t""$ac_cv_compiler_option_fast" 1>&6 ;; esac fi msg="enabled" else msg="disabled" fi echo $ac_n "checking for compilation optimization mode""... $ac_c" 1>&6 echo "configure:1418: checking for compilation optimization mode" >&5 echo "$ac_t""$msg" 1>&6 if test -f "$srcdir/ltconfig"; then # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then enableval="$enable_static" enable_static="$enableval" else if test ".$enable_static" = .; then enable_static=yes fi fi # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" enable_shared="$enableval" else if test ".$enable_shared" = .; then enable_shared=yes fi fi case "$PLATFORM" in # Solaris 2.7/x86 is slightly broken *-pc-solaris2.[78] ) enable_shared=no ;; esac libtool_flags='' libtool_flags="$libtool_flags --disable-lock" test ".$silent" = .yes && libtool_flags="$libtool_flags --silent" test ".$enable_static" = .no && libtool_flags="$libtool_flags --disable-static" test ".$enable_shared" = .no && libtool_flags="$libtool_flags --disable-shared" 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" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" \ ${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig --no-reexec \ $libtool_flags --srcdir=$srcdir --no-verify $srcdir/ltmain.sh $PLATFORM ||\ { echo "configure: error: libtool configuration failed" 1>&2; exit 1; } else # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1462: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # 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_AR="ar" break fi done IFS="$ac_save_ifs" fi fi AR="$ac_cv_prog_AR" if test -n "$AR"; then echo "$ac_t""$AR" 1>&6 else echo "$ac_t""no" 1>&6 fi # 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:1491: 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 fi case "$PLATFORM:$CC" in *-sun-solaris2*:cc ) # shut-up harmless warnings caused by do-while macros on Solaris test ".$ac_cv_prog_gcc" = ".no" && CFLAGS="$CFLAGS -w" ;; *-*-sysv*uw[27]*:cc ) # shut-up harmless warnings caused by do-while macros on UnixWare CFLAGS="$CFLAGS -w" ;; *-hp-hpux*:cc ) # HPUX needs a few special options to find its ANSI C brain CFLAGS="$CFLAGS -Ae -O" ;; *-hp-hpux*:CC ) # HPUX outputs useless warnings CFLAGS="$CFLAGS -w" ;; *-sgi-irix6.2:cc ) # shut-up warnings caused by IRIX brain-dead 32/64 bit stuff LDFLAGS="$LDFLAGS -woff 85 -Wl,-woff,84 -Wl,-woff,85" ;; *-sgi-irix6.5.[2-9]:cc ) # since IRIX 6.5.2 the C compiler is smart enough, # but the linker is still complaining, of course LDFLAGS="$LDFLAGS -woff 84,85,134" ;; *-sgi-irix6.5:cc ) # shut-up warnings caused by IRIX brain-dead 32/64 bit stuff CFLAGS="$CFLAGS -woff 1110,1048" LDFLAGS="$LDFLAGS -woff 84,85,134" ;; *-dec-osf4*:cc ) # make sure the standard compliant functions are used on Tru64/OSF1 4.x CFLAGS="$CFLAGS -std" ;; *-dec-osf5*:cc ) # make sure the standard compliant functions are used on Tru64/OSF1 5.x CFLAGS="$CFLAGS -std -D_XOPEN_SOURCE_EXTENDED" ;; *-*-isc*:* ) # ISC is brain-dead and needs a bunch of options to find its brain CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE"; LIBS="$LIBS -lcposix -linet"; ;; esac if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Mandatory Platform Environment:${TN}" 1>&6 fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:1574: 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 < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1587: \"$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 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 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 < #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:1654: \"$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 for ac_hdr in stdio.h stdlib.h stdarg.h string.h signal.h unistd.h setjmp.h fcntl.h errno.h sys/types.h sys/time.h sys/wait.h sys/stat.h sys/socket.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:1681: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1691: \"$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 <&6 fi done for ac_func in gettimeofday select sigaction sigprocmask sigpending sigsuspend; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:1719: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done ac_decision_item='mandatory system headers and functions' ac_decision_msg='FAILED' ac_decision='' ac_rc=yes for ac_spec in header:stdio.h header:stdlib.h header:stdarg.h header:string.h header:signal.h header:unistd.h header:setjmp.h header:fcntl.h header:errno.h header:sys/types.h header:sys/time.h header:sys/wait.h header:sys/stat.h header:sys/socket.h func:gettimeofday func:select func:sigaction func:sigprocmask func:sigpending func:sigsuspend; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : ac_decision='fine' ac_decision_msg='all fine' ac_decision_fine=yes ac_decision_fine_msg='all fine' else : fi if test ".$ac_decision" = .; then echo "$0:Error: decision on $ac_decision_item failed." 1>&2 echo "$0:Hint: see config.log for more details!" 1>&2 exit 1 else if test ".$ac_decision_msg" = .; then ac_decision_msg="$ac_decision" fi echo "$ac_t""decision on $ac_decision_item... ${TB}$ac_decision_msg${TN}" 1>&6 fi if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Optional Platform Environment:${TN}" 1>&6 fi echo $ac_n "checking for number of signals""... $ac_c" 1>&6 echo "configure:1837: checking for number of signals" >&5 cross_compile=no if test "$cross_compiling" = yes; then nsig=32 else cat > conftest.$ac_ext < #include #include int main(int argc, char *argv[]) { FILE *fp; int nsig; #if defined(NSIG) nsig = NSIG; #elif defined(_NSIG) nsig = _NSIG; #else nsig = (sizeof(sigset_t)*8); if (nsig < 32) nsig = 32; #endif if ((fp = fopen("conftestval", "w")) == NULL) exit(1); fprintf(fp, "%d\n", nsig); fclose(fp); exit(0); } EOF if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then nsig=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* nsig=32 fi rm -fr conftest* fi echo "$ac_t""$nsig" 1>&6 cat >> confdefs.h <&6 echo "configure:1894: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for define POLLIN in poll.h""... $ac_c" 1>&6 echo "configure:1951: checking for define POLLIN in poll.h" >&5 if eval "test \"`echo '$''{'ac_cv_define_POLLIN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef POLLIN YES_IS_DEFINED #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "YES_IS_DEFINED" >/dev/null 2>&1; then rm -rf conftest* ac_cv_define_POLLIN=yes else rm -rf conftest* ac_cv_define_POLLIN=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_define_POLLIN" 1>&6 if test $ac_cv_define_POLLIN = yes; then cat >> confdefs.h <<\EOF #define HAVE_POLLIN 1 EOF fi echo $ac_n "checking whether poll(2) facility has to be faked""... $ac_c" 1>&6 echo "configure:1985: checking whether poll(2) facility has to be faked" >&5 ac_rc=yes for ac_spec in func:poll define:POLLIN; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : PTH_FAKE_POLL=0 else : PTH_FAKE_POLL=1 fi if test .$PTH_FAKE_POLL = .1; then msg="yes" else msg="no" fi echo "$ac_t""$msg" 1>&6 for ac_hdr in sys/uio.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2031: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2041: \"$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 <&6 fi done for ac_func in readv writev; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:2069: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking whether readv(2)/writev(2) facility has to be faked""... $ac_c" 1>&6 echo "configure:2126: checking whether readv(2)/writev(2) facility has to be faked" >&5 ac_rc=yes for ac_spec in func:readv func:writev header:sys/uio.h; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : PTH_FAKE_RWV=0 else : PTH_FAKE_RWV=1 fi if test .$PTH_FAKE_RWV = .1; then msg="yes" else msg="no" fi echo "$ac_t""$msg" 1>&6 for ac_func in usleep strerror; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:2170: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done for ac_hdr in sys/resource.h net/errno.h paths.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2231: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2241: \"$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 <&6 fi done echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 echo "configure:2269: checking for gethostname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&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 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi if test ".`echo $LIBS | grep nsl`" = . ;then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 echo "configure:2317: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&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 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi fi echo $ac_n "checking for accept in -lsocket""... $ac_c" 1>&6 echo "configure:2365: checking for accept in -lsocket" >&5 ac_lib_var=`echo socket'_'accept | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&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 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi for ac_hdr in sys/select.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2416: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2426: \"$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 <&6 fi done EXTRA_INCLUDE_SYS_SELECT_H="#include " if test ".$ac_cv_header_sys_select_h" != .yes; then EXTRA_INCLUDE_SYS_SELECT_H="/* $EXTRA_INCLUDE_SYS_SELECT_H */" fi echo $ac_n "checking for typedef sig_atomic_t""... $ac_c" 1>&6 echo "configure:2459: checking for typedef sig_atomic_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_sig_atomic_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_sig_atomic_t=yes else rm -rf conftest* ac_cv_typedef_sig_atomic_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_sig_atomic_t" 1>&6 if test $ac_cv_typedef_sig_atomic_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_SIG_ATOMIC_T 1 EOF fi FALLBACK_SIG_ATOMIC_T="typedef int sig_atomic_t;" if test ".$ac_cv_typedef_sig_atomic_t" = .yes; then FALLBACK_SIG_ATOMIC_T="/* $FALLBACK_SIG_ATOMIC_T */" fi echo $ac_n "checking for typedef pid_t""... $ac_c" 1>&6 echo "configure:2496: checking for typedef pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < 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_typedef_pid_t=yes else rm -rf conftest* ac_cv_typedef_pid_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_pid_t" 1>&6 if test $ac_cv_typedef_pid_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_PID_T 1 EOF fi FALLBACK_PID_T="typedef int pid_t;" if test ".$ac_cv_typedef_pid_t" = .yes; then FALLBACK_PID_T="/* $FALLBACK_PID_T */" fi echo $ac_n "checking for typedef size_t""... $ac_c" 1>&6 echo "configure:2533: checking for typedef size_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < 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_typedef_size_t=yes else rm -rf conftest* ac_cv_typedef_size_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_size_t" 1>&6 if test $ac_cv_typedef_size_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_SIZE_T 1 EOF fi FALLBACK_SIZE_T="typedef unsigned int size_t;" if test ".$ac_cv_typedef_size_t" = .yes; then FALLBACK_SIZE_T="/* $FALLBACK_SIZE_T */" fi echo $ac_n "checking for typedef ssize_t""... $ac_c" 1>&6 echo "configure:2570: checking for typedef ssize_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_ssize_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_ssize_t=yes else rm -rf conftest* ac_cv_typedef_ssize_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_ssize_t" 1>&6 if test $ac_cv_typedef_ssize_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_SSIZE_T 1 EOF fi FALLBACK_SSIZE_T="typedef unsigned int ssize_t;" if test ".$ac_cv_typedef_ssize_t" = .yes; then FALLBACK_SSIZE_T="/* $FALLBACK_SSIZE_T */" fi echo $ac_n "checking for typedef off_t""... $ac_c" 1>&6 echo "configure:2607: checking for typedef off_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < 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_typedef_off_t=yes else rm -rf conftest* ac_cv_typedef_off_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_off_t" 1>&6 if test $ac_cv_typedef_off_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_OFF_T 1 EOF fi FALLBACK_OFF_T="typedef int off_t;" if test ".$ac_cv_typedef_off_t" = .yes; then FALLBACK_OFF_T="/* $FALLBACK_OFF_T */" fi echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 echo "configure:2644: checking for typedef stack_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_stack_t=yes else rm -rf conftest* ac_cv_typedef_stack_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_stack_t" 1>&6 if test $ac_cv_typedef_stack_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_STACK_T 1 EOF fi echo $ac_n "checking for attribute ss_base in struct sigaltstack from sys/signal.h""... $ac_c" 1>&6 echo "configure:2676: checking for attribute ss_base in struct sigaltstack from sys/signal.h" >&5 if eval "test \"`echo '$''{'ac_cv_structattr_ss_base'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct sigaltstack *sp1; struct sigaltstack *sp2; sp1->ss_base = sp2->ss_base; ; return 0; } EOF if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_structattr_ss_base=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_structattr_ss_base=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_structattr_ss_base" 1>&6 if test $ac_cv_structattr_ss_base = yes; then cat >> confdefs.h <<\EOF #define HAVE_SS_BASE 1 EOF fi echo $ac_n "checking for attribute ss_sp in struct sigaltstack from sys/signal.h""... $ac_c" 1>&6 echo "configure:2716: checking for attribute ss_sp in struct sigaltstack from sys/signal.h" >&5 if eval "test \"`echo '$''{'ac_cv_structattr_ss_sp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct sigaltstack *sp1; struct sigaltstack *sp2; sp1->ss_sp = sp2->ss_sp; ; return 0; } EOF if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_structattr_ss_sp=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_structattr_ss_sp=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_structattr_ss_sp" 1>&6 if test $ac_cv_structattr_ss_sp = yes; then cat >> confdefs.h <<\EOF #define HAVE_SS_SP 1 EOF fi echo $ac_n "checking for a single-argument based gettimeofday""... $ac_c" 1>&6 echo "configure:2757: checking for a single-argument based gettimeofday" >&5 cross_compile=no cat > conftest.$ac_ext < #include #include int main() { struct timeval tv; (void)gettimeofday(&tv); ; return 0; } EOF if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* msg="yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* msg="no" fi rm -f conftest* case $PLATFORM in *-*-aix4* ) msg="no" ;; # on AIX the compiler test doesn't work *-*-isc* ) msg="no" ;; # on ISC the compiler test doesn't work esac if test ".$msg" = .yes; then cat >> confdefs.h <<\EOF #define HAVE_GETTIMEOFDAY_ARGS1 1 EOF fi echo "$ac_t""$msg" 1>&6 echo $ac_n "checking for struct timespec""... $ac_c" 1>&6 echo "configure:2799: checking for struct timespec" >&5 cross_compile=no cat > conftest.$ac_ext < #include int main() { struct timespec ts; ; return 0; } EOF if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* msg="yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* msg="no" fi rm -f conftest* if test ".$msg" = .yes; then cat >> confdefs.h <<\EOF #define HAVE_STRUCT_TIMESPEC 1 EOF fi echo "$ac_t""$msg" 1>&6 echo $ac_n "checking for typedef socklen_t""... $ac_c" 1>&6 echo "configure:2835: checking for typedef socklen_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_socklen_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_socklen_t=yes else rm -rf conftest* ac_cv_typedef_socklen_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_socklen_t" 1>&6 if test $ac_cv_typedef_socklen_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_SOCKLEN_T 1 EOF fi echo $ac_n "checking for type of argument 3 for accept()""... $ac_c" 1>&6 echo "configure:2866: checking for type of argument 3 for accept()" >&5 if eval "test \"`echo '$''{'ac_cv_argtype_accept3'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <" >>conftest.$ac_ext done gpat='' spat='' i=1 while test $i -le 3; do gpat="$gpat[^,]*" if test $i -eq 3; then spat="$spat\\([^,]*\\)" else spat="$spat[^,]*" fi if test $i -lt 3; then gpat="$gpat," spat="$spat," fi i=`expr $i + 1` done (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\ sed -e ':join' \ -e '/,[ ]*$/N' \ -e 's/,[ ]*\n[ ]*/, /' \ -e 'tjoin' |\ egrep "[^a-zA-Z0-9_]accept[ ]*\\($gpat\\)" | head -1 |\ sed -e "s/.*[^a-zA-Z0-9_]accept[ ]*($spat).*/\\1/" \ -e 's/(\*[a-zA-Z_][a-zA-Z_0-9]*)/(*)/' \ -e 's/^[ ]*//' -e 's/[ ]*$//' \ -e 's/^/arg:/' \ -e 's/^arg:\([^ ]*\)$/type:\1/' \ -e 's/^arg:\(.*_t\)*$/type:\1/' \ -e 's/^arg:\(.*\*\)$/type:\1/' \ -e 's/^arg:\(.*[ ]\*\)[_a-zA-Z][_a-zA-Z0-9]*$/type:\1/' \ -e 's/^arg:\(.*[ ]char\)$/type:\1/' \ -e 's/^arg:\(.*[ ]short\)$/type:\1/' \ -e 's/^arg:\(.*[ ]int\)$/type:\1/' \ -e 's/^arg:\(.*[ ]long\)$/type:\1/' \ -e 's/^arg:\(.*[ ]float\)$/type:\1/' \ -e 's/^arg:\(.*[ ]double\)$/type:\1/' \ -e 's/^arg:\(.*[ ]unsigned\)$/type:\1/' \ -e 's/^arg:\(.*[ ]signed\)$/type:\1/' \ -e 's/^arg:\(.*struct[ ][_a-zA-Z][_a-zA-Z0-9]*\)$/type:\1/' \ -e 's/^arg:\(.*\)[ ]_[_a-zA-Z0-9]*$/type:\1/' \ -e 's/^arg:\(.*\)[ ]\([^ ]*\)$/type:\1/' \ -e 's/^type://' >conftest.output ac_cv_argtype_accept3=`cat conftest.output` rm -f conftest* fi echo "$ac_t""$ac_cv_argtype_accept3" 1>&6 ac_type="$ac_cv_argtype_accept3" : echo $ac_n "checking for fallback socklen_t""... $ac_c" 1>&6 echo "configure:2930: checking for fallback socklen_t" >&5 if eval "test \"`echo '$''{'ac_cv_check_socklentype'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test ".$ac_cv_typedef_socklen_t" = .yes; then ac_cv_check_socklentype='socklen_t' elif test ".$ac_type" != .; then ac_cv_check_socklentype=`echo "$ac_type" | sed -e 's/ *\*$//'` else ac_cv_check_socklentype='int' fi fi echo "$ac_t""$ac_cv_check_socklentype" 1>&6 ac_type="$ac_cv_check_socklentype" FALLBACK_SOCKLEN_T="typedef ${ac_type} socklen_t;" if test ".$ac_type" = ".socklen_t"; then FALLBACK_SOCKLEN_T="/* $FALLBACK_SOCKLEN_T */" fi echo $ac_n "checking for typedef nfds_t""... $ac_c" 1>&6 echo "configure:2957: checking for typedef nfds_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_nfds_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])nfds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_nfds_t=yes else rm -rf conftest* ac_cv_typedef_nfds_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_nfds_t" 1>&6 if test $ac_cv_typedef_nfds_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_NFDS_T 1 EOF fi echo $ac_n "checking for type of argument 2 for poll()""... $ac_c" 1>&6 echo "configure:2988: checking for type of argument 2 for poll()" >&5 if eval "test \"`echo '$''{'ac_cv_argtype_poll2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <" >>conftest.$ac_ext done gpat='' spat='' i=1 while test $i -le 3; do gpat="$gpat[^,]*" if test $i -eq 2; then spat="$spat\\([^,]*\\)" else spat="$spat[^,]*" fi if test $i -lt 3; then gpat="$gpat," spat="$spat," fi i=`expr $i + 1` done (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\ sed -e ':join' \ -e '/,[ ]*$/N' \ -e 's/,[ ]*\n[ ]*/, /' \ -e 'tjoin' |\ egrep "[^a-zA-Z0-9_]poll[ ]*\\($gpat\\)" | head -1 |\ sed -e "s/.*[^a-zA-Z0-9_]poll[ ]*($spat).*/\\1/" \ -e 's/(\*[a-zA-Z_][a-zA-Z_0-9]*)/(*)/' \ -e 's/^[ ]*//' -e 's/[ ]*$//' \ -e 's/^/arg:/' \ -e 's/^arg:\([^ ]*\)$/type:\1/' \ -e 's/^arg:\(.*_t\)*$/type:\1/' \ -e 's/^arg:\(.*\*\)$/type:\1/' \ -e 's/^arg:\(.*[ ]\*\)[_a-zA-Z][_a-zA-Z0-9]*$/type:\1/' \ -e 's/^arg:\(.*[ ]char\)$/type:\1/' \ -e 's/^arg:\(.*[ ]short\)$/type:\1/' \ -e 's/^arg:\(.*[ ]int\)$/type:\1/' \ -e 's/^arg:\(.*[ ]long\)$/type:\1/' \ -e 's/^arg:\(.*[ ]float\)$/type:\1/' \ -e 's/^arg:\(.*[ ]double\)$/type:\1/' \ -e 's/^arg:\(.*[ ]unsigned\)$/type:\1/' \ -e 's/^arg:\(.*[ ]signed\)$/type:\1/' \ -e 's/^arg:\(.*struct[ ][_a-zA-Z][_a-zA-Z0-9]*\)$/type:\1/' \ -e 's/^arg:\(.*\)[ ]_[_a-zA-Z0-9]*$/type:\1/' \ -e 's/^arg:\(.*\)[ ]\([^ ]*\)$/type:\1/' \ -e 's/^type://' >conftest.output ac_cv_argtype_poll2=`cat conftest.output` rm -f conftest* fi echo "$ac_t""$ac_cv_argtype_poll2" 1>&6 ac_type="$ac_cv_argtype_poll2" : echo $ac_n "checking for fallback nfds_t""... $ac_c" 1>&6 echo "configure:3052: checking for fallback nfds_t" >&5 if eval "test \"`echo '$''{'ac_cv_check_nfdstype'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test ".$ac_cv_typedef_nfds_t" = .yes; then ac_cv_check_nfdstype='nfds_t' elif test ".$ac_type" != .; then ac_cv_check_nfdstype=`echo "$ac_type" | sed -e 's/ *\*$//'` else ac_cv_check_nfdstype='unsigned int' fi fi echo "$ac_t""$ac_cv_check_nfdstype" 1>&6 ac_type="$ac_cv_check_nfdstype" FALLBACK_NFDS_T="typedef ${ac_type} nfds_t;" if test ".$ac_type" = ".nfds_t"; then FALLBACK_NFDS_T="/* $FALLBACK_NFDS_T */" fi echo $ac_n "checking for built-in type long long""... $ac_c" 1>&6 echo "configure:3079: checking for built-in type long long" >&5 if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long long X = 2, Y = 1, Z; Z = X / Y; ; return 0; } EOF if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_LONGLONG 1 EOF ac_cv_type_longlong=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_longlong=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_longlong" 1>&6 echo $ac_n "checking for built-in type long double""... $ac_c" 1>&6 echo "configure:3116: checking for built-in type long double" >&5 if eval "test \"`echo '$''{'ac_cv_type_longdouble'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long double X = 2, Y = 1, Z; Z = X / Y; ; return 0; } EOF if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_LONGDOUBLE 1 EOF ac_cv_type_longdouble=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_longdouble=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_longdouble" 1>&6 if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Machine Context Implementation:${TN}" 1>&6 fi for ac_hdr in ucontext.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:3165: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3175: \"$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 <&6 fi done for ac_func in makecontext swapcontext getcontext setcontext; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:3203: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)""... $ac_c" 1>&6 echo "configure:3261: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5 if eval "test \"`echo '$''{'ac_cv_check_mcsc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_check_mcsc=no else cat > conftest.$ac_ext < #include #include ucontext_t uc_child; ucontext_t uc_main; void child(void *arg) { if (arg != (void *)12345) exit(1); if (swapcontext(&uc_child, &uc_main) != 0) exit(1); } int main(int argc, char *argv[]) { FILE *fp; void *stack; /* the default is that it fails */ if ((fp = fopen("conftestval", "w")) == NULL) exit(1); fprintf(fp, "no\n"); fclose(fp); /* configure a child user-space context */ if ((stack = malloc(64*1024)) == NULL) exit(1); if (getcontext(&uc_child) != 0) exit(1); uc_child.uc_link = NULL; uc_child.uc_stack.ss_sp = (char *)stack+(32*1024); uc_child.uc_stack.ss_size = 32*1024; uc_child.uc_stack.ss_flags = 0; makecontext(&uc_child, child, 2, (void *)12345); /* switch into the user context */ if (swapcontext(&uc_main, &uc_child) != 0) exit(1); /* Fine, child came home */ if ((fp = fopen("conftestval", "w")) == NULL) exit(1); fprintf(fp, "yes\n"); fclose(fp); /* die successfully */ exit(0); } EOF if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_check_mcsc=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_check_mcsc=no fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_check_mcsc" 1>&6 if test ".$ac_cv_check_mcsc" = .yes; then mcsc=yes else mcsc=no fi for ac_hdr in signal.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:3352: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3362: \"$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 <&6 fi done for ac_func in sigsetjmp siglongjmp setjmp longjmp _setjmp _longjmp; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:3390: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done for ac_func in sigaltstack sigstack; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:3448: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for signal-mask aware setjmp(3)/longjmp(3)""... $ac_c" 1>&6 echo "configure:3505: checking for signal-mask aware setjmp(3)/longjmp(3)" >&5 if eval "test \"`echo '$''{'ac_cv_check_sjlj'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_rc=yes for ac_spec in func:setjmp func:longjmp; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : ac_cv_check_sjlj=sjlje else : ac_cv_check_sjlj=none fi cross_compile=no for testtype in ssjlj sjlj usjlj; do OCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -DTEST_${testtype}" if test "$cross_compiling" = yes; then rc=failed else cat > conftest.$ac_ext < #include #include #include #include static __JMP_BUF jb; static void sighandler(int sig) { sigset_t sigs; /* get signal mask */ sigprocmask(SIG_SETMASK, NULL, &sigs); /* make sure USR1 is still blocked */ if (!sigismember(&sigs, SIGUSR1)) exit(1); /* block USR2 for us */ sigaddset(&sigs, SIGUSR2); sigprocmask(SIG_SETMASK, &sigs, NULL); /* jump back to main */ __LONGJMP(jb, 1); exit(1); } int main(int argc, char *argv[]) { FILE *fp; sigset_t sigs; struct sigaction sa; /* the default is that it fails */ if ((fp = fopen("conftestval", "w")) == NULL) exit(1); fprintf(fp, "failed\n"); fclose(fp); /* block USR1 and unblock USR2 signal */ sigprocmask(SIG_SETMASK, NULL, &sigs); sigaddset(&sigs, SIGUSR1); sigdelset(&sigs, SIGUSR2); sigprocmask(SIG_SETMASK, &sigs, NULL); /* set jump buffer */ if (__SETJMP(jb) == 0) { /* install signal handler for USR1 */ memset((void *)&sa, 0, sizeof(struct sigaction)); sigemptyset(&sa.sa_mask); sa.sa_handler = sighandler; sa.sa_flags = 0; sigaction(SIGUSR1, &sa, NULL); /* send USR1 signal (which is still blocked) */ kill(getpid(), SIGUSR1); /* unblock USR1 and wait for it */ sigprocmask(SIG_SETMASK, NULL, &sigs); sigdelset(&sigs, SIGUSR1); sigsuspend(&sigs); exit(1); } /* get signal mask again */ sigprocmask(SIG_SETMASK, NULL, &sigs); /* make sure USR2 is again unblocked */ if (sigismember(&sigs, SIGUSR2)) exit(1); /* Fine... */ if ((fp = fopen("conftestval", "w")) == NULL) exit(1); fprintf(fp, "ok\n"); fclose(fp); exit(0); } EOF if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then rc=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* rc=failed fi rm -fr conftest* fi CFLAGS="$OCFLAGS" if test ".$rc" = .ok; then ac_cv_check_sjlj=$testtype break fi done case $PLATFORM in *-*-linux* ) braindead=no case "x`uname -r`" in x2.[23456789]* ) ;; * ) braindead=yes ;; esac case `grep __GLIBC_MINOR /usr/include/features.h | grep '#define' |\ awk '{ printf("%s", $3 >= 1 ? "yes" : "no"); }'` in yes ) ;; * ) braindead=yes ;; esac case $braindead in yes ) ac_cv_check_sjlj=sjljlx ;; no ) ac_cv_check_sjlj=ssjlj ;; esac ;; *-*-isc* ) ac_cv_check_sjlj=sjljisc ;; *-*-interix ) # Interix is a POSIX sub-system on Windows-NT which # can use the Interactive UNIX dispatching code. ac_cv_check_sjlj=sjljisc ;; *-*-cygwin* ) ac_cv_check_sjlj=sjljw32 ;; esac fi sjlj_type="$ac_cv_check_sjlj" if test ".$ac_cv_check_sjlj" != .none; then echo "$ac_t""yes: $ac_cv_check_sjlj" 1>&6 sjlj=yes else echo "$ac_t""no" 1>&6 sjlj=no fi if test ".$mcsc" = .yes; then mctx_mth=mcsc mctx_dsp=sc mctx_stk=mc elif test ".$sjlj" = .yes; then mctx_mth=sjlj mctx_dsp=$sjlj_type mctx_stk=none ac_rc=yes for ac_spec in func:sigstack; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : mctx_stk=ss else : fi ac_rc=yes for ac_spec in func:sigaltstack; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : mctx_stk=sas else : fi case $mctx_dsp in sjljlx|sjljisc|sjljw32 ) mctx_stk=none esac else { echo "configure: error: no appropriate mctx method found" 1>&2; exit 1; } fi # Check whether --with-mctx-mth or --without-mctx-mth was given. if test "${with_mctx_mth+set}" = set; then withval="$with_mctx_mth" case $withval in mcsc|sjlj ) mctx_mth=$withval ;; * ) { echo "configure: error: invalid mctx method -- allowed: mcsc,sjlj" 1>&2; exit 1; } ;; esac fi # Check whether --with-mctx-dsp or --without-mctx-dsp was given. if test "${with_mctx_dsp+set}" = set; then withval="$with_mctx_dsp" case $withval in sc|ssjlj|sjlj|usjlj|sjlje|sjljlx|sjljisc|sjljw32 ) mctx_dsp=$withval ;; * ) { echo "configure: error: invalid mctx dispatching -- allowed: sc,ssjlj,sjlj,usjlj,sjlje,sjljlx,sjljisc,sjljw32" 1>&2; exit 1; } ;; esac fi # Check whether --with-mctx-stk or --without-mctx-stk was given. if test "${with_mctx_stk+set}" = set; then withval="$with_mctx_stk" case $withval in mc|ss|sas|none ) mctx_stk=$withval ;; * ) { echo "configure: error: invalid mctx stack setup -- allowed: mc,ss,sas,none" 1>&2; exit 1; } ;; esac fi echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 echo "configure:3827: checking for typedef stack_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_stack_t=yes else rm -rf conftest* ac_cv_typedef_stack_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_stack_t" 1>&6 if test $ac_cv_typedef_stack_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_STACK_T 1 EOF fi echo $ac_n "checking for direction of stack growth""... $ac_c" 1>&6 echo "configure:3859: checking for direction of stack growth" >&5 if eval "test \"`echo '$''{'ac_cv_check_stackgrowth'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cross_compile=no if test "$cross_compiling" = yes; then ac_cv_check_stackgrowth=down else cat > conftest.$ac_ext < #include static int iterate = 10; static int growsdown(int *x) { auto int y; y = (x > &y); if (--iterate > 0) y = growsdown(&y); if (y != (x > &y)) exit(1); return y; } int main(int argc, char *argv[]) { FILE *f; auto int x; if ((f = fopen("conftestval", "w")) == NULL) exit(1); fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");; fclose(f); exit(0); } EOF if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_check_stackgrowth=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_check_stackgrowth=down fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_check_stackgrowth" 1>&6 if test ".$ac_cv_check_stackgrowth" = ".down"; then val="-1" else val="+1" fi cat >> confdefs.h <&6 echo "configure:3935: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for stack setup via makecontext""... $ac_c" 1>&6 echo "configure:3993: checking for stack setup via makecontext" >&5 if eval "test \"`echo '$''{'ac_cv_stacksetup_makecontext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test ".$ac_cv_func_makecontext" = .no; then ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/" else OCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -DTEST_makecontext" cross_compile=no if test "$cross_compiling" = yes; then ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)' else cat > conftest.$ac_ext < #include #include #if defined(TEST_sigstack) || defined(TEST_sigaltstack) #include #include #include #endif #if defined(TEST_makecontext) #include #endif union alltypes { long l; double d; void *vp; void (*fp)(void); char *cp; }; static volatile char *handler_addr = (char *)0xDEAD; #if defined(TEST_sigstack) || defined(TEST_sigaltstack) static volatile int handler_done = 0; void handler(int sig) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; handler_done = 1; return; } #endif #if defined(TEST_makecontext) static ucontext_t uc_handler; static ucontext_t uc_main; void handler(void) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; swapcontext(&uc_handler, &uc_main); return; } #endif int main(int argc, char *argv[]) { FILE *f; char *skaddr; char *skbuf; int sksize; char result[1024]; int i; sksize = 32768; skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); if (skbuf == NULL) exit(1); for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) skbuf[i] = 'A'; skaddr = skbuf+sizeof(union alltypes); #if defined(TEST_sigstack) || defined(TEST_sigaltstack) { struct sigaction sa; #if defined(TEST_sigstack) struct sigstack ss; #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) stack_t ss; #else struct sigaltstack ss; #endif #if defined(TEST_sigstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_onstack = 0; if (sigstack(&ss, NULL) < 0) exit(1); #elif defined(TEST_sigaltstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_size = sksize; ss.ss_flags = 0; if (sigaltstack(&ss, NULL) < 0) exit(1); #endif memset((void *)&sa, 0, sizeof(struct sigaction)); sa.sa_handler = handler; sa.sa_flags = SA_ONSTACK; sigemptyset(&sa.sa_mask); sigaction(SIGUSR1, &sa, NULL); kill(getpid(), SIGUSR1); while (!handler_done) /*nop*/; } #endif #if defined(TEST_makecontext) { if (getcontext(&uc_handler) != 0) exit(1); uc_handler.uc_link = NULL; uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); uc_handler.uc_stack.ss_size = sksize; uc_handler.uc_stack.ss_flags = 0; makecontext(&uc_handler, handler, 1); swapcontext(&uc_main, &uc_handler); } #endif if (handler_addr == (char *)0xDEAD) exit(1); if (handler_addr < skaddr+sksize) { /* stack was placed into lower area */ if (*(skaddr+sksize) != 'A') sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", sizeof(union alltypes), sizeof(union alltypes)); else strcpy(result, "(skaddr)+(sksize),(sksize)"); } else { /* stack was placed into higher area */ if (*(skaddr+sksize*2) != 'A') sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); else strcpy(result, "(skaddr),(sksize)"); } if ((f = fopen("conftestval", "w")) == NULL) exit(1); fprintf(f, "%s\n", result); fclose(f); exit(0); } EOF if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_stacksetup_makecontext=`cat conftestval` ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)' fi rm -fr conftest* fi CFLAGS="$OCFLAGS" fi fi type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'` addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'` size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'` pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)" pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)" echo "$ac_t""$type" 1>&6 if test ".$verbose" = .yes; then echo "$ac_t"" $pth_skaddr_makecontext" 1>&6 fi if test ".$verbose" = .yes; then echo "$ac_t"" $pth_sksize_makecontext" 1>&6 fi for ac_func in sigaltstack; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:4184: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 echo "configure:4246: checking for typedef stack_t" >&5 if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_typedef_stack_t=yes else rm -rf conftest* ac_cv_typedef_stack_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_typedef_stack_t" 1>&6 if test $ac_cv_typedef_stack_t = yes; then cat >> confdefs.h <<\EOF #define HAVE_STACK_T 1 EOF fi echo $ac_n "checking for stack setup via sigaltstack""... $ac_c" 1>&6 echo "configure:4280: checking for stack setup via sigaltstack" >&5 if eval "test \"`echo '$''{'ac_cv_stacksetup_sigaltstack'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test ".$ac_cv_func_sigaltstack" = .no; then ac_cv_stacksetup_sigaltstack="N.A.:/*N.A.*/,/*N.A.*/" else OCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -DTEST_sigaltstack" cross_compile=no if test "$cross_compiling" = yes; then ac_cv_stacksetup_sigaltstack='guessed:(skaddr),(sksize)' else cat > conftest.$ac_ext < #include #include #if defined(TEST_sigstack) || defined(TEST_sigaltstack) #include #include #include #endif #if defined(TEST_makecontext) #include #endif union alltypes { long l; double d; void *vp; void (*fp)(void); char *cp; }; static volatile char *handler_addr = (char *)0xDEAD; #if defined(TEST_sigstack) || defined(TEST_sigaltstack) static volatile int handler_done = 0; void handler(int sig) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; handler_done = 1; return; } #endif #if defined(TEST_makecontext) static ucontext_t uc_handler; static ucontext_t uc_main; void handler(void) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; swapcontext(&uc_handler, &uc_main); return; } #endif int main(int argc, char *argv[]) { FILE *f; char *skaddr; char *skbuf; int sksize; char result[1024]; int i; sksize = 32768; skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); if (skbuf == NULL) exit(1); for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) skbuf[i] = 'A'; skaddr = skbuf+sizeof(union alltypes); #if defined(TEST_sigstack) || defined(TEST_sigaltstack) { struct sigaction sa; #if defined(TEST_sigstack) struct sigstack ss; #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) stack_t ss; #else struct sigaltstack ss; #endif #if defined(TEST_sigstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_onstack = 0; if (sigstack(&ss, NULL) < 0) exit(1); #elif defined(TEST_sigaltstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_size = sksize; ss.ss_flags = 0; if (sigaltstack(&ss, NULL) < 0) exit(1); #endif memset((void *)&sa, 0, sizeof(struct sigaction)); sa.sa_handler = handler; sa.sa_flags = SA_ONSTACK; sigemptyset(&sa.sa_mask); sigaction(SIGUSR1, &sa, NULL); kill(getpid(), SIGUSR1); while (!handler_done) /*nop*/; } #endif #if defined(TEST_makecontext) { if (getcontext(&uc_handler) != 0) exit(1); uc_handler.uc_link = NULL; uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); uc_handler.uc_stack.ss_size = sksize; uc_handler.uc_stack.ss_flags = 0; makecontext(&uc_handler, handler, 1); swapcontext(&uc_main, &uc_handler); } #endif if (handler_addr == (char *)0xDEAD) exit(1); if (handler_addr < skaddr+sksize) { /* stack was placed into lower area */ if (*(skaddr+sksize) != 'A') sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", sizeof(union alltypes), sizeof(union alltypes)); else strcpy(result, "(skaddr)+(sksize),(sksize)"); } else { /* stack was placed into higher area */ if (*(skaddr+sksize*2) != 'A') sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); else strcpy(result, "(skaddr),(sksize)"); } if ((f = fopen("conftestval", "w")) == NULL) exit(1); fprintf(f, "%s\n", result); fclose(f); exit(0); } EOF if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_stacksetup_sigaltstack=`cat conftestval` ac_cv_stacksetup_sigaltstack="ok:$ac_cv_stacksetup_sigaltstack" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_stacksetup_sigaltstack='guessed:(skaddr),(sksize)' fi rm -fr conftest* fi CFLAGS="$OCFLAGS" fi fi type=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;:.*$;;'` addr=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;^.*:;;' -e 's;,.*$;;'` size=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;^.*:;;' -e 's;^.*,;;'` pth_skaddr_sigaltstack="#define pth_skaddr_sigaltstack(skaddr,sksize) ($addr)" pth_sksize_sigaltstack="#define pth_sksize_sigaltstack(skaddr,sksize) ($size)" echo "$ac_t""$type" 1>&6 if test ".$verbose" = .yes; then echo "$ac_t"" $pth_skaddr_sigaltstack" 1>&6 fi if test ".$verbose" = .yes; then echo "$ac_t"" $pth_sksize_sigaltstack" 1>&6 fi for ac_func in sigstack; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:4470: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for stack setup via sigstack""... $ac_c" 1>&6 echo "configure:4528: checking for stack setup via sigstack" >&5 if eval "test \"`echo '$''{'ac_cv_stacksetup_sigstack'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test ".$ac_cv_func_sigstack" = .no; then ac_cv_stacksetup_sigstack="N.A.:/*N.A.*/,/*N.A.*/" else OCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -DTEST_sigstack" cross_compile=no if test "$cross_compiling" = yes; then ac_cv_stacksetup_sigstack='guessed:(skaddr),(sksize)' else cat > conftest.$ac_ext < #include #include #if defined(TEST_sigstack) || defined(TEST_sigaltstack) #include #include #include #endif #if defined(TEST_makecontext) #include #endif union alltypes { long l; double d; void *vp; void (*fp)(void); char *cp; }; static volatile char *handler_addr = (char *)0xDEAD; #if defined(TEST_sigstack) || defined(TEST_sigaltstack) static volatile int handler_done = 0; void handler(int sig) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; handler_done = 1; return; } #endif #if defined(TEST_makecontext) static ucontext_t uc_handler; static ucontext_t uc_main; void handler(void) { char garbage[1024]; int i; auto int dummy; for (i = 0; i < 1024; i++) garbage[i] = 'X'; handler_addr = (char *)&dummy; swapcontext(&uc_handler, &uc_main); return; } #endif int main(int argc, char *argv[]) { FILE *f; char *skaddr; char *skbuf; int sksize; char result[1024]; int i; sksize = 32768; skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); if (skbuf == NULL) exit(1); for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) skbuf[i] = 'A'; skaddr = skbuf+sizeof(union alltypes); #if defined(TEST_sigstack) || defined(TEST_sigaltstack) { struct sigaction sa; #if defined(TEST_sigstack) struct sigstack ss; #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) stack_t ss; #else struct sigaltstack ss; #endif #if defined(TEST_sigstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_onstack = 0; if (sigstack(&ss, NULL) < 0) exit(1); #elif defined(TEST_sigaltstack) ss.ss_sp = (void *)(skaddr + sksize); ss.ss_size = sksize; ss.ss_flags = 0; if (sigaltstack(&ss, NULL) < 0) exit(1); #endif memset((void *)&sa, 0, sizeof(struct sigaction)); sa.sa_handler = handler; sa.sa_flags = SA_ONSTACK; sigemptyset(&sa.sa_mask); sigaction(SIGUSR1, &sa, NULL); kill(getpid(), SIGUSR1); while (!handler_done) /*nop*/; } #endif #if defined(TEST_makecontext) { if (getcontext(&uc_handler) != 0) exit(1); uc_handler.uc_link = NULL; uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); uc_handler.uc_stack.ss_size = sksize; uc_handler.uc_stack.ss_flags = 0; makecontext(&uc_handler, handler, 1); swapcontext(&uc_main, &uc_handler); } #endif if (handler_addr == (char *)0xDEAD) exit(1); if (handler_addr < skaddr+sksize) { /* stack was placed into lower area */ if (*(skaddr+sksize) != 'A') sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", sizeof(union alltypes), sizeof(union alltypes)); else strcpy(result, "(skaddr)+(sksize),(sksize)"); } else { /* stack was placed into higher area */ if (*(skaddr+sksize*2) != 'A') sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); else strcpy(result, "(skaddr),(sksize)"); } if ((f = fopen("conftestval", "w")) == NULL) exit(1); fprintf(f, "%s\n", result); fclose(f); exit(0); } EOF if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_stacksetup_sigstack=`cat conftestval` ac_cv_stacksetup_sigstack="ok:$ac_cv_stacksetup_sigstack" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_stacksetup_sigstack='guessed:(skaddr),(sksize)' fi rm -fr conftest* fi CFLAGS="$OCFLAGS" fi fi type=`echo $ac_cv_stacksetup_sigstack | sed -e 's;:.*$;;'` addr=`echo $ac_cv_stacksetup_sigstack | sed -e 's;^.*:;;' -e 's;,.*$;;'` size=`echo $ac_cv_stacksetup_sigstack | sed -e 's;^.*:;;' -e 's;^.*,;;'` pth_skaddr_sigstack="#define pth_skaddr_sigstack(skaddr,sksize) ($addr)" pth_sksize_sigstack="#define pth_sksize_sigstack(skaddr,sksize) ($size)" echo "$ac_t""$type" 1>&6 if test ".$verbose" = .yes; then echo "$ac_t"" $pth_skaddr_sigstack" 1>&6 fi if test ".$verbose" = .yes; then echo "$ac_t"" $pth_sksize_sigstack" 1>&6 fi case $mctx_dsp in ssjlj ) pth_sigjmpbuf='sigjmp_buf' pth_sigsetjmp='sigsetjmp(buf,1)' pth_siglongjmp='siglongjmp(buf,val)' ;; sjlj ) pth_sigjmpbuf='jmp_buf' pth_sigsetjmp='setjmp(buf)' pth_siglongjmp='longjmp(buf,val)' ;; usjlj ) pth_sigjmpbuf='jmp_buf' pth_sigsetjmp='_setjmp(buf)' pth_siglongjmp='_longjmp(buf,val)' ;; sjlje ) pth_sigjmpbuf='jmp_buf' pth_sigsetjmp='setjmp(buf)' pth_siglongjmp='longjmp(buf,val)' ;; sjljlx|sjljisc|sjljw32 ) pth_sigjmpbuf='sigjmp_buf' pth_sigsetjmp='sigsetjmp(buf,1)' pth_siglongjmp='siglongjmp(buf,val)' ;; esac pth_sigjmpbuf="#define pth_sigjmpbuf $pth_sigjmpbuf" pth_sigsetjmp="#define pth_sigsetjmp(buf) $pth_sigsetjmp" pth_siglongjmp="#define pth_siglongjmp(buf,val) $pth_siglongjmp" cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 if test ".$verbose" = .yes; then echo "$ac_t"" decided mctx method: $mctx_mth" 1>&6 fi if test ".$verbose" = .yes; then echo "$ac_t"" decided mctx dispatching: $mctx_dsp" 1>&6 fi if test ".$verbose" = .yes; then echo "$ac_t"" decided mctx stack setup: $mctx_stk" 1>&6 fi if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}System Call Mapping:${TN}" 1>&6 fi for ac_func in syscall; do echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 echo "configure:4791: checking for function $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done for ac_hdr in sys/syscall.h sys/socketcall.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:4851: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4861: \"$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 <&6 fi done echo $ac_n "checking for define SYS_read in sys/syscall.h""... $ac_c" 1>&6 echo "configure:4888: checking for define SYS_read in sys/syscall.h" >&5 if eval "test \"`echo '$''{'ac_cv_define_SYS_read'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef SYS_read YES_IS_DEFINED #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "YES_IS_DEFINED" >/dev/null 2>&1; then rm -rf conftest* ac_cv_define_SYS_read=yes else rm -rf conftest* ac_cv_define_SYS_read=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_define_SYS_read" 1>&6 if test $ac_cv_define_SYS_read = yes; then cat >> confdefs.h <<\EOF #define HAVE_SYS_READ 1 EOF fi echo $ac_n "checking whether soft system call mapping is used""... $ac_c" 1>&6 echo "configure:4923: checking whether soft system call mapping is used" >&5 # Check whether --enable-syscall-soft or --disable-syscall-soft was given. if test "${enable_syscall_soft+set}" = set; then enableval="$enable_syscall_soft" enable_syscall_soft="$enableval" else if test ".$enable_syscall_soft" = .; then enable_syscall_soft=no fi fi if test .$enable_syscall_soft = .yes; then PTH_SYSCALL_SOFT=1 msg="yes" else PTH_SYSCALL_SOFT=0 msg="no" fi echo "$ac_t""$msg" 1>&6 echo $ac_n "checking whether hard system call mapping is used""... $ac_c" 1>&6 echo "configure:4945: checking whether hard system call mapping is used" >&5 # Check whether --enable-syscall-hard or --disable-syscall-hard was given. if test "${enable_syscall_hard+set}" = set; then enableval="$enable_syscall_hard" enable_syscall_hard="$enableval" else if test ".$enable_syscall_hard" = .; then enable_syscall_hard=no fi fi if test ".$enable_syscall_hard" = .yes; then ac_rc=yes for ac_spec in func:syscall header:sys/syscall.h define:SYS_read; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : enable_syscall_hard=yes else : enable_syscall_hard=no fi fi if test ".$enable_syscall_hard" = .yes; then PTH_SYSCALL_HARD=1 msg="yes" else PTH_SYSCALL_HARD=0 msg="no" fi echo "$ac_t""$msg" 1>&6 if test ".$enable_syscall_hard" = .yes; then echo "${TB}Warning: The hard system call mapping variant is still work in progress.${TN}" echo "${TB} Do neither expect it to compile on all platforms (because of${TN}" echo "${TB} conflicts with vendor prototypes) nor to actually work!${TN}" fi if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Build Parameters:${TN}" 1>&6 fi echo $ac_n "checking whether to activate batch build mode""... $ac_c" 1>&6 echo "configure:5016: checking whether to activate batch build mode" >&5 # Check whether --enable-batch or --disable-batch was given. if test "${enable_batch+set}" = set; then enableval="$enable_batch" else enable_batch=no fi if test ".$silent" = .yes; then enable_batch=yes fi echo "$ac_t""$enable_batch" 1>&6 BATCH="$enable_batch" TARGET_ALL='$(TARGET_PREQ) $(TARGET_LIBS)' echo $ac_n "checking whether to activate maintainer build targets""... $ac_c" 1>&6 echo "configure:5033: checking whether to activate maintainer build targets" >&5 # Check whether --enable-maintainer or --disable-maintainer was given. if test "${enable_maintainer+set}" = set; then enableval="$enable_maintainer" else enable_maintainer=no fi echo "$ac_t""$enable_maintainer" 1>&6 if test ".$enable_maintainer" = .yes; then TARGET_ALL="$TARGET_ALL \$(TARGET_MANS)" fi echo $ac_n "checking whether to activate test build targets""... $ac_c" 1>&6 echo "configure:5047: checking whether to activate test build targets" >&5 # Check whether --enable-tests or --disable-tests was given. if test "${enable_tests+set}" = set; then enableval="$enable_tests" else enable_tests=yes fi echo "$ac_t""$enable_tests" 1>&6 if test ".$enable_tests" = .yes; then TARGET_ALL="$TARGET_ALL \$(TARGET_TEST)" fi echo $ac_n "checking whether to build Pthread library""... $ac_c" 1>&6 echo "configure:5064: checking whether to build Pthread library" >&5 # Check whether --enable-pthread or --disable-pthread was given. if test "${enable_pthread+set}" = set; then enableval="$enable_pthread" enable_pthread="$enableval" else if test ".$enable_pthread" = .; then enable_pthread=no fi fi echo "$ac_t""$enable_pthread" 1>&6 if test ".$enable_pthread" = .yes; then PTHREAD_O=pthread.o LIBPTHREAD_A=libpthread.a LIBPTHREAD_LA=libpthread.la PTHREAD_CONFIG_1='$(S)pthread-config.1' PTHREAD_3='$(S)pthread.3' INSTALL_PTHREAD=install-pthread UNINSTALL_PTHREAD=uninstall-pthread TEST_PTHREAD=test_pthread enable_syscall_soft=yes for ac_hdr in pthread.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:5088: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5098: \"$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 <&6 fi done ac_warn=no if test ".$ac_cv_header_pthread_h" = .yes; then warn=yes case $PLATFORM in *-*-freebsd* ) ac_warn=no ;; *-*-linux* ) ac_warn=no ;; *-*-solaris* ) ac_warn=no ;; *-*-irix* ) ac_warn=no ;; esac fi if test ".$ac_warn" = .yes; then echo "${TB}Warning: You seem to have a vendor Pthread library installed.${TN}" echo "${TB} There might be conflicts with its pthread.h under compile-time!${TN}" fi else PTHREAD_O="" LIBPTHREAD_A="" LIBPTHREAD_LA="" PTHREAD_CONFIG_1="" PTHREAD_3="" INSTALL_PTHREAD="" UNINSTALL_PTHREAD="" TEST_PTHREAD="" fi PTH_EXT_SFIO=0 # Check whether --with-sfio or --without-sfio was given. if test "${with_sfio+set}" = set; then withval="$with_sfio" if test ".$with_sfio" = .yes; then # via config script sfio_version=`(sfio-config --version) 2>/dev/null` if test ".$sfio_version" != .; then CPPFLAGS="$CPPFLAGS `sfio-config --cflags`" CFLAGS="$CFLAGS `sfio-config --cflags`" LDFLAGS="$LDFLAGS `sfio-config --ldflags`" fi else if test -d "$with_sfio"; then found=0 # via config script for dir in $with_sfio/bin $with_sfio; do if test -f "$dir/sfio-config"; then sfio_version=`($dir/sfio-config --version) 2>/dev/null` if test ".$sfio_version" != .; then CPPFLAGS="$CPPFLAGS `$dir/sfio-config --cflags`" CFLAGS="$CFLAGS `$dir/sfio-config --cflags`" LDFLAGS="$LDFLAGS `$dir/sfio-config --ldflags`" found=1 break fi fi done # via standard paths if test ".$found" = .0; then for dir in $with_sfio/include/sfio $with_sfio/include $with_sfio; do if test -f "$dir/sfio.h"; then CPPFLAGS="$CPPFLAGS -I$dir" CFLAGS="$CFLAGS -I$dir" found=1 break fi done for dir in $with_sfio/lib/sfio $with_sfio/lib $with_sfio; do if test -f "$dir/libsfio.a" -o -f "$dir/libsfio.so"; then LDFLAGS="$LDFLAGS -L$dir" found=1 break fi done fi # in any subarea if test ".$found" = .0; then for file in x `find $with_sfio -name "sfio.h" -type f -print`; do test .$file = .x && continue dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` CPPFLAGS="$CPPFLAGS -I$dir" CFLAGS="$CFLAGS -I$dir" done for file in x `find $with_sfio -name "libsfio.[aso]" -type f -print`; do test .$file = .x && continue dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` LDFLAGS="$LDFLAGS -L$dir" done fi fi fi for ac_hdr in sfio.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:5223: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5233: \"$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 <&6 fi done echo $ac_n "checking for sfdisc in -lsfio""... $ac_c" 1>&6 echo "configure:5260: checking for sfdisc in -lsfio" >&5 ac_lib_var=`echo sfio'_'sfdisc | 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="-lsfio $LIBS" cat > conftest.$ac_ext <&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 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/^a-zA-Z0-9_/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi ac_rc=yes for ac_spec in header:sfio.h lib:sfio_sfdisc; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : with_sfio=yes else : with_sfio=no fi if test ".$with_sfio" = .no; then { echo "configure: error: Unable to find Sfio library" 1>&2; exit 1; } fi else if test ".$with_sfio" = .; then with_sfio=no fi fi echo $ac_n "checking whether to build against Sfio library""... $ac_c" 1>&6 echo "configure:5350: checking whether to build against Sfio library" >&5 if test ".$with_sfio" = .yes; then PTH_EXT_SFIO=1 else : fi echo "$ac_t""$with_sfio" 1>&6 # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then withval="$with_dmalloc" if test ".$with_dmalloc" = .yes; then # via config script dmalloc_version=`(dmalloc-config --version) 2>/dev/null` if test ".$dmalloc_version" != .; then CPPFLAGS="$CPPFLAGS `dmalloc-config --cflags`" CFLAGS="$CFLAGS `dmalloc-config --cflags`" LDFLAGS="$LDFLAGS `dmalloc-config --ldflags`" fi else if test -d "$with_dmalloc"; then found=0 # via config script for dir in $with_dmalloc/bin $with_dmalloc; do if test -f "$dir/dmalloc-config"; then dmalloc_version=`($dir/dmalloc-config --version) 2>/dev/null` if test ".$dmalloc_version" != .; then CPPFLAGS="$CPPFLAGS `$dir/dmalloc-config --cflags`" CFLAGS="$CFLAGS `$dir/dmalloc-config --cflags`" LDFLAGS="$LDFLAGS `$dir/dmalloc-config --ldflags`" found=1 break fi fi done # via standard paths if test ".$found" = .0; then for dir in $with_dmalloc/include/dmalloc $with_dmalloc/include $with_dmalloc; do if test -f "$dir/dmalloc.h"; then CPPFLAGS="$CPPFLAGS -I$dir" CFLAGS="$CFLAGS -I$dir" found=1 break fi done for dir in $with_dmalloc/lib/dmalloc $with_dmalloc/lib $with_dmalloc; do if test -f "$dir/libdmalloc.a" -o -f "$dir/libdmalloc.so"; then LDFLAGS="$LDFLAGS -L$dir" found=1 break fi done fi # in any subarea if test ".$found" = .0; then for file in x `find $with_dmalloc -name "dmalloc.h" -type f -print`; do test .$file = .x && continue dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` CPPFLAGS="$CPPFLAGS -I$dir" CFLAGS="$CFLAGS -I$dir" done for file in x `find $with_dmalloc -name "libdmalloc.[aso]" -type f -print`; do test .$file = .x && continue dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` LDFLAGS="$LDFLAGS -L$dir" done fi fi fi for ac_hdr in dmalloc.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:5425: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5435: \"$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 <&6 fi done echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6 echo "configure:5462: checking for dmalloc_debug in -ldmalloc" >&5 ac_lib_var=`echo dmalloc'_'dmalloc_debug | 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="-ldmalloc $LIBS" cat > conftest.$ac_ext <&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 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/^a-zA-Z0-9_/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi ac_rc=yes for ac_spec in header:dmalloc.h lib:dmalloc_dmalloc_debug; do ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` case $ac_type in header ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_header_$ac_item" ;; file ) ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` ac_var="ac_cv_file_$ac_item" ;; func ) ac_var="ac_cv_func_$ac_item" ;; lib ) ac_var="ac_cv_lib_$ac_item" ;; define ) ac_var="ac_cv_define_$ac_item" ;; typedef ) ac_var="ac_cv_typedef_$ac_item" ;; custom ) ac_var="$ac_item" ;; esac eval "ac_val=\$$ac_var" if test ".$ac_val" != .yes; then ac_rc=no break fi done if test ".$ac_rc" = .yes; then : with_dmalloc=yes else : with_dmalloc=no fi if test ".$with_dmalloc" = .no; then { echo "configure: error: Unable to find Dmalloc library" 1>&2; exit 1; } fi else if test ".$with_dmalloc" = .; then with_dmalloc=no fi fi echo $ac_n "checking whether to build against Dmalloc library""... $ac_c" 1>&6 echo "configure:5552: checking whether to build against Dmalloc library" >&5 if test ".$with_dmalloc" = .yes; then cat >> confdefs.h <<\EOF #define PTH_DMALLOC 1 EOF else : fi echo "$ac_t""$with_dmalloc" 1>&6 if test ".$enable_subdir" != .yes; then echo "$ac_t""" 1>&6 echo "$ac_t""${TB}Output Substitution:${TN}" 1>&6 fi trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | 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 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir trap 'rm -fr `echo "Makefile pthread-config pthread.h pth-config pth.h pth_acmac.h pth_acdef.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@srcdir_prefix@%$srcdir_prefix%g s%@PTH_VERSION_STR@%$PTH_VERSION_STR%g s%@PTH_VERSION_HEX@%$PTH_VERSION_HEX%g s%@PLATFORM@%$PLATFORM%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@SET_MAKE@%$SET_MAKE%g s%@AR@%$AR%g s%@RANLIB@%$RANLIB%g s%@PTH_FAKE_POLL@%$PTH_FAKE_POLL%g s%@PTH_FAKE_RWV@%$PTH_FAKE_RWV%g s%@EXTRA_INCLUDE_SYS_SELECT_H@%$EXTRA_INCLUDE_SYS_SELECT_H%g s%@FALLBACK_SIG_ATOMIC_T@%$FALLBACK_SIG_ATOMIC_T%g s%@FALLBACK_PID_T@%$FALLBACK_PID_T%g s%@FALLBACK_SIZE_T@%$FALLBACK_SIZE_T%g s%@FALLBACK_SSIZE_T@%$FALLBACK_SSIZE_T%g s%@FALLBACK_OFF_T@%$FALLBACK_OFF_T%g s%@FALLBACK_SOCKLEN_T@%$FALLBACK_SOCKLEN_T%g s%@FALLBACK_NFDS_T@%$FALLBACK_NFDS_T%g s%@PTH_STACK_GROWTH@%$PTH_STACK_GROWTH%g s%@pth_skaddr_makecontext@%$pth_skaddr_makecontext%g s%@pth_sksize_makecontext@%$pth_sksize_makecontext%g s%@pth_skaddr_sigaltstack@%$pth_skaddr_sigaltstack%g s%@pth_sksize_sigaltstack@%$pth_sksize_sigaltstack%g s%@pth_skaddr_sigstack@%$pth_skaddr_sigstack%g s%@pth_sksize_sigstack@%$pth_sksize_sigstack%g s%@pth_sigjmpbuf@%$pth_sigjmpbuf%g s%@pth_sigsetjmp@%$pth_sigsetjmp%g s%@pth_siglongjmp@%$pth_siglongjmp%g s%@PTH_MCTX_ID@%$PTH_MCTX_ID%g s%@PTH_SYSCALL_SOFT@%$PTH_SYSCALL_SOFT%g s%@PTH_SYSCALL_HARD@%$PTH_SYSCALL_HARD%g s%@BATCH@%$BATCH%g s%@TARGET_ALL@%$TARGET_ALL%g s%@PTHREAD_O@%$PTHREAD_O%g s%@LIBPTHREAD_A@%$LIBPTHREAD_A%g s%@LIBPTHREAD_LA@%$LIBPTHREAD_LA%g s%@PTHREAD_CONFIG_1@%$PTHREAD_CONFIG_1%g s%@PTHREAD_3@%$PTHREAD_3%g s%@INSTALL_PTHREAD@%$INSTALL_PTHREAD%g s%@UNINSTALL_PTHREAD@%$UNINSTALL_PTHREAD%g s%@TEST_PTHREAD@%$TEST_PTHREAD%g s%@PTH_EXT_SFIO@%$PTH_EXT_SFIO%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF chmod +rx pthread-config chmod +rx pth-config exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 if test ".$enable_pthread" = .no; then rm -f pthread-config rm -f pthread.h fi if test ".$enable_batch" != .yes; then echo "" echo "Now please type \`${TB}make${TN}' to compile. Good luck." echo "" fi