meillo@0: #! /bin/sh meillo@0: # Guess values for system-dependent variables and create Makefiles. meillo@0: # Generated by GNU Autoconf 2.59 for masqmail 0.2.21. meillo@0: # meillo@0: # Report bugs to . meillo@0: # meillo@0: # Copyright (C) 2003 Free Software Foundation, Inc. meillo@0: # This configure script is free software; the Free Software Foundation meillo@0: # gives unlimited permission to copy, distribute and modify it. meillo@0: ## --------------------- ## meillo@0: ## M4sh Initialization. ## meillo@0: ## --------------------- ## meillo@0: meillo@0: # Be Bourne compatible meillo@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then meillo@0: emulate sh meillo@0: NULLCMD=: meillo@0: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which meillo@0: # is contrary to our usage. Disable this feature. meillo@0: alias -g '${1+"$@"}'='"$@"' meillo@0: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then meillo@0: set -o posix meillo@0: fi meillo@0: DUALCASE=1; export DUALCASE # for MKS sh meillo@0: meillo@0: # Support unset when possible. meillo@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then meillo@0: as_unset=unset meillo@0: else meillo@0: as_unset=false meillo@0: fi meillo@0: meillo@0: meillo@0: # Work around bugs in pre-3.0 UWIN ksh. meillo@0: $as_unset ENV MAIL MAILPATH meillo@0: PS1='$ ' meillo@0: PS2='> ' meillo@0: PS4='+ ' meillo@0: meillo@0: # NLS nuisances. meillo@0: for as_var in \ meillo@0: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ meillo@0: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ meillo@0: LC_TELEPHONE LC_TIME meillo@0: do meillo@0: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then meillo@0: eval $as_var=C; export $as_var meillo@0: else meillo@0: $as_unset $as_var meillo@0: fi meillo@0: done meillo@0: meillo@0: # Required to use basename. meillo@0: if expr a : '\(a\)' >/dev/null 2>&1; then meillo@0: as_expr=expr meillo@0: else meillo@0: as_expr=false meillo@0: fi meillo@0: meillo@0: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then meillo@0: as_basename=basename meillo@0: else meillo@0: as_basename=false meillo@0: fi meillo@0: meillo@0: meillo@0: # Name of the executable. meillo@0: as_me=`$as_basename "$0" || meillo@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ meillo@0: X"$0" : 'X\(//\)$' \| \ meillo@0: X"$0" : 'X\(/\)$' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X/"$0" | meillo@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } meillo@0: /^X\/\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\/\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: meillo@0: meillo@0: # PATH needs CR, and LINENO needs CR and PATH. meillo@0: # Avoid depending upon Character Ranges. meillo@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' meillo@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' meillo@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS meillo@0: as_cr_digits='0123456789' meillo@0: as_cr_alnum=$as_cr_Letters$as_cr_digits meillo@0: meillo@0: # The user is always right. meillo@0: if test "${PATH_SEPARATOR+set}" != set; then meillo@0: echo "#! /bin/sh" >conf$$.sh meillo@0: echo "exit 0" >>conf$$.sh meillo@0: chmod +x conf$$.sh meillo@0: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then meillo@0: PATH_SEPARATOR=';' meillo@0: else meillo@0: PATH_SEPARATOR=: meillo@0: fi meillo@0: rm -f conf$$.sh meillo@0: fi meillo@0: meillo@0: meillo@0: as_lineno_1=$LINENO meillo@0: as_lineno_2=$LINENO meillo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` meillo@0: test "x$as_lineno_1" != "x$as_lineno_2" && meillo@0: test "x$as_lineno_3" = "x$as_lineno_2" || { meillo@0: # Find who we are. Look in the path if we contain no path at all meillo@0: # relative or not. meillo@0: case $0 in meillo@0: *[\\/]* ) as_myself=$0 ;; meillo@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break meillo@0: done meillo@0: meillo@0: ;; meillo@0: esac meillo@0: # We did not find ourselves, most probably we were run as `sh COMMAND' meillo@0: # in which case we are not to be found in the path. meillo@0: if test "x$as_myself" = x; then meillo@0: as_myself=$0 meillo@0: fi meillo@0: if test ! -f "$as_myself"; then meillo@0: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: case $CONFIG_SHELL in meillo@0: '') meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for as_base in sh bash ksh sh5; do meillo@0: case $as_dir in meillo@0: /*) meillo@0: if ("$as_dir/$as_base" -c ' meillo@0: as_lineno_1=$LINENO meillo@0: as_lineno_2=$LINENO meillo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` meillo@0: test "x$as_lineno_1" != "x$as_lineno_2" && meillo@0: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then meillo@0: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } meillo@0: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } meillo@0: CONFIG_SHELL=$as_dir/$as_base meillo@0: export CONFIG_SHELL meillo@0: exec "$CONFIG_SHELL" "$0" ${1+"$@"} meillo@0: fi;; meillo@0: esac meillo@0: done meillo@0: done meillo@0: ;; meillo@0: esac meillo@0: meillo@0: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO meillo@0: # uniformly replaced by the line number. The first 'sed' inserts a meillo@0: # line-number line before each line; the second 'sed' does the real meillo@0: # work. The second script uses 'N' to pair each line-number line meillo@0: # with the numbered line, and appends trailing '-' during meillo@0: # substitution so that $LINENO is not a special case at line end. meillo@0: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the meillo@0: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) meillo@0: sed '=' <$as_myself | meillo@0: sed ' meillo@0: N meillo@0: s,$,-, meillo@0: : loop meillo@0: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, meillo@0: t loop meillo@0: s,-$,, meillo@0: s,^['$as_cr_digits']*\n,, meillo@0: ' >$as_me.lineno && meillo@0: chmod +x $as_me.lineno || meillo@0: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: meillo@0: # Don't try to exec as it changes $[0], causing all sort of problems meillo@0: # (the dirname of $[0] is not the place where we might find the meillo@0: # original and so on. Autoconf is especially sensible to this). meillo@0: . ./$as_me.lineno meillo@0: # Exit status is that of the last command. meillo@0: exit meillo@0: } meillo@0: meillo@0: meillo@0: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in meillo@0: *c*,-n*) ECHO_N= ECHO_C=' meillo@0: ' ECHO_T=' ' ;; meillo@0: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; meillo@0: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; meillo@0: esac meillo@0: meillo@0: if expr a : '\(a\)' >/dev/null 2>&1; then meillo@0: as_expr=expr meillo@0: else meillo@0: as_expr=false meillo@0: fi meillo@0: meillo@0: rm -f conf$$ conf$$.exe conf$$.file meillo@0: echo >conf$$.file meillo@0: if ln -s conf$$.file conf$$ 2>/dev/null; then meillo@0: # We could just check for DJGPP; but this test a) works b) is more generic meillo@0: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). meillo@0: if test -f conf$$.exe; then meillo@0: # Don't use ln at all; we don't have any links meillo@0: as_ln_s='cp -p' meillo@0: else meillo@0: as_ln_s='ln -s' meillo@0: fi meillo@0: elif ln conf$$.file conf$$ 2>/dev/null; then meillo@0: as_ln_s=ln meillo@0: else meillo@0: as_ln_s='cp -p' meillo@0: fi meillo@0: rm -f conf$$ conf$$.exe conf$$.file meillo@0: meillo@0: if mkdir -p . 2>/dev/null; then meillo@0: as_mkdir_p=: meillo@0: else meillo@0: test -d ./-p && rmdir ./-p meillo@0: as_mkdir_p=false meillo@0: fi meillo@0: meillo@0: as_executable_p="test -f" meillo@0: meillo@0: # Sed expression to map a string onto a valid CPP name. meillo@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" meillo@0: meillo@0: # Sed expression to map a string onto a valid variable name. meillo@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" meillo@0: meillo@0: meillo@0: # IFS meillo@0: # We need space, tab and new line, in precisely that order. meillo@0: as_nl=' meillo@0: ' meillo@0: IFS=" $as_nl" meillo@0: meillo@0: # CDPATH. meillo@0: $as_unset CDPATH meillo@0: meillo@0: meillo@0: # Name of the host. meillo@0: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, meillo@0: # so uname gets run too. meillo@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` meillo@0: meillo@0: exec 6>&1 meillo@0: meillo@0: # meillo@0: # Initializations. meillo@0: # meillo@0: ac_default_prefix=/usr/local meillo@0: ac_config_libobj_dir=. meillo@0: cross_compiling=no meillo@0: subdirs= meillo@0: MFLAGS= meillo@0: MAKEFLAGS= meillo@0: SHELL=${CONFIG_SHELL-/bin/sh} meillo@0: meillo@0: # Maximum number of lines to put in a shell here document. meillo@0: # This variable seems obsolete. It should probably be removed, and meillo@0: # only ac_max_sed_lines should be used. meillo@0: : ${ac_max_here_lines=38} meillo@0: meillo@0: # Identity of this package. meillo@0: PACKAGE_NAME='masqmail' meillo@0: PACKAGE_TARNAME='masqmail' meillo@0: PACKAGE_VERSION='0.2.21' meillo@0: PACKAGE_STRING='masqmail 0.2.21' meillo@0: PACKAGE_BUGREPORT='oku@debian.org' meillo@0: meillo@0: ac_unique_file="src/masqmail.c" meillo@0: ac_default_prefix=/usr meillo@0: # Factoring default headers for most tests. meillo@0: ac_includes_default="\ meillo@0: #include meillo@0: #if HAVE_SYS_TYPES_H meillo@0: # include meillo@0: #endif meillo@0: #if HAVE_SYS_STAT_H meillo@0: # include meillo@0: #endif meillo@0: #if STDC_HEADERS meillo@0: # include meillo@0: # include meillo@0: #else meillo@0: # if HAVE_STDLIB_H meillo@0: # include meillo@0: # endif meillo@0: #endif meillo@0: #if HAVE_STRING_H meillo@0: # if !STDC_HEADERS && HAVE_MEMORY_H meillo@0: # include meillo@0: # endif meillo@0: # include meillo@0: #endif meillo@0: #if HAVE_STRINGS_H meillo@0: # include meillo@0: #endif meillo@0: #if HAVE_INTTYPES_H meillo@0: # include meillo@0: #else meillo@0: # if HAVE_STDINT_H meillo@0: # include meillo@0: # endif meillo@0: #endif meillo@0: #if HAVE_UNISTD_H meillo@0: # include meillo@0: #endif" meillo@0: meillo@0: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB PKG_CONFIG ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS RESOLV_LIBS with_user with_group BASE64_LIBS MD5_LIBS has_ident IDENT_LIBS LOCKFILE_LIBS USE_LIBLOCKFILE with_logdir with_spooldir with_confdir LIBOBJS LTLIBOBJS' meillo@0: ac_subst_files='' meillo@0: meillo@0: # Initialize some variables set by options. meillo@0: ac_init_help= meillo@0: ac_init_version=false meillo@0: # The variables have the same names as the options, with meillo@0: # dashes changed to underlines. meillo@0: cache_file=/dev/null meillo@0: exec_prefix=NONE meillo@0: no_create= meillo@0: no_recursion= meillo@0: prefix=NONE meillo@0: program_prefix=NONE meillo@0: program_suffix=NONE meillo@0: program_transform_name=s,x,x, meillo@0: silent= meillo@0: site= meillo@0: srcdir= meillo@0: verbose= meillo@0: x_includes=NONE meillo@0: x_libraries=NONE meillo@0: meillo@0: # Installation directory options. meillo@0: # These are left unexpanded so users can "make install exec_prefix=/foo" meillo@0: # and all the variables that are supposed to be based on exec_prefix meillo@0: # by default will actually change. meillo@0: # Use braces instead of parens because sh, perl, etc. also accept them. meillo@0: bindir='${exec_prefix}/bin' meillo@0: sbindir='${exec_prefix}/sbin' meillo@0: libexecdir='${exec_prefix}/libexec' meillo@0: datadir='${prefix}/share' meillo@0: sysconfdir='${prefix}/etc' meillo@0: sharedstatedir='${prefix}/com' meillo@0: localstatedir='${prefix}/var' meillo@0: libdir='${exec_prefix}/lib' meillo@0: includedir='${prefix}/include' meillo@0: oldincludedir='/usr/include' meillo@0: infodir='${prefix}/info' meillo@0: mandir='${prefix}/man' meillo@0: meillo@0: ac_prev= meillo@0: for ac_option meillo@0: do meillo@0: # If the previous option needs an argument, assign it. meillo@0: if test -n "$ac_prev"; then meillo@0: eval "$ac_prev=\$ac_option" meillo@0: ac_prev= meillo@0: continue meillo@0: fi meillo@0: meillo@0: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` meillo@0: meillo@0: # Accept the important Cygnus configure options, so we can diagnose typos. meillo@0: meillo@0: case $ac_option in meillo@0: meillo@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) meillo@0: ac_prev=bindir ;; meillo@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) meillo@0: bindir=$ac_optarg ;; meillo@0: meillo@0: -build | --build | --buil | --bui | --bu) meillo@0: ac_prev=build_alias ;; meillo@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) meillo@0: build_alias=$ac_optarg ;; meillo@0: meillo@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ meillo@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) meillo@0: ac_prev=cache_file ;; meillo@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ meillo@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) meillo@0: cache_file=$ac_optarg ;; meillo@0: meillo@0: --config-cache | -C) meillo@0: cache_file=config.cache ;; meillo@0: meillo@0: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) meillo@0: ac_prev=datadir ;; meillo@0: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ meillo@0: | --da=*) meillo@0: datadir=$ac_optarg ;; meillo@0: meillo@0: -disable-* | --disable-*) meillo@0: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` meillo@0: # Reject names that are not valid shell variable names. meillo@0: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && meillo@0: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ac_feature=`echo $ac_feature | sed 's/-/_/g'` meillo@0: eval "enable_$ac_feature=no" ;; meillo@0: meillo@0: -enable-* | --enable-*) meillo@0: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` meillo@0: # Reject names that are not valid shell variable names. meillo@0: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && meillo@0: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ac_feature=`echo $ac_feature | sed 's/-/_/g'` meillo@0: case $ac_option in meillo@0: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; meillo@0: *) ac_optarg=yes ;; meillo@0: esac meillo@0: eval "enable_$ac_feature='$ac_optarg'" ;; meillo@0: meillo@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ meillo@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ meillo@0: | --exec | --exe | --ex) meillo@0: ac_prev=exec_prefix ;; meillo@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ meillo@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ meillo@0: | --exec=* | --exe=* | --ex=*) meillo@0: exec_prefix=$ac_optarg ;; meillo@0: meillo@0: -gas | --gas | --ga | --g) meillo@0: # Obsolete; use --with-gas. meillo@0: with_gas=yes ;; meillo@0: meillo@0: -help | --help | --hel | --he | -h) meillo@0: ac_init_help=long ;; meillo@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) meillo@0: ac_init_help=recursive ;; meillo@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) meillo@0: ac_init_help=short ;; meillo@0: meillo@0: -host | --host | --hos | --ho) meillo@0: ac_prev=host_alias ;; meillo@0: -host=* | --host=* | --hos=* | --ho=*) meillo@0: host_alias=$ac_optarg ;; meillo@0: meillo@0: -includedir | --includedir | --includedi | --included | --include \ meillo@0: | --includ | --inclu | --incl | --inc) meillo@0: ac_prev=includedir ;; meillo@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ meillo@0: | --includ=* | --inclu=* | --incl=* | --inc=*) meillo@0: includedir=$ac_optarg ;; meillo@0: meillo@0: -infodir | --infodir | --infodi | --infod | --info | --inf) meillo@0: ac_prev=infodir ;; meillo@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) meillo@0: infodir=$ac_optarg ;; meillo@0: meillo@0: -libdir | --libdir | --libdi | --libd) meillo@0: ac_prev=libdir ;; meillo@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) meillo@0: libdir=$ac_optarg ;; meillo@0: meillo@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ meillo@0: | --libexe | --libex | --libe) meillo@0: ac_prev=libexecdir ;; meillo@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ meillo@0: | --libexe=* | --libex=* | --libe=*) meillo@0: libexecdir=$ac_optarg ;; meillo@0: meillo@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ meillo@0: | --localstate | --localstat | --localsta | --localst \ meillo@0: | --locals | --local | --loca | --loc | --lo) meillo@0: ac_prev=localstatedir ;; meillo@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ meillo@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ meillo@0: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) meillo@0: localstatedir=$ac_optarg ;; meillo@0: meillo@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) meillo@0: ac_prev=mandir ;; meillo@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) meillo@0: mandir=$ac_optarg ;; meillo@0: meillo@0: -nfp | --nfp | --nf) meillo@0: # Obsolete; use --without-fp. meillo@0: with_fp=no ;; meillo@0: meillo@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ meillo@0: | --no-cr | --no-c | -n) meillo@0: no_create=yes ;; meillo@0: meillo@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ meillo@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) meillo@0: no_recursion=yes ;; meillo@0: meillo@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ meillo@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ meillo@0: | --oldin | --oldi | --old | --ol | --o) meillo@0: ac_prev=oldincludedir ;; meillo@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ meillo@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ meillo@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) meillo@0: oldincludedir=$ac_optarg ;; meillo@0: meillo@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) meillo@0: ac_prev=prefix ;; meillo@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) meillo@0: prefix=$ac_optarg ;; meillo@0: meillo@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ meillo@0: | --program-pre | --program-pr | --program-p) meillo@0: ac_prev=program_prefix ;; meillo@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ meillo@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) meillo@0: program_prefix=$ac_optarg ;; meillo@0: meillo@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ meillo@0: | --program-suf | --program-su | --program-s) meillo@0: ac_prev=program_suffix ;; meillo@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ meillo@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) meillo@0: program_suffix=$ac_optarg ;; meillo@0: meillo@0: -program-transform-name | --program-transform-name \ meillo@0: | --program-transform-nam | --program-transform-na \ meillo@0: | --program-transform-n | --program-transform- \ meillo@0: | --program-transform | --program-transfor \ meillo@0: | --program-transfo | --program-transf \ meillo@0: | --program-trans | --program-tran \ meillo@0: | --progr-tra | --program-tr | --program-t) meillo@0: ac_prev=program_transform_name ;; meillo@0: -program-transform-name=* | --program-transform-name=* \ meillo@0: | --program-transform-nam=* | --program-transform-na=* \ meillo@0: | --program-transform-n=* | --program-transform-=* \ meillo@0: | --program-transform=* | --program-transfor=* \ meillo@0: | --program-transfo=* | --program-transf=* \ meillo@0: | --program-trans=* | --program-tran=* \ meillo@0: | --progr-tra=* | --program-tr=* | --program-t=*) meillo@0: program_transform_name=$ac_optarg ;; meillo@0: meillo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ meillo@0: | -silent | --silent | --silen | --sile | --sil) meillo@0: silent=yes ;; meillo@0: meillo@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) meillo@0: ac_prev=sbindir ;; meillo@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ meillo@0: | --sbi=* | --sb=*) meillo@0: sbindir=$ac_optarg ;; meillo@0: meillo@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ meillo@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ meillo@0: | --sharedst | --shareds | --shared | --share | --shar \ meillo@0: | --sha | --sh) meillo@0: ac_prev=sharedstatedir ;; meillo@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ meillo@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ meillo@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ meillo@0: | --sha=* | --sh=*) meillo@0: sharedstatedir=$ac_optarg ;; meillo@0: meillo@0: -site | --site | --sit) meillo@0: ac_prev=site ;; meillo@0: -site=* | --site=* | --sit=*) meillo@0: site=$ac_optarg ;; meillo@0: meillo@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) meillo@0: ac_prev=srcdir ;; meillo@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) meillo@0: srcdir=$ac_optarg ;; meillo@0: meillo@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ meillo@0: | --syscon | --sysco | --sysc | --sys | --sy) meillo@0: ac_prev=sysconfdir ;; meillo@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ meillo@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) meillo@0: sysconfdir=$ac_optarg ;; meillo@0: meillo@0: -target | --target | --targe | --targ | --tar | --ta | --t) meillo@0: ac_prev=target_alias ;; meillo@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) meillo@0: target_alias=$ac_optarg ;; meillo@0: meillo@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) meillo@0: verbose=yes ;; meillo@0: meillo@0: -version | --version | --versio | --versi | --vers | -V) meillo@0: ac_init_version=: ;; meillo@0: meillo@0: -with-* | --with-*) meillo@0: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` meillo@0: # Reject names that are not valid shell variable names. meillo@0: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && meillo@0: { echo "$as_me: error: invalid package name: $ac_package" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ac_package=`echo $ac_package| sed 's/-/_/g'` meillo@0: case $ac_option in meillo@0: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; meillo@0: *) ac_optarg=yes ;; meillo@0: esac meillo@0: eval "with_$ac_package='$ac_optarg'" ;; meillo@0: meillo@0: -without-* | --without-*) meillo@0: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` meillo@0: # Reject names that are not valid shell variable names. meillo@0: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && meillo@0: { echo "$as_me: error: invalid package name: $ac_package" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ac_package=`echo $ac_package | sed 's/-/_/g'` meillo@0: eval "with_$ac_package=no" ;; meillo@0: meillo@0: --x) meillo@0: # Obsolete; use --with-x. meillo@0: with_x=yes ;; meillo@0: meillo@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ meillo@0: | --x-incl | --x-inc | --x-in | --x-i) meillo@0: ac_prev=x_includes ;; meillo@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ meillo@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) meillo@0: x_includes=$ac_optarg ;; meillo@0: meillo@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ meillo@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) meillo@0: ac_prev=x_libraries ;; meillo@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ meillo@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) meillo@0: x_libraries=$ac_optarg ;; meillo@0: meillo@0: -*) { echo "$as_me: error: unrecognized option: $ac_option meillo@0: Try \`$0 --help' for more information." >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ;; meillo@0: meillo@0: *=*) meillo@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` meillo@0: # Reject names that are not valid shell variable names. meillo@0: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && meillo@0: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` meillo@0: eval "$ac_envvar='$ac_optarg'" meillo@0: export $ac_envvar ;; meillo@0: meillo@0: *) meillo@0: # FIXME: should be removed in autoconf 3.0. meillo@0: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 meillo@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && meillo@0: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 meillo@0: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} meillo@0: ;; meillo@0: meillo@0: esac meillo@0: done meillo@0: meillo@0: if test -n "$ac_prev"; then meillo@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` meillo@0: { echo "$as_me: error: missing argument to $ac_option" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: # Be sure to have absolute paths. meillo@0: for ac_var in exec_prefix prefix meillo@0: do meillo@0: eval ac_val=$`echo $ac_var` meillo@0: case $ac_val in meillo@0: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; meillo@0: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 meillo@0: { (exit 1); exit 1; }; };; meillo@0: esac meillo@0: done meillo@0: meillo@0: # Be sure to have absolute paths. meillo@0: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ meillo@0: localstatedir libdir includedir oldincludedir infodir mandir meillo@0: do meillo@0: eval ac_val=$`echo $ac_var` meillo@0: case $ac_val in meillo@0: [\\/$]* | ?:[\\/]* ) ;; meillo@0: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 meillo@0: { (exit 1); exit 1; }; };; meillo@0: esac meillo@0: done meillo@0: meillo@0: # There might be people who depend on the old broken behavior: `$host' meillo@0: # used to hold the argument of --host etc. meillo@0: # FIXME: To remove some day. meillo@0: build=$build_alias meillo@0: host=$host_alias meillo@0: target=$target_alias meillo@0: meillo@0: # FIXME: To remove some day. meillo@0: if test "x$host_alias" != x; then meillo@0: if test "x$build_alias" = x; then meillo@0: cross_compiling=maybe meillo@0: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. meillo@0: If a cross compiler is detected then cross compile mode will be used." >&2 meillo@0: elif test "x$build_alias" != "x$host_alias"; then meillo@0: cross_compiling=yes meillo@0: fi meillo@0: fi meillo@0: meillo@0: ac_tool_prefix= meillo@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- meillo@0: meillo@0: test "$silent" = yes && exec 6>/dev/null meillo@0: meillo@0: meillo@0: # Find the source files, if location was not specified. meillo@0: if test -z "$srcdir"; then meillo@0: ac_srcdir_defaulted=yes meillo@0: # Try the directory containing this script, then its parent. meillo@0: ac_confdir=`(dirname "$0") 2>/dev/null || meillo@0: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$0" : 'X\(//\)[^/]' \| \ meillo@0: X"$0" : 'X\(//\)$' \| \ meillo@0: X"$0" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$0" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: srcdir=$ac_confdir meillo@0: if test ! -r $srcdir/$ac_unique_file; then meillo@0: srcdir=.. meillo@0: fi meillo@0: else meillo@0: ac_srcdir_defaulted=no meillo@0: fi meillo@0: if test ! -r $srcdir/$ac_unique_file; then meillo@0: if test "$ac_srcdir_defaulted" = yes; then meillo@0: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: else meillo@0: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: fi meillo@0: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || meillo@0: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 meillo@0: { (exit 1); exit 1; }; } meillo@0: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` meillo@0: ac_env_build_alias_set=${build_alias+set} meillo@0: ac_env_build_alias_value=$build_alias meillo@0: ac_cv_env_build_alias_set=${build_alias+set} meillo@0: ac_cv_env_build_alias_value=$build_alias meillo@0: ac_env_host_alias_set=${host_alias+set} meillo@0: ac_env_host_alias_value=$host_alias meillo@0: ac_cv_env_host_alias_set=${host_alias+set} meillo@0: ac_cv_env_host_alias_value=$host_alias meillo@0: ac_env_target_alias_set=${target_alias+set} meillo@0: ac_env_target_alias_value=$target_alias meillo@0: ac_cv_env_target_alias_set=${target_alias+set} meillo@0: ac_cv_env_target_alias_value=$target_alias meillo@0: ac_env_CC_set=${CC+set} meillo@0: ac_env_CC_value=$CC meillo@0: ac_cv_env_CC_set=${CC+set} meillo@0: ac_cv_env_CC_value=$CC meillo@0: ac_env_CFLAGS_set=${CFLAGS+set} meillo@0: ac_env_CFLAGS_value=$CFLAGS meillo@0: ac_cv_env_CFLAGS_set=${CFLAGS+set} meillo@0: ac_cv_env_CFLAGS_value=$CFLAGS meillo@0: ac_env_LDFLAGS_set=${LDFLAGS+set} meillo@0: ac_env_LDFLAGS_value=$LDFLAGS meillo@0: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} meillo@0: ac_cv_env_LDFLAGS_value=$LDFLAGS meillo@0: ac_env_CPPFLAGS_set=${CPPFLAGS+set} meillo@0: ac_env_CPPFLAGS_value=$CPPFLAGS meillo@0: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} meillo@0: ac_cv_env_CPPFLAGS_value=$CPPFLAGS meillo@0: ac_env_CPP_set=${CPP+set} meillo@0: ac_env_CPP_value=$CPP meillo@0: ac_cv_env_CPP_set=${CPP+set} meillo@0: ac_cv_env_CPP_value=$CPP meillo@0: ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} meillo@0: ac_env_PKG_CONFIG_value=$PKG_CONFIG meillo@0: ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} meillo@0: ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG meillo@0: ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set} meillo@0: ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS meillo@0: ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set} meillo@0: ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS meillo@0: ac_env_GLIB_LIBS_set=${GLIB_LIBS+set} meillo@0: ac_env_GLIB_LIBS_value=$GLIB_LIBS meillo@0: ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set} meillo@0: ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS meillo@0: meillo@0: # meillo@0: # Report the --help message. meillo@0: # meillo@0: if test "$ac_init_help" = "long"; then meillo@0: # Omit some internal or obsolete options to make the list less imposing. meillo@0: # This message is too long to be a string in the A/UX 3.1 sh. meillo@0: cat <<_ACEOF meillo@0: \`configure' configures masqmail 0.2.21 to adapt to many kinds of systems. meillo@0: meillo@0: Usage: $0 [OPTION]... [VAR=VALUE]... meillo@0: meillo@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as meillo@0: VAR=VALUE. See below for descriptions of some of the useful variables. meillo@0: meillo@0: Defaults for the options are specified in brackets. meillo@0: meillo@0: Configuration: meillo@0: -h, --help display this help and exit meillo@0: --help=short display options specific to this package meillo@0: --help=recursive display the short help of all the included packages meillo@0: -V, --version display version information and exit meillo@0: -q, --quiet, --silent do not print \`checking...' messages meillo@0: --cache-file=FILE cache test results in FILE [disabled] meillo@0: -C, --config-cache alias for \`--cache-file=config.cache' meillo@0: -n, --no-create do not create output files meillo@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: cat <<_ACEOF meillo@0: Installation directories: meillo@0: --prefix=PREFIX install architecture-independent files in PREFIX meillo@0: [$ac_default_prefix] meillo@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX meillo@0: [PREFIX] meillo@0: meillo@0: By default, \`make install' will install all the files in meillo@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify meillo@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', meillo@0: for instance \`--prefix=\$HOME'. meillo@0: meillo@0: For better control, use the options below. meillo@0: meillo@0: Fine tuning of the installation directories: meillo@0: --bindir=DIR user executables [EPREFIX/bin] meillo@0: --sbindir=DIR system admin executables [EPREFIX/sbin] meillo@0: --libexecdir=DIR program executables [EPREFIX/libexec] meillo@0: --datadir=DIR read-only architecture-independent data [PREFIX/share] meillo@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] meillo@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] meillo@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] meillo@0: --libdir=DIR object code libraries [EPREFIX/lib] meillo@0: --includedir=DIR C header files [PREFIX/include] meillo@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] meillo@0: --infodir=DIR info documentation [PREFIX/info] meillo@0: --mandir=DIR man documentation [PREFIX/man] meillo@0: _ACEOF meillo@0: meillo@0: cat <<\_ACEOF meillo@0: meillo@0: Program names: meillo@0: --program-prefix=PREFIX prepend PREFIX to installed program names meillo@0: --program-suffix=SUFFIX append SUFFIX to installed program names meillo@0: --program-transform-name=PROGRAM run sed PROGRAM on installed program names meillo@0: _ACEOF meillo@0: fi meillo@0: meillo@0: if test -n "$ac_init_help"; then meillo@0: case $ac_init_help in meillo@0: short | recursive ) echo "Configuration of masqmail 0.2.21:";; meillo@0: esac meillo@0: cat <<\_ACEOF meillo@0: meillo@0: Optional Features: meillo@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) meillo@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] meillo@0: --disable-dependency-tracking Speeds up one-time builds meillo@0: --enable-dependency-tracking Do not reject slow dependency extractors meillo@0: --disable-resolver disable resolver support meillo@0: --disable-debug disable debugging meillo@0: --disable-smtp-server disable smtp server support meillo@0: --disable-pop3 disable pop3 support meillo@0: --enable-auth enable AUTH (RFC 2554) client support meillo@0: --enable-maildir enable qmail style maildir support meillo@0: --enable-ident enable ident (RFC 1413) support meillo@0: --enable-mserver enable mserver support meillo@0: meillo@0: Optional Packages: meillo@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] meillo@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) meillo@0: --with-user=USER set user mail meillo@0: --with-group=GROUP set group trusted meillo@0: --with-glib-static=path link glib statically (path mandatory!) meillo@0: --with-libcrypto use libcrypto meillo@0: --with-liblockfile use liblock (for Debian) meillo@0: --with-logdir=DIR set log directory /var/masqmail meillo@0: --with-spooldir=DIR set spool directory /var/spool/masqmail meillo@0: --with-confdir directory for configuration /etc/masqmail meillo@0: meillo@0: Some influential environment variables: meillo@0: CC C compiler command meillo@0: CFLAGS C compiler flags meillo@0: LDFLAGS linker flags, e.g. -L if you have libraries in a meillo@0: nonstandard directory meillo@0: CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have meillo@0: headers in a nonstandard directory meillo@0: CPP C preprocessor meillo@0: PKG_CONFIG path to pkg-config utility meillo@0: GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config meillo@0: GLIB_LIBS linker flags for GLIB, overriding pkg-config meillo@0: meillo@0: Use these variables to override the choices made by `configure' or to help meillo@0: it to find libraries and programs with nonstandard names/locations. meillo@0: meillo@0: Report bugs to . meillo@0: _ACEOF meillo@0: fi meillo@0: meillo@0: if test "$ac_init_help" = "recursive"; then meillo@0: # If there are subdirs, report their specific --help. meillo@0: ac_popdir=`pwd` meillo@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue meillo@0: test -d $ac_dir || continue meillo@0: ac_builddir=. meillo@0: meillo@0: if test "$ac_dir" != .; then meillo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` meillo@0: # A "../" for each directory in $ac_dir_suffix. meillo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` meillo@0: else meillo@0: ac_dir_suffix= ac_top_builddir= meillo@0: fi meillo@0: meillo@0: case $srcdir in meillo@0: .) # No --srcdir option. We are building in place. meillo@0: ac_srcdir=. meillo@0: if test -z "$ac_top_builddir"; then meillo@0: ac_top_srcdir=. meillo@0: else meillo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` meillo@0: fi ;; meillo@0: [\\/]* | ?:[\\/]* ) # Absolute path. meillo@0: ac_srcdir=$srcdir$ac_dir_suffix; meillo@0: ac_top_srcdir=$srcdir ;; meillo@0: *) # Relative path. meillo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix meillo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; meillo@0: esac meillo@0: meillo@0: # Do not use `cd foo && pwd` to compute absolute paths, because meillo@0: # the directories may not exist. meillo@0: case `pwd` in meillo@0: .) ac_abs_builddir="$ac_dir";; meillo@0: *) meillo@0: case "$ac_dir" in meillo@0: .) ac_abs_builddir=`pwd`;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; meillo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) meillo@0: case ${ac_top_builddir}. in meillo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) meillo@0: case $ac_srcdir in meillo@0: .) ac_abs_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) meillo@0: case $ac_top_srcdir in meillo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: meillo@0: cd $ac_dir meillo@0: # Check for guested configure; otherwise get Cygnus style configure. meillo@0: if test -f $ac_srcdir/configure.gnu; then meillo@0: echo meillo@0: $SHELL $ac_srcdir/configure.gnu --help=recursive meillo@0: elif test -f $ac_srcdir/configure; then meillo@0: echo meillo@0: $SHELL $ac_srcdir/configure --help=recursive meillo@0: elif test -f $ac_srcdir/configure.ac || meillo@0: test -f $ac_srcdir/configure.in; then meillo@0: echo meillo@0: $ac_configure --help meillo@0: else meillo@0: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 meillo@0: fi meillo@0: cd "$ac_popdir" meillo@0: done meillo@0: fi meillo@0: meillo@0: test -n "$ac_init_help" && exit 0 meillo@0: if $ac_init_version; then meillo@0: cat <<\_ACEOF meillo@0: masqmail configure 0.2.21 meillo@0: generated by GNU Autoconf 2.59 meillo@0: meillo@0: Copyright (C) 2003 Free Software Foundation, Inc. meillo@0: This configure script is free software; the Free Software Foundation meillo@0: gives unlimited permission to copy, distribute and modify it. meillo@0: _ACEOF meillo@0: exit 0 meillo@0: fi meillo@0: exec 5>config.log meillo@0: cat >&5 <<_ACEOF meillo@0: This file contains any messages produced by compilers while meillo@0: running configure, to aid debugging if configure makes a mistake. meillo@0: meillo@0: It was created by masqmail $as_me 0.2.21, which was meillo@0: generated by GNU Autoconf 2.59. Invocation command line was meillo@0: meillo@0: $ $0 $@ meillo@0: meillo@0: _ACEOF meillo@0: { meillo@0: cat <<_ASUNAME meillo@0: ## --------- ## meillo@0: ## Platform. ## meillo@0: ## --------- ## meillo@0: meillo@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` meillo@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` meillo@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` meillo@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` meillo@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` meillo@0: meillo@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` meillo@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` meillo@0: meillo@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` meillo@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` meillo@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` meillo@0: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` meillo@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` meillo@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` meillo@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` meillo@0: meillo@0: _ASUNAME meillo@0: meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: echo "PATH: $as_dir" meillo@0: done meillo@0: meillo@0: } >&5 meillo@0: meillo@0: cat >&5 <<_ACEOF meillo@0: meillo@0: meillo@0: ## ----------- ## meillo@0: ## Core tests. ## meillo@0: ## ----------- ## meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: # Keep a trace of the command line. meillo@0: # Strip out --no-create and --no-recursion so they do not pile up. meillo@0: # Strip out --silent because we don't want to record it for future runs. meillo@0: # Also quote any args containing shell meta-characters. meillo@0: # Make two passes to allow for proper duplicate-argument suppression. meillo@0: ac_configure_args= meillo@0: ac_configure_args0= meillo@0: ac_configure_args1= meillo@0: ac_sep= meillo@0: ac_must_keep_next=false meillo@0: for ac_pass in 1 2 meillo@0: do meillo@0: for ac_arg meillo@0: do meillo@0: case $ac_arg in meillo@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; meillo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ meillo@0: | -silent | --silent | --silen | --sile | --sil) meillo@0: continue ;; meillo@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) meillo@0: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; meillo@0: esac meillo@0: case $ac_pass in meillo@0: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; meillo@0: 2) meillo@0: ac_configure_args1="$ac_configure_args1 '$ac_arg'" meillo@0: if test $ac_must_keep_next = true; then meillo@0: ac_must_keep_next=false # Got value, back to normal. meillo@0: else meillo@0: case $ac_arg in meillo@0: *=* | --config-cache | -C | -disable-* | --disable-* \ meillo@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ meillo@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ meillo@0: | -with-* | --with-* | -without-* | --without-* | --x) meillo@0: case "$ac_configure_args0 " in meillo@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; meillo@0: esac meillo@0: ;; meillo@0: -* ) ac_must_keep_next=true ;; meillo@0: esac meillo@0: fi meillo@0: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" meillo@0: # Get rid of the leading space. meillo@0: ac_sep=" " meillo@0: ;; meillo@0: esac meillo@0: done meillo@0: done meillo@0: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } meillo@0: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } meillo@0: meillo@0: # When interrupted or exit'd, cleanup temporary files, and complete meillo@0: # config.log. We remove comments because anyway the quotes in there meillo@0: # would cause problems or look ugly. meillo@0: # WARNING: Be sure not to use single quotes in there, as some shells, meillo@0: # such as our DU 5.0 friend, will then `close' the trap. meillo@0: trap 'exit_status=$? meillo@0: # Save into config.log some information that might help in debugging. meillo@0: { meillo@0: echo meillo@0: meillo@0: cat <<\_ASBOX meillo@0: ## ---------------- ## meillo@0: ## Cache variables. ## meillo@0: ## ---------------- ## meillo@0: _ASBOX meillo@0: echo meillo@0: # The following way of writing the cache mishandles newlines in values, meillo@0: { meillo@0: (set) 2>&1 | meillo@0: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in meillo@0: *ac_space=\ *) meillo@0: sed -n \ meillo@0: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; meillo@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" meillo@0: ;; meillo@0: *) meillo@0: sed -n \ meillo@0: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" meillo@0: ;; meillo@0: esac; meillo@0: } meillo@0: echo meillo@0: meillo@0: cat <<\_ASBOX meillo@0: ## ----------------- ## meillo@0: ## Output variables. ## meillo@0: ## ----------------- ## meillo@0: _ASBOX meillo@0: echo meillo@0: for ac_var in $ac_subst_vars meillo@0: do meillo@0: eval ac_val=$`echo $ac_var` meillo@0: echo "$ac_var='"'"'$ac_val'"'"'" meillo@0: done | sort meillo@0: echo meillo@0: meillo@0: if test -n "$ac_subst_files"; then meillo@0: cat <<\_ASBOX meillo@0: ## ------------- ## meillo@0: ## Output files. ## meillo@0: ## ------------- ## meillo@0: _ASBOX meillo@0: echo meillo@0: for ac_var in $ac_subst_files meillo@0: do meillo@0: eval ac_val=$`echo $ac_var` meillo@0: echo "$ac_var='"'"'$ac_val'"'"'" meillo@0: done | sort meillo@0: echo meillo@0: fi meillo@0: meillo@0: if test -s confdefs.h; then meillo@0: cat <<\_ASBOX meillo@0: ## ----------- ## meillo@0: ## confdefs.h. ## meillo@0: ## ----------- ## meillo@0: _ASBOX meillo@0: echo meillo@0: sed "/^$/d" confdefs.h | sort meillo@0: echo meillo@0: fi meillo@0: test "$ac_signal" != 0 && meillo@0: echo "$as_me: caught signal $ac_signal" meillo@0: echo "$as_me: exit $exit_status" meillo@0: } >&5 meillo@0: rm -f core *.core && meillo@0: rm -rf conftest* confdefs* conf$$* $ac_clean_files && meillo@0: exit $exit_status meillo@0: ' 0 meillo@0: for ac_signal in 1 2 13 15; do meillo@0: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal meillo@0: done meillo@0: ac_signal=0 meillo@0: meillo@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. meillo@0: rm -rf conftest* confdefs.h meillo@0: # AIX cpp loses on an empty file, so make sure it contains at least a newline. meillo@0: echo >confdefs.h meillo@0: meillo@0: # Predefined preprocessor variables. meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE_NAME "$PACKAGE_NAME" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE_STRING "$PACKAGE_STRING" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: # Let the site file select an alternate cache file if it wants to. meillo@0: # Prefer explicitly selected file to automatically selected ones. meillo@0: if test -z "$CONFIG_SITE"; then meillo@0: if test "x$prefix" != xNONE; then meillo@0: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" meillo@0: else meillo@0: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" meillo@0: fi meillo@0: fi meillo@0: for ac_site_file in $CONFIG_SITE; do meillo@0: if test -r "$ac_site_file"; then meillo@0: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 meillo@0: echo "$as_me: loading site script $ac_site_file" >&6;} meillo@0: sed 's/^/| /' "$ac_site_file" >&5 meillo@0: . "$ac_site_file" meillo@0: fi meillo@0: done meillo@0: meillo@0: if test -r "$cache_file"; then meillo@0: # Some versions of bash will fail to source /dev/null (special meillo@0: # files actually), so we avoid doing that. meillo@0: if test -f "$cache_file"; then meillo@0: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 meillo@0: echo "$as_me: loading cache $cache_file" >&6;} meillo@0: case $cache_file in meillo@0: [\\/]* | ?:[\\/]* ) . $cache_file;; meillo@0: *) . ./$cache_file;; meillo@0: esac meillo@0: fi meillo@0: else meillo@0: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 meillo@0: echo "$as_me: creating cache $cache_file" >&6;} meillo@0: >$cache_file meillo@0: fi meillo@0: meillo@0: # Check that the precious variables saved in the cache have kept the same meillo@0: # value. meillo@0: ac_cache_corrupted=false meillo@0: for ac_var in `(set) 2>&1 | meillo@0: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do meillo@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set meillo@0: eval ac_new_set=\$ac_env_${ac_var}_set meillo@0: eval ac_old_val="\$ac_cv_env_${ac_var}_value" meillo@0: eval ac_new_val="\$ac_env_${ac_var}_value" meillo@0: case $ac_old_set,$ac_new_set in meillo@0: set,) meillo@0: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 meillo@0: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} meillo@0: ac_cache_corrupted=: ;; meillo@0: ,set) meillo@0: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 meillo@0: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} meillo@0: ac_cache_corrupted=: ;; meillo@0: ,);; meillo@0: *) meillo@0: if test "x$ac_old_val" != "x$ac_new_val"; then meillo@0: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 meillo@0: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} meillo@0: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 meillo@0: echo "$as_me: former value: $ac_old_val" >&2;} meillo@0: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 meillo@0: echo "$as_me: current value: $ac_new_val" >&2;} meillo@0: ac_cache_corrupted=: meillo@0: fi;; meillo@0: esac meillo@0: # Pass precious variables to config.status. meillo@0: if test "$ac_new_set" = set; then meillo@0: case $ac_new_val in meillo@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) meillo@0: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; meillo@0: *) ac_arg=$ac_var=$ac_new_val ;; meillo@0: esac meillo@0: case " $ac_configure_args " in meillo@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. meillo@0: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; meillo@0: esac meillo@0: fi meillo@0: done meillo@0: if $ac_cache_corrupted; then meillo@0: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 meillo@0: echo "$as_me: error: changes in the environment can compromise the build" >&2;} meillo@0: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 meillo@0: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: ac_ext=c meillo@0: ac_cpp='$CPP $CPPFLAGS' meillo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' meillo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' meillo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: ac_config_headers="$ac_config_headers config.h" meillo@0: meillo@0: am__api_version="1.7" meillo@0: ac_aux_dir= meillo@0: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do meillo@0: if test -f $ac_dir/install-sh; then meillo@0: ac_aux_dir=$ac_dir meillo@0: ac_install_sh="$ac_aux_dir/install-sh -c" meillo@0: break meillo@0: elif test -f $ac_dir/install.sh; then meillo@0: ac_aux_dir=$ac_dir meillo@0: ac_install_sh="$ac_aux_dir/install.sh -c" meillo@0: break meillo@0: elif test -f $ac_dir/shtool; then meillo@0: ac_aux_dir=$ac_dir meillo@0: ac_install_sh="$ac_aux_dir/shtool install -c" meillo@0: break meillo@0: fi meillo@0: done meillo@0: if test -z "$ac_aux_dir"; then meillo@0: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 meillo@0: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" meillo@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" meillo@0: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. meillo@0: meillo@0: # Find a good install program. We prefer a C program (faster), meillo@0: # so one script is as good as another. But avoid the broken or meillo@0: # incompatible versions: meillo@0: # SysV /etc/install, /usr/sbin/install meillo@0: # SunOS /usr/etc/install meillo@0: # IRIX /sbin/install meillo@0: # AIX /bin/install meillo@0: # AmigaOS /C/install, which installs bootblocks on floppy discs meillo@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag meillo@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args meillo@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" meillo@0: # OS/2's system install, which has a completely different semantic meillo@0: # ./install, which can be erroneously created by make from ./install.sh. meillo@0: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 meillo@0: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 meillo@0: if test -z "$INSTALL"; then meillo@0: if test "${ac_cv_path_install+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: # Account for people who put trailing slashes in PATH elements. meillo@0: case $as_dir/ in meillo@0: ./ | .// | /cC/* | \ meillo@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ meillo@0: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ meillo@0: /usr/ucb/* ) ;; meillo@0: *) meillo@0: # OSF1 and SCO ODT 3.0 have their own names for install. meillo@0: # Don't use installbsd from OSF since it installs stuff as root meillo@0: # by default. meillo@0: for ac_prog in ginstall scoinst install; do meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then meillo@0: if test $ac_prog = install && meillo@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then meillo@0: # AIX install. It has an incompatible calling convention. meillo@0: : meillo@0: elif test $ac_prog = install && meillo@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then meillo@0: # program-specific install script used by HP pwplus--don't use. meillo@0: : meillo@0: else meillo@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" meillo@0: break 3 meillo@0: fi meillo@0: fi meillo@0: done meillo@0: done meillo@0: ;; meillo@0: esac meillo@0: done meillo@0: meillo@0: meillo@0: fi meillo@0: if test "${ac_cv_path_install+set}" = set; then meillo@0: INSTALL=$ac_cv_path_install meillo@0: else meillo@0: # As a last resort, use the slow shell script. We don't cache a meillo@0: # path for INSTALL within a source directory, because that will meillo@0: # break other packages using the cache if that directory is meillo@0: # removed, or if the path is relative. meillo@0: INSTALL=$ac_install_sh meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $INSTALL" >&5 meillo@0: echo "${ECHO_T}$INSTALL" >&6 meillo@0: meillo@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. meillo@0: # It thinks the first close brace ends the variable substitution. meillo@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' meillo@0: meillo@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' meillo@0: meillo@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' meillo@0: meillo@0: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 meillo@0: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 meillo@0: # Just in case meillo@0: sleep 1 meillo@0: echo timestamp > conftest.file meillo@0: # Do `set' in a subshell so we don't clobber the current shell's meillo@0: # arguments. Must try -L first in case configure is actually a meillo@0: # symlink; some systems play weird games with the mod time of symlinks meillo@0: # (eg FreeBSD returns the mod time of the symlink's containing meillo@0: # directory). meillo@0: if ( meillo@0: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` meillo@0: if test "$*" = "X"; then meillo@0: # -L didn't work. meillo@0: set X `ls -t $srcdir/configure conftest.file` meillo@0: fi meillo@0: rm -f conftest.file meillo@0: if test "$*" != "X $srcdir/configure conftest.file" \ meillo@0: && test "$*" != "X conftest.file $srcdir/configure"; then meillo@0: meillo@0: # If neither matched, then we have a broken ls. This can happen meillo@0: # if, for instance, CONFIG_SHELL is bash and it inherits a meillo@0: # broken ls alias from the environment. This has actually meillo@0: # happened. Such a system could not be considered "sane". meillo@0: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken meillo@0: alias in your environment" >&5 meillo@0: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken meillo@0: alias in your environment" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: test "$2" = conftest.file meillo@0: ) meillo@0: then meillo@0: # Ok. meillo@0: : meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! meillo@0: Check your system clock" >&5 meillo@0: echo "$as_me: error: newly created file is older than distributed files! meillo@0: Check your system clock" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: yes" >&5 meillo@0: echo "${ECHO_T}yes" >&6 meillo@0: test "$program_prefix" != NONE && meillo@0: program_transform_name="s,^,$program_prefix,;$program_transform_name" meillo@0: # Use a double $ so make ignores it. meillo@0: test "$program_suffix" != NONE && meillo@0: program_transform_name="s,\$,$program_suffix,;$program_transform_name" meillo@0: # Double any \ or $. echo might interpret backslashes. meillo@0: # By default was `s,x,x', remove it if useless. meillo@0: cat <<\_ACEOF >conftest.sed meillo@0: s/[\\$]/&&/g;s/;s,x,x,$// meillo@0: _ACEOF meillo@0: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` meillo@0: rm conftest.sed meillo@0: meillo@0: meillo@0: # expand $ac_aux_dir to an absolute path meillo@0: am_aux_dir=`cd $ac_aux_dir && pwd` meillo@0: meillo@0: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" meillo@0: # Use eval to expand $SHELL meillo@0: if eval "$MISSING --run true"; then meillo@0: am_missing_run="$MISSING --run " meillo@0: else meillo@0: am_missing_run= meillo@0: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 meillo@0: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} meillo@0: fi meillo@0: meillo@0: for ac_prog in gawk mawk nawk awk meillo@0: do meillo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. meillo@0: set dummy $ac_prog; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_AWK+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$AWK"; then meillo@0: ac_cv_prog_AWK="$AWK" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_AWK="$ac_prog" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: AWK=$ac_cv_prog_AWK meillo@0: if test -n "$AWK"; then meillo@0: echo "$as_me:$LINENO: result: $AWK" >&5 meillo@0: echo "${ECHO_T}$AWK" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: test -n "$AWK" && break meillo@0: done meillo@0: meillo@0: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 meillo@0: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 meillo@0: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` meillo@0: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.make <<\_ACEOF meillo@0: all: meillo@0: @echo 'ac_maketemp="$(MAKE)"' meillo@0: _ACEOF meillo@0: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. meillo@0: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` meillo@0: if test -n "$ac_maketemp"; then meillo@0: eval ac_cv_prog_make_${ac_make}_set=yes meillo@0: else meillo@0: eval ac_cv_prog_make_${ac_make}_set=no meillo@0: fi meillo@0: rm -f conftest.make meillo@0: fi meillo@0: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then meillo@0: echo "$as_me:$LINENO: result: yes" >&5 meillo@0: echo "${ECHO_T}yes" >&6 meillo@0: SET_MAKE= meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: SET_MAKE="MAKE=${MAKE-make}" meillo@0: fi meillo@0: meillo@0: rm -rf .tst 2>/dev/null meillo@0: mkdir .tst 2>/dev/null meillo@0: if test -d .tst; then meillo@0: am__leading_dot=. meillo@0: else meillo@0: am__leading_dot=_ meillo@0: fi meillo@0: rmdir .tst 2>/dev/null meillo@0: meillo@0: # test to see if srcdir already configured meillo@0: if test "`cd $srcdir && pwd`" != "`pwd`" && meillo@0: test -f $srcdir/config.status; then meillo@0: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 meillo@0: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: # test whether we have cygpath meillo@0: if test -z "$CYGPATH_W"; then meillo@0: if (cygpath --version) >/dev/null 2>/dev/null; then meillo@0: CYGPATH_W='cygpath -w' meillo@0: else meillo@0: CYGPATH_W=echo meillo@0: fi meillo@0: fi meillo@0: meillo@0: meillo@0: # Define the identity of the package. meillo@0: PACKAGE='masqmail' meillo@0: VERSION='0.2.21' meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define PACKAGE "$PACKAGE" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define VERSION "$VERSION" meillo@0: _ACEOF meillo@0: meillo@0: # Some tools Automake needs. meillo@0: meillo@0: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} meillo@0: meillo@0: meillo@0: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} meillo@0: meillo@0: meillo@0: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} meillo@0: meillo@0: meillo@0: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} meillo@0: meillo@0: meillo@0: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} meillo@0: meillo@0: meillo@0: AMTAR=${AMTAR-"${am_missing_run}tar"} meillo@0: meillo@0: install_sh=${install_sh-"$am_aux_dir/install-sh"} meillo@0: meillo@0: # Installed binaries are usually stripped using `strip' when the user meillo@0: # run `make install-strip'. However `strip' might not be the right meillo@0: # tool to use in cross-compilation environments, therefore Automake meillo@0: # will honor the `STRIP' environment variable to overrule this program. meillo@0: if test "$cross_compiling" != no; then meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. meillo@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_STRIP+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$STRIP"; then meillo@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: STRIP=$ac_cv_prog_STRIP meillo@0: if test -n "$STRIP"; then meillo@0: echo "$as_me:$LINENO: result: $STRIP" >&5 meillo@0: echo "${ECHO_T}$STRIP" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$ac_cv_prog_STRIP"; then meillo@0: ac_ct_STRIP=$STRIP meillo@0: # Extract the first word of "strip", so it can be a program name with args. meillo@0: set dummy strip; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$ac_ct_STRIP"; then meillo@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_ac_ct_STRIP="strip" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" meillo@0: fi meillo@0: fi meillo@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP meillo@0: if test -n "$ac_ct_STRIP"; then meillo@0: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 meillo@0: echo "${ECHO_T}$ac_ct_STRIP" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: STRIP=$ac_ct_STRIP meillo@0: else meillo@0: STRIP="$ac_cv_prog_STRIP" meillo@0: fi meillo@0: meillo@0: fi meillo@0: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" meillo@0: meillo@0: # We need awk for the "check" target. The system "awk" is bad on meillo@0: # some platforms. meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: ac_ext=c meillo@0: ac_cpp='$CPP $CPPFLAGS' meillo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' meillo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' meillo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. meillo@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$CC"; then meillo@0: ac_cv_prog_CC="$CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: CC=$ac_cv_prog_CC meillo@0: if test -n "$CC"; then meillo@0: echo "$as_me:$LINENO: result: $CC" >&5 meillo@0: echo "${ECHO_T}$CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$ac_cv_prog_CC"; then meillo@0: ac_ct_CC=$CC meillo@0: # Extract the first word of "gcc", so it can be a program name with args. meillo@0: set dummy gcc; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$ac_ct_CC"; then meillo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_ac_ct_CC="gcc" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC meillo@0: if test -n "$ac_ct_CC"; then meillo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 meillo@0: echo "${ECHO_T}$ac_ct_CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: CC=$ac_ct_CC meillo@0: else meillo@0: CC="$ac_cv_prog_CC" meillo@0: fi meillo@0: meillo@0: if test -z "$CC"; then meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. meillo@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$CC"; then meillo@0: ac_cv_prog_CC="$CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_CC="${ac_tool_prefix}cc" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: CC=$ac_cv_prog_CC meillo@0: if test -n "$CC"; then meillo@0: echo "$as_me:$LINENO: result: $CC" >&5 meillo@0: echo "${ECHO_T}$CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$ac_cv_prog_CC"; then meillo@0: ac_ct_CC=$CC meillo@0: # Extract the first word of "cc", so it can be a program name with args. meillo@0: set dummy cc; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$ac_ct_CC"; then meillo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_ac_ct_CC="cc" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC meillo@0: if test -n "$ac_ct_CC"; then meillo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 meillo@0: echo "${ECHO_T}$ac_ct_CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: CC=$ac_ct_CC meillo@0: else meillo@0: CC="$ac_cv_prog_CC" meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$CC"; then meillo@0: # Extract the first word of "cc", so it can be a program name with args. meillo@0: set dummy cc; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$CC"; then meillo@0: ac_cv_prog_CC="$CC" # Let the user override the test. meillo@0: else meillo@0: ac_prog_rejected=no meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then meillo@0: ac_prog_rejected=yes meillo@0: continue meillo@0: fi meillo@0: ac_cv_prog_CC="cc" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: if test $ac_prog_rejected = yes; then meillo@0: # We found a bogon in the path, so make sure we never use it. meillo@0: set dummy $ac_cv_prog_CC meillo@0: shift meillo@0: if test $# != 0; then meillo@0: # We chose a different compiler from the bogus one. meillo@0: # However, it has the same basename, so the bogon will be chosen meillo@0: # first if we set CC to just the basename; use the full file name. meillo@0: shift meillo@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" meillo@0: fi meillo@0: fi meillo@0: fi meillo@0: fi meillo@0: CC=$ac_cv_prog_CC meillo@0: if test -n "$CC"; then meillo@0: echo "$as_me:$LINENO: result: $CC" >&5 meillo@0: echo "${ECHO_T}$CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$CC"; then meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: for ac_prog in cl meillo@0: do meillo@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. meillo@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$CC"; then meillo@0: ac_cv_prog_CC="$CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: CC=$ac_cv_prog_CC meillo@0: if test -n "$CC"; then meillo@0: echo "$as_me:$LINENO: result: $CC" >&5 meillo@0: echo "${ECHO_T}$CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: test -n "$CC" && break meillo@0: done meillo@0: fi meillo@0: if test -z "$CC"; then meillo@0: ac_ct_CC=$CC meillo@0: for ac_prog in cl meillo@0: do meillo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. meillo@0: set dummy $ac_prog; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$ac_ct_CC"; then meillo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_ac_ct_CC="$ac_prog" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC meillo@0: if test -n "$ac_ct_CC"; then meillo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 meillo@0: echo "${ECHO_T}$ac_ct_CC" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: test -n "$ac_ct_CC" && break meillo@0: done meillo@0: meillo@0: CC=$ac_ct_CC meillo@0: fi meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: no acceptable C compiler found in \$PATH meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: meillo@0: # Provide some information about the compiler. meillo@0: echo "$as_me:$LINENO:" \ meillo@0: "checking for C compiler version" >&5 meillo@0: ac_compiler=`set X $ac_compile; echo $2` meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 meillo@0: (eval $ac_compiler --version &5) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 meillo@0: (eval $ac_compiler -v &5) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 meillo@0: (eval $ac_compiler -V &5) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } meillo@0: meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: ac_clean_files_save=$ac_clean_files meillo@0: ac_clean_files="$ac_clean_files a.out a.exe b.out" meillo@0: # Try to create an executable without -o first, disregard a.out. meillo@0: # It will help us diagnose broken compilers, and finding out an intuition meillo@0: # of exeext. meillo@0: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 meillo@0: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 meillo@0: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 meillo@0: (eval $ac_link_default) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; then meillo@0: # Find the output, starting from the most likely. This scheme is meillo@0: # not robust to junk in `.', hence go to wildcards (a.*) only as a last meillo@0: # resort. meillo@0: meillo@0: # Be careful to initialize this variable, since it used to be cached. meillo@0: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. meillo@0: ac_cv_exeext= meillo@0: # b.out is created by i960 compilers. meillo@0: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out meillo@0: do meillo@0: test -f "$ac_file" || continue meillo@0: case $ac_file in meillo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) meillo@0: ;; meillo@0: conftest.$ac_ext ) meillo@0: # This is the source file. meillo@0: ;; meillo@0: [ab].out ) meillo@0: # We found the default executable, but exeext='' is most meillo@0: # certainly right. meillo@0: break;; meillo@0: *.* ) meillo@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` meillo@0: # FIXME: I believe we export ac_cv_exeext for Libtool, meillo@0: # but it would be cool to find out if it's true. Does anybody meillo@0: # maintain Libtool? --akim. meillo@0: export ac_cv_exeext meillo@0: break;; meillo@0: * ) meillo@0: break;; meillo@0: esac meillo@0: done meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: { { echo "$as_me:$LINENO: error: C compiler cannot create executables meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: C compiler cannot create executables meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 77); exit 77; }; } meillo@0: fi meillo@0: meillo@0: ac_exeext=$ac_cv_exeext meillo@0: echo "$as_me:$LINENO: result: $ac_file" >&5 meillo@0: echo "${ECHO_T}$ac_file" >&6 meillo@0: meillo@0: # Check the compiler produces executables we can run. If not, either meillo@0: # the compiler is broken, or we cross compile. meillo@0: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 meillo@0: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 meillo@0: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 meillo@0: # If not cross compiling, check that we can run a simple program. meillo@0: if test "$cross_compiling" != yes; then meillo@0: if { ac_try='./$ac_file' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: cross_compiling=no meillo@0: else meillo@0: if test "$cross_compiling" = maybe; then meillo@0: cross_compiling=yes meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. meillo@0: If you meant to cross compile, use \`--host'. meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: cannot run C compiled programs. meillo@0: If you meant to cross compile, use \`--host'. meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: yes" >&5 meillo@0: echo "${ECHO_T}yes" >&6 meillo@0: meillo@0: rm -f a.out a.exe conftest$ac_cv_exeext b.out meillo@0: ac_clean_files=$ac_clean_files_save meillo@0: # Check the compiler produces executables we can run. If not, either meillo@0: # the compiler is broken, or we cross compile. meillo@0: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 meillo@0: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 meillo@0: echo "$as_me:$LINENO: result: $cross_compiling" >&5 meillo@0: echo "${ECHO_T}$cross_compiling" >&6 meillo@0: meillo@0: echo "$as_me:$LINENO: checking for suffix of executables" >&5 meillo@0: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; then meillo@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) meillo@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will meillo@0: # work properly (i.e., refer to `conftest.exe'), while it won't with meillo@0: # `rm'. meillo@0: for ac_file in conftest.exe conftest conftest.*; do meillo@0: test -f "$ac_file" || continue meillo@0: case $ac_file in meillo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; meillo@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` meillo@0: export ac_cv_exeext meillo@0: break;; meillo@0: * ) break;; meillo@0: esac meillo@0: done meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: rm -f conftest$ac_cv_exeext meillo@0: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 meillo@0: echo "${ECHO_T}$ac_cv_exeext" >&6 meillo@0: meillo@0: rm -f conftest.$ac_ext meillo@0: EXEEXT=$ac_cv_exeext meillo@0: ac_exeext=$EXEEXT meillo@0: echo "$as_me:$LINENO: checking for suffix of object files" >&5 meillo@0: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 meillo@0: if test "${ac_cv_objext+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.o conftest.obj meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; then meillo@0: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do meillo@0: case $ac_file in meillo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; meillo@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` meillo@0: break;; meillo@0: esac meillo@0: done meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: cannot compute suffix of object files: cannot compile meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 meillo@0: echo "${ECHO_T}$ac_cv_objext" >&6 meillo@0: OBJEXT=$ac_cv_objext meillo@0: ac_objext=$OBJEXT meillo@0: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 meillo@0: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 meillo@0: if test "${ac_cv_c_compiler_gnu+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: #ifndef __GNUC__ meillo@0: choke me meillo@0: #endif meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_compiler_gnu=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_compiler_gnu=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu meillo@0: meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 meillo@0: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 meillo@0: GCC=`test $ac_compiler_gnu = yes && echo yes` meillo@0: ac_test_CFLAGS=${CFLAGS+set} meillo@0: ac_save_CFLAGS=$CFLAGS meillo@0: CFLAGS="-g" meillo@0: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 meillo@0: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_cc_g+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_prog_cc_g=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_prog_cc_g=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 meillo@0: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 meillo@0: if test "$ac_test_CFLAGS" = set; then meillo@0: CFLAGS=$ac_save_CFLAGS meillo@0: elif test $ac_cv_prog_cc_g = yes; then meillo@0: if test "$GCC" = yes; then meillo@0: CFLAGS="-g -O2" meillo@0: else meillo@0: CFLAGS="-g" meillo@0: fi meillo@0: else meillo@0: if test "$GCC" = yes; then meillo@0: CFLAGS="-O2" meillo@0: else meillo@0: CFLAGS= meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 meillo@0: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_cc_stdc+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_cv_prog_cc_stdc=no meillo@0: ac_save_CC=$CC meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ meillo@0: struct buf { int x; }; meillo@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); meillo@0: static char *e (p, i) meillo@0: char **p; meillo@0: int i; meillo@0: { meillo@0: return p[i]; meillo@0: } meillo@0: static char *f (char * (*g) (char **, int), char **p, ...) meillo@0: { meillo@0: char *s; meillo@0: va_list v; meillo@0: va_start (v,p); meillo@0: s = g (p, va_arg (v,int)); meillo@0: va_end (v); meillo@0: return s; meillo@0: } meillo@0: meillo@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has meillo@0: function prototypes and stuff, but not '\xHH' hex character constants. meillo@0: These don't provoke an error unfortunately, instead are silently treated meillo@0: as 'x'. The following induces an error, until -std1 is added to get meillo@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an meillo@0: array size at least. It's necessary to write '\x00'==0 to get something meillo@0: that's true only with -std1. */ meillo@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; meillo@0: meillo@0: int test (int i, double x); meillo@0: struct s1 {int (*f) (int a);}; meillo@0: struct s2 {int (*f) (double a);}; meillo@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); meillo@0: int argc; meillo@0: char **argv; meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: # Don't try gcc -ansi; that turns off useful extensions and meillo@0: # breaks some systems' header files. meillo@0: # AIX -qlanglvl=ansi meillo@0: # Ultrix and OSF/1 -std1 meillo@0: # HP-UX 10.20 and later -Ae meillo@0: # HP-UX older versions -Aa -D_HPUX_SOURCE meillo@0: # SVR4 -Xc -D__EXTENSIONS__ meillo@0: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" meillo@0: do meillo@0: CC="$ac_save_CC $ac_arg" meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_prog_cc_stdc=$ac_arg meillo@0: break meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext meillo@0: done meillo@0: rm -f conftest.$ac_ext conftest.$ac_objext meillo@0: CC=$ac_save_CC meillo@0: meillo@0: fi meillo@0: meillo@0: case "x$ac_cv_prog_cc_stdc" in meillo@0: x|xno) meillo@0: echo "$as_me:$LINENO: result: none needed" >&5 meillo@0: echo "${ECHO_T}none needed" >&6 ;; meillo@0: *) meillo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 meillo@0: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 meillo@0: CC="$CC $ac_cv_prog_cc_stdc" ;; meillo@0: esac meillo@0: meillo@0: # Some people use a C++ compiler to compile C. Since we use `exit', meillo@0: # in C++ we need to declare it. In case someone uses the same compiler meillo@0: # for both compiling C and C++ we need to have the C++ compiler decide meillo@0: # the declaration of exit, since it's the most demanding environment. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: #ifndef __cplusplus meillo@0: choke me meillo@0: #endif meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: for ac_declaration in \ meillo@0: '' \ meillo@0: 'extern "C" void std::exit (int) throw (); using std::exit;' \ meillo@0: 'extern "C" void std::exit (int); using std::exit;' \ meillo@0: 'extern "C" void exit (int) throw ();' \ meillo@0: 'extern "C" void exit (int);' \ meillo@0: 'void exit (int);' meillo@0: do meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_declaration meillo@0: #include meillo@0: int meillo@0: main () meillo@0: { meillo@0: exit (42); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: : meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: continue meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_declaration meillo@0: int meillo@0: main () meillo@0: { meillo@0: exit (42); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: break meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: done meillo@0: rm -f conftest* meillo@0: if test -n "$ac_declaration"; then meillo@0: echo '#ifdef __cplusplus' >>confdefs.h meillo@0: echo $ac_declaration >>confdefs.h meillo@0: echo '#endif' >>confdefs.h meillo@0: fi meillo@0: meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: ac_ext=c meillo@0: ac_cpp='$CPP $CPPFLAGS' meillo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' meillo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' meillo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu meillo@0: DEPDIR="${am__leading_dot}deps" meillo@0: meillo@0: ac_config_commands="$ac_config_commands depfiles" meillo@0: meillo@0: meillo@0: am_make=${MAKE-make} meillo@0: cat > confinc << 'END' meillo@0: am__doit: meillo@0: @echo done meillo@0: .PHONY: am__doit meillo@0: END meillo@0: # If we don't find an include directive, just comment out the code. meillo@0: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 meillo@0: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 meillo@0: am__include="#" meillo@0: am__quote= meillo@0: _am_result=none meillo@0: # First try GNU make style include. meillo@0: echo "include confinc" > confmf meillo@0: # We grep out `Entering directory' and `Leaving directory' meillo@0: # messages which can occur if `w' ends up in MAKEFLAGS. meillo@0: # In particular we don't look at `^make:' because GNU make might meillo@0: # be invoked under some other name (usually "gmake"), in which meillo@0: # case it prints its new name instead of `make'. meillo@0: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then meillo@0: am__include=include meillo@0: am__quote= meillo@0: _am_result=GNU meillo@0: fi meillo@0: # Now try BSD make style include. meillo@0: if test "$am__include" = "#"; then meillo@0: echo '.include "confinc"' > confmf meillo@0: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then meillo@0: am__include=.include meillo@0: am__quote="\"" meillo@0: _am_result=BSD meillo@0: fi meillo@0: fi meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: result: $_am_result" >&5 meillo@0: echo "${ECHO_T}$_am_result" >&6 meillo@0: rm -f confinc confmf meillo@0: meillo@0: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. meillo@0: if test "${enable_dependency_tracking+set}" = set; then meillo@0: enableval="$enable_dependency_tracking" meillo@0: meillo@0: fi; meillo@0: if test "x$enable_dependency_tracking" != xno; then meillo@0: am_depcomp="$ac_aux_dir/depcomp" meillo@0: AMDEPBACKSLASH='\' meillo@0: fi meillo@0: meillo@0: meillo@0: if test "x$enable_dependency_tracking" != xno; then meillo@0: AMDEP_TRUE= meillo@0: AMDEP_FALSE='#' meillo@0: else meillo@0: AMDEP_TRUE='#' meillo@0: AMDEP_FALSE= meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: depcc="$CC" am_compiler_list= meillo@0: meillo@0: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 meillo@0: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 meillo@0: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then meillo@0: # We make a subdir and do the tests there. Otherwise we can end up meillo@0: # making bogus files that we don't know about and never remove. For meillo@0: # instance it was reported that on HP-UX the gcc test will end up meillo@0: # making a dummy file named `D' -- because `-MD' means `put the output meillo@0: # in D'. meillo@0: mkdir conftest.dir meillo@0: # Copy depcomp to subdir because otherwise we won't find it if we're meillo@0: # using a relative directory. meillo@0: cp "$am_depcomp" conftest.dir meillo@0: cd conftest.dir meillo@0: # We will build objects and dependencies in a subdirectory because meillo@0: # it helps to detect inapplicable dependency modes. For instance meillo@0: # both Tru64's cc and ICC support -MD to output dependencies as a meillo@0: # side effect of compilation, but ICC will put the dependencies in meillo@0: # the current directory while Tru64 will put them in the object meillo@0: # directory. meillo@0: mkdir sub meillo@0: meillo@0: am_cv_CC_dependencies_compiler_type=none meillo@0: if test "$am_compiler_list" = ""; then meillo@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` meillo@0: fi meillo@0: for depmode in $am_compiler_list; do meillo@0: # Setup a source with many dependencies, because some compilers meillo@0: # like to wrap large dependency lists on column 80 (with \), and meillo@0: # we should not choose a depcomp mode which is confused by this. meillo@0: # meillo@0: # We need to recreate these files for each test, as the compiler may meillo@0: # overwrite some of them when testing with obscure command lines. meillo@0: # This happens at least with the AIX C compiler. meillo@0: : > sub/conftest.c meillo@0: for i in 1 2 3 4 5 6; do meillo@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c meillo@0: : > sub/conftst$i.h meillo@0: done meillo@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf meillo@0: meillo@0: case $depmode in meillo@0: nosideeffect) meillo@0: # after this tag, mechanisms are not by side-effect, so they'll meillo@0: # only be used when explicitly requested meillo@0: if test "x$enable_dependency_tracking" = xyes; then meillo@0: continue meillo@0: else meillo@0: break meillo@0: fi meillo@0: ;; meillo@0: none) break ;; meillo@0: esac meillo@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" meillo@0: # mode. It turns out that the SunPro C++ compiler does not properly meillo@0: # handle `-M -o', and we need to detect this. meillo@0: if depmode=$depmode \ meillo@0: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ meillo@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ meillo@0: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ meillo@0: >/dev/null 2>conftest.err && meillo@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && meillo@0: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && meillo@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then meillo@0: # icc doesn't choke on unknown options, it will just issue warnings meillo@0: # (even with -Werror). So we grep stderr for any message meillo@0: # that says an option was ignored. meillo@0: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else meillo@0: am_cv_CC_dependencies_compiler_type=$depmode meillo@0: break meillo@0: fi meillo@0: fi meillo@0: done meillo@0: meillo@0: cd .. meillo@0: rm -rf conftest.dir meillo@0: else meillo@0: am_cv_CC_dependencies_compiler_type=none meillo@0: fi meillo@0: meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 meillo@0: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 meillo@0: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type meillo@0: meillo@0: meillo@0: meillo@0: if meillo@0: test "x$enable_dependency_tracking" != xno \ meillo@0: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then meillo@0: am__fastdepCC_TRUE= meillo@0: am__fastdepCC_FALSE='#' meillo@0: else meillo@0: am__fastdepCC_TRUE='#' meillo@0: am__fastdepCC_FALSE= meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 meillo@0: echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_cposix_strerror+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lcposix $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char strerror (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: strerror (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_cposix_strerror=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_cposix_strerror=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 meillo@0: if test $ac_cv_lib_cposix_strerror = yes; then meillo@0: LIBS="$LIBS -lcposix" meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: ac_ext=c meillo@0: ac_cpp='$CPP $CPPFLAGS' meillo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' meillo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' meillo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu meillo@0: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 meillo@0: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 meillo@0: # On Suns, sometimes $CPP names a directory. meillo@0: if test -n "$CPP" && test -d "$CPP"; then meillo@0: CPP= meillo@0: fi meillo@0: if test -z "$CPP"; then meillo@0: if test "${ac_cv_prog_CPP+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: # Double quotes because CPP needs to be expanded meillo@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" meillo@0: do meillo@0: ac_preproc_ok=false meillo@0: for ac_c_preproc_warn_flag in '' yes meillo@0: do meillo@0: # Use a header file that comes with gcc, so configuring glibc meillo@0: # with a fresh cross-compiler works. meillo@0: # Prefer to if __STDC__ is defined, since meillo@0: # exists even on freestanding compilers. meillo@0: # On the NeXT, cc -E runs the code through the compiler's parser, meillo@0: # not just through cpp. "Syntax error" is here to catch this case. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: Syntax error meillo@0: _ACEOF meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 meillo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } >/dev/null; then meillo@0: if test -s conftest.err; then meillo@0: ac_cpp_err=$ac_c_preproc_warn_flag meillo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag meillo@0: else meillo@0: ac_cpp_err= meillo@0: fi meillo@0: else meillo@0: ac_cpp_err=yes meillo@0: fi meillo@0: if test -z "$ac_cpp_err"; then meillo@0: : meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: # Broken: fails on valid input. meillo@0: continue meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: meillo@0: # OK, works on sane cases. Now check whether non-existent headers meillo@0: # can be detected and how. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: _ACEOF meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 meillo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } >/dev/null; then meillo@0: if test -s conftest.err; then meillo@0: ac_cpp_err=$ac_c_preproc_warn_flag meillo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag meillo@0: else meillo@0: ac_cpp_err= meillo@0: fi meillo@0: else meillo@0: ac_cpp_err=yes meillo@0: fi meillo@0: if test -z "$ac_cpp_err"; then meillo@0: # Broken: success on invalid input. meillo@0: continue meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: # Passes both tests. meillo@0: ac_preproc_ok=: meillo@0: break meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: meillo@0: done meillo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: if $ac_preproc_ok; then meillo@0: break meillo@0: fi meillo@0: meillo@0: done meillo@0: ac_cv_prog_CPP=$CPP meillo@0: meillo@0: fi meillo@0: CPP=$ac_cv_prog_CPP meillo@0: else meillo@0: ac_cv_prog_CPP=$CPP meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $CPP" >&5 meillo@0: echo "${ECHO_T}$CPP" >&6 meillo@0: ac_preproc_ok=false meillo@0: for ac_c_preproc_warn_flag in '' yes meillo@0: do meillo@0: # Use a header file that comes with gcc, so configuring glibc meillo@0: # with a fresh cross-compiler works. meillo@0: # Prefer to if __STDC__ is defined, since meillo@0: # exists even on freestanding compilers. meillo@0: # On the NeXT, cc -E runs the code through the compiler's parser, meillo@0: # not just through cpp. "Syntax error" is here to catch this case. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: Syntax error meillo@0: _ACEOF meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 meillo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } >/dev/null; then meillo@0: if test -s conftest.err; then meillo@0: ac_cpp_err=$ac_c_preproc_warn_flag meillo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag meillo@0: else meillo@0: ac_cpp_err= meillo@0: fi meillo@0: else meillo@0: ac_cpp_err=yes meillo@0: fi meillo@0: if test -z "$ac_cpp_err"; then meillo@0: : meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: # Broken: fails on valid input. meillo@0: continue meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: meillo@0: # OK, works on sane cases. Now check whether non-existent headers meillo@0: # can be detected and how. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: _ACEOF meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 meillo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } >/dev/null; then meillo@0: if test -s conftest.err; then meillo@0: ac_cpp_err=$ac_c_preproc_warn_flag meillo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag meillo@0: else meillo@0: ac_cpp_err= meillo@0: fi meillo@0: else meillo@0: ac_cpp_err=yes meillo@0: fi meillo@0: if test -z "$ac_cpp_err"; then meillo@0: # Broken: success on invalid input. meillo@0: continue meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: # Passes both tests. meillo@0: ac_preproc_ok=: meillo@0: break meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: meillo@0: done meillo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: if $ac_preproc_ok; then meillo@0: : meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: ac_ext=c meillo@0: ac_cpp='$CPP $CPPFLAGS' meillo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' meillo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' meillo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for egrep" >&5 meillo@0: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_egrep+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 meillo@0: then ac_cv_prog_egrep='grep -E' meillo@0: else ac_cv_prog_egrep='egrep' meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 meillo@0: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 meillo@0: EGREP=$ac_cv_prog_egrep meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 meillo@0: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 meillo@0: if test "${ac_cv_header_stdc+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_header_stdc=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: meillo@0: _ACEOF meillo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | meillo@0: $EGREP "memchr" >/dev/null 2>&1; then meillo@0: : meillo@0: else meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest* meillo@0: meillo@0: fi meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: meillo@0: _ACEOF meillo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | meillo@0: $EGREP "free" >/dev/null 2>&1; then meillo@0: : meillo@0: else meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest* meillo@0: meillo@0: fi meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. meillo@0: if test "$cross_compiling" = yes; then meillo@0: : meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #if ((' ' & 0x0FF) == 0x020) meillo@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') meillo@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) meillo@0: #else meillo@0: # define ISLOWER(c) \ meillo@0: (('a' <= (c) && (c) <= 'i') \ meillo@0: || ('j' <= (c) && (c) <= 'r') \ meillo@0: || ('s' <= (c) && (c) <= 'z')) meillo@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) meillo@0: #endif meillo@0: meillo@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) meillo@0: int meillo@0: main () meillo@0: { meillo@0: int i; meillo@0: for (i = 0; i < 256; i++) meillo@0: if (XOR (islower (i), ISLOWER (i)) meillo@0: || toupper (i) != TOUPPER (i)) meillo@0: exit(2); meillo@0: exit (0); meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: : meillo@0: else meillo@0: echo "$as_me: program exited with status $ac_status" >&5 meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ( exit $ac_status ) meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 meillo@0: echo "${ECHO_T}$ac_cv_header_stdc" >&6 meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define STDC_HEADERS 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. meillo@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_RANLIB+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$RANLIB"; then meillo@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: fi meillo@0: fi meillo@0: RANLIB=$ac_cv_prog_RANLIB meillo@0: if test -n "$RANLIB"; then meillo@0: echo "$as_me:$LINENO: result: $RANLIB" >&5 meillo@0: echo "${ECHO_T}$RANLIB" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$ac_cv_prog_RANLIB"; then meillo@0: ac_ct_RANLIB=$RANLIB meillo@0: # Extract the first word of "ranlib", so it can be a program name with args. meillo@0: set dummy ranlib; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: if test -n "$ac_ct_RANLIB"; then meillo@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. meillo@0: else meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_prog_ac_ct_RANLIB="ranlib" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" meillo@0: fi meillo@0: fi meillo@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB meillo@0: if test -n "$ac_ct_RANLIB"; then meillo@0: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 meillo@0: echo "${ECHO_T}$ac_ct_RANLIB" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: RANLIB=$ac_ct_RANLIB meillo@0: else meillo@0: RANLIB="$ac_cv_prog_RANLIB" meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then meillo@0: if test -n "$ac_tool_prefix"; then meillo@0: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. meillo@0: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: case $PKG_CONFIG in meillo@0: [\\/]* | ?:[\\/]*) meillo@0: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. meillo@0: ;; meillo@0: *) meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: ;; meillo@0: esac meillo@0: fi meillo@0: PKG_CONFIG=$ac_cv_path_PKG_CONFIG meillo@0: meillo@0: if test -n "$PKG_CONFIG"; then meillo@0: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 meillo@0: echo "${ECHO_T}$PKG_CONFIG" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -z "$ac_cv_path_PKG_CONFIG"; then meillo@0: ac_pt_PKG_CONFIG=$PKG_CONFIG meillo@0: # Extract the first word of "pkg-config", so it can be a program name with args. meillo@0: set dummy pkg-config; ac_word=$2 meillo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 meillo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 meillo@0: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: case $ac_pt_PKG_CONFIG in meillo@0: [\\/]* | ?:[\\/]*) meillo@0: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. meillo@0: ;; meillo@0: *) meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for ac_exec_ext in '' $ac_executable_extensions; do meillo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then meillo@0: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" meillo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 meillo@0: break 2 meillo@0: fi meillo@0: done meillo@0: done meillo@0: meillo@0: ;; meillo@0: esac meillo@0: fi meillo@0: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG meillo@0: meillo@0: if test -n "$ac_pt_PKG_CONFIG"; then meillo@0: echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 meillo@0: echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: fi meillo@0: meillo@0: PKG_CONFIG=$ac_pt_PKG_CONFIG meillo@0: else meillo@0: PKG_CONFIG="$ac_cv_path_PKG_CONFIG" meillo@0: fi meillo@0: meillo@0: fi meillo@0: if test -n "$PKG_CONFIG"; then meillo@0: _pkg_min_version=0.9.0 meillo@0: echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 meillo@0: echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 meillo@0: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then meillo@0: echo "$as_me:$LINENO: result: yes" >&5 meillo@0: echo "${ECHO_T}yes" >&6 meillo@0: else meillo@0: echo "$as_me:$LINENO: result: no" >&5 meillo@0: echo "${ECHO_T}no" >&6 meillo@0: PKG_CONFIG="" meillo@0: fi meillo@0: meillo@0: fi meillo@0: meillo@0: pkg_failed=no meillo@0: echo "$as_me:$LINENO: checking for GLIB" >&5 meillo@0: echo $ECHO_N "checking for GLIB... $ECHO_C" >&6 meillo@0: meillo@0: if test -n "$PKG_CONFIG"; then meillo@0: if test -n "$PKG_CONFIG" && \ meillo@0: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5 meillo@0: ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; then meillo@0: pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` meillo@0: else meillo@0: pkg_failed=yes meillo@0: fi meillo@0: else meillo@0: pkg_failed=untried meillo@0: fi meillo@0: if test -n "$PKG_CONFIG"; then meillo@0: if test -n "$PKG_CONFIG" && \ meillo@0: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5 meillo@0: ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; then meillo@0: pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` meillo@0: else meillo@0: pkg_failed=yes meillo@0: fi meillo@0: else meillo@0: pkg_failed=untried meillo@0: fi meillo@0: meillo@0: if test $pkg_failed = yes; then meillo@0: GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"` meillo@0: # Put the nasty error message in config.log where it belongs meillo@0: echo "$GLIB_PKG_ERRORS" 1>&5 meillo@0: meillo@0: { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met. meillo@0: Consider adjusting the PKG_CONFIG_PATH environment variable if you meillo@0: installed software in a non-standard prefix. meillo@0: meillo@0: Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables meillo@0: to avoid the need to call pkg-config. See the pkg-config man page for meillo@0: more details." >&5 meillo@0: echo "$as_me: error: Package requirements (glib-2.0) were not met. meillo@0: Consider adjusting the PKG_CONFIG_PATH environment variable if you meillo@0: installed software in a non-standard prefix. meillo@0: meillo@0: Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables meillo@0: to avoid the need to call pkg-config. See the pkg-config man page for meillo@0: more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: elif test $pkg_failed = untried; then meillo@0: { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it meillo@0: is in your PATH or set the PKG_CONFIG environment variable to the full meillo@0: path to pkg-config. meillo@0: meillo@0: Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables meillo@0: to avoid the need to call pkg-config. See the pkg-config man page for meillo@0: more details. meillo@0: meillo@0: To get pkg-config, see . meillo@0: See \`config.log' for more details." >&5 meillo@0: echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it meillo@0: is in your PATH or set the PKG_CONFIG environment variable to the full meillo@0: path to pkg-config. meillo@0: meillo@0: Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables meillo@0: to avoid the need to call pkg-config. See the pkg-config man page for meillo@0: more details. meillo@0: meillo@0: To get pkg-config, see . meillo@0: See \`config.log' for more details." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: else meillo@0: GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS meillo@0: GLIB_LIBS=$pkg_cv_GLIB_LIBS meillo@0: echo "$as_me:$LINENO: result: yes" >&5 meillo@0: echo "${ECHO_T}yes" >&6 meillo@0: : meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --enable-resolver or --disable-resolver was given. meillo@0: if test "${enable_resolver+set}" = set; then meillo@0: enableval="$enable_resolver" meillo@0: if test "$enable_resolver" != 'no'; then meillo@0: resolver_enabled='yes' meillo@0: fi meillo@0: else meillo@0: resolver_enabled='yes' meillo@0: meillo@0: fi; meillo@0: meillo@0: if test "$resolver_enabled" = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_RESOLVER 1 meillo@0: _ACEOF meillo@0: meillo@0: echo "$as_me:$LINENO: checking for res_search in -lc" >&5 meillo@0: echo $ECHO_N "checking for res_search in -lc... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_c_res_search+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lc $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char res_search (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: res_search (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_c_res_search=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_c_res_search=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_c_res_search" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_c_res_search" >&6 meillo@0: if test $ac_cv_lib_c_res_search = yes; then meillo@0: need_resolv=no meillo@0: else meillo@0: need_resolv=yes meillo@0: fi meillo@0: meillo@0: if test "$need_resolv" = yes; then meillo@0: echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 meillo@0: echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_resolv_res_search+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lresolv $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char res_search (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: res_search (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_resolv_res_search=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_resolv_res_search=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 meillo@0: if test $ac_cv_lib_resolv_res_search = yes; then meillo@0: has_resolv=yes meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: \"no libresolv\"" >&5 meillo@0: echo "$as_me: error: \"no libresolv\"" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: RESOLV_LIBS='-lresolv' meillo@0: else meillo@0: RESOLV_LIBS='' meillo@0: fi meillo@0: else meillo@0: RESOLV_LIBS='' meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: for ac_func in getline meillo@0: do meillo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 meillo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define $ac_func innocuous_$ac_func meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char $ac_func (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef $ac_func meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char $ac_func (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = $ac_func; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != $ac_func; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_var=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_var=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: done meillo@0: meillo@0: meillo@0: meillo@0: for ac_func in fdatasync meillo@0: do meillo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 meillo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define $ac_func innocuous_$ac_func meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char $ac_func (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef $ac_func meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char $ac_func (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = $ac_func; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != $ac_func; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_var=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_var=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: done meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 meillo@0: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 meillo@0: if test "${ac_cv_header_stdc+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_header_stdc=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: meillo@0: _ACEOF meillo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | meillo@0: $EGREP "memchr" >/dev/null 2>&1; then meillo@0: : meillo@0: else meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest* meillo@0: meillo@0: fi meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: meillo@0: _ACEOF meillo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | meillo@0: $EGREP "free" >/dev/null 2>&1; then meillo@0: : meillo@0: else meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f conftest* meillo@0: meillo@0: fi meillo@0: meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. meillo@0: if test "$cross_compiling" = yes; then meillo@0: : meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #if ((' ' & 0x0FF) == 0x020) meillo@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') meillo@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) meillo@0: #else meillo@0: # define ISLOWER(c) \ meillo@0: (('a' <= (c) && (c) <= 'i') \ meillo@0: || ('j' <= (c) && (c) <= 'r') \ meillo@0: || ('s' <= (c) && (c) <= 'z')) meillo@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) meillo@0: #endif meillo@0: meillo@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) meillo@0: int meillo@0: main () meillo@0: { meillo@0: int i; meillo@0: for (i = 0; i < 256; i++) meillo@0: if (XOR (islower (i), ISLOWER (i)) meillo@0: || toupper (i) != TOUPPER (i)) meillo@0: exit(2); meillo@0: exit (0); meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: : meillo@0: else meillo@0: echo "$as_me: program exited with status $ac_status" >&5 meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ( exit $ac_status ) meillo@0: ac_cv_header_stdc=no meillo@0: fi meillo@0: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 meillo@0: echo "${ECHO_T}$ac_cv_header_stdc" >&6 meillo@0: if test $ac_cv_header_stdc = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define STDC_HEADERS 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ meillo@0: inttypes.h stdint.h unistd.h meillo@0: do meillo@0: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 meillo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_includes_default meillo@0: meillo@0: #include <$ac_header> meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_Header=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_Header=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_Header'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: done meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: for ac_header in fcntl.h sys/time.h syslog.h unistd.h meillo@0: do meillo@0: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` meillo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then meillo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 meillo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 meillo@0: else meillo@0: # Is the header compilable? meillo@0: echo "$as_me:$LINENO: checking $ac_header usability" >&5 meillo@0: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_includes_default meillo@0: #include <$ac_header> meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_header_compiler=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_header_compiler=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 meillo@0: echo "${ECHO_T}$ac_header_compiler" >&6 meillo@0: meillo@0: # Is the header present? meillo@0: echo "$as_me:$LINENO: checking $ac_header presence" >&5 meillo@0: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include <$ac_header> meillo@0: _ACEOF meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 meillo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } >/dev/null; then meillo@0: if test -s conftest.err; then meillo@0: ac_cpp_err=$ac_c_preproc_warn_flag meillo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag meillo@0: else meillo@0: ac_cpp_err= meillo@0: fi meillo@0: else meillo@0: ac_cpp_err=yes meillo@0: fi meillo@0: if test -z "$ac_cpp_err"; then meillo@0: ac_header_preproc=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_header_preproc=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_ext meillo@0: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 meillo@0: echo "${ECHO_T}$ac_header_preproc" >&6 meillo@0: meillo@0: # So? What about this header? meillo@0: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in meillo@0: yes:no: ) meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} meillo@0: ac_header_preproc=yes meillo@0: ;; meillo@0: no:yes:* ) meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} meillo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 meillo@0: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} meillo@0: ( meillo@0: cat <<\_ASBOX meillo@0: ## ----------------------------- ## meillo@0: ## Report this to oku@debian.org ## meillo@0: ## ----------------------------- ## meillo@0: _ASBOX meillo@0: ) | meillo@0: sed "s/^/$as_me: WARNING: /" >&2 meillo@0: ;; meillo@0: esac meillo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 meillo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: eval "$as_ac_Header=\$ac_header_preproc" meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 meillo@0: meillo@0: fi meillo@0: if test `eval echo '${'$as_ac_Header'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: done meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 meillo@0: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 meillo@0: if test "${ac_cv_c_const+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: /* FIXME: Include the comments suggested by Paul. */ meillo@0: #ifndef __cplusplus meillo@0: /* Ultrix mips cc rejects this. */ meillo@0: typedef int charset[2]; meillo@0: const charset x; meillo@0: /* SunOS 4.1.1 cc rejects this. */ meillo@0: char const *const *ccp; meillo@0: char **p; meillo@0: /* NEC SVR4.0.2 mips cc rejects this. */ meillo@0: struct point {int x, y;}; meillo@0: static struct point const zero = {0,0}; meillo@0: /* AIX XL C 1.02.0.0 rejects this. meillo@0: It does not let you subtract one const X* pointer from another in meillo@0: an arm of an if-expression whose if-part is not a constant meillo@0: expression */ meillo@0: const char *g = "string"; meillo@0: ccp = &g + (g ? g-g : 0); meillo@0: /* HPUX 7.0 cc rejects these. */ meillo@0: ++ccp; meillo@0: p = (char**) ccp; meillo@0: ccp = (char const *const *) p; meillo@0: { /* SCO 3.2v4 cc rejects this. */ meillo@0: char *t; meillo@0: char const *s = 0 ? (char *) 0 : (char const *) 0; meillo@0: meillo@0: *t++ = 0; meillo@0: } meillo@0: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ meillo@0: int x[] = {25, 17}; meillo@0: const int *foo = &x[0]; meillo@0: ++foo; meillo@0: } meillo@0: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ meillo@0: typedef const int *iptr; meillo@0: iptr p = 0; meillo@0: ++p; meillo@0: } meillo@0: { /* AIX XL C 1.02.0.0 rejects this saying meillo@0: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ meillo@0: struct s { int j; const int *ap[3]; }; meillo@0: struct s *b; b->j = 5; meillo@0: } meillo@0: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ meillo@0: const int foo = 10; meillo@0: } meillo@0: #endif meillo@0: meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_c_const=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_c_const=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 meillo@0: echo "${ECHO_T}$ac_cv_c_const" >&6 meillo@0: if test $ac_cv_c_const = no; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define const meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: echo "$as_me:$LINENO: checking for pid_t" >&5 meillo@0: echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 meillo@0: if test "${ac_cv_type_pid_t+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_includes_default meillo@0: int meillo@0: main () meillo@0: { meillo@0: if ((pid_t *) 0) meillo@0: return 0; meillo@0: if (sizeof (pid_t)) meillo@0: return 0; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_type_pid_t=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_type_pid_t=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 meillo@0: echo "${ECHO_T}$ac_cv_type_pid_t" >&6 meillo@0: if test $ac_cv_type_pid_t = yes; then meillo@0: : meillo@0: else meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define pid_t int meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: echo "$as_me:$LINENO: checking for size_t" >&5 meillo@0: echo $ECHO_N "checking for size_t... $ECHO_C" >&6 meillo@0: if test "${ac_cv_type_size_t+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: $ac_includes_default meillo@0: int meillo@0: main () meillo@0: { meillo@0: if ((size_t *) 0) meillo@0: return 0; meillo@0: if (sizeof (size_t)) meillo@0: return 0; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_type_size_t=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_type_size_t=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 meillo@0: echo "${ECHO_T}$ac_cv_type_size_t" >&6 meillo@0: if test $ac_cv_type_size_t = yes; then meillo@0: : meillo@0: else meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define size_t unsigned meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 meillo@0: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 meillo@0: if test "${ac_cv_header_time+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: #include meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: if ((struct tm *) 0) meillo@0: return 0; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_header_time=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_header_time=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 meillo@0: echo "${ECHO_T}$ac_cv_header_time" >&6 meillo@0: if test $ac_cv_header_time = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define TIME_WITH_SYS_TIME 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 meillo@0: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 meillo@0: if test "${ac_cv_struct_tm+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: struct tm *tp; tp->tm_sec; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_struct_tm=time.h meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_struct_tm=sys/time.h meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 meillo@0: echo "${ECHO_T}$ac_cv_struct_tm" >&6 meillo@0: if test $ac_cv_struct_tm = sys/time.h; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define TM_IN_SYS_TIME 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5 meillo@0: echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6 meillo@0: if test "${ac_cv_func_fnmatch_works+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: # Some versions of Solaris, SCO, and the GNU C Library meillo@0: # have a broken or incompatible fnmatch. meillo@0: # So we run a test program. If we are cross-compiling, take no chance. meillo@0: # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. meillo@0: if test "$cross_compiling" = yes; then meillo@0: ac_cv_func_fnmatch_works=cross meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: # define y(a, b, c) (fnmatch (a, b, c) == 0) meillo@0: # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: exit meillo@0: (!(y ("a*", "abc", 0) meillo@0: && n ("d*/*1", "d/s/1", FNM_PATHNAME) meillo@0: && y ("a\\\\bc", "abc", 0) meillo@0: && n ("a\\\\bc", "abc", FNM_NOESCAPE) meillo@0: && y ("*x", ".x", 0) meillo@0: && n ("*x", ".x", FNM_PERIOD) meillo@0: && 1)); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_func_fnmatch_works=yes meillo@0: else meillo@0: echo "$as_me: program exited with status $ac_status" >&5 meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ( exit $ac_status ) meillo@0: ac_cv_func_fnmatch_works=no meillo@0: fi meillo@0: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5 meillo@0: echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6 meillo@0: if test $ac_cv_func_fnmatch_works = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define HAVE_FNMATCH 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: echo "$as_me:$LINENO: checking return type of signal handlers" >&5 meillo@0: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 meillo@0: if test "${ac_cv_type_signal+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: #include meillo@0: #include meillo@0: #ifdef signal meillo@0: # undef signal meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: extern "C" void (*signal (int, void (*)(int)))(int); meillo@0: #else meillo@0: void (*signal ()) (); meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: int i; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 meillo@0: (eval $ac_compile) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest.$ac_objext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_type_signal=void meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_type_signal=int meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 meillo@0: echo "${ECHO_T}$ac_cv_type_signal" >&6 meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define RETSIGTYPE $ac_cv_type_signal meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: meillo@0: for ac_func in strftime meillo@0: do meillo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 meillo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define $ac_func innocuous_$ac_func meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char $ac_func (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef $ac_func meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char $ac_func (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = $ac_func; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != $ac_func; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_var=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_var=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: else meillo@0: # strftime is in -lintl on SCO UNIX. meillo@0: echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 meillo@0: echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_intl_strftime+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lintl $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char strftime (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: strftime (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_intl_strftime=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_intl_strftime=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 meillo@0: if test $ac_cv_lib_intl_strftime = yes; then meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define HAVE_STRFTIME 1 meillo@0: _ACEOF meillo@0: meillo@0: LIBS="-lintl $LIBS" meillo@0: fi meillo@0: meillo@0: fi meillo@0: done meillo@0: meillo@0: meillo@0: for ac_func in vprintf meillo@0: do meillo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 meillo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define $ac_func innocuous_$ac_func meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char $ac_func (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef $ac_func meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char $ac_func (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = $ac_func; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != $ac_func; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_var=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_var=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: echo "$as_me:$LINENO: checking for _doprnt" >&5 meillo@0: echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 meillo@0: if test "${ac_cv_func__doprnt+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define _doprnt to an innocuous variant, in case declares _doprnt. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define _doprnt innocuous__doprnt meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char _doprnt (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef _doprnt meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char _doprnt (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub__doprnt) || defined (__stub____doprnt) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = _doprnt; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != _doprnt; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_func__doprnt=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_func__doprnt=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 meillo@0: echo "${ECHO_T}$ac_cv_func__doprnt" >&6 meillo@0: if test $ac_cv_func__doprnt = yes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define HAVE_DOPRNT 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: fi meillo@0: done meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: for ac_func in select socket strerror strstr meillo@0: do meillo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` meillo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 meillo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 meillo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. meillo@0: For example, HP-UX 11i declares gettimeofday. */ meillo@0: #define $ac_func innocuous_$ac_func meillo@0: meillo@0: /* System header to define __stub macros and hopefully few prototypes, meillo@0: which can conflict with char $ac_func (); below. meillo@0: Prefer to if __STDC__ is defined, since meillo@0: exists even on freestanding compilers. */ meillo@0: meillo@0: #ifdef __STDC__ meillo@0: # include meillo@0: #else meillo@0: # include meillo@0: #endif meillo@0: meillo@0: #undef $ac_func meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: { meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char $ac_func (); meillo@0: /* The GNU C library defines this for functions which it implements meillo@0: to always fail with ENOSYS. Some functions are actually named meillo@0: something starting with __ and the normal name is an alias. */ meillo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) meillo@0: choke me meillo@0: #else meillo@0: char (*f) () = $ac_func; meillo@0: #endif meillo@0: #ifdef __cplusplus meillo@0: } meillo@0: #endif meillo@0: meillo@0: int meillo@0: main () meillo@0: { meillo@0: return f != $ac_func; meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: eval "$as_ac_var=yes" meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: eval "$as_ac_var=no" meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 meillo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 meillo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: done meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --with-user or --without-user was given. meillo@0: if test "${with_user+set}" = set; then meillo@0: withval="$with_user" meillo@0: meillo@0: fi; meillo@0: if test "x$with_user" = 'x'; then meillo@0: with_user='mail' meillo@0: fi meillo@0: meillo@0: meillo@0: # Check whether --with-group or --without-group was given. meillo@0: if test "${with_group+set}" = set; then meillo@0: withval="$with_group" meillo@0: meillo@0: fi; meillo@0: if test "x$with_group" = 'x'; then meillo@0: with_group='trusted' meillo@0: fi meillo@0: meillo@0: # Check whether --enable-debug or --disable-debug was given. meillo@0: if test "${enable_debug+set}" = set; then meillo@0: enableval="$enable_debug" meillo@0: if test "x$enable_debug" != 'xno'; then meillo@0: debug_enabled='yes' meillo@0: fi meillo@0: else meillo@0: debug_enabled='yes' meillo@0: meillo@0: fi; meillo@0: if test "x$debug_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_DEBUG 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define DEF_MAIL_USER "${with_user}" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define DEF_MAIL_GROUP "${with_group}" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --with-glib_static or --without-glib_static was given. meillo@0: if test "${with_glib_static+set}" = set; then meillo@0: withval="$with_glib_static" meillo@0: meillo@0: fi; meillo@0: if test "x$with_glib_static" != 'x'; then meillo@0: GLIB_LIBS=$with_glib_static meillo@0: meillo@0: fi meillo@0: meillo@0: MD5_LIBS='' meillo@0: BASE64_LIBS='' meillo@0: meillo@0: # Check whether --enable-smtp_server or --disable-smtp_server was given. meillo@0: if test "${enable_smtp_server+set}" = set; then meillo@0: enableval="$enable_smtp_server" meillo@0: if test "x$enable_smtp_server" != 'xno'; then meillo@0: smtp_server_enabled='yes' meillo@0: fi meillo@0: else meillo@0: smtp_server_enabled='yes' meillo@0: meillo@0: fi; meillo@0: if test "x$smtp_server_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_SMTP_SERVER 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: # Check whether --enable-pop3 or --disable-pop3 was given. meillo@0: if test "${enable_pop3+set}" = set; then meillo@0: enableval="$enable_pop3" meillo@0: if test "x$enable_pop3" != 'xno'; then meillo@0: pop3_enabled='yes' meillo@0: fi meillo@0: else meillo@0: pop3_enabled='yes' meillo@0: meillo@0: fi; meillo@0: if test "x$pop3_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_POP3 1 meillo@0: _ACEOF meillo@0: meillo@0: # MD5_LIBS='md5/libmd5c.a' meillo@0: need_md5='yes' meillo@0: fi meillo@0: meillo@0: # Check whether --enable-auth or --disable-auth was given. meillo@0: if test "${enable_auth+set}" = set; then meillo@0: enableval="$enable_auth" meillo@0: if test "x$enable_auth" != 'xno'; then meillo@0: auth_enabled='yes' meillo@0: fi meillo@0: fi; meillo@0: if test "x$auth_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_AUTH 1 meillo@0: _ACEOF meillo@0: meillo@0: BASE64_LIBS='base64/libbase64.a' meillo@0: # MD5_LIBS='md5/libmd5c.a' meillo@0: need_md5='yes' meillo@0: fi meillo@0: meillo@0: meillo@0: # Check whether --enable-maildir or --disable-maildir was given. meillo@0: if test "${enable_maildir+set}" = set; then meillo@0: enableval="$enable_maildir" meillo@0: if test "x$enable_maildir" != 'xno'; then meillo@0: maildir_enabled='yes' meillo@0: fi meillo@0: fi; meillo@0: if test "x$maildir_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_MAILDIR 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: # Check whether --with-libcrypto or --without-libcrypto was given. meillo@0: if test "${with_libcrypto+set}" = set; then meillo@0: withval="$with_libcrypto" meillo@0: meillo@0: fi; meillo@0: if test "x$with_libcrypto" != 'xyes'; then meillo@0: with_libcrypto='no' meillo@0: fi meillo@0: meillo@0: if test "x$need_md5" = 'xyes'; then meillo@0: if test "x$with_libcrypto" = "xyes"; then meillo@0: echo "$as_me:$LINENO: checking for MD5 in -lcrypto" >&5 meillo@0: echo $ECHO_N "checking for MD5 in -lcrypto... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_crypto_MD5+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lcrypto $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char MD5 (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: MD5 (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_crypto_MD5=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_crypto_MD5=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_crypto_MD5" >&6 meillo@0: if test $ac_cv_lib_crypto_MD5 = yes; then meillo@0: has_crypto='yes' meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: 'no libcrypto'" >&5 meillo@0: echo "$as_me: error: 'no libcrypto'" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: if test "x$has_crypto" = 'xyes'; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define USE_LIB_CRYPTO 1 meillo@0: _ACEOF meillo@0: meillo@0: MD5_LIBS='-lcrypto' meillo@0: fi meillo@0: else meillo@0: MD5_LIBS='md5/libmd5c.a' meillo@0: fi meillo@0: fi meillo@0: meillo@0: meillo@0: IDENT_LIBS='' meillo@0: # Check whether --enable-ident or --disable-ident was given. meillo@0: if test "${enable_ident+set}" = set; then meillo@0: enableval="$enable_ident" meillo@0: if test "x$enable_ident" != 'xno'; then meillo@0: ident_enabled='yes' meillo@0: fi meillo@0: fi; meillo@0: meillo@0: if test "x$ident_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_IDENT 1 meillo@0: _ACEOF meillo@0: meillo@0: echo "$as_me:$LINENO: checking for ident_id in -lident" >&5 meillo@0: echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_ident_ident_id+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-lident $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char ident_id (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: ident_id (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_ident_ident_id=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_ident_ident_id=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6 meillo@0: if test $ac_cv_lib_ident_ident_id = yes; then meillo@0: IDENT_LIBS='-lident' meillo@0: else meillo@0: IDENT_LIBS='libident/libident.a' meillo@0: fi meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: # Check whether --enable-mserver or --disable-mserver was given. meillo@0: if test "${enable_mserver+set}" = set; then meillo@0: enableval="$enable_mserver" meillo@0: if test "x$enable_mserver" != 'xno'; then meillo@0: mserver_enabled='yes' meillo@0: fi meillo@0: fi; meillo@0: if test "x$mserver_enabled" = xyes; then meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define ENABLE_MSERVER 1 meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: meillo@0: meillo@0: # Check whether --with-liblockfile or --without-liblockfile was given. meillo@0: if test "${with_liblockfile+set}" = set; then meillo@0: withval="$with_liblockfile" meillo@0: meillo@0: fi; meillo@0: if test "x$with_liblockfile" != 'x'; then meillo@0: with_liblockfile='yes' meillo@0: fi meillo@0: if test "x$with_liblockfile" = xyes; then meillo@0: echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 meillo@0: echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 meillo@0: if test "${ac_cv_lib_lockfile_maillock+set}" = set; then meillo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 meillo@0: else meillo@0: ac_check_lib_save_LIBS=$LIBS meillo@0: LIBS="-llockfile $LIBS" meillo@0: cat >conftest.$ac_ext <<_ACEOF meillo@0: /* confdefs.h. */ meillo@0: _ACEOF meillo@0: cat confdefs.h >>conftest.$ac_ext meillo@0: cat >>conftest.$ac_ext <<_ACEOF meillo@0: /* end confdefs.h. */ meillo@0: meillo@0: /* Override any gcc2 internal prototype to avoid an error. */ meillo@0: #ifdef __cplusplus meillo@0: extern "C" meillo@0: #endif meillo@0: /* We use char because int might match the return type of a gcc2 meillo@0: builtin and then its argument prototype would still apply. */ meillo@0: char maillock (); meillo@0: int meillo@0: main () meillo@0: { meillo@0: maillock (); meillo@0: ; meillo@0: return 0; meillo@0: } meillo@0: _ACEOF meillo@0: rm -f conftest.$ac_objext conftest$ac_exeext meillo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 meillo@0: (eval $ac_link) 2>conftest.er1 meillo@0: ac_status=$? meillo@0: grep -v '^ *+' conftest.er1 >conftest.err meillo@0: rm -f conftest.er1 meillo@0: cat conftest.err >&5 meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); } && meillo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; } && meillo@0: { ac_try='test -s conftest$ac_exeext' meillo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 meillo@0: (eval $ac_try) 2>&5 meillo@0: ac_status=$? meillo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 meillo@0: (exit $ac_status); }; }; then meillo@0: ac_cv_lib_lockfile_maillock=yes meillo@0: else meillo@0: echo "$as_me: failed program was:" >&5 meillo@0: sed 's/^/| /' conftest.$ac_ext >&5 meillo@0: meillo@0: ac_cv_lib_lockfile_maillock=no meillo@0: fi meillo@0: rm -f conftest.err conftest.$ac_objext \ meillo@0: conftest$ac_exeext conftest.$ac_ext meillo@0: LIBS=$ac_check_lib_save_LIBS meillo@0: fi meillo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 meillo@0: echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 meillo@0: if test $ac_cv_lib_lockfile_maillock = yes; then meillo@0: has_lockfile=yes meillo@0: else meillo@0: { { echo "$as_me:$LINENO: error: \"no liblockfile\"" >&5 meillo@0: echo "$as_me: error: \"no liblockfile\"" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: LOCKFILE_LIBS='-llockfile' meillo@0: meillo@0: cat >>confdefs.h <<\_ACEOF meillo@0: #define USE_LIBLOCKFILE 1 meillo@0: _ACEOF meillo@0: meillo@0: else meillo@0: LOCKFILE_LIBS='' meillo@0: fi meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --with-logdir or --without-logdir was given. meillo@0: if test "${with_logdir+set}" = set; then meillo@0: withval="$with_logdir" meillo@0: meillo@0: else meillo@0: with_logdir='/var/log/masqmail/' meillo@0: meillo@0: fi; meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --with-spooldir or --without-spooldir was given. meillo@0: if test "${with_spooldir+set}" = set; then meillo@0: withval="$with_spooldir" meillo@0: meillo@0: else meillo@0: with_spooldir='/var/spool/masqmail/' meillo@0: meillo@0: fi; meillo@0: meillo@0: meillo@0: meillo@0: # Check whether --with-confdir or --without-confdir was given. meillo@0: if test "${with_confdir+set}" = set; then meillo@0: withval="$with_confdir" meillo@0: meillo@0: else meillo@0: with_confdir='/etc/masqmail' meillo@0: meillo@0: fi; meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define CONF_DIR "${with_confdir}" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: meillo@0: test "x$prefix" = xNONE && prefix="$ac_default_prefix" meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define DATA_DIR "`eval echo \""$datadir"\"`/masqmail" meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: if test "x${exec_prefix}" != 'xNONE'; then meillo@0: meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define SBINDIR "${exec_prefix}/sbin" meillo@0: _ACEOF meillo@0: meillo@0: else meillo@0: if test "x${prefix}" != 'xNONE'; then meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define SBINDIR "${prefix}/sbin" meillo@0: _ACEOF meillo@0: meillo@0: else meillo@0: cat >>confdefs.h <<_ACEOF meillo@0: #define SBINDIR "/usr/sbin" meillo@0: _ACEOF meillo@0: meillo@0: fi meillo@0: fi meillo@0: meillo@0: ac_config_files="$ac_config_files Makefile debian/Makefile docs/Makefile docs/man/Makefile docs/xml/Makefile tests/Makefile src/Makefile src/base64/Makefile src/md5/Makefile src/libident/Makefile suse/masqmail.spec redhat/masqmail.spec" meillo@0: cat >confcache <<\_ACEOF meillo@0: # This file is a shell script that caches the results of configure meillo@0: # tests run on this system so they can be shared between configure meillo@0: # scripts and configure runs, see configure's option --config-cache. meillo@0: # It is not useful on other systems. If it contains results you don't meillo@0: # want to keep, you may remove or edit it. meillo@0: # meillo@0: # config.status only pays attention to the cache file if you give it meillo@0: # the --recheck option to rerun configure. meillo@0: # meillo@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when meillo@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the meillo@0: # following values. meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: # The following way of writing the cache mishandles newlines in values, meillo@0: # but we know of no workaround that is simple, portable, and efficient. meillo@0: # So, don't put newlines in cache variables' values. meillo@0: # Ultrix sh set writes to stderr and can't be redirected directly, meillo@0: # and sets the high bit in the cache file unless we assign to the vars. meillo@0: { meillo@0: (set) 2>&1 | meillo@0: case `(ac_space=' '; set | grep ac_space) 2>&1` in meillo@0: *ac_space=\ *) meillo@0: # `set' does not quote correctly, so add quotes (double-quote meillo@0: # substitution turns \\\\ into \\, and sed turns \\ into \). meillo@0: sed -n \ meillo@0: "s/'/'\\\\''/g; meillo@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" meillo@0: ;; meillo@0: *) meillo@0: # `set' quotes correctly as required by POSIX, so do not add quotes. meillo@0: sed -n \ meillo@0: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" meillo@0: ;; meillo@0: esac; meillo@0: } | meillo@0: sed ' meillo@0: t clear meillo@0: : clear meillo@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ meillo@0: t end meillo@0: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ meillo@0: : end' >>confcache meillo@0: if diff $cache_file confcache >/dev/null 2>&1; then :; else meillo@0: if test -w $cache_file; then meillo@0: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" meillo@0: cat confcache >$cache_file meillo@0: else meillo@0: echo "not updating unwritable cache $cache_file" meillo@0: fi meillo@0: fi meillo@0: rm -f confcache meillo@0: meillo@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix meillo@0: # Let make expand exec_prefix. meillo@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' meillo@0: meillo@0: # VPATH may cause trouble with some makes, so we remove $(srcdir), meillo@0: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and meillo@0: # trailing colons and then remove the whole line if VPATH becomes empty meillo@0: # (actually we leave an empty line to preserve line numbers). meillo@0: if test "x$srcdir" = x.; then meillo@0: ac_vpsub='/^[ ]*VPATH[ ]*=/{ meillo@0: s/:*\$(srcdir):*/:/; meillo@0: s/:*\${srcdir}:*/:/; meillo@0: s/:*@srcdir@:*/:/; meillo@0: s/^\([^=]*=[ ]*\):*/\1/; meillo@0: s/:*$//; meillo@0: s/^[^=]*=[ ]*$//; meillo@0: }' meillo@0: fi meillo@0: meillo@0: DEFS=-DHAVE_CONFIG_H meillo@0: meillo@0: ac_libobjs= meillo@0: ac_ltlibobjs= meillo@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue meillo@0: # 1. Remove the extension, and $U if already installed. meillo@0: ac_i=`echo "$ac_i" | meillo@0: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` meillo@0: # 2. Add them. meillo@0: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" meillo@0: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' meillo@0: done meillo@0: LIBOBJS=$ac_libobjs meillo@0: meillo@0: LTLIBOBJS=$ac_ltlibobjs meillo@0: meillo@0: meillo@0: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then meillo@0: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. meillo@0: Usually this means the macro was only invoked conditionally." >&5 meillo@0: echo "$as_me: error: conditional \"AMDEP\" was never defined. meillo@0: Usually this means the macro was only invoked conditionally." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then meillo@0: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. meillo@0: Usually this means the macro was only invoked conditionally." >&5 meillo@0: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. meillo@0: Usually this means the macro was only invoked conditionally." >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: meillo@0: : ${CONFIG_STATUS=./config.status} meillo@0: ac_clean_files_save=$ac_clean_files meillo@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" meillo@0: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 meillo@0: echo "$as_me: creating $CONFIG_STATUS" >&6;} meillo@0: cat >$CONFIG_STATUS <<_ACEOF meillo@0: #! $SHELL meillo@0: # Generated by $as_me. meillo@0: # Run this file to recreate the current configuration. meillo@0: # Compiler output produced by configure, useful for debugging meillo@0: # configure, is in config.log if it exists. meillo@0: meillo@0: debug=false meillo@0: ac_cs_recheck=false meillo@0: ac_cs_silent=false meillo@0: SHELL=\${CONFIG_SHELL-$SHELL} meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: ## --------------------- ## meillo@0: ## M4sh Initialization. ## meillo@0: ## --------------------- ## meillo@0: meillo@0: # Be Bourne compatible meillo@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then meillo@0: emulate sh meillo@0: NULLCMD=: meillo@0: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which meillo@0: # is contrary to our usage. Disable this feature. meillo@0: alias -g '${1+"$@"}'='"$@"' meillo@0: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then meillo@0: set -o posix meillo@0: fi meillo@0: DUALCASE=1; export DUALCASE # for MKS sh meillo@0: meillo@0: # Support unset when possible. meillo@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then meillo@0: as_unset=unset meillo@0: else meillo@0: as_unset=false meillo@0: fi meillo@0: meillo@0: meillo@0: # Work around bugs in pre-3.0 UWIN ksh. meillo@0: $as_unset ENV MAIL MAILPATH meillo@0: PS1='$ ' meillo@0: PS2='> ' meillo@0: PS4='+ ' meillo@0: meillo@0: # NLS nuisances. meillo@0: for as_var in \ meillo@0: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ meillo@0: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ meillo@0: LC_TELEPHONE LC_TIME meillo@0: do meillo@0: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then meillo@0: eval $as_var=C; export $as_var meillo@0: else meillo@0: $as_unset $as_var meillo@0: fi meillo@0: done meillo@0: meillo@0: # Required to use basename. meillo@0: if expr a : '\(a\)' >/dev/null 2>&1; then meillo@0: as_expr=expr meillo@0: else meillo@0: as_expr=false meillo@0: fi meillo@0: meillo@0: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then meillo@0: as_basename=basename meillo@0: else meillo@0: as_basename=false meillo@0: fi meillo@0: meillo@0: meillo@0: # Name of the executable. meillo@0: as_me=`$as_basename "$0" || meillo@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ meillo@0: X"$0" : 'X\(//\)$' \| \ meillo@0: X"$0" : 'X\(/\)$' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X/"$0" | meillo@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } meillo@0: /^X\/\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\/\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: meillo@0: meillo@0: # PATH needs CR, and LINENO needs CR and PATH. meillo@0: # Avoid depending upon Character Ranges. meillo@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' meillo@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' meillo@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS meillo@0: as_cr_digits='0123456789' meillo@0: as_cr_alnum=$as_cr_Letters$as_cr_digits meillo@0: meillo@0: # The user is always right. meillo@0: if test "${PATH_SEPARATOR+set}" != set; then meillo@0: echo "#! /bin/sh" >conf$$.sh meillo@0: echo "exit 0" >>conf$$.sh meillo@0: chmod +x conf$$.sh meillo@0: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then meillo@0: PATH_SEPARATOR=';' meillo@0: else meillo@0: PATH_SEPARATOR=: meillo@0: fi meillo@0: rm -f conf$$.sh meillo@0: fi meillo@0: meillo@0: meillo@0: as_lineno_1=$LINENO meillo@0: as_lineno_2=$LINENO meillo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` meillo@0: test "x$as_lineno_1" != "x$as_lineno_2" && meillo@0: test "x$as_lineno_3" = "x$as_lineno_2" || { meillo@0: # Find who we are. Look in the path if we contain no path at all meillo@0: # relative or not. meillo@0: case $0 in meillo@0: *[\\/]* ) as_myself=$0 ;; meillo@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in $PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break meillo@0: done meillo@0: meillo@0: ;; meillo@0: esac meillo@0: # We did not find ourselves, most probably we were run as `sh COMMAND' meillo@0: # in which case we are not to be found in the path. meillo@0: if test "x$as_myself" = x; then meillo@0: as_myself=$0 meillo@0: fi meillo@0: if test ! -f "$as_myself"; then meillo@0: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 meillo@0: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi meillo@0: case $CONFIG_SHELL in meillo@0: '') meillo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR meillo@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH meillo@0: do meillo@0: IFS=$as_save_IFS meillo@0: test -z "$as_dir" && as_dir=. meillo@0: for as_base in sh bash ksh sh5; do meillo@0: case $as_dir in meillo@0: /*) meillo@0: if ("$as_dir/$as_base" -c ' meillo@0: as_lineno_1=$LINENO meillo@0: as_lineno_2=$LINENO meillo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` meillo@0: test "x$as_lineno_1" != "x$as_lineno_2" && meillo@0: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then meillo@0: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } meillo@0: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } meillo@0: CONFIG_SHELL=$as_dir/$as_base meillo@0: export CONFIG_SHELL meillo@0: exec "$CONFIG_SHELL" "$0" ${1+"$@"} meillo@0: fi;; meillo@0: esac meillo@0: done meillo@0: done meillo@0: ;; meillo@0: esac meillo@0: meillo@0: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO meillo@0: # uniformly replaced by the line number. The first 'sed' inserts a meillo@0: # line-number line before each line; the second 'sed' does the real meillo@0: # work. The second script uses 'N' to pair each line-number line meillo@0: # with the numbered line, and appends trailing '-' during meillo@0: # substitution so that $LINENO is not a special case at line end. meillo@0: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the meillo@0: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) meillo@0: sed '=' <$as_myself | meillo@0: sed ' meillo@0: N meillo@0: s,$,-, meillo@0: : loop meillo@0: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, meillo@0: t loop meillo@0: s,-$,, meillo@0: s,^['$as_cr_digits']*\n,, meillo@0: ' >$as_me.lineno && meillo@0: chmod +x $as_me.lineno || meillo@0: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 meillo@0: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: meillo@0: # Don't try to exec as it changes $[0], causing all sort of problems meillo@0: # (the dirname of $[0] is not the place where we might find the meillo@0: # original and so on. Autoconf is especially sensible to this). meillo@0: . ./$as_me.lineno meillo@0: # Exit status is that of the last command. meillo@0: exit meillo@0: } meillo@0: meillo@0: meillo@0: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in meillo@0: *c*,-n*) ECHO_N= ECHO_C=' meillo@0: ' ECHO_T=' ' ;; meillo@0: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; meillo@0: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; meillo@0: esac meillo@0: meillo@0: if expr a : '\(a\)' >/dev/null 2>&1; then meillo@0: as_expr=expr meillo@0: else meillo@0: as_expr=false meillo@0: fi meillo@0: meillo@0: rm -f conf$$ conf$$.exe conf$$.file meillo@0: echo >conf$$.file meillo@0: if ln -s conf$$.file conf$$ 2>/dev/null; then meillo@0: # We could just check for DJGPP; but this test a) works b) is more generic meillo@0: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). meillo@0: if test -f conf$$.exe; then meillo@0: # Don't use ln at all; we don't have any links meillo@0: as_ln_s='cp -p' meillo@0: else meillo@0: as_ln_s='ln -s' meillo@0: fi meillo@0: elif ln conf$$.file conf$$ 2>/dev/null; then meillo@0: as_ln_s=ln meillo@0: else meillo@0: as_ln_s='cp -p' meillo@0: fi meillo@0: rm -f conf$$ conf$$.exe conf$$.file meillo@0: meillo@0: if mkdir -p . 2>/dev/null; then meillo@0: as_mkdir_p=: meillo@0: else meillo@0: test -d ./-p && rmdir ./-p meillo@0: as_mkdir_p=false meillo@0: fi meillo@0: meillo@0: as_executable_p="test -f" meillo@0: meillo@0: # Sed expression to map a string onto a valid CPP name. meillo@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" meillo@0: meillo@0: # Sed expression to map a string onto a valid variable name. meillo@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" meillo@0: meillo@0: meillo@0: # IFS meillo@0: # We need space, tab and new line, in precisely that order. meillo@0: as_nl=' meillo@0: ' meillo@0: IFS=" $as_nl" meillo@0: meillo@0: # CDPATH. meillo@0: $as_unset CDPATH meillo@0: meillo@0: exec 6>&1 meillo@0: meillo@0: # Open the log real soon, to keep \$[0] and so on meaningful, and to meillo@0: # report actual input values of CONFIG_FILES etc. instead of their meillo@0: # values after options handling. Logging --version etc. is OK. meillo@0: exec 5>>config.log meillo@0: { meillo@0: echo meillo@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX meillo@0: ## Running $as_me. ## meillo@0: _ASBOX meillo@0: } >&5 meillo@0: cat >&5 <<_CSEOF meillo@0: meillo@0: This file was extended by masqmail $as_me 0.2.21, which was meillo@0: generated by GNU Autoconf 2.59. Invocation command line was meillo@0: meillo@0: CONFIG_FILES = $CONFIG_FILES meillo@0: CONFIG_HEADERS = $CONFIG_HEADERS meillo@0: CONFIG_LINKS = $CONFIG_LINKS meillo@0: CONFIG_COMMANDS = $CONFIG_COMMANDS meillo@0: $ $0 $@ meillo@0: meillo@0: _CSEOF meillo@0: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 meillo@0: echo >&5 meillo@0: _ACEOF meillo@0: meillo@0: # Files that config.status was made for. meillo@0: if test -n "$ac_config_files"; then meillo@0: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS meillo@0: fi meillo@0: meillo@0: if test -n "$ac_config_headers"; then meillo@0: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS meillo@0: fi meillo@0: meillo@0: if test -n "$ac_config_links"; then meillo@0: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS meillo@0: fi meillo@0: meillo@0: if test -n "$ac_config_commands"; then meillo@0: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS meillo@0: fi meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: meillo@0: ac_cs_usage="\ meillo@0: \`$as_me' instantiates files from templates according to the meillo@0: current configuration. meillo@0: meillo@0: Usage: $0 [OPTIONS] [FILE]... meillo@0: meillo@0: -h, --help print this help, then exit meillo@0: -V, --version print version number, then exit meillo@0: -q, --quiet do not print progress messages meillo@0: -d, --debug don't remove temporary files meillo@0: --recheck update $as_me by reconfiguring in the same conditions meillo@0: --file=FILE[:TEMPLATE] meillo@0: instantiate the configuration file FILE meillo@0: --header=FILE[:TEMPLATE] meillo@0: instantiate the configuration header FILE meillo@0: meillo@0: Configuration files: meillo@0: $config_files meillo@0: meillo@0: Configuration headers: meillo@0: $config_headers meillo@0: meillo@0: Configuration commands: meillo@0: $config_commands meillo@0: meillo@0: Report bugs to ." meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<_ACEOF meillo@0: ac_cs_version="\\ meillo@0: masqmail config.status 0.2.21 meillo@0: configured by $0, generated by GNU Autoconf 2.59, meillo@0: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" meillo@0: meillo@0: Copyright (C) 2003 Free Software Foundation, Inc. meillo@0: This config.status script is free software; the Free Software Foundation meillo@0: gives unlimited permission to copy, distribute and modify it." meillo@0: srcdir=$srcdir meillo@0: INSTALL="$INSTALL" meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: # If no file are specified by the user, then we need to provide default meillo@0: # value. By we need to know if files were specified by the user. meillo@0: ac_need_defaults=: meillo@0: while test $# != 0 meillo@0: do meillo@0: case $1 in meillo@0: --*=*) meillo@0: ac_option=`expr "x$1" : 'x\([^=]*\)='` meillo@0: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` meillo@0: ac_shift=: meillo@0: ;; meillo@0: -*) meillo@0: ac_option=$1 meillo@0: ac_optarg=$2 meillo@0: ac_shift=shift meillo@0: ;; meillo@0: *) # This is not an option, so the user has probably given explicit meillo@0: # arguments. meillo@0: ac_option=$1 meillo@0: ac_need_defaults=false;; meillo@0: esac meillo@0: meillo@0: case $ac_option in meillo@0: # Handling of the options. meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) meillo@0: ac_cs_recheck=: ;; meillo@0: --version | --vers* | -V ) meillo@0: echo "$ac_cs_version"; exit 0 ;; meillo@0: --he | --h) meillo@0: # Conflict between --help and --header meillo@0: { { echo "$as_me:$LINENO: error: ambiguous option: $1 meillo@0: Try \`$0 --help' for more information." >&5 meillo@0: echo "$as_me: error: ambiguous option: $1 meillo@0: Try \`$0 --help' for more information." >&2;} meillo@0: { (exit 1); exit 1; }; };; meillo@0: --help | --hel | -h ) meillo@0: echo "$ac_cs_usage"; exit 0 ;; meillo@0: --debug | --d* | -d ) meillo@0: debug=: ;; meillo@0: --file | --fil | --fi | --f ) meillo@0: $ac_shift meillo@0: CONFIG_FILES="$CONFIG_FILES $ac_optarg" meillo@0: ac_need_defaults=false;; meillo@0: --header | --heade | --head | --hea ) meillo@0: $ac_shift meillo@0: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" meillo@0: ac_need_defaults=false;; meillo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ meillo@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) meillo@0: ac_cs_silent=: ;; meillo@0: meillo@0: # This is an error. meillo@0: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 meillo@0: Try \`$0 --help' for more information." >&5 meillo@0: echo "$as_me: error: unrecognized option: $1 meillo@0: Try \`$0 --help' for more information." >&2;} meillo@0: { (exit 1); exit 1; }; } ;; meillo@0: meillo@0: *) ac_config_targets="$ac_config_targets $1" ;; meillo@0: meillo@0: esac meillo@0: shift meillo@0: done meillo@0: meillo@0: ac_configure_extra_args= meillo@0: meillo@0: if $ac_cs_silent; then meillo@0: exec 6>/dev/null meillo@0: ac_configure_extra_args="$ac_configure_extra_args --silent" meillo@0: fi meillo@0: meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<_ACEOF meillo@0: if \$ac_cs_recheck; then meillo@0: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 meillo@0: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion meillo@0: fi meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<_ACEOF meillo@0: # meillo@0: # INIT-COMMANDS section. meillo@0: # meillo@0: meillo@0: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: for ac_config_target in $ac_config_targets meillo@0: do meillo@0: case "$ac_config_target" in meillo@0: # Handling of arguments. meillo@0: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; meillo@0: "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; meillo@0: "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; meillo@0: "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;; meillo@0: "docs/xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/xml/Makefile" ;; meillo@0: "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; meillo@0: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; meillo@0: "src/base64/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base64/Makefile" ;; meillo@0: "src/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/md5/Makefile" ;; meillo@0: "src/libident/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libident/Makefile" ;; meillo@0: "suse/masqmail.spec" ) CONFIG_FILES="$CONFIG_FILES suse/masqmail.spec" ;; meillo@0: "redhat/masqmail.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/masqmail.spec" ;; meillo@0: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; meillo@0: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; meillo@0: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 meillo@0: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} meillo@0: { (exit 1); exit 1; }; };; meillo@0: esac meillo@0: done meillo@0: meillo@0: # If the user did not use the arguments to specify the items to instantiate, meillo@0: # then the envvar interface is used. Set only those that are not. meillo@0: # We use the long form for the default assignment because of an extremely meillo@0: # bizarre bug on SunOS 4.1.3. meillo@0: if $ac_need_defaults; then meillo@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files meillo@0: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers meillo@0: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands meillo@0: fi meillo@0: meillo@0: # Have a temporary directory for convenience. Make it in the build tree meillo@0: # simply because there is no reason to put it here, and in addition, meillo@0: # creating and moving files from /tmp can sometimes cause problems. meillo@0: # Create a temporary directory, and hook for its removal unless debugging. meillo@0: $debug || meillo@0: { meillo@0: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 meillo@0: trap '{ (exit 1); exit 1; }' 1 2 13 15 meillo@0: } meillo@0: meillo@0: # Create a (secure) tmp directory for tmp files. meillo@0: meillo@0: { meillo@0: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && meillo@0: test -n "$tmp" && test -d "$tmp" meillo@0: } || meillo@0: { meillo@0: tmp=./confstat$$-$RANDOM meillo@0: (umask 077 && mkdir $tmp) meillo@0: } || meillo@0: { meillo@0: echo "$me: cannot create a temporary directory in ." >&2 meillo@0: { (exit 1); exit 1; } meillo@0: } meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<_ACEOF meillo@0: meillo@0: # meillo@0: # CONFIG_FILES section. meillo@0: # meillo@0: meillo@0: # No need to generate the scripts if there are no CONFIG_FILES. meillo@0: # This happens for instance when ./config.status config.h meillo@0: if test -n "\$CONFIG_FILES"; then meillo@0: # Protect against being on the right side of a sed subst in config.status. meillo@0: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; meillo@0: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF meillo@0: s,@SHELL@,$SHELL,;t t meillo@0: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t meillo@0: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t meillo@0: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t meillo@0: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t meillo@0: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t meillo@0: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t meillo@0: s,@exec_prefix@,$exec_prefix,;t t meillo@0: s,@prefix@,$prefix,;t t meillo@0: s,@program_transform_name@,$program_transform_name,;t t meillo@0: s,@bindir@,$bindir,;t t meillo@0: s,@sbindir@,$sbindir,;t t meillo@0: s,@libexecdir@,$libexecdir,;t t meillo@0: s,@datadir@,$datadir,;t t meillo@0: s,@sysconfdir@,$sysconfdir,;t t meillo@0: s,@sharedstatedir@,$sharedstatedir,;t t meillo@0: s,@localstatedir@,$localstatedir,;t t meillo@0: s,@libdir@,$libdir,;t t meillo@0: s,@includedir@,$includedir,;t t meillo@0: s,@oldincludedir@,$oldincludedir,;t t meillo@0: s,@infodir@,$infodir,;t t meillo@0: s,@mandir@,$mandir,;t t meillo@0: s,@build_alias@,$build_alias,;t t meillo@0: s,@host_alias@,$host_alias,;t t meillo@0: s,@target_alias@,$target_alias,;t t meillo@0: s,@DEFS@,$DEFS,;t t meillo@0: s,@ECHO_C@,$ECHO_C,;t t meillo@0: s,@ECHO_N@,$ECHO_N,;t t meillo@0: s,@ECHO_T@,$ECHO_T,;t t meillo@0: s,@LIBS@,$LIBS,;t t meillo@0: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t meillo@0: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t meillo@0: s,@INSTALL_DATA@,$INSTALL_DATA,;t t meillo@0: s,@CYGPATH_W@,$CYGPATH_W,;t t meillo@0: s,@PACKAGE@,$PACKAGE,;t t meillo@0: s,@VERSION@,$VERSION,;t t meillo@0: s,@ACLOCAL@,$ACLOCAL,;t t meillo@0: s,@AUTOCONF@,$AUTOCONF,;t t meillo@0: s,@AUTOMAKE@,$AUTOMAKE,;t t meillo@0: s,@AUTOHEADER@,$AUTOHEADER,;t t meillo@0: s,@MAKEINFO@,$MAKEINFO,;t t meillo@0: s,@AMTAR@,$AMTAR,;t t meillo@0: s,@install_sh@,$install_sh,;t t meillo@0: s,@STRIP@,$STRIP,;t t meillo@0: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t meillo@0: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t meillo@0: s,@AWK@,$AWK,;t t meillo@0: s,@SET_MAKE@,$SET_MAKE,;t t meillo@0: s,@am__leading_dot@,$am__leading_dot,;t t meillo@0: s,@CC@,$CC,;t t meillo@0: s,@CFLAGS@,$CFLAGS,;t t meillo@0: s,@LDFLAGS@,$LDFLAGS,;t t meillo@0: s,@CPPFLAGS@,$CPPFLAGS,;t t meillo@0: s,@ac_ct_CC@,$ac_ct_CC,;t t meillo@0: s,@EXEEXT@,$EXEEXT,;t t meillo@0: s,@OBJEXT@,$OBJEXT,;t t meillo@0: s,@DEPDIR@,$DEPDIR,;t t meillo@0: s,@am__include@,$am__include,;t t meillo@0: s,@am__quote@,$am__quote,;t t meillo@0: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t meillo@0: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t meillo@0: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t meillo@0: s,@CCDEPMODE@,$CCDEPMODE,;t t meillo@0: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t meillo@0: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t meillo@0: s,@CPP@,$CPP,;t t meillo@0: s,@EGREP@,$EGREP,;t t meillo@0: s,@RANLIB@,$RANLIB,;t t meillo@0: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t meillo@0: s,@PKG_CONFIG@,$PKG_CONFIG,;t t meillo@0: s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t meillo@0: s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t meillo@0: s,@GLIB_LIBS@,$GLIB_LIBS,;t t meillo@0: s,@RESOLV_LIBS@,$RESOLV_LIBS,;t t meillo@0: s,@with_user@,$with_user,;t t meillo@0: s,@with_group@,$with_group,;t t meillo@0: s,@BASE64_LIBS@,$BASE64_LIBS,;t t meillo@0: s,@MD5_LIBS@,$MD5_LIBS,;t t meillo@0: s,@has_ident@,$has_ident,;t t meillo@0: s,@IDENT_LIBS@,$IDENT_LIBS,;t t meillo@0: s,@LOCKFILE_LIBS@,$LOCKFILE_LIBS,;t t meillo@0: s,@USE_LIBLOCKFILE@,$USE_LIBLOCKFILE,;t t meillo@0: s,@with_logdir@,$with_logdir,;t t meillo@0: s,@with_spooldir@,$with_spooldir,;t t meillo@0: s,@with_confdir@,$with_confdir,;t t meillo@0: s,@LIBOBJS@,$LIBOBJS,;t t meillo@0: s,@LTLIBOBJS@,$LTLIBOBJS,;t t meillo@0: CEOF meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: # Split the substitutions into bite-sized pieces for seds with meillo@0: # small command number limits, like on Digital OSF/1 and HP-UX. meillo@0: ac_max_sed_lines=48 meillo@0: ac_sed_frag=1 # Number of current file. meillo@0: ac_beg=1 # First line for current file. meillo@0: ac_end=$ac_max_sed_lines # Line after last line for current file. meillo@0: ac_more_lines=: meillo@0: ac_sed_cmds= meillo@0: while $ac_more_lines; do meillo@0: if test $ac_beg -gt 1; then meillo@0: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag meillo@0: else meillo@0: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag meillo@0: fi meillo@0: if test ! -s $tmp/subs.frag; then meillo@0: ac_more_lines=false meillo@0: else meillo@0: # The purpose of the label and of the branching condition is to meillo@0: # speed up the sed processing (if there are no `@' at all, there meillo@0: # is no need to browse any of the substitutions). meillo@0: # These are the two extra sed commands mentioned above. meillo@0: (echo ':t meillo@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed meillo@0: if test -z "$ac_sed_cmds"; then meillo@0: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" meillo@0: else meillo@0: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" meillo@0: fi meillo@0: ac_sed_frag=`expr $ac_sed_frag + 1` meillo@0: ac_beg=$ac_end meillo@0: ac_end=`expr $ac_end + $ac_max_sed_lines` meillo@0: fi meillo@0: done meillo@0: if test -z "$ac_sed_cmds"; then meillo@0: ac_sed_cmds=cat meillo@0: fi meillo@0: fi # test -n "$CONFIG_FILES" meillo@0: meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue meillo@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". meillo@0: case $ac_file in meillo@0: - | *:- | *:-:* ) # input from stdin meillo@0: cat >$tmp/stdin meillo@0: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` meillo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; meillo@0: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` meillo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; meillo@0: * ) ac_file_in=$ac_file.in ;; meillo@0: esac meillo@0: meillo@0: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. meillo@0: ac_dir=`(dirname "$ac_file") 2>/dev/null || meillo@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$ac_file" : 'X\(//\)[^/]' \| \ meillo@0: X"$ac_file" : 'X\(//\)$' \| \ meillo@0: X"$ac_file" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$ac_file" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: { if $as_mkdir_p; then meillo@0: mkdir -p "$ac_dir" meillo@0: else meillo@0: as_dir="$ac_dir" meillo@0: as_dirs= meillo@0: while test ! -d "$as_dir"; do meillo@0: as_dirs="$as_dir $as_dirs" meillo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || meillo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ meillo@0: X"$as_dir" : 'X\(//\)$' \| \ meillo@0: X"$as_dir" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$as_dir" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: done meillo@0: test ! -n "$as_dirs" || mkdir $as_dirs meillo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 meillo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} meillo@0: { (exit 1); exit 1; }; }; } meillo@0: meillo@0: ac_builddir=. meillo@0: meillo@0: if test "$ac_dir" != .; then meillo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` meillo@0: # A "../" for each directory in $ac_dir_suffix. meillo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` meillo@0: else meillo@0: ac_dir_suffix= ac_top_builddir= meillo@0: fi meillo@0: meillo@0: case $srcdir in meillo@0: .) # No --srcdir option. We are building in place. meillo@0: ac_srcdir=. meillo@0: if test -z "$ac_top_builddir"; then meillo@0: ac_top_srcdir=. meillo@0: else meillo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` meillo@0: fi ;; meillo@0: [\\/]* | ?:[\\/]* ) # Absolute path. meillo@0: ac_srcdir=$srcdir$ac_dir_suffix; meillo@0: ac_top_srcdir=$srcdir ;; meillo@0: *) # Relative path. meillo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix meillo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; meillo@0: esac meillo@0: meillo@0: # Do not use `cd foo && pwd` to compute absolute paths, because meillo@0: # the directories may not exist. meillo@0: case `pwd` in meillo@0: .) ac_abs_builddir="$ac_dir";; meillo@0: *) meillo@0: case "$ac_dir" in meillo@0: .) ac_abs_builddir=`pwd`;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; meillo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) meillo@0: case ${ac_top_builddir}. in meillo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) meillo@0: case $ac_srcdir in meillo@0: .) ac_abs_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) meillo@0: case $ac_top_srcdir in meillo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: meillo@0: meillo@0: case $INSTALL in meillo@0: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; meillo@0: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; meillo@0: esac meillo@0: meillo@0: # Let's still pretend it is `configure' which instantiates (i.e., don't meillo@0: # use $as_me), people would be surprised to read: meillo@0: # /* config.h. Generated by config.status. */ meillo@0: if test x"$ac_file" = x-; then meillo@0: configure_input= meillo@0: else meillo@0: configure_input="$ac_file. " meillo@0: fi meillo@0: configure_input=$configure_input"Generated from `echo $ac_file_in | meillo@0: sed 's,.*/,,'` by configure." meillo@0: meillo@0: # First look for the input files in the build tree, otherwise in the meillo@0: # src tree. meillo@0: ac_file_inputs=`IFS=: meillo@0: for f in $ac_file_in; do meillo@0: case $f in meillo@0: -) echo $tmp/stdin ;; meillo@0: [\\/$]*) meillo@0: # Absolute (can't be DOS-style, as IFS=:) meillo@0: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 meillo@0: echo "$as_me: error: cannot find input file: $f" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: echo "$f";; meillo@0: *) # Relative meillo@0: if test -f "$f"; then meillo@0: # Build tree meillo@0: echo "$f" meillo@0: elif test -f "$srcdir/$f"; then meillo@0: # Source tree meillo@0: echo "$srcdir/$f" meillo@0: else meillo@0: # /dev/null tree meillo@0: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 meillo@0: echo "$as_me: error: cannot find input file: $f" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi;; meillo@0: esac meillo@0: done` || { (exit 1); exit 1; } meillo@0: meillo@0: if test x"$ac_file" != x-; then meillo@0: { echo "$as_me:$LINENO: creating $ac_file" >&5 meillo@0: echo "$as_me: creating $ac_file" >&6;} meillo@0: rm -f "$ac_file" meillo@0: fi meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<_ACEOF meillo@0: sed "$ac_vpsub meillo@0: $extrasub meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: :t meillo@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b meillo@0: s,@configure_input@,$configure_input,;t t meillo@0: s,@srcdir@,$ac_srcdir,;t t meillo@0: s,@abs_srcdir@,$ac_abs_srcdir,;t t meillo@0: s,@top_srcdir@,$ac_top_srcdir,;t t meillo@0: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t meillo@0: s,@builddir@,$ac_builddir,;t t meillo@0: s,@abs_builddir@,$ac_abs_builddir,;t t meillo@0: s,@top_builddir@,$ac_top_builddir,;t t meillo@0: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t meillo@0: s,@INSTALL@,$ac_INSTALL,;t t meillo@0: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out meillo@0: rm -f $tmp/stdin meillo@0: if test x"$ac_file" != x-; then meillo@0: mv $tmp/out $ac_file meillo@0: else meillo@0: cat $tmp/out meillo@0: rm -f $tmp/out meillo@0: fi meillo@0: meillo@0: done meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: meillo@0: # meillo@0: # CONFIG_HEADER section. meillo@0: # meillo@0: meillo@0: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where meillo@0: # NAME is the cpp macro being defined and VALUE is the value it is being given. meillo@0: # meillo@0: # ac_d sets the value in "#define NAME VALUE" lines. meillo@0: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' meillo@0: ac_dB='[ ].*$,\1#\2' meillo@0: ac_dC=' ' meillo@0: ac_dD=',;t' meillo@0: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". meillo@0: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' meillo@0: ac_uB='$,\1#\2define\3' meillo@0: ac_uC=' ' meillo@0: ac_uD=',;t' meillo@0: meillo@0: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue meillo@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". meillo@0: case $ac_file in meillo@0: - | *:- | *:-:* ) # input from stdin meillo@0: cat >$tmp/stdin meillo@0: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` meillo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; meillo@0: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` meillo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; meillo@0: * ) ac_file_in=$ac_file.in ;; meillo@0: esac meillo@0: meillo@0: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 meillo@0: echo "$as_me: creating $ac_file" >&6;} meillo@0: meillo@0: # First look for the input files in the build tree, otherwise in the meillo@0: # src tree. meillo@0: ac_file_inputs=`IFS=: meillo@0: for f in $ac_file_in; do meillo@0: case $f in meillo@0: -) echo $tmp/stdin ;; meillo@0: [\\/$]*) meillo@0: # Absolute (can't be DOS-style, as IFS=:) meillo@0: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 meillo@0: echo "$as_me: error: cannot find input file: $f" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: # Do quote $f, to prevent DOS paths from being IFS'd. meillo@0: echo "$f";; meillo@0: *) # Relative meillo@0: if test -f "$f"; then meillo@0: # Build tree meillo@0: echo "$f" meillo@0: elif test -f "$srcdir/$f"; then meillo@0: # Source tree meillo@0: echo "$srcdir/$f" meillo@0: else meillo@0: # /dev/null tree meillo@0: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 meillo@0: echo "$as_me: error: cannot find input file: $f" >&2;} meillo@0: { (exit 1); exit 1; }; } meillo@0: fi;; meillo@0: esac meillo@0: done` || { (exit 1); exit 1; } meillo@0: # Remove the trailing spaces. meillo@0: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in meillo@0: meillo@0: _ACEOF meillo@0: meillo@0: # Transform confdefs.h into two sed scripts, `conftest.defines' and meillo@0: # `conftest.undefs', that substitutes the proper values into meillo@0: # config.h.in to produce config.h. The first handles `#define' meillo@0: # templates, and the second `#undef' templates. meillo@0: # And first: Protect against being on the right side of a sed subst in meillo@0: # config.status. Protect against being in an unquoted here document meillo@0: # in config.status. meillo@0: rm -f conftest.defines conftest.undefs meillo@0: # Using a here document instead of a string reduces the quoting nightmare. meillo@0: # Putting comments in sed scripts is not portable. meillo@0: # meillo@0: # `end' is used to avoid that the second main sed command (meant for meillo@0: # 0-ary CPP macros) applies to n-ary macro definitions. meillo@0: # See the Autoconf documentation for `clear'. meillo@0: cat >confdef2sed.sed <<\_ACEOF meillo@0: s/[\\&,]/\\&/g meillo@0: s,[\\$`],\\&,g meillo@0: t clear meillo@0: : clear meillo@0: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp meillo@0: t end meillo@0: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp meillo@0: : end meillo@0: _ACEOF meillo@0: # If some macros were called several times there might be several times meillo@0: # the same #defines, which is useless. Nevertheless, we may not want to meillo@0: # sort them, since we want the *last* AC-DEFINE to be honored. meillo@0: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines meillo@0: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs meillo@0: rm -f confdef2sed.sed meillo@0: meillo@0: # This sed command replaces #undef with comments. This is necessary, for meillo@0: # example, in the case of _POSIX_SOURCE, which is predefined and required meillo@0: # on some systems where configure will not decide to define it. meillo@0: cat >>conftest.undefs <<\_ACEOF meillo@0: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, meillo@0: _ACEOF meillo@0: meillo@0: # Break up conftest.defines because some shells have a limit on the size meillo@0: # of here documents, and old seds have small limits too (100 cmds). meillo@0: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS meillo@0: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS meillo@0: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS meillo@0: echo ' :' >>$CONFIG_STATUS meillo@0: rm -f conftest.tail meillo@0: while grep . conftest.defines >/dev/null meillo@0: do meillo@0: # Write a limited-size here document to $tmp/defines.sed. meillo@0: echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS meillo@0: # Speed up: don't consider the non `#define' lines. meillo@0: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS meillo@0: # Work around the forget-to-reset-the-flag bug. meillo@0: echo 't clr' >>$CONFIG_STATUS meillo@0: echo ': clr' >>$CONFIG_STATUS meillo@0: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS meillo@0: echo 'CEOF meillo@0: sed -f $tmp/defines.sed $tmp/in >$tmp/out meillo@0: rm -f $tmp/in meillo@0: mv $tmp/out $tmp/in meillo@0: ' >>$CONFIG_STATUS meillo@0: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail meillo@0: rm -f conftest.defines meillo@0: mv conftest.tail conftest.defines meillo@0: done meillo@0: rm -f conftest.defines meillo@0: echo ' fi # grep' >>$CONFIG_STATUS meillo@0: echo >>$CONFIG_STATUS meillo@0: meillo@0: # Break up conftest.undefs because some shells have a limit on the size meillo@0: # of here documents, and old seds have small limits too (100 cmds). meillo@0: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS meillo@0: rm -f conftest.tail meillo@0: while grep . conftest.undefs >/dev/null meillo@0: do meillo@0: # Write a limited-size here document to $tmp/undefs.sed. meillo@0: echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS meillo@0: # Speed up: don't consider the non `#undef' meillo@0: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS meillo@0: # Work around the forget-to-reset-the-flag bug. meillo@0: echo 't clr' >>$CONFIG_STATUS meillo@0: echo ': clr' >>$CONFIG_STATUS meillo@0: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS meillo@0: echo 'CEOF meillo@0: sed -f $tmp/undefs.sed $tmp/in >$tmp/out meillo@0: rm -f $tmp/in meillo@0: mv $tmp/out $tmp/in meillo@0: ' >>$CONFIG_STATUS meillo@0: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail meillo@0: rm -f conftest.undefs meillo@0: mv conftest.tail conftest.undefs meillo@0: done meillo@0: rm -f conftest.undefs meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: # Let's still pretend it is `configure' which instantiates (i.e., don't meillo@0: # use $as_me), people would be surprised to read: meillo@0: # /* config.h. Generated by config.status. */ meillo@0: if test x"$ac_file" = x-; then meillo@0: echo "/* Generated by configure. */" >$tmp/config.h meillo@0: else meillo@0: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h meillo@0: fi meillo@0: cat $tmp/in >>$tmp/config.h meillo@0: rm -f $tmp/in meillo@0: if test x"$ac_file" != x-; then meillo@0: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then meillo@0: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 meillo@0: echo "$as_me: $ac_file is unchanged" >&6;} meillo@0: else meillo@0: ac_dir=`(dirname "$ac_file") 2>/dev/null || meillo@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$ac_file" : 'X\(//\)[^/]' \| \ meillo@0: X"$ac_file" : 'X\(//\)$' \| \ meillo@0: X"$ac_file" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$ac_file" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: { if $as_mkdir_p; then meillo@0: mkdir -p "$ac_dir" meillo@0: else meillo@0: as_dir="$ac_dir" meillo@0: as_dirs= meillo@0: while test ! -d "$as_dir"; do meillo@0: as_dirs="$as_dir $as_dirs" meillo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || meillo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ meillo@0: X"$as_dir" : 'X\(//\)$' \| \ meillo@0: X"$as_dir" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$as_dir" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: done meillo@0: test ! -n "$as_dirs" || mkdir $as_dirs meillo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 meillo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} meillo@0: { (exit 1); exit 1; }; }; } meillo@0: meillo@0: rm -f $ac_file meillo@0: mv $tmp/config.h $ac_file meillo@0: fi meillo@0: else meillo@0: cat $tmp/config.h meillo@0: rm -f $tmp/config.h meillo@0: fi meillo@0: # Compute $ac_file's index in $config_headers. meillo@0: _am_stamp_count=1 meillo@0: for _am_header in $config_headers :; do meillo@0: case $_am_header in meillo@0: $ac_file | $ac_file:* ) meillo@0: break ;; meillo@0: * ) meillo@0: _am_stamp_count=`expr $_am_stamp_count + 1` ;; meillo@0: esac meillo@0: done meillo@0: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || meillo@0: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X$ac_file : 'X\(//\)[^/]' \| \ meillo@0: X$ac_file : 'X\(//\)$' \| \ meillo@0: X$ac_file : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X$ac_file | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'`/stamp-h$_am_stamp_count meillo@0: done meillo@0: _ACEOF meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: meillo@0: # meillo@0: # CONFIG_COMMANDS section. meillo@0: # meillo@0: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue meillo@0: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` meillo@0: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` meillo@0: ac_dir=`(dirname "$ac_dest") 2>/dev/null || meillo@0: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$ac_dest" : 'X\(//\)[^/]' \| \ meillo@0: X"$ac_dest" : 'X\(//\)$' \| \ meillo@0: X"$ac_dest" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$ac_dest" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: { if $as_mkdir_p; then meillo@0: mkdir -p "$ac_dir" meillo@0: else meillo@0: as_dir="$ac_dir" meillo@0: as_dirs= meillo@0: while test ! -d "$as_dir"; do meillo@0: as_dirs="$as_dir $as_dirs" meillo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || meillo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ meillo@0: X"$as_dir" : 'X\(//\)$' \| \ meillo@0: X"$as_dir" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$as_dir" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: done meillo@0: test ! -n "$as_dirs" || mkdir $as_dirs meillo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 meillo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} meillo@0: { (exit 1); exit 1; }; }; } meillo@0: meillo@0: ac_builddir=. meillo@0: meillo@0: if test "$ac_dir" != .; then meillo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` meillo@0: # A "../" for each directory in $ac_dir_suffix. meillo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` meillo@0: else meillo@0: ac_dir_suffix= ac_top_builddir= meillo@0: fi meillo@0: meillo@0: case $srcdir in meillo@0: .) # No --srcdir option. We are building in place. meillo@0: ac_srcdir=. meillo@0: if test -z "$ac_top_builddir"; then meillo@0: ac_top_srcdir=. meillo@0: else meillo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` meillo@0: fi ;; meillo@0: [\\/]* | ?:[\\/]* ) # Absolute path. meillo@0: ac_srcdir=$srcdir$ac_dir_suffix; meillo@0: ac_top_srcdir=$srcdir ;; meillo@0: *) # Relative path. meillo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix meillo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; meillo@0: esac meillo@0: meillo@0: # Do not use `cd foo && pwd` to compute absolute paths, because meillo@0: # the directories may not exist. meillo@0: case `pwd` in meillo@0: .) ac_abs_builddir="$ac_dir";; meillo@0: *) meillo@0: case "$ac_dir" in meillo@0: .) ac_abs_builddir=`pwd`;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; meillo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) meillo@0: case ${ac_top_builddir}. in meillo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; meillo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) meillo@0: case $ac_srcdir in meillo@0: .) ac_abs_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; meillo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: case $ac_abs_builddir in meillo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) meillo@0: case $ac_top_srcdir in meillo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; meillo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; meillo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; meillo@0: esac;; meillo@0: esac meillo@0: meillo@0: meillo@0: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 meillo@0: echo "$as_me: executing $ac_dest commands" >&6;} meillo@0: case $ac_dest in meillo@0: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do meillo@0: # Strip MF so we end up with the name of the file. meillo@0: mf=`echo "$mf" | sed -e 's/:.*$//'` meillo@0: # Check whether this is an Automake generated Makefile or not. meillo@0: # We used to match only the files named `Makefile.in', but meillo@0: # some people rename them; so instead we look at the file content. meillo@0: # Grep'ing the first line is not enough: some people post-process meillo@0: # each Makefile.in and add a new line on top of each file to say so. meillo@0: # So let's grep whole file. meillo@0: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then meillo@0: dirpart=`(dirname "$mf") 2>/dev/null || meillo@0: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$mf" : 'X\(//\)[^/]' \| \ meillo@0: X"$mf" : 'X\(//\)$' \| \ meillo@0: X"$mf" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$mf" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: else meillo@0: continue meillo@0: fi meillo@0: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue meillo@0: # Extract the definition of DEP_FILES from the Makefile without meillo@0: # running `make'. meillo@0: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` meillo@0: test -z "$DEPDIR" && continue meillo@0: # When using ansi2knr, U may be empty or an underscore; expand it meillo@0: U=`sed -n -e '/^U = / s///p' < "$mf"` meillo@0: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" meillo@0: # We invoke sed twice because it is the simplest approach to meillo@0: # changing $(DEPDIR) to its actual value in the expansion. meillo@0: for file in `sed -n -e ' meillo@0: /^DEP_FILES = .*\\\\$/ { meillo@0: s/^DEP_FILES = // meillo@0: :loop meillo@0: s/\\\\$// meillo@0: p meillo@0: n meillo@0: /\\\\$/ b loop meillo@0: p meillo@0: } meillo@0: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ meillo@0: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do meillo@0: # Make sure the directory exists. meillo@0: test -f "$dirpart/$file" && continue meillo@0: fdir=`(dirname "$file") 2>/dev/null || meillo@0: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$file" : 'X\(//\)[^/]' \| \ meillo@0: X"$file" : 'X\(//\)$' \| \ meillo@0: X"$file" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$file" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: { if $as_mkdir_p; then meillo@0: mkdir -p $dirpart/$fdir meillo@0: else meillo@0: as_dir=$dirpart/$fdir meillo@0: as_dirs= meillo@0: while test ! -d "$as_dir"; do meillo@0: as_dirs="$as_dir $as_dirs" meillo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || meillo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ meillo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ meillo@0: X"$as_dir" : 'X\(//\)$' \| \ meillo@0: X"$as_dir" : 'X\(/\)' \| \ meillo@0: . : '\(.\)' 2>/dev/null || meillo@0: echo X"$as_dir" | meillo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } meillo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } meillo@0: /^X\(\/\/\)$/{ s//\1/; q; } meillo@0: /^X\(\/\).*/{ s//\1/; q; } meillo@0: s/.*/./; q'` meillo@0: done meillo@0: test ! -n "$as_dirs" || mkdir $as_dirs meillo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 meillo@0: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} meillo@0: { (exit 1); exit 1; }; }; } meillo@0: meillo@0: # echo "creating $dirpart/$file" meillo@0: echo '# dummy' > "$dirpart/$file" meillo@0: done meillo@0: done meillo@0: ;; meillo@0: esac meillo@0: done meillo@0: _ACEOF meillo@0: meillo@0: cat >>$CONFIG_STATUS <<\_ACEOF meillo@0: meillo@0: { (exit 0); exit 0; } meillo@0: _ACEOF meillo@0: chmod +x $CONFIG_STATUS meillo@0: ac_clean_files=$ac_clean_files_save meillo@0: meillo@0: meillo@0: # configure is writing to config.log, and then calls config.status. meillo@0: # config.status does its own redirection, appending to config.log. meillo@0: # Unfortunately, on DOS this fails, as config.log is still kept open meillo@0: # by configure, so config.status won't be able to write to it; its meillo@0: # output is simply discarded. So we exec the FD to /dev/null, meillo@0: # effectively closing config.log, so it can be properly (re)opened and meillo@0: # appended to by config.status. When coming back to configure, we meillo@0: # need to make the FD available again. meillo@0: if test "$no_create" != yes; then meillo@0: ac_cs_success=: meillo@0: ac_config_status_args= meillo@0: test "$silent" = yes && meillo@0: ac_config_status_args="$ac_config_status_args --quiet" meillo@0: exec 5>/dev/null meillo@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false meillo@0: exec 5>>config.log meillo@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which meillo@0: # would make configure fail if this is the last instruction. meillo@0: $ac_cs_success || { (exit 1); exit 1; } meillo@0: fi meillo@0: