#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by Autoconf 2.49c. # # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # NLS nuisances. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } # IFS # We need space, tab and new line, in precisely that order. ac_nl=' ' IFS=" $ac_nl" # CDPATH. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # Name of the executable. as_me=`echo "$0" | sed 's,.*/,,'` cat >config.log << EOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me 2.49c, executed with > $0 $@ ## ---------- ## ## Platform. ## ## ---------- ## hostname = $ac_hostname uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/machine = `(/bin/machine) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` PATH = $PATH ## ------------ ## ## Core tests. ## ## ------------ ## EOF # 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 # # Initializations. # ac_default_prefix=/usr/local cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Avoid depending upon Character Ranges. ac_cr_az='abcdefghijklmnopqrstuvwxyz' ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ac_cr_09='0123456789' ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 # Sed expression to map a string onto a valid sh and CPP variable names. ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" # By default always use an empty string as the executable extension. # Only change it if the script calls AC_EXEEXT. ac_exeext= # By default assume that objects files use an extension of .o. Only # change it if the script calls AC_OBJEXT. ac_objext=o # Factoring default headers for most tests. ac_includes_default="\ #include #include #include #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #else # if HAVE_STRINGS_H # include # endif #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_UNISTD_H # include #endif" ac_unique_file="internal.h" # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= 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' 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 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # 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_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$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 ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && { { echo "$as_me:247: error: invalid feature name: $ac_feature" >&5 echo "$as_me: error: invalid feature name: $ac_feature" >&2;} { (exit 1); exit; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && { { echo "$as_me:257: error: invalid feature name: $ac_feature" >&5 echo "$as_me: error: invalid feature name: $ac_feature" >&2;} { (exit 1); exit; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) 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 | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && { { echo "$as_me:440: error: invalid package name: $ac_package" >&5 echo "$as_me: error: invalid package name: $ac_package" >&2;} { (exit 1); exit; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && { { echo "$as_me:454: error: invalid package name: $ac_package" >&5 echo "$as_me: error: invalid package name: $ac_package" >&2;} { (exit 1); exit; }; } 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 "$as_me:478: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2;} { (exit 1); exit; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && { { echo "$as_me:489: error: invalid variable name: $ac_envvar" >&5 echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} { (exit 1); exit; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. { echo "$as_me:498: WARNING: you should use --build, --host, --target" >&5 echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && { echo "$as_me:501: WARNING: invalid host type: $ac_option" >&5 echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { { echo "$as_me:511: error: missing argument to $ac_option" >&5 echo "$as_me: error: missing argument to $ac_option" >&2;} { (exit 1); exit; }; } fi # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir \ exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; NONE ) ;; *) { { echo "$as_me:525: error: expected an absolute path for --$ac_var: $ac_val" >&5 echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} { (exit 1); exit; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. build=$build_alias host=$host_alias target=$target_alias # FIXME: should be removed in autoconf 3.0. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe { echo "$as_me:541: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&5 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2;} elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- # 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 "$as_me:569: error: cannot find sources in $ac_confdir or .." >&5 echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} { (exit 1); exit; }; } else { { echo "$as_me:573: error: cannot find sources in $srcdir" >&5 echo "$as_me: error: cannot find sources in $srcdir" >&2;} { (exit 1); exit; }; } fi fi srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS # # Report the --help message. # if test "$ac_init_help" = "long"; then # 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 < if you have headers in a nonstandard directory LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. EOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue cd $ac_subdir # A "../" for each directory in /$ac_subdir. ac_dots=`echo $ac_subdir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` case $srcdir in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_sub_srcdir=$srcdir/$ac_subdir ;; *) # Relative path. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; esac # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_sub_srcdir/configure.gnu; then echo $SHELL $ac_sub_srcdir/configure.gnu --help=recursive elif test -f $ac_sub_srcdir/configure; then echo $SHELL $ac_sub_srcdir/configure --help=recursive elif test -f $ac_sub_srcdir/configure.in; then echo $ac_configure --help else { echo "$as_me:723: WARNING: no configuration information is in $ac_subdir" >&5 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\EOF Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. EOF exit 0 fi # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell meta-characters. ac_configure_args= ac_sep= 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_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ac_sep=" " ;; *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" ac_sep=" " ;; esac # Get rid of the leading space. done # When interrupted or exit'd, cleanup temporary files, and complete # config.log. trap 'exit_status=$? test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" >&5 echo "$as_me: exit $exit_status" >&5 rm -rf conftest* confdefs* core core.* *.core $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_status=$?; ac_signal='$ac_signal'; exit $ac_status' $ac_signal done ac_signal=0 # 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 # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:803: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:811: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_suggest_removing_cache=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:827: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_suggest_removing_cache=: ;; ,set) { echo "$as_me:831: WARNING: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} ac_suggest_removing_cache=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:837: WARNING: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:839: WARNING: former value: $ac_old_val" >&5 echo "$as_me: WARNING: former value: $ac_old_val" >&2;} { echo "$as_me:841: WARNING: current value: $ac_new_val" >&5 echo "$as_me: WARNING: current value: $ac_new_val" >&2;} ac_suggest_removing_cache=: fi;; esac done if $ac_suggest_removing_cache; then { echo "$as_me:848: WARNING: changes in the environment can compromise the build" >&5 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} { echo "$as_me:850: WARNING: consider removing $cache_file and starting over" >&5 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac ac_config_headers="$ac_config_headers config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:878: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}gcc" break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:900: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:903: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:912: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="gcc" break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:934: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:937: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:950: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}cc" break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:972: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:975: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:984: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="cc" break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:1006: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:1009: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi 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 "$as_me:1022: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break done 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 $# != 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" ${1+"$@"} shift ac_cv_prog_CC="$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1063: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1066: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:1077: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_CC="$ac_tool_prefix$ac_prog" break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1099: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1102: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:1115: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="$ac_prog" break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:1137: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:1140: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:1152: error: no acceptable cc found in \$PATH" >&5 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} { (exit 1); exit; }; } echo "$as_me:1156: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line 1159 "configure" #include "confdefs.h" int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:1171: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1174: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:1175: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:1178: \$? = $ac_status" >&5; } && (exit $ac_status) ; then # FIXME: these cross compiler hacks should be removed for autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { (eval echo "$as_me:1182: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:1185: \$? = $ac_status" >&5; } && (exit $ac_status) ; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:1191: error: cannot run C compiled programs. To enable cross compilation, use \`--host'." >&5 echo "$as_me: error: cannot run C compiled programs. To enable cross compilation, use \`--host'." >&2;} { (exit 1); exit; }; } fi fi fi echo "$as_me:1199: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 echo "$as_me:1204: result: no" >&5 echo "${ECHO_T}no" >&6 { { echo "$as_me:1206: error: C compiler cannot create executables" >&5 echo "$as_me: error: C compiler cannot create executables" >&2;} { (exit 77); exit; }; } fi rm -f conftest$ac_exeext conftest.$ac_ext echo "$as_me:1212: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:1214: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:1217: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 1223 "configure" #include "confdefs.h" int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:1238: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1241: \$? = $ac_status" >&5; } && (exit $ac_status) && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:1253: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` echo "$as_me:1256: checking for object suffix" >&5 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 1262 "configure" #include "confdefs.h" int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:1274: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1277: \$? = $ac_status" >&5; } && (exit $ac_status) ; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 { { echo "$as_me:1288: error: cannot compute OBJEXT: cannot compile" >&5 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} { (exit 1); exit; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:1295: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:1299: checking for executable suffix" >&5 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 if test "${ac_cv_exeext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 1305 "configure" #include "confdefs.h" int main () { ; return 0; } _ACEOF # Try without -o first, disregard a.out. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:1318: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:1321: \$? = $ac_status" >&5; } && (exit $ac_status) ; then for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do case $ac_file in *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f a.out a.exe conftest$ac_cv_exeext # We have not set ac_exeext yet which is needed by `ac_link'. ac_exeext=$ac_cv_exeext rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:1339: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1342: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:1343: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:1346: \$? = $ac_status" >&5; } && (exit $ac_status) ; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 { { echo "$as_me:1361: error: cannot compute EXEEXT: cannot compile and link" >&5 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} { (exit 1); exit; }; } fi rm -f conftest$ac_exeext rm -f conftest.$ac_ext conftest$ac_cv_exeext fi echo "$as_me:1370: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:1377: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 1383 "configure" #include "confdefs.h" int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:1395: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1398: \$? = $ac_status" >&5; } && (exit $ac_status) && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:1408: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo "$as_me:1429: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" break done fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then echo "$as_me:1451: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:1454: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo "$as_me:1463: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. test -f "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_RANLIB="ranlib" break done test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then echo "$as_me:1486: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:1489: result: no" >&5 echo "${ECHO_T}no" >&6 fi RANLIB=$ac_ct_RANLIB else RANLIB="$ac_cv_prog_RANLIB" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:1503: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ac_c_preproc_warn_flag=maybe cat >conftest.$ac_ext <<_ACEOF #line 1522 "configure" #include "confdefs.h" #include Syntax error _ACEOF if { (eval echo "$as_me:1527: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:1530: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Now check whether non-existent headers can be detected and how # Skip if ac_cpp_err is not empty - ac_cpp is broken if test -z "$ac_cpp_err"; then cat >conftest.$ac_ext <<_ACEOF #line 1544 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:1548: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:1551: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # cannot detect missing includes at all ac_cpp_err=yes else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "x$ac_cpp_err" = xmaybe; then ac_c_preproc_warn_flag=yes else ac_c_preproc_warn_flag= fi ac_cpp_err= fi rm -f conftest.err conftest.$ac_ext fi else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_ext if test -z "$ac_cpp_err"; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ac_c_preproc_warn_flag=maybe cat >conftest.$ac_ext <<_ACEOF #line 1598 "configure" #include "confdefs.h" #include Syntax error _ACEOF if { (eval echo "$as_me:1603: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:1606: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Now check whether non-existent headers can be detected and how # Skip if ac_cpp_err is not empty - ac_cpp is broken if test -z "$ac_cpp_err"; then cat >conftest.$ac_ext <<_ACEOF #line 1620 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:1624: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:1627: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # cannot detect missing includes at all ac_cpp_err=yes else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "x$ac_cpp_err" = xmaybe; then ac_c_preproc_warn_flag=yes else ac_c_preproc_warn_flag= fi ac_cpp_err= fi rm -f conftest.err conftest.$ac_ext fi else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_ext ac_cv_prog_CPP=$CPP fi echo "$as_me:1661: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 if test -n "$ac_cpp_err"; then { { echo "$as_me:1664: error: C preprocessor \"$CPP\" fails sanity check" >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit; }; } fi cat >conftest.$ac_ext <<_ACEOF #line 1670 "configure" #include "confdefs.h" _ACEOF if { (eval echo "$as_me:1674: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:1677: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_ext # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo "$as_me:1697: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $AR in [\\/]* | ?:[\\/]*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=':' ac_dummy="$PATH:$EXTRA_PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_AR="$ac_dir/$ac_word" break fi done test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" ;; esac fi AR=$ac_cv_path_AR if test -n "$AR"; then echo "$as_me:1725: result: $AR" >&5 echo "${ECHO_T}$AR" >&6 else echo "$as_me:1728: result: no" >&5 echo "${ECHO_T}no" >&6 fi export AR # defaults # enable_memdebug=yes # enable_memstats=yes # Check whether --enable-memdebug or --disable-memdebug was given. if test "${enable_memdebug+set}" = set; then enableval="$enable_memdebug" enable_memdebug=yes else enable_memdebug=no fi; # Check whether --enable-memstats or --disable-memstats was given. if test "${enable_memstats+set}" = set; then enableval="$enable_memstats" enable_memstats=yes else enable_memstats=no fi; echo "$as_me:1753: checking memory debug" >&5 echo $ECHO_N "checking memory debug... $ECHO_C" >&6 if test x$enable_memdebug = xyes ; then cat >>confdefs.h <<\EOF #define MEM_DEBUG 1 EOF echo "$as_me:1760: result: \"yes\"" >&5 echo "${ECHO_T}\"yes\"" >&6 echo "$as_me:1762: checking memory statistics" >&5 echo $ECHO_N "checking memory statistics... $ECHO_C" >&6 if test x$enable_memstats = xyes ; then echo "$as_me:1765: result: \"yes\"" >&5 echo "${ECHO_T}\"yes\"" >&6 cat >>confdefs.h <<\EOF #define MEM_STATS 1 EOF else echo "$as_me:1772: result: \"no\"" >&5 echo "${ECHO_T}\"no\"" >&6 fi else echo "$as_me:1776: result: \"no\"" >&5 echo "${ECHO_T}\"no\"" >&6 fi #---- compiler flags --------------- CFLAGS='' echo "$as_me:1784: checking whether ${CC-cc} accepts -g" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 "$as_me:1798: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "x$ac_cv_prog_cc_g" = "xyes"; then CFLAGS="${CFLAGS} -g" fi echo "$as_me:1804: checking whether ${CC-cc} accepts -Wall" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -Wall... $ECHO_C" >&6 if test "${ac_cv_prog_cc_Wall+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -Wall -c conftest.c 2>&1`"; then ac_cv_prog_cc_Wall=yes else ac_cv_prog_cc_Wall=no fi rm -f conftest* fi echo "$as_me:1818: result: $ac_cv_prog_cc_Wall" >&5 echo "${ECHO_T}$ac_cv_prog_cc_Wall" >&6 if test "x$ac_cv_prog_cc_Wall" = "xyes"; then CFLAGS="${CFLAGS} -Wall" fi if test "x$ac_cv_prog_cc_-Wall" = "xno"; then echo "$as_me:1825: checking whether ${CC-cc} accepts -W" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -W... $ECHO_C" >&6 if test "${ac_cv_prog_cc_W+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -W -c conftest.c 2>&1`"; then ac_cv_prog_cc_W=yes else ac_cv_prog_cc_W=no fi rm -f conftest* fi echo "$as_me:1839: result: $ac_cv_prog_cc_W" >&5 echo "${ECHO_T}$ac_cv_prog_cc_W" >&6 if test "x$ac_cv_prog_cc_W" = "xyes"; then CFLAGS="${CFLAGS} -W" fi fi echo "$as_me:1846: checking whether ${CC-cc} accepts -O" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -O... $ECHO_C" >&6 if test "${ac_cv_prog_cc_O+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -O -c conftest.c 2>&1`"; then ac_cv_prog_cc_O=yes else ac_cv_prog_cc_O=no fi rm -f conftest* fi echo "$as_me:1860: result: $ac_cv_prog_cc_O" >&5 echo "${ECHO_T}$ac_cv_prog_cc_O" >&6 if test "x$ac_cv_prog_cc_O" = "xyes"; then CFLAGS="${CFLAGS} -O" fi echo "$as_me:1866: checking whether ${CC-cc} accepts -fPIC" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -fPIC... $ECHO_C" >&6 if test "${ac_cv_prog_cc_fPIC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then ac_cv_prog_cc_fPIC=yes else ac_cv_prog_cc_fPIC=no fi rm -f conftest* fi echo "$as_me:1880: result: $ac_cv_prog_cc_fPIC" >&5 echo "${ECHO_T}$ac_cv_prog_cc_fPIC" >&6 if test "x$ac_cv_prog_cc_fPIC" = "xyes"; then CFLAGS="${CFLAGS} -fPIC" fi if test "x$ac_cv_prog_cc_-fPIC" = "xno"; then echo "$as_me:1887: checking whether ${CC-cc} accepts -fpic" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -fpic... $ECHO_C" >&6 if test "${ac_cv_prog_cc_fpic+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then ac_cv_prog_cc_fpic=yes else ac_cv_prog_cc_fpic=no fi rm -f conftest* fi echo "$as_me:1901: result: $ac_cv_prog_cc_fpic" >&5 echo "${ECHO_T}$ac_cv_prog_cc_fpic" >&6 if test "x$ac_cv_prog_cc_fpic" = "xyes"; then CFLAGS="${CFLAGS} -fpic" fi fi echo "$as_me:1909: checking for irritating if-if-else-else warnings" >&5 echo $ECHO_N "checking for irritating if-if-else-else warnings... $ECHO_C" >&6 if test "${mird_cv_stupid_if_if_else_else_warning+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int foo(int x,int y)'\ '{ if(x) if(y) x=1; else x=2; else x=3; '\ ' if(x) if(y) x=1; else x=2; return x;}' > conftest.c if ${CC-cc} ${CFLAGS} -c conftest.c 2>&1 | grep -i Warning >/dev/null; then mird_cv_stupid_if_if_else_else_warning=yes else mird_cv_stupid_if_if_else_else_warning=no fi fi if test "x$mird_cv_stupid_if_if_else_else_warning" = "xyes" ; then echo "$as_me:1927: result: yes (stupid gcc)" >&5 echo "${ECHO_T}yes (stupid gcc)" >&6 # CCFILTER=' 2>&1 | grep -v ambiguous\ \`else'"\\'" echo "$as_me:1930: checking whether ${CC-cc} accepts -Wno-parentheses" >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-parentheses... $ECHO_C" >&6 if test "${ac_cv_prog_cc_Wnoparentheses+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -Wno-parentheses -c conftest.c 2>&1`"; then ac_cv_prog_cc_Wnoparentheses=yes else ac_cv_prog_cc_Wnoparentheses=no fi rm -f conftest* fi echo "$as_me:1944: result: $ac_cv_prog_cc_Wnoparentheses" >&5 echo "${ECHO_T}$ac_cv_prog_cc_Wnoparentheses" >&6 if test "x$ac_cv_prog_cc_Wnoparentheses" = "xyes"; then CFLAGS="${CFLAGS} -Wno-parentheses" fi else echo "$as_me:1951: result: no (good)" >&5 echo "${ECHO_T}no (good)" >&6 fi CCFILTER="" #----- ansi prototypes? ----- echo "$as_me:1958: checking ansi prototype capability" >&5 echo $ECHO_N "checking ansi prototype capability... $ECHO_C" >&6 if test "${mird_cv_sys_ansi_prototypes+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 1965 "configure" #include "confdefs.h" int foo(int bar); int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:1977: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1980: \$? = $ac_status" >&5; } && (exit $ac_status) && test -s conftest.$ac_objext; then mird_cv_sys_ansi_prototypes=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_sys_ansi_prototypes=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi if test "$mird_cv_sys_ansi_prototypes" = "yes"; then echo "$as_me:1993: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:1996: result: no, giving up" >&5 echo "${ECHO_T}no, giving up" >&6 exit 1 fi #---- large file support, sunos ---- echo "$as_me:2003: checking CFLAGS for large file support" >&5 echo $ECHO_N "checking CFLAGS for large file support... $ECHO_C" >&6 if test "${mird_cv_largefile_cflags+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_largefile_cflags=`getconf LFS_CFLAGS 2>&5` fi if test "x$mird_cv_largefile_cflags" != "x"; then echo "$as_me:2012: result: $mird_cv_largefile_cflags" >&5 echo "${ECHO_T}$mird_cv_largefile_cflags" >&6 CFLAGS="${CFLAGS} $mird_cv_largefile_cflags" else echo "$as_me:2016: result: none" >&5 echo "${ECHO_T}none" >&6 fi echo "$as_me:2020: checking LDFLAGS for large file support" >&5 echo $ECHO_N "checking LDFLAGS for large file support... $ECHO_C" >&6 if test "${mird_cv_largefile_ldflags+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_largefile_ldflags=`getconf LFS_LDFLAGS 2>&5` fi if test "x$mird_cv_largefile_ldflags" != "x"; then echo "$as_me:2029: result: $mird_cv_largefile_ldflags" >&5 echo "${ECHO_T}$mird_cv_largefile_ldflags" >&6 LDFLAGS="${LDFLAGS} $mird_cv_largefile_ldflags" else echo "$as_me:2033: result: none" >&5 echo "${ECHO_T}none" >&6 fi #---- linking shared libraries ---- # SO is the extension of shared libraries # -- usually so, sl on HP-UX echo "$as_me:2042: checking name of shared libraries" >&5 echo $ECHO_N "checking name of shared libraries... $ECHO_C" >&6 if test "${mird_cv_so+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x`ls -1 /lib/*.sl /usr/lib/*.sl 2>&5`" != "x"; then mird_cv_so=sl; else if test "x`ls -1 /lib/*.so /usr/lib/*.so 2>&5`" != "x"; then mird_cv_so=so; else echo 'guessing: ' >&2 mird_cv_so=so; fi; fi fi echo "$as_me:2058: result: .$mird_cv_so" >&5 echo "${ECHO_T}.$mird_cv_so" >&6 SO=$mird_cv_so SOVER=${SO}.1 #--- OLD_CFLAGS="$CFLAGS" echo "$as_me:2067: checking whether ${CC-cc} accepts -R." >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -R.... $ECHO_C" >&6 if test "${ac_cv_prog_cc_R+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -R. -c conftest.c 2>&1`"; then ac_cv_prog_cc_R=yes else ac_cv_prog_cc_R=no fi rm -f conftest* fi echo "$as_me:2081: result: $ac_cv_prog_cc_R" >&5 echo "${ECHO_T}$ac_cv_prog_cc_R" >&6 if test "x$ac_cv_prog_cc_R" = "xyes"; then CFLAGS="${CFLAGS} -R." fi echo "$as_me:2087: checking whether ${CC-cc} accepts -L." >&5 echo $ECHO_N "checking whether ${CC-cc} accepts -L.... $ECHO_C" >&6 if test "${ac_cv_prog_cc_L+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -L. -c conftest.c 2>&1`"; then ac_cv_prog_cc_L=yes else ac_cv_prog_cc_L=no fi rm -f conftest* fi echo "$as_me:2101: result: $ac_cv_prog_cc_L" >&5 echo "${ECHO_T}$ac_cv_prog_cc_L" >&6 if test "x$ac_cv_prog_cc_L" = "xyes"; then CFLAGS="${CFLAGS} -L." fi LCFLAGS="$CFLAGS" CFLAGS="$OLD_CFLAGS" OLD_LDFLAGS="$LDFLAGS" echo "$as_me:2112: checking if gcc -shared creates shared libraries" >&5 echo $ECHO_N "checking if gcc -shared creates shared libraries... $ECHO_C" >&6 if test "${ac_cv_gcc_shared+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_gcc_shared=no echo '#include static int x=12; int lib_fun_foo(void){ x=42; printf("working!"); return 17; } ' > conftest1.c echo "${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o" >&5 ${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o 2>&5 1>&2 echo "gcc -shared ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO}" >&5 if gcc -shared ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO} 2>&5 1>&2; then ls -l *conftest* >&5 echo 'int lib_fun_foo(void); int main(void){ return lib_fun_foo()!=17; }' > conftest2.c echo "${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest" >&5 ${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest 2>&5 1>&2 LD_LIBRARY_PATH="." export LD_LIBRARY_PATH echo "./conftest2" >&5 if ./conftest2 2>&5 1>&2; then ac_cv_gcc_shared=yes fi fi rm -f conftest* libconftest* fi echo "$as_me:2140: result: $ac_cv_gcc_shared" >&5 echo "${ECHO_T}$ac_cv_gcc_shared" >&6 if test "x$ac_cv_gcc_shared" = "xyes"; then LD="gcc -shared" fi if test "x$ac_cv_gcc_shared" != "xyes"; then LCFLAGS="-L." echo "$as_me:2148: checking if ld -G creates shared libraries" >&5 echo $ECHO_N "checking if ld -G creates shared libraries... $ECHO_C" >&6 if test "${ac_cv_ld_G+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_ld_G=no echo '#include static int x=12; int lib_fun_foo(void){ x=42; printf("working!"); return 17; } ' > conftest1.c echo "${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o" >&5 ${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o 2>&5 1>&2 echo "ld -G ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO}" >&5 if ld -G ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO} 2>&5 1>&2; then ls -l *conftest* >&5 echo 'int lib_fun_foo(void); int main(void){ return lib_fun_foo()!=17; }' > conftest2.c echo "${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest" >&5 ${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest 2>&5 1>&2 LD_LIBRARY_PATH="." export LD_LIBRARY_PATH echo "./conftest2" >&5 if ./conftest2 2>&5 1>&2; then ac_cv_ld_G=yes fi fi rm -f conftest* libconftest* fi echo "$as_me:2176: result: $ac_cv_ld_G" >&5 echo "${ECHO_T}$ac_cv_ld_G" >&6 if test "x$ac_cv_ld_G" = "xyes"; then LD="ld -G" fi if test "x$ac_cv_ld_G" != "xyes"; then echo "$as_me:2183: checking if ld -Bshareable creates shared libraries" >&5 echo $ECHO_N "checking if ld -Bshareable creates shared libraries... $ECHO_C" >&6 if test "${ac_cv_ld_Bshareable+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_ld_Bshareable=no echo '#include static int x=12; int lib_fun_foo(void){ x=42; printf("working!"); return 17; } ' > conftest1.c echo "${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o" >&5 ${CC-cc} ${CFLAGS} conftest1.c -c -o conftest1.o 2>&5 1>&2 echo "ld -Bshareable ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO}" >&5 if ld -Bshareable ${LCFLAGS} ${LDFLAGS} conftest1.o -o libconftest.${SO} 2>&5 1>&2; then ls -l *conftest* >&5 echo 'int lib_fun_foo(void); int main(void){ return lib_fun_foo()!=17; }' > conftest2.c echo "${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest" >&5 ${CC-cc} ${LDFLAGS} ${LCFLAGS} conftest2.c -o conftest2 -lconftest 2>&5 1>&2 LD_LIBRARY_PATH="." export LD_LIBRARY_PATH echo "./conftest2" >&5 if ./conftest2 2>&5 1>&2; then ac_cv_ld_Bshareable=yes fi fi rm -f conftest* libconftest* fi echo "$as_me:2211: result: $ac_cv_ld_Bshareable" >&5 echo "${ECHO_T}$ac_cv_ld_Bshareable" >&6 if test "x$ac_cv_ld_Bshareable" = "xyes"; then LD="ld -Bshareable" fi if test "x$ac_cv_ld_Bshareable" != "xyes"; then echo === failed to created shared libraries >&2 echo === cannot continue >&2 exit 1 fi fi fi echo "$as_me:2225: checking whether ${LD} accepts -n32" >&5 echo $ECHO_N "checking whether ${LD} accepts -n32... $ECHO_C" >&6 if test "${ac_cv_prog_ld_n32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int main(){ return 0; }' > conftest.c ${CC-cc} ${CFLAGS} conftest.c -c -o conftest.o 2>&5 1>&2 if test -z "`${LD} ${LDFLAGS} -n32 conftest.o -o conftest.$SO 2>&1`"; then ac_cv_prog_ld_n32=yes else ac_cv_prog_ld_n32=no fi rm -f conftest* fi echo "$as_me:2240: result: $ac_cv_prog_ld_n32" >&5 echo "${ECHO_T}$ac_cv_prog_ld_n32" >&6 if test "x$ac_cv_prog_ld_n32" = "xyes"; then LDFLAGS="${LDFLAGS} -n32" fi echo "$as_me:2246: checking whether ${LD} accepts -bexpall" >&5 echo $ECHO_N "checking whether ${LD} accepts -bexpall... $ECHO_C" >&6 if test "${ac_cv_prog_ld_bexpall+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int main(){ return 0; }' > conftest.c ${CC-cc} ${CFLAGS} conftest.c -c -o conftest.o 2>&5 1>&2 if test -z "`${LD} ${LDFLAGS} -bexpall conftest.o -o conftest.$SO 2>&1`"; then ac_cv_prog_ld_bexpall=yes else ac_cv_prog_ld_bexpall=no fi rm -f conftest* fi echo "$as_me:2261: result: $ac_cv_prog_ld_bexpall" >&5 echo "${ECHO_T}$ac_cv_prog_ld_bexpall" >&6 if test "x$ac_cv_prog_ld_bexpall" = "xyes"; then LDFLAGS="${LDFLAGS} -bexpall" fi echo "$as_me:2267: checking whether ${LD} accepts -fPIC" >&5 echo $ECHO_N "checking whether ${LD} accepts -fPIC... $ECHO_C" >&6 if test "${ac_cv_prog_ld_fPIC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int main(){ return 0; }' > conftest.c ${CC-cc} ${CFLAGS} conftest.c -c -o conftest.o 2>&5 1>&2 if test -z "`${LD} ${LDFLAGS} -fPIC conftest.o -o conftest.$SO 2>&1`"; then ac_cv_prog_ld_fPIC=yes else ac_cv_prog_ld_fPIC=no fi rm -f conftest* fi echo "$as_me:2282: result: $ac_cv_prog_ld_fPIC" >&5 echo "${ECHO_T}$ac_cv_prog_ld_fPIC" >&6 if test "x$ac_cv_prog_ld_fPIC" = "xyes"; then LDFLAGS="${LDFLAGS} -fPIC" fi if test "x$ac_cv_prog_ld_-fPIC" = "xno"; then echo "$as_me:2289: checking whether ${LD} accepts -fpic" >&5 echo $ECHO_N "checking whether ${LD} accepts -fpic... $ECHO_C" >&6 if test "${ac_cv_prog_ld_fpic+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int main(){ return 0; }' > conftest.c ${CC-cc} ${CFLAGS} conftest.c -c -o conftest.o 2>&5 1>&2 if test -z "`${LD} ${LDFLAGS} -fpic conftest.o -o conftest.$SO 2>&1`"; then ac_cv_prog_ld_fpic=yes else ac_cv_prog_ld_fpic=no fi rm -f conftest* fi echo "$as_me:2304: result: $ac_cv_prog_ld_fpic" >&5 echo "${ECHO_T}$ac_cv_prog_ld_fpic" >&6 if test "x$ac_cv_prog_ld_fpic" = "xyes"; then LDFLAGS="${LDFLAGS} -fpic" fi fi echo "$as_me:2311: checking whether ${LD} accepts -KPIC" >&5 echo $ECHO_N "checking whether ${LD} accepts -KPIC... $ECHO_C" >&6 if test "${ac_cv_prog_ld_KPIC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo 'int main(){ return 0; }' > conftest.c ${CC-cc} ${CFLAGS} conftest.c -c -o conftest.o 2>&5 1>&2 if test -z "`${LD} ${LDFLAGS} -KPIC conftest.o -o conftest.$SO 2>&1`"; then ac_cv_prog_ld_KPIC=yes else ac_cv_prog_ld_KPIC=no fi rm -f conftest* fi echo "$as_me:2326: result: $ac_cv_prog_ld_KPIC" >&5 echo "${ECHO_T}$ac_cv_prog_ld_KPIC" >&6 if test "x$ac_cv_prog_ld_KPIC" = "xyes"; then LDFLAGS="${LDFLAGS} -KPIC" fi LDSHARED="$LDFLAGS" LDFLAGS="$OLD_LDFLAGS" NOOPTFLAGS="$(echo "$CFLAGS" | sed 's/-O2//g')" echo "$as_me:2337: checking for 16 bit int" >&5 echo $ECHO_N "checking for 16 bit int... $ECHO_C" >&6 if test "${mird_cv_int16+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then echo "$as_me:2343: result: cross-compiling" >&5 echo "${ECHO_T}cross-compiling" >&6 exit 1 else cat >conftest.$ac_ext <<_ACEOF #line 2348 "configure" #include "confdefs.h" int main() { return sizeof(short)!=2; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2353: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2356: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2356: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2359: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int16="short" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2369 "configure" #include "confdefs.h" int main() { return sizeof(int)!=2; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2374: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2377: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2377: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2380: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int16=int else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2390 "configure" #include "confdefs.h" int main() { return sizeof(long)!=2; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2395: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2398: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2398: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2401: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int16=long else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2411 "configure" #include "confdefs.h" int main() { return sizeof(long char)!=2; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2416: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2419: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2419: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2422: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int16="long long" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 echo "$as_me:2428: result: no, giving up" >&5 echo "${ECHO_T}no, giving up" >&6 exit 1 fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:2453: result: $mird_cv_int16" >&5 echo "${ECHO_T}$mird_cv_int16" >&6 cat >>confdefs.h <&5 echo $ECHO_N "checking for 32 bit int... $ECHO_C" >&6 if test "${mird_cv_int32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then echo "$as_me:2465: result: cross-compiling" >&5 echo "${ECHO_T}cross-compiling" >&6 exit 1 else cat >conftest.$ac_ext <<_ACEOF #line 2470 "configure" #include "confdefs.h" int main() { return sizeof(long)!=4; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2475: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2478: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2478: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2481: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int32=long else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2491 "configure" #include "confdefs.h" int main() { return sizeof(int)!=4; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2496: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2499: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2499: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2502: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int32=int else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2512 "configure" #include "confdefs.h" int main() { return sizeof(long long)!=4; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2517: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2520: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2520: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2523: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int32="long long" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2533 "configure" #include "confdefs.h" int main() { return sizeof(short)!=4; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2538: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2541: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2541: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2544: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int32="short" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 echo "$as_me:2550: result: no, giving up" >&5 echo "${ECHO_T}no, giving up" >&6 exit 1 fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:2575: result: $mird_cv_int32" >&5 echo "${ECHO_T}$mird_cv_int32" >&6 cat >>confdefs.h <&5 echo $ECHO_N "checking for 64 bit int... $ECHO_C" >&6 if test "${mird_cv_int64+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then echo "$as_me:2587: result: cross-compiling" >&5 echo "${ECHO_T}cross-compiling" >&6 exit 1 else cat >conftest.$ac_ext <<_ACEOF #line 2592 "configure" #include "confdefs.h" int main() { return sizeof(long)!=8; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2597: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2600: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2600: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2603: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int64=long else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2613 "configure" #include "confdefs.h" int main() { return sizeof(int)!=8; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2618: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2621: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2621: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2624: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int64=int else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2634 "configure" #include "confdefs.h" int main() { return sizeof(long long)!=8; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2639: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2642: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2642: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2645: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int64="long long" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 2655 "configure" #include "confdefs.h" int main() { return sizeof(short)!=8; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:2660: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2663: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2663: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2666: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_int64="short" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_int64="none" fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:2695: result: $mird_cv_int64" >&5 echo "${ECHO_T}$mird_cv_int64" >&6 if test "x$mird_cv_int64" != "xnone"; then cat >>confdefs.h <&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 2719 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF if { (eval echo "$as_me:2723: \"$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err) 2>&5 ac_status=$? echo "$as_me:2726: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then eval "$ac_ac_Header=yes" else cat conftest.err >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 eval "$ac_ac_Header=no" fi rm -f conftest.err conftest.$ac_ext fi echo "$as_me:2745: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 2765 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ #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; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:2796: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2799: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2800: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2803: \$? = $ac_status" >&5; } && (exit $ac_status) ; then eval "$ac_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:2813: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for htonl in -lxnet... $ECHO_C" >&6 if test "${ac_cv_lib_xnet_htonl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lxnet $LIBS" cat >conftest.$ac_ext <<_ACEOF #line 2831 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #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 htonl (); int main () { htonl (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:2850: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2853: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2854: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2857: \$? = $ac_status" >&5; } && (exit $ac_status) ; then ac_cv_lib_xnet_htonl=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_lib_xnet_htonl=no fi rm -f conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:2868: result: $ac_cv_lib_xnet_htonl" >&5 echo "${ECHO_T}$ac_cv_lib_xnet_htonl" >&6 if test $ac_cv_lib_xnet_htonl = yes; then LIBS="${LIBS} -lxnet" fi #---- inline keyword ---- echo "$as_me:2876: checking inline keyword" >&5 echo $ECHO_N "checking inline keyword... $ECHO_C" >&6 if test "${mird_cv_inline_keyword+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 2883 "configure" #include "confdefs.h" static inline int foo(int bar); int main () { exit(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:2895: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2898: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2899: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2902: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_inline_keyword="static inline" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line 2909 "configure" #include "confdefs.h" static __inline int foo(int bar); int main () { exit(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:2921: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2924: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2925: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2928: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_inline_keyword="static __inline" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_inline_keyword="no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi rm -f conftest$ac_exeext conftest.$ac_ext fi if test "$mird_cv_inline_keyword" != "no"; then echo "$as_me:2945: result: $mird_cv_inline_keyword" >&5 echo "${ECHO_T}$mird_cv_inline_keyword" >&6 cat >>confdefs.h <<\EOF #define HAS_INLINE 1 EOF cat >>confdefs.h <>confdefs.h <&5 echo "${ECHO_T}no" >&6 fi #---- file locking method ------------ echo "$as_me:2966: checking if flock works" >&5 echo $ECHO_N "checking if flock works... $ECHO_C" >&6 if test "${mird_cv_has_flock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 2972 "configure" #include "confdefs.h" #include int main () { flock(1,LOCK_EX|LOCK_NB); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:2984: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2987: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:2988: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:2991: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_has_flock=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_has_flock=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi if test "x$mird_cv_has_flock" = "xyes"; then cat >>confdefs.h <<\EOF #define HAS_FLOCK 1 EOF fi echo "$as_me:3008: result: $mird_cv_has_flock" >&5 echo "${ECHO_T}$mird_cv_has_flock" >&6 echo "$as_me:3011: checking if lockf works" >&5 echo $ECHO_N "checking if lockf works... $ECHO_C" >&6 if test "${mird_cv_has_lockf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3020 "configure" #include "confdefs.h" #include #include #include #include int main() { int fd; fd=open("conftest.file",O_CREAT|O_RDWR,0666); return !!lockf(fd,F_LOCK,0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3034: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3037: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3037: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3040: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_has_lockf=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_has_lockf=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi if test "x$mird_cv_has_lockf" = "xyes"; then cat >>confdefs.h <<\EOF #define HAS_LOCKF 1 EOF fi echo "$as_me:3060: result: $mird_cv_has_lockf" >&5 echo "${ECHO_T}$mird_cv_has_lockf" >&6 #---- free space method ------------ echo "$as_me:3065: checking file free space method" >&5 echo $ECHO_N "checking file free space method... $ECHO_C" >&6 if test "${mird_cv_file_free+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line 3071 "configure" #include "confdefs.h" #include #include #include int main () { struct flock fl; fcntl(1,F_FREESP,&fl); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:3085: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3088: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3089: \"test -s conftest$ac_exeext\"") >&5 (eval test -s conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3092: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_file_free=fcntl_freesp else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_file_free=none fi rm -f conftest$ac_exeext conftest.$ac_ext fi case "x_$mird_cv_file_free" in x_fcntl_freesp) echo "$as_me:3106: result: fcntl(...F_FREESP...)" >&5 echo "${ECHO_T}fcntl(...F_FREESP...)" >&6 cat >>confdefs.h <<\EOF #define USE_FCNTL_FREESP 1 EOF ;; x_none) echo "$as_me:3114: result: none" >&5 echo "${ECHO_T}none" >&6 ;; *) echo error exit 1 ;; esac #---- off_t -------------------- echo "$as_me:3125: checking for off_t" >&5 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 if test "${mird_cv_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3134 "configure" #include "confdefs.h" #include int main() { off_t x; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3140: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3143: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3143: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3146: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_off_t=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_off_t=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3160: result: $mird_cv_off_t" >&5 echo "${ECHO_T}$mird_cv_off_t" >&6 echo "$as_me:3163: checking for loff_t" >&5 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6 if test "${mird_cv_loff_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3172 "configure" #include "confdefs.h" #include int main() { loff_t x; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3178: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3181: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3181: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3184: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_loff_t=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_loff_t=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3198: result: $mird_cv_loff_t" >&5 echo "${ECHO_T}$mird_cv_loff_t" >&6 echo "$as_me:3201: checking what off_t type to use" >&5 echo $ECHO_N "checking what off_t type to use... $ECHO_C" >&6 if test "x$mird_cv_loff_t" = "xno"; then if test "x$mird_cv_off_t" = "xno" ; then MIRD_OFF_T="signed long" cat >>confdefs.h <>confdefs.h <>confdefs.h <&5 echo "${ECHO_T}$MIRD_OFF_T" >&6 echo "$as_me:3227: checking 64 bit off_t" >&5 echo $ECHO_N "checking 64 bit off_t... $ECHO_C" >&6 if test "${mird_cv_64_bit_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3236 "configure" #include "confdefs.h" #include int main() { return !( (((MIRD_OFF_T)4711)<<32) == 20233590931456);} _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3243: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3246: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3246: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3249: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_64_bit_off_t=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_64_bit_off_t=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3263: result: $mird_cv_64_bit_off_t" >&5 echo "${ECHO_T}$mird_cv_64_bit_off_t" >&6 if test "x$mird_cv_64_bit_off_t" = "xyes"; then OFF_T=$INT64 echo "$as_me:3268: checking how to printf off_t" >&5 echo $ECHO_N "checking how to printf off_t... $ECHO_C" >&6 if test "${mird_cv_printf_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3278 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%lld",((MIRD_OFF_T)4711)<<32); return !!strcmp("20233590931456",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3288: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3291: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3291: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3294: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="ll" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3304 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%ld",((MIRD_OFF_T)4711)<<32); return !!strcmp("20233590931456",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3314: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3317: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3317: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3320: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="l" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3330 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%d",((MIRD_OFF_T)4711)<<32); return !!strcmp("20233590931456",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3340: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3343: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3343: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3346: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 echo "(none found?) \c" mird_cv_printf_off_t="" fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3371: result: %${mird_cv_printf_off_t}d, %${mird_cv_printf_off_t}x" >&5 echo "${ECHO_T}%${mird_cv_printf_off_t}d, %${mird_cv_printf_off_t}x" >&6 cat >>confdefs.h <&5 echo $ECHO_N "checking how to printf off_t... $ECHO_C" >&6 if test "${mird_cv_printf_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3389 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%lld",(MIRD_OFF_T)47114711); return !!strcmp("47114711",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3399: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3402: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3402: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3405: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="ll" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3415 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%ld",(MIRD_OFF_T)47114711); return !!strcmp("47114711",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3425: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3428: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3428: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3431: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="l" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3441 "configure" #include "confdefs.h" #include #include int main() { char buf[32]; sprintf(buf,"%d",(MIRD_OFF_T)47114711); return !!strcmp("47114711",buf); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3451: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3454: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3454: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3457: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_printf_off_t="" else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 echo "(none found?) \c" mird_cv_printf_off_t="" fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3482: result: %${mird_cv_printf_off_t}d, %${mird_cv_printf_off_t}x" >&5 echo "${ECHO_T}%${mird_cv_printf_off_t}d, %${mird_cv_printf_off_t}x" >&6 cat >>confdefs.h <&5 echo $ECHO_N "checking unit of stat.st_blocks... $ECHO_C" >&6 if test "${mird_cv_stat_blockunit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_stat_blockunit=512 cat >conftest.$ac_ext <<_ACEOF #line 3499 "configure" #include "confdefs.h" #include #include #include #ifdef DEV_BSIZE "DEV_BSIZE" #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "DEV_BSIZE" >/dev/null 2>&1; then mird_cv_stat_blockunit=DEV_BSIZE fi rm -f conftest* fi echo "$as_me:3516: result: $mird_cv_stat_blockunit" >&5 echo "${ECHO_T}$mird_cv_stat_blockunit" >&6 cat >>confdefs.h <&5 echo $ECHO_N "checking unaligned memory access... $ECHO_C" >&6 if test "${mird_cv_unaligned_access+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3534 "configure" #include "confdefs.h" #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_ARPA_INET_H #include #endif long mird_s_key_hash(unsigned char *data, int len) { long z=0; while (len>=4) { z=(z*137912897)+htonl(data); data+=4; len-=4; } return z; } int main() { char *s="blahblahblahblahzotzotzotblahflrpt"; mird_s_key_hash(s,20); mird_s_key_hash(s+1,20); mird_s_key_hash(s+2,20); mird_s_key_hash(s+3,20); mird_s_key_hash(s+4,20); mird_s_key_hash(s+5,20); mird_s_key_hash(s+6,20); mird_s_key_hash(s+7,20); mird_s_key_hash(s+8,20); mird_s_key_hash(s+9,20); mird_s_key_hash(s+10,20); return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3578: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3581: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3581: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3584: \$? = $ac_status" >&5; } && (exit $ac_status) ; then mird_cv_unaligned_access=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 mird_cv_unaligned_access=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3598: result: $mird_cv_unaligned_access" >&5 echo "${ECHO_T}$mird_cv_unaligned_access" >&6 if test "x$mird_cv_unaligned_access" = "xyes"; then cat >>confdefs.h <<\EOF #define HANDLES_UNALIGNED_ACCESS 1 EOF fi #---- testing if O_APPEND works --------------------------------- echo "$as_me:3609: checking if O_APPEND works" >&5 echo $ECHO_N "checking if O_APPEND works... $ECHO_C" >&6 if test "${mird_cv_working_o_append+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_working_o_append=no; if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3619 "configure" #include "confdefs.h" #include #include #include #include int main() { int fd; fd=open("conftest.tmp",O_CREAT|O_TRUNC|O_APPEND|O_RDWR,0666); write(fd,"hej",3); lseek(fd,0,SEEK_SET); write(fd,"san\n",4); return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3637: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3640: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3640: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3643: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if grep hejsan conftest.tmp >/dev/null 2>&5; then mird_cv_working_o_append=yes; fi else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3657: result: $mird_cv_working_o_append" >&5 echo "${ECHO_T}$mird_cv_working_o_append" >&6 if test "x$mird_cv_working_o_append" = "xyes"; then cat >>confdefs.h <<\EOF #define WORKING_O_APPEND 1 EOF fi #---- testing if O_BINARY works --------------------------------- echo "$as_me:3668: checking if O_BINARY exist" >&5 echo $ECHO_N "checking if O_BINARY exist... $ECHO_C" >&6 if test "${mird_cv_have_o_binary+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_have_o_binary=no; rm conftest.tmp; if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3679 "configure" #include "confdefs.h" #include #include #include #include int main() { int fd; fd=open("conftest.tmp",O_CREAT|O_TRUNC|O_BINARY|O_RDWR,0666); write(fd,"zoo",3); return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3695: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3698: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3698: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3701: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if grep zoo conftest.tmp >/dev/null 2>&5; then mird_cv_have_o_binary=yes; fi else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3715: result: $mird_cv_have_o_binary" >&5 echo "${ECHO_T}$mird_cv_have_o_binary" >&6 if test "x$mird_cv_have_o_binary" = "xyes"; then cat >>confdefs.h <<\EOF #define HAVE_O_BINARY 1 EOF fi #---- testing if ftrunc works --------------------------------- echo "$as_me:3726: checking if ftruncate works" >&5 echo $ECHO_N "checking if ftruncate works... $ECHO_C" >&6 if test "${mird_cv_working_ftruncate+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else mird_cv_working_ftruncate=no; if test "$cross_compiling" = yes; then ? else cat >conftest.$ac_ext <<_ACEOF #line 3736 "configure" #include "confdefs.h" #include #include #include #include int main() { int fd; fd=open("conftest.tmp",O_CREAT|O_TRUNC|O_APPEND|O_RDWR,0666); write(fd,"hejsan",3); lseek(fd,3,SEEK_SET); ftruncate(fd,3); return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:3754: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:3757: \$? = $ac_status" >&5; } && (exit $ac_status) && { (eval echo "$as_me:3757: \"./conftest$ac_exeext\"") >&5 (eval ./conftest$ac_exeext) 2>&5 ac_status=$? echo "$as_me:3760: \$? = $ac_status" >&5; } && (exit $ac_status) ; then if grep -v hejsan conftest.tmp >/dev/null 2>&5 && grep hej conftest.tmp >/dev/null 2>&5 ; then mird_cv_working_ftruncate=yes; fi else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi echo "$as_me:3774: result: $mird_cv_working_ftruncate" >&5 echo "${ECHO_T}$mird_cv_working_ftruncate" >&6 if test "x$mird_cv_working_ftruncate" = "xyes"; then cat >>confdefs.h <<\EOF #define WORKING_FTRUNCATE 1 EOF fi MIRD_BUILDER="`(ls -l \`tty\` || ls -l config.log) | awk '{print $3}'`@`uname -a | awk '{print $2}'`" 2>&5 MIRD_BUILD_TIME="`date`" 2>&5 #---- make stuff ------------------- cat >>confdefs.h <<\EOF #define SYSCALL_STATISTICS 1 EOF UINT32="unsigned $INT32" UINT64="unsigned $INT64" ac_config_files="$ac_config_files Makefile mird.h" cat >confcache <<\_ACEOF # 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, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overriden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # 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 \ "s/'/'\\\\''/g; s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache 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 DEFS=-DHAVE_CONFIG_H # Save into config.log some information that might help in debugging. cat <<_ACEOF >&5 ## ----------------- ## ## Cache variables. ## ## ----------------- ## _ACEOF # 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 \ "s/'/'\\\\''/g; s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } >&5 cat <<_ACEOF >&5 ## ------------ ## ## confdefs.h. ## ## ------------ ## _ACEOF sed '/^$/d' confdefs.h >&5 : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:3906: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<\_ACEOF #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false as_me=`echo "$0" | sed 's,.*/,,'` SHELL=${CONFIG_SHELL-/bin/sh} # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # NLS nuisances. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } # IFS # We need space, tab and new line, in precisely that order. ac_nl=' ' IFS=" $ac_nl" # CDPATH. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } # 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 cat >&5 << EOF ## ----------------------- ## ## Running config.status. ## ## ----------------------- ## This file was extended by $as_me 2.49c, executed with > $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` EOF _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\EOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." EOF cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` shift set dummy "$ac_option" "$ac_optarg" ${1+"$@"} shift ;; -*);; *) # This is not an option, so the user has probably given explicit # arguments. ac_need_defaults=false;; esac case $1 in # Handling of the options. EOF cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:4072: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) shift CONFIG_FILES="$CONFIG_FILES $1" ac_need_defaults=false;; --header | --heade | --head | --hea ) shift CONFIG_HEADERS="$CONFIG_HEADERS $1" ac_need_defaults=false;; # Handling of arguments. 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 'mird.h' ) CONFIG_FILES="$CONFIG_FILES mird.h" ;; 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; # This is an error. -*) { { echo "$as_me:4096: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit; }; } ;; *) { { echo "$as_me:4101: error: invalid argument: $1" >&5 echo "$as_me: error: invalid argument: $1" >&2;} { (exit 1); exit; }; };; esac shift done EOF cat >>$CONFIG_STATUS <<\EOF # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. if $ac_need_defaults; then CONFIG_FILES=${CONFIG_FILES="$config_files"} CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"} fi # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit $?); exit; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. : ${TMPDIR=/tmp} { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=$TMPDIR/cs$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 { (exit 1); exit; } } EOF cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@CFLAGS@,$CFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@FFLAGS@,$FFLAGS,;t t s,@DEFS@,$DEFS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@LIBS@,$LIBS,;t t s,@CC@,$CC,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@OBJEXT@,$OBJEXT,;t t s,@EXEEXT@,$EXEEXT,;t t s,@RANLIB@,$RANLIB,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@CPP@,$CPP,;t t s,@AR@,$AR,;t t s,@SO@,$SO,;t t s,@SOVER@,$SOVER,;t t s,@LD@,$LD,;t t s,@LDSHARED@,$LDSHARED,;t t s,@NOOPTFLAGS@,$NOOPTFLAGS,;t t s,@MIRD_BUILDER@,$MIRD_BUILDER,;t t s,@MIRD_BUILD_TIME@,$MIRD_BUILD_TIME,;t t s,@INT32@,$INT32,;t t s,@INT64@,$INT64,;t t s,@UINT32@,$UINT32,;t t s,@UINT64@,$UINT64,;t t s,@CCFILTER@,$CCFILTER,;t t s,@OFF_T@,$OFF_T,;t t s,@ac_configure_args@,$ac_configure_args,;t t 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_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" EOF cat >>$CONFIG_STATUS <<\EOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) 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. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then { case "$ac_dir" in [\\/]* | ?:[\\/]* ) ac_incr_dir=;; *) ac_incr_dir=.;; esac ac_dummy="$ac_dir" for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir test -d $ac_incr_dir || mkdir $ac_incr_dir done; } 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 if test x"$ac_file" != x-; then { echo "$as_me:4302: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated automatically by config.status. */ configure_input="Generated automatically from `echo $ac_file_in | sed 's,.*/,,'` by configure." # Don't redirect the output to AC_FILE directly: use `mv' so that # updating is atomic, and doesn't need trapping. # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]* | ?:[\\/]*) # Absolute test -f "$f" || { { echo "$as_me:4323: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$ac_given_srcdir/$f"; then # Source tree echo $ac_given_srcdir/$f else # /dev/null tree { { echo "$as_me:4336: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit; }; } fi;; esac done` || { (exit 1); exit; } EOF cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$srcdir,;t t s,@top_srcdir@,$top_srcdir,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done EOF cat >>$CONFIG_STATUS <<\EOF # # CONFIG_HEADER section. # # 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=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:4396: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]* | ?:[\\/]*) # Absolute test -f "$f" || { { echo "$as_me:4407: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$ac_given_srcdir/$f"; then # Source tree echo $ac_given_srcdir/$f else # /dev/null tree { { echo "$as_me:4420: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit; }; } fi;; esac done` || { (exit 1); exit; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in EOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # 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.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\EOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end EOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC_DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # 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.undefs <<\EOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, EOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # egrep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\EOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated automatically by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated automatically by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if cmp -s $ac_file $tmp/config.h 2>/dev/null; then { echo "$as_me:4537: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then { case "$ac_dir" in [\\/]* | ?:[\\/]* ) ac_incr_dir=;; *) ac_incr_dir=.;; esac ac_dummy="$ac_dir" for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir test -d $ac_incr_dir || mkdir $ac_incr_dir done; } fi rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi done EOF cat >>$CONFIG_STATUS <<\EOF exit 0 EOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit; }