masqmail-0.2

annotate configure @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children af25f5c39d90
rev   line source
meillo@0 1 #! /bin/sh
meillo@0 2 # Guess values for system-dependent variables and create Makefiles.
meillo@0 3 # Generated by GNU Autoconf 2.59 for masqmail 0.2.21.
meillo@0 4 #
meillo@0 5 # Report bugs to <oku@debian.org>.
meillo@0 6 #
meillo@0 7 # Copyright (C) 2003 Free Software Foundation, Inc.
meillo@0 8 # This configure script is free software; the Free Software Foundation
meillo@0 9 # gives unlimited permission to copy, distribute and modify it.
meillo@0 10 ## --------------------- ##
meillo@0 11 ## M4sh Initialization. ##
meillo@0 12 ## --------------------- ##
meillo@0 13
meillo@0 14 # Be Bourne compatible
meillo@0 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
meillo@0 16 emulate sh
meillo@0 17 NULLCMD=:
meillo@0 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
meillo@0 19 # is contrary to our usage. Disable this feature.
meillo@0 20 alias -g '${1+"$@"}'='"$@"'
meillo@0 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
meillo@0 22 set -o posix
meillo@0 23 fi
meillo@0 24 DUALCASE=1; export DUALCASE # for MKS sh
meillo@0 25
meillo@0 26 # Support unset when possible.
meillo@0 27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
meillo@0 28 as_unset=unset
meillo@0 29 else
meillo@0 30 as_unset=false
meillo@0 31 fi
meillo@0 32
meillo@0 33
meillo@0 34 # Work around bugs in pre-3.0 UWIN ksh.
meillo@0 35 $as_unset ENV MAIL MAILPATH
meillo@0 36 PS1='$ '
meillo@0 37 PS2='> '
meillo@0 38 PS4='+ '
meillo@0 39
meillo@0 40 # NLS nuisances.
meillo@0 41 for as_var in \
meillo@0 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
meillo@0 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
meillo@0 44 LC_TELEPHONE LC_TIME
meillo@0 45 do
meillo@0 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
meillo@0 47 eval $as_var=C; export $as_var
meillo@0 48 else
meillo@0 49 $as_unset $as_var
meillo@0 50 fi
meillo@0 51 done
meillo@0 52
meillo@0 53 # Required to use basename.
meillo@0 54 if expr a : '\(a\)' >/dev/null 2>&1; then
meillo@0 55 as_expr=expr
meillo@0 56 else
meillo@0 57 as_expr=false
meillo@0 58 fi
meillo@0 59
meillo@0 60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
meillo@0 61 as_basename=basename
meillo@0 62 else
meillo@0 63 as_basename=false
meillo@0 64 fi
meillo@0 65
meillo@0 66
meillo@0 67 # Name of the executable.
meillo@0 68 as_me=`$as_basename "$0" ||
meillo@0 69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
meillo@0 70 X"$0" : 'X\(//\)$' \| \
meillo@0 71 X"$0" : 'X\(/\)$' \| \
meillo@0 72 . : '\(.\)' 2>/dev/null ||
meillo@0 73 echo X/"$0" |
meillo@0 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
meillo@0 75 /^X\/\(\/\/\)$/{ s//\1/; q; }
meillo@0 76 /^X\/\(\/\).*/{ s//\1/; q; }
meillo@0 77 s/.*/./; q'`
meillo@0 78
meillo@0 79
meillo@0 80 # PATH needs CR, and LINENO needs CR and PATH.
meillo@0 81 # Avoid depending upon Character Ranges.
meillo@0 82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
meillo@0 83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
meillo@0 84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
meillo@0 85 as_cr_digits='0123456789'
meillo@0 86 as_cr_alnum=$as_cr_Letters$as_cr_digits
meillo@0 87
meillo@0 88 # The user is always right.
meillo@0 89 if test "${PATH_SEPARATOR+set}" != set; then
meillo@0 90 echo "#! /bin/sh" >conf$$.sh
meillo@0 91 echo "exit 0" >>conf$$.sh
meillo@0 92 chmod +x conf$$.sh
meillo@0 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
meillo@0 94 PATH_SEPARATOR=';'
meillo@0 95 else
meillo@0 96 PATH_SEPARATOR=:
meillo@0 97 fi
meillo@0 98 rm -f conf$$.sh
meillo@0 99 fi
meillo@0 100
meillo@0 101
meillo@0 102 as_lineno_1=$LINENO
meillo@0 103 as_lineno_2=$LINENO
meillo@0 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
meillo@0 105 test "x$as_lineno_1" != "x$as_lineno_2" &&
meillo@0 106 test "x$as_lineno_3" = "x$as_lineno_2" || {
meillo@0 107 # Find who we are. Look in the path if we contain no path at all
meillo@0 108 # relative or not.
meillo@0 109 case $0 in
meillo@0 110 *[\\/]* ) as_myself=$0 ;;
meillo@0 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 112 for as_dir in $PATH
meillo@0 113 do
meillo@0 114 IFS=$as_save_IFS
meillo@0 115 test -z "$as_dir" && as_dir=.
meillo@0 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
meillo@0 117 done
meillo@0 118
meillo@0 119 ;;
meillo@0 120 esac
meillo@0 121 # We did not find ourselves, most probably we were run as `sh COMMAND'
meillo@0 122 # in which case we are not to be found in the path.
meillo@0 123 if test "x$as_myself" = x; then
meillo@0 124 as_myself=$0
meillo@0 125 fi
meillo@0 126 if test ! -f "$as_myself"; then
meillo@0 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
meillo@0 128 { (exit 1); exit 1; }; }
meillo@0 129 fi
meillo@0 130 case $CONFIG_SHELL in
meillo@0 131 '')
meillo@0 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
meillo@0 134 do
meillo@0 135 IFS=$as_save_IFS
meillo@0 136 test -z "$as_dir" && as_dir=.
meillo@0 137 for as_base in sh bash ksh sh5; do
meillo@0 138 case $as_dir in
meillo@0 139 /*)
meillo@0 140 if ("$as_dir/$as_base" -c '
meillo@0 141 as_lineno_1=$LINENO
meillo@0 142 as_lineno_2=$LINENO
meillo@0 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
meillo@0 144 test "x$as_lineno_1" != "x$as_lineno_2" &&
meillo@0 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
meillo@0 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
meillo@0 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
meillo@0 148 CONFIG_SHELL=$as_dir/$as_base
meillo@0 149 export CONFIG_SHELL
meillo@0 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
meillo@0 151 fi;;
meillo@0 152 esac
meillo@0 153 done
meillo@0 154 done
meillo@0 155 ;;
meillo@0 156 esac
meillo@0 157
meillo@0 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
meillo@0 159 # uniformly replaced by the line number. The first 'sed' inserts a
meillo@0 160 # line-number line before each line; the second 'sed' does the real
meillo@0 161 # work. The second script uses 'N' to pair each line-number line
meillo@0 162 # with the numbered line, and appends trailing '-' during
meillo@0 163 # substitution so that $LINENO is not a special case at line end.
meillo@0 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
meillo@0 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
meillo@0 166 sed '=' <$as_myself |
meillo@0 167 sed '
meillo@0 168 N
meillo@0 169 s,$,-,
meillo@0 170 : loop
meillo@0 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
meillo@0 172 t loop
meillo@0 173 s,-$,,
meillo@0 174 s,^['$as_cr_digits']*\n,,
meillo@0 175 ' >$as_me.lineno &&
meillo@0 176 chmod +x $as_me.lineno ||
meillo@0 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
meillo@0 178 { (exit 1); exit 1; }; }
meillo@0 179
meillo@0 180 # Don't try to exec as it changes $[0], causing all sort of problems
meillo@0 181 # (the dirname of $[0] is not the place where we might find the
meillo@0 182 # original and so on. Autoconf is especially sensible to this).
meillo@0 183 . ./$as_me.lineno
meillo@0 184 # Exit status is that of the last command.
meillo@0 185 exit
meillo@0 186 }
meillo@0 187
meillo@0 188
meillo@0 189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
meillo@0 190 *c*,-n*) ECHO_N= ECHO_C='
meillo@0 191 ' ECHO_T=' ' ;;
meillo@0 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
meillo@0 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
meillo@0 194 esac
meillo@0 195
meillo@0 196 if expr a : '\(a\)' >/dev/null 2>&1; then
meillo@0 197 as_expr=expr
meillo@0 198 else
meillo@0 199 as_expr=false
meillo@0 200 fi
meillo@0 201
meillo@0 202 rm -f conf$$ conf$$.exe conf$$.file
meillo@0 203 echo >conf$$.file
meillo@0 204 if ln -s conf$$.file conf$$ 2>/dev/null; then
meillo@0 205 # We could just check for DJGPP; but this test a) works b) is more generic
meillo@0 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
meillo@0 207 if test -f conf$$.exe; then
meillo@0 208 # Don't use ln at all; we don't have any links
meillo@0 209 as_ln_s='cp -p'
meillo@0 210 else
meillo@0 211 as_ln_s='ln -s'
meillo@0 212 fi
meillo@0 213 elif ln conf$$.file conf$$ 2>/dev/null; then
meillo@0 214 as_ln_s=ln
meillo@0 215 else
meillo@0 216 as_ln_s='cp -p'
meillo@0 217 fi
meillo@0 218 rm -f conf$$ conf$$.exe conf$$.file
meillo@0 219
meillo@0 220 if mkdir -p . 2>/dev/null; then
meillo@0 221 as_mkdir_p=:
meillo@0 222 else
meillo@0 223 test -d ./-p && rmdir ./-p
meillo@0 224 as_mkdir_p=false
meillo@0 225 fi
meillo@0 226
meillo@0 227 as_executable_p="test -f"
meillo@0 228
meillo@0 229 # Sed expression to map a string onto a valid CPP name.
meillo@0 230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
meillo@0 231
meillo@0 232 # Sed expression to map a string onto a valid variable name.
meillo@0 233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
meillo@0 234
meillo@0 235
meillo@0 236 # IFS
meillo@0 237 # We need space, tab and new line, in precisely that order.
meillo@0 238 as_nl='
meillo@0 239 '
meillo@0 240 IFS=" $as_nl"
meillo@0 241
meillo@0 242 # CDPATH.
meillo@0 243 $as_unset CDPATH
meillo@0 244
meillo@0 245
meillo@0 246 # Name of the host.
meillo@0 247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
meillo@0 248 # so uname gets run too.
meillo@0 249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
meillo@0 250
meillo@0 251 exec 6>&1
meillo@0 252
meillo@0 253 #
meillo@0 254 # Initializations.
meillo@0 255 #
meillo@0 256 ac_default_prefix=/usr/local
meillo@0 257 ac_config_libobj_dir=.
meillo@0 258 cross_compiling=no
meillo@0 259 subdirs=
meillo@0 260 MFLAGS=
meillo@0 261 MAKEFLAGS=
meillo@0 262 SHELL=${CONFIG_SHELL-/bin/sh}
meillo@0 263
meillo@0 264 # Maximum number of lines to put in a shell here document.
meillo@0 265 # This variable seems obsolete. It should probably be removed, and
meillo@0 266 # only ac_max_sed_lines should be used.
meillo@0 267 : ${ac_max_here_lines=38}
meillo@0 268
meillo@0 269 # Identity of this package.
meillo@0 270 PACKAGE_NAME='masqmail'
meillo@0 271 PACKAGE_TARNAME='masqmail'
meillo@0 272 PACKAGE_VERSION='0.2.21'
meillo@0 273 PACKAGE_STRING='masqmail 0.2.21'
meillo@0 274 PACKAGE_BUGREPORT='oku@debian.org'
meillo@0 275
meillo@0 276 ac_unique_file="src/masqmail.c"
meillo@0 277 ac_default_prefix=/usr
meillo@0 278 # Factoring default headers for most tests.
meillo@0 279 ac_includes_default="\
meillo@0 280 #include <stdio.h>
meillo@0 281 #if HAVE_SYS_TYPES_H
meillo@0 282 # include <sys/types.h>
meillo@0 283 #endif
meillo@0 284 #if HAVE_SYS_STAT_H
meillo@0 285 # include <sys/stat.h>
meillo@0 286 #endif
meillo@0 287 #if STDC_HEADERS
meillo@0 288 # include <stdlib.h>
meillo@0 289 # include <stddef.h>
meillo@0 290 #else
meillo@0 291 # if HAVE_STDLIB_H
meillo@0 292 # include <stdlib.h>
meillo@0 293 # endif
meillo@0 294 #endif
meillo@0 295 #if HAVE_STRING_H
meillo@0 296 # if !STDC_HEADERS && HAVE_MEMORY_H
meillo@0 297 # include <memory.h>
meillo@0 298 # endif
meillo@0 299 # include <string.h>
meillo@0 300 #endif
meillo@0 301 #if HAVE_STRINGS_H
meillo@0 302 # include <strings.h>
meillo@0 303 #endif
meillo@0 304 #if HAVE_INTTYPES_H
meillo@0 305 # include <inttypes.h>
meillo@0 306 #else
meillo@0 307 # if HAVE_STDINT_H
meillo@0 308 # include <stdint.h>
meillo@0 309 # endif
meillo@0 310 #endif
meillo@0 311 #if HAVE_UNISTD_H
meillo@0 312 # include <unistd.h>
meillo@0 313 #endif"
meillo@0 314
meillo@0 315 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 316 ac_subst_files=''
meillo@0 317
meillo@0 318 # Initialize some variables set by options.
meillo@0 319 ac_init_help=
meillo@0 320 ac_init_version=false
meillo@0 321 # The variables have the same names as the options, with
meillo@0 322 # dashes changed to underlines.
meillo@0 323 cache_file=/dev/null
meillo@0 324 exec_prefix=NONE
meillo@0 325 no_create=
meillo@0 326 no_recursion=
meillo@0 327 prefix=NONE
meillo@0 328 program_prefix=NONE
meillo@0 329 program_suffix=NONE
meillo@0 330 program_transform_name=s,x,x,
meillo@0 331 silent=
meillo@0 332 site=
meillo@0 333 srcdir=
meillo@0 334 verbose=
meillo@0 335 x_includes=NONE
meillo@0 336 x_libraries=NONE
meillo@0 337
meillo@0 338 # Installation directory options.
meillo@0 339 # These are left unexpanded so users can "make install exec_prefix=/foo"
meillo@0 340 # and all the variables that are supposed to be based on exec_prefix
meillo@0 341 # by default will actually change.
meillo@0 342 # Use braces instead of parens because sh, perl, etc. also accept them.
meillo@0 343 bindir='${exec_prefix}/bin'
meillo@0 344 sbindir='${exec_prefix}/sbin'
meillo@0 345 libexecdir='${exec_prefix}/libexec'
meillo@0 346 datadir='${prefix}/share'
meillo@0 347 sysconfdir='${prefix}/etc'
meillo@0 348 sharedstatedir='${prefix}/com'
meillo@0 349 localstatedir='${prefix}/var'
meillo@0 350 libdir='${exec_prefix}/lib'
meillo@0 351 includedir='${prefix}/include'
meillo@0 352 oldincludedir='/usr/include'
meillo@0 353 infodir='${prefix}/info'
meillo@0 354 mandir='${prefix}/man'
meillo@0 355
meillo@0 356 ac_prev=
meillo@0 357 for ac_option
meillo@0 358 do
meillo@0 359 # If the previous option needs an argument, assign it.
meillo@0 360 if test -n "$ac_prev"; then
meillo@0 361 eval "$ac_prev=\$ac_option"
meillo@0 362 ac_prev=
meillo@0 363 continue
meillo@0 364 fi
meillo@0 365
meillo@0 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
meillo@0 367
meillo@0 368 # Accept the important Cygnus configure options, so we can diagnose typos.
meillo@0 369
meillo@0 370 case $ac_option in
meillo@0 371
meillo@0 372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
meillo@0 373 ac_prev=bindir ;;
meillo@0 374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
meillo@0 375 bindir=$ac_optarg ;;
meillo@0 376
meillo@0 377 -build | --build | --buil | --bui | --bu)
meillo@0 378 ac_prev=build_alias ;;
meillo@0 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
meillo@0 380 build_alias=$ac_optarg ;;
meillo@0 381
meillo@0 382 -cache-file | --cache-file | --cache-fil | --cache-fi \
meillo@0 383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
meillo@0 384 ac_prev=cache_file ;;
meillo@0 385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
meillo@0 386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
meillo@0 387 cache_file=$ac_optarg ;;
meillo@0 388
meillo@0 389 --config-cache | -C)
meillo@0 390 cache_file=config.cache ;;
meillo@0 391
meillo@0 392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
meillo@0 393 ac_prev=datadir ;;
meillo@0 394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
meillo@0 395 | --da=*)
meillo@0 396 datadir=$ac_optarg ;;
meillo@0 397
meillo@0 398 -disable-* | --disable-*)
meillo@0 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
meillo@0 400 # Reject names that are not valid shell variable names.
meillo@0 401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
meillo@0 402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
meillo@0 403 { (exit 1); exit 1; }; }
meillo@0 404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
meillo@0 405 eval "enable_$ac_feature=no" ;;
meillo@0 406
meillo@0 407 -enable-* | --enable-*)
meillo@0 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
meillo@0 409 # Reject names that are not valid shell variable names.
meillo@0 410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
meillo@0 411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
meillo@0 412 { (exit 1); exit 1; }; }
meillo@0 413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
meillo@0 414 case $ac_option in
meillo@0 415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
meillo@0 416 *) ac_optarg=yes ;;
meillo@0 417 esac
meillo@0 418 eval "enable_$ac_feature='$ac_optarg'" ;;
meillo@0 419
meillo@0 420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
meillo@0 421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
meillo@0 422 | --exec | --exe | --ex)
meillo@0 423 ac_prev=exec_prefix ;;
meillo@0 424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
meillo@0 425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
meillo@0 426 | --exec=* | --exe=* | --ex=*)
meillo@0 427 exec_prefix=$ac_optarg ;;
meillo@0 428
meillo@0 429 -gas | --gas | --ga | --g)
meillo@0 430 # Obsolete; use --with-gas.
meillo@0 431 with_gas=yes ;;
meillo@0 432
meillo@0 433 -help | --help | --hel | --he | -h)
meillo@0 434 ac_init_help=long ;;
meillo@0 435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
meillo@0 436 ac_init_help=recursive ;;
meillo@0 437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
meillo@0 438 ac_init_help=short ;;
meillo@0 439
meillo@0 440 -host | --host | --hos | --ho)
meillo@0 441 ac_prev=host_alias ;;
meillo@0 442 -host=* | --host=* | --hos=* | --ho=*)
meillo@0 443 host_alias=$ac_optarg ;;
meillo@0 444
meillo@0 445 -includedir | --includedir | --includedi | --included | --include \
meillo@0 446 | --includ | --inclu | --incl | --inc)
meillo@0 447 ac_prev=includedir ;;
meillo@0 448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
meillo@0 449 | --includ=* | --inclu=* | --incl=* | --inc=*)
meillo@0 450 includedir=$ac_optarg ;;
meillo@0 451
meillo@0 452 -infodir | --infodir | --infodi | --infod | --info | --inf)
meillo@0 453 ac_prev=infodir ;;
meillo@0 454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
meillo@0 455 infodir=$ac_optarg ;;
meillo@0 456
meillo@0 457 -libdir | --libdir | --libdi | --libd)
meillo@0 458 ac_prev=libdir ;;
meillo@0 459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
meillo@0 460 libdir=$ac_optarg ;;
meillo@0 461
meillo@0 462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
meillo@0 463 | --libexe | --libex | --libe)
meillo@0 464 ac_prev=libexecdir ;;
meillo@0 465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
meillo@0 466 | --libexe=* | --libex=* | --libe=*)
meillo@0 467 libexecdir=$ac_optarg ;;
meillo@0 468
meillo@0 469 -localstatedir | --localstatedir | --localstatedi | --localstated \
meillo@0 470 | --localstate | --localstat | --localsta | --localst \
meillo@0 471 | --locals | --local | --loca | --loc | --lo)
meillo@0 472 ac_prev=localstatedir ;;
meillo@0 473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
meillo@0 474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
meillo@0 475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
meillo@0 476 localstatedir=$ac_optarg ;;
meillo@0 477
meillo@0 478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
meillo@0 479 ac_prev=mandir ;;
meillo@0 480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
meillo@0 481 mandir=$ac_optarg ;;
meillo@0 482
meillo@0 483 -nfp | --nfp | --nf)
meillo@0 484 # Obsolete; use --without-fp.
meillo@0 485 with_fp=no ;;
meillo@0 486
meillo@0 487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
meillo@0 488 | --no-cr | --no-c | -n)
meillo@0 489 no_create=yes ;;
meillo@0 490
meillo@0 491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
meillo@0 492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
meillo@0 493 no_recursion=yes ;;
meillo@0 494
meillo@0 495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
meillo@0 496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
meillo@0 497 | --oldin | --oldi | --old | --ol | --o)
meillo@0 498 ac_prev=oldincludedir ;;
meillo@0 499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
meillo@0 500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
meillo@0 501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
meillo@0 502 oldincludedir=$ac_optarg ;;
meillo@0 503
meillo@0 504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
meillo@0 505 ac_prev=prefix ;;
meillo@0 506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
meillo@0 507 prefix=$ac_optarg ;;
meillo@0 508
meillo@0 509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
meillo@0 510 | --program-pre | --program-pr | --program-p)
meillo@0 511 ac_prev=program_prefix ;;
meillo@0 512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
meillo@0 513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
meillo@0 514 program_prefix=$ac_optarg ;;
meillo@0 515
meillo@0 516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
meillo@0 517 | --program-suf | --program-su | --program-s)
meillo@0 518 ac_prev=program_suffix ;;
meillo@0 519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
meillo@0 520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
meillo@0 521 program_suffix=$ac_optarg ;;
meillo@0 522
meillo@0 523 -program-transform-name | --program-transform-name \
meillo@0 524 | --program-transform-nam | --program-transform-na \
meillo@0 525 | --program-transform-n | --program-transform- \
meillo@0 526 | --program-transform | --program-transfor \
meillo@0 527 | --program-transfo | --program-transf \
meillo@0 528 | --program-trans | --program-tran \
meillo@0 529 | --progr-tra | --program-tr | --program-t)
meillo@0 530 ac_prev=program_transform_name ;;
meillo@0 531 -program-transform-name=* | --program-transform-name=* \
meillo@0 532 | --program-transform-nam=* | --program-transform-na=* \
meillo@0 533 | --program-transform-n=* | --program-transform-=* \
meillo@0 534 | --program-transform=* | --program-transfor=* \
meillo@0 535 | --program-transfo=* | --program-transf=* \
meillo@0 536 | --program-trans=* | --program-tran=* \
meillo@0 537 | --progr-tra=* | --program-tr=* | --program-t=*)
meillo@0 538 program_transform_name=$ac_optarg ;;
meillo@0 539
meillo@0 540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
meillo@0 541 | -silent | --silent | --silen | --sile | --sil)
meillo@0 542 silent=yes ;;
meillo@0 543
meillo@0 544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
meillo@0 545 ac_prev=sbindir ;;
meillo@0 546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
meillo@0 547 | --sbi=* | --sb=*)
meillo@0 548 sbindir=$ac_optarg ;;
meillo@0 549
meillo@0 550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
meillo@0 551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
meillo@0 552 | --sharedst | --shareds | --shared | --share | --shar \
meillo@0 553 | --sha | --sh)
meillo@0 554 ac_prev=sharedstatedir ;;
meillo@0 555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
meillo@0 556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
meillo@0 557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
meillo@0 558 | --sha=* | --sh=*)
meillo@0 559 sharedstatedir=$ac_optarg ;;
meillo@0 560
meillo@0 561 -site | --site | --sit)
meillo@0 562 ac_prev=site ;;
meillo@0 563 -site=* | --site=* | --sit=*)
meillo@0 564 site=$ac_optarg ;;
meillo@0 565
meillo@0 566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
meillo@0 567 ac_prev=srcdir ;;
meillo@0 568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
meillo@0 569 srcdir=$ac_optarg ;;
meillo@0 570
meillo@0 571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
meillo@0 572 | --syscon | --sysco | --sysc | --sys | --sy)
meillo@0 573 ac_prev=sysconfdir ;;
meillo@0 574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
meillo@0 575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
meillo@0 576 sysconfdir=$ac_optarg ;;
meillo@0 577
meillo@0 578 -target | --target | --targe | --targ | --tar | --ta | --t)
meillo@0 579 ac_prev=target_alias ;;
meillo@0 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
meillo@0 581 target_alias=$ac_optarg ;;
meillo@0 582
meillo@0 583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
meillo@0 584 verbose=yes ;;
meillo@0 585
meillo@0 586 -version | --version | --versio | --versi | --vers | -V)
meillo@0 587 ac_init_version=: ;;
meillo@0 588
meillo@0 589 -with-* | --with-*)
meillo@0 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
meillo@0 591 # Reject names that are not valid shell variable names.
meillo@0 592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
meillo@0 593 { echo "$as_me: error: invalid package name: $ac_package" >&2
meillo@0 594 { (exit 1); exit 1; }; }
meillo@0 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
meillo@0 596 case $ac_option in
meillo@0 597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
meillo@0 598 *) ac_optarg=yes ;;
meillo@0 599 esac
meillo@0 600 eval "with_$ac_package='$ac_optarg'" ;;
meillo@0 601
meillo@0 602 -without-* | --without-*)
meillo@0 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
meillo@0 604 # Reject names that are not valid shell variable names.
meillo@0 605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
meillo@0 606 { echo "$as_me: error: invalid package name: $ac_package" >&2
meillo@0 607 { (exit 1); exit 1; }; }
meillo@0 608 ac_package=`echo $ac_package | sed 's/-/_/g'`
meillo@0 609 eval "with_$ac_package=no" ;;
meillo@0 610
meillo@0 611 --x)
meillo@0 612 # Obsolete; use --with-x.
meillo@0 613 with_x=yes ;;
meillo@0 614
meillo@0 615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
meillo@0 616 | --x-incl | --x-inc | --x-in | --x-i)
meillo@0 617 ac_prev=x_includes ;;
meillo@0 618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
meillo@0 619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
meillo@0 620 x_includes=$ac_optarg ;;
meillo@0 621
meillo@0 622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
meillo@0 623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
meillo@0 624 ac_prev=x_libraries ;;
meillo@0 625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
meillo@0 626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
meillo@0 627 x_libraries=$ac_optarg ;;
meillo@0 628
meillo@0 629 -*) { echo "$as_me: error: unrecognized option: $ac_option
meillo@0 630 Try \`$0 --help' for more information." >&2
meillo@0 631 { (exit 1); exit 1; }; }
meillo@0 632 ;;
meillo@0 633
meillo@0 634 *=*)
meillo@0 635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
meillo@0 636 # Reject names that are not valid shell variable names.
meillo@0 637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
meillo@0 638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
meillo@0 639 { (exit 1); exit 1; }; }
meillo@0 640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
meillo@0 641 eval "$ac_envvar='$ac_optarg'"
meillo@0 642 export $ac_envvar ;;
meillo@0 643
meillo@0 644 *)
meillo@0 645 # FIXME: should be removed in autoconf 3.0.
meillo@0 646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
meillo@0 647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
meillo@0 648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
meillo@0 649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
meillo@0 650 ;;
meillo@0 651
meillo@0 652 esac
meillo@0 653 done
meillo@0 654
meillo@0 655 if test -n "$ac_prev"; then
meillo@0 656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
meillo@0 657 { echo "$as_me: error: missing argument to $ac_option" >&2
meillo@0 658 { (exit 1); exit 1; }; }
meillo@0 659 fi
meillo@0 660
meillo@0 661 # Be sure to have absolute paths.
meillo@0 662 for ac_var in exec_prefix prefix
meillo@0 663 do
meillo@0 664 eval ac_val=$`echo $ac_var`
meillo@0 665 case $ac_val in
meillo@0 666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
meillo@0 667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
meillo@0 668 { (exit 1); exit 1; }; };;
meillo@0 669 esac
meillo@0 670 done
meillo@0 671
meillo@0 672 # Be sure to have absolute paths.
meillo@0 673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
meillo@0 674 localstatedir libdir includedir oldincludedir infodir mandir
meillo@0 675 do
meillo@0 676 eval ac_val=$`echo $ac_var`
meillo@0 677 case $ac_val in
meillo@0 678 [\\/$]* | ?:[\\/]* ) ;;
meillo@0 679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
meillo@0 680 { (exit 1); exit 1; }; };;
meillo@0 681 esac
meillo@0 682 done
meillo@0 683
meillo@0 684 # There might be people who depend on the old broken behavior: `$host'
meillo@0 685 # used to hold the argument of --host etc.
meillo@0 686 # FIXME: To remove some day.
meillo@0 687 build=$build_alias
meillo@0 688 host=$host_alias
meillo@0 689 target=$target_alias
meillo@0 690
meillo@0 691 # FIXME: To remove some day.
meillo@0 692 if test "x$host_alias" != x; then
meillo@0 693 if test "x$build_alias" = x; then
meillo@0 694 cross_compiling=maybe
meillo@0 695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
meillo@0 696 If a cross compiler is detected then cross compile mode will be used." >&2
meillo@0 697 elif test "x$build_alias" != "x$host_alias"; then
meillo@0 698 cross_compiling=yes
meillo@0 699 fi
meillo@0 700 fi
meillo@0 701
meillo@0 702 ac_tool_prefix=
meillo@0 703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
meillo@0 704
meillo@0 705 test "$silent" = yes && exec 6>/dev/null
meillo@0 706
meillo@0 707
meillo@0 708 # Find the source files, if location was not specified.
meillo@0 709 if test -z "$srcdir"; then
meillo@0 710 ac_srcdir_defaulted=yes
meillo@0 711 # Try the directory containing this script, then its parent.
meillo@0 712 ac_confdir=`(dirname "$0") 2>/dev/null ||
meillo@0 713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 714 X"$0" : 'X\(//\)[^/]' \| \
meillo@0 715 X"$0" : 'X\(//\)$' \| \
meillo@0 716 X"$0" : 'X\(/\)' \| \
meillo@0 717 . : '\(.\)' 2>/dev/null ||
meillo@0 718 echo X"$0" |
meillo@0 719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 721 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 722 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 723 s/.*/./; q'`
meillo@0 724 srcdir=$ac_confdir
meillo@0 725 if test ! -r $srcdir/$ac_unique_file; then
meillo@0 726 srcdir=..
meillo@0 727 fi
meillo@0 728 else
meillo@0 729 ac_srcdir_defaulted=no
meillo@0 730 fi
meillo@0 731 if test ! -r $srcdir/$ac_unique_file; then
meillo@0 732 if test "$ac_srcdir_defaulted" = yes; then
meillo@0 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
meillo@0 734 { (exit 1); exit 1; }; }
meillo@0 735 else
meillo@0 736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
meillo@0 737 { (exit 1); exit 1; }; }
meillo@0 738 fi
meillo@0 739 fi
meillo@0 740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
meillo@0 741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
meillo@0 742 { (exit 1); exit 1; }; }
meillo@0 743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
meillo@0 744 ac_env_build_alias_set=${build_alias+set}
meillo@0 745 ac_env_build_alias_value=$build_alias
meillo@0 746 ac_cv_env_build_alias_set=${build_alias+set}
meillo@0 747 ac_cv_env_build_alias_value=$build_alias
meillo@0 748 ac_env_host_alias_set=${host_alias+set}
meillo@0 749 ac_env_host_alias_value=$host_alias
meillo@0 750 ac_cv_env_host_alias_set=${host_alias+set}
meillo@0 751 ac_cv_env_host_alias_value=$host_alias
meillo@0 752 ac_env_target_alias_set=${target_alias+set}
meillo@0 753 ac_env_target_alias_value=$target_alias
meillo@0 754 ac_cv_env_target_alias_set=${target_alias+set}
meillo@0 755 ac_cv_env_target_alias_value=$target_alias
meillo@0 756 ac_env_CC_set=${CC+set}
meillo@0 757 ac_env_CC_value=$CC
meillo@0 758 ac_cv_env_CC_set=${CC+set}
meillo@0 759 ac_cv_env_CC_value=$CC
meillo@0 760 ac_env_CFLAGS_set=${CFLAGS+set}
meillo@0 761 ac_env_CFLAGS_value=$CFLAGS
meillo@0 762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
meillo@0 763 ac_cv_env_CFLAGS_value=$CFLAGS
meillo@0 764 ac_env_LDFLAGS_set=${LDFLAGS+set}
meillo@0 765 ac_env_LDFLAGS_value=$LDFLAGS
meillo@0 766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
meillo@0 767 ac_cv_env_LDFLAGS_value=$LDFLAGS
meillo@0 768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
meillo@0 769 ac_env_CPPFLAGS_value=$CPPFLAGS
meillo@0 770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
meillo@0 771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
meillo@0 772 ac_env_CPP_set=${CPP+set}
meillo@0 773 ac_env_CPP_value=$CPP
meillo@0 774 ac_cv_env_CPP_set=${CPP+set}
meillo@0 775 ac_cv_env_CPP_value=$CPP
meillo@0 776 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
meillo@0 777 ac_env_PKG_CONFIG_value=$PKG_CONFIG
meillo@0 778 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
meillo@0 779 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
meillo@0 780 ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
meillo@0 781 ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
meillo@0 782 ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
meillo@0 783 ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
meillo@0 784 ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
meillo@0 785 ac_env_GLIB_LIBS_value=$GLIB_LIBS
meillo@0 786 ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
meillo@0 787 ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
meillo@0 788
meillo@0 789 #
meillo@0 790 # Report the --help message.
meillo@0 791 #
meillo@0 792 if test "$ac_init_help" = "long"; then
meillo@0 793 # Omit some internal or obsolete options to make the list less imposing.
meillo@0 794 # This message is too long to be a string in the A/UX 3.1 sh.
meillo@0 795 cat <<_ACEOF
meillo@0 796 \`configure' configures masqmail 0.2.21 to adapt to many kinds of systems.
meillo@0 797
meillo@0 798 Usage: $0 [OPTION]... [VAR=VALUE]...
meillo@0 799
meillo@0 800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
meillo@0 801 VAR=VALUE. See below for descriptions of some of the useful variables.
meillo@0 802
meillo@0 803 Defaults for the options are specified in brackets.
meillo@0 804
meillo@0 805 Configuration:
meillo@0 806 -h, --help display this help and exit
meillo@0 807 --help=short display options specific to this package
meillo@0 808 --help=recursive display the short help of all the included packages
meillo@0 809 -V, --version display version information and exit
meillo@0 810 -q, --quiet, --silent do not print \`checking...' messages
meillo@0 811 --cache-file=FILE cache test results in FILE [disabled]
meillo@0 812 -C, --config-cache alias for \`--cache-file=config.cache'
meillo@0 813 -n, --no-create do not create output files
meillo@0 814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
meillo@0 815
meillo@0 816 _ACEOF
meillo@0 817
meillo@0 818 cat <<_ACEOF
meillo@0 819 Installation directories:
meillo@0 820 --prefix=PREFIX install architecture-independent files in PREFIX
meillo@0 821 [$ac_default_prefix]
meillo@0 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
meillo@0 823 [PREFIX]
meillo@0 824
meillo@0 825 By default, \`make install' will install all the files in
meillo@0 826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
meillo@0 827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
meillo@0 828 for instance \`--prefix=\$HOME'.
meillo@0 829
meillo@0 830 For better control, use the options below.
meillo@0 831
meillo@0 832 Fine tuning of the installation directories:
meillo@0 833 --bindir=DIR user executables [EPREFIX/bin]
meillo@0 834 --sbindir=DIR system admin executables [EPREFIX/sbin]
meillo@0 835 --libexecdir=DIR program executables [EPREFIX/libexec]
meillo@0 836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
meillo@0 837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
meillo@0 838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
meillo@0 839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
meillo@0 840 --libdir=DIR object code libraries [EPREFIX/lib]
meillo@0 841 --includedir=DIR C header files [PREFIX/include]
meillo@0 842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
meillo@0 843 --infodir=DIR info documentation [PREFIX/info]
meillo@0 844 --mandir=DIR man documentation [PREFIX/man]
meillo@0 845 _ACEOF
meillo@0 846
meillo@0 847 cat <<\_ACEOF
meillo@0 848
meillo@0 849 Program names:
meillo@0 850 --program-prefix=PREFIX prepend PREFIX to installed program names
meillo@0 851 --program-suffix=SUFFIX append SUFFIX to installed program names
meillo@0 852 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
meillo@0 853 _ACEOF
meillo@0 854 fi
meillo@0 855
meillo@0 856 if test -n "$ac_init_help"; then
meillo@0 857 case $ac_init_help in
meillo@0 858 short | recursive ) echo "Configuration of masqmail 0.2.21:";;
meillo@0 859 esac
meillo@0 860 cat <<\_ACEOF
meillo@0 861
meillo@0 862 Optional Features:
meillo@0 863 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
meillo@0 864 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
meillo@0 865 --disable-dependency-tracking Speeds up one-time builds
meillo@0 866 --enable-dependency-tracking Do not reject slow dependency extractors
meillo@0 867 --disable-resolver disable resolver support
meillo@0 868 --disable-debug disable debugging
meillo@0 869 --disable-smtp-server disable smtp server support
meillo@0 870 --disable-pop3 disable pop3 support
meillo@0 871 --enable-auth enable AUTH (RFC 2554) client support
meillo@0 872 --enable-maildir enable qmail style maildir support
meillo@0 873 --enable-ident enable ident (RFC 1413) support
meillo@0 874 --enable-mserver enable mserver support
meillo@0 875
meillo@0 876 Optional Packages:
meillo@0 877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
meillo@0 878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
meillo@0 879 --with-user=USER set user mail
meillo@0 880 --with-group=GROUP set group trusted
meillo@0 881 --with-glib-static=path link glib statically (path mandatory!)
meillo@0 882 --with-libcrypto use libcrypto
meillo@0 883 --with-liblockfile use liblock (for Debian)
meillo@0 884 --with-logdir=DIR set log directory /var/masqmail
meillo@0 885 --with-spooldir=DIR set spool directory /var/spool/masqmail
meillo@0 886 --with-confdir directory for configuration /etc/masqmail
meillo@0 887
meillo@0 888 Some influential environment variables:
meillo@0 889 CC C compiler command
meillo@0 890 CFLAGS C compiler flags
meillo@0 891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
meillo@0 892 nonstandard directory <lib dir>
meillo@0 893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
meillo@0 894 headers in a nonstandard directory <include dir>
meillo@0 895 CPP C preprocessor
meillo@0 896 PKG_CONFIG path to pkg-config utility
meillo@0 897 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
meillo@0 898 GLIB_LIBS linker flags for GLIB, overriding pkg-config
meillo@0 899
meillo@0 900 Use these variables to override the choices made by `configure' or to help
meillo@0 901 it to find libraries and programs with nonstandard names/locations.
meillo@0 902
meillo@0 903 Report bugs to <oku@debian.org>.
meillo@0 904 _ACEOF
meillo@0 905 fi
meillo@0 906
meillo@0 907 if test "$ac_init_help" = "recursive"; then
meillo@0 908 # If there are subdirs, report their specific --help.
meillo@0 909 ac_popdir=`pwd`
meillo@0 910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
meillo@0 911 test -d $ac_dir || continue
meillo@0 912 ac_builddir=.
meillo@0 913
meillo@0 914 if test "$ac_dir" != .; then
meillo@0 915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
meillo@0 916 # A "../" for each directory in $ac_dir_suffix.
meillo@0 917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
meillo@0 918 else
meillo@0 919 ac_dir_suffix= ac_top_builddir=
meillo@0 920 fi
meillo@0 921
meillo@0 922 case $srcdir in
meillo@0 923 .) # No --srcdir option. We are building in place.
meillo@0 924 ac_srcdir=.
meillo@0 925 if test -z "$ac_top_builddir"; then
meillo@0 926 ac_top_srcdir=.
meillo@0 927 else
meillo@0 928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
meillo@0 929 fi ;;
meillo@0 930 [\\/]* | ?:[\\/]* ) # Absolute path.
meillo@0 931 ac_srcdir=$srcdir$ac_dir_suffix;
meillo@0 932 ac_top_srcdir=$srcdir ;;
meillo@0 933 *) # Relative path.
meillo@0 934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
meillo@0 935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
meillo@0 936 esac
meillo@0 937
meillo@0 938 # Do not use `cd foo && pwd` to compute absolute paths, because
meillo@0 939 # the directories may not exist.
meillo@0 940 case `pwd` in
meillo@0 941 .) ac_abs_builddir="$ac_dir";;
meillo@0 942 *)
meillo@0 943 case "$ac_dir" in
meillo@0 944 .) ac_abs_builddir=`pwd`;;
meillo@0 945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
meillo@0 946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
meillo@0 947 esac;;
meillo@0 948 esac
meillo@0 949 case $ac_abs_builddir in
meillo@0 950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 951 *)
meillo@0 952 case ${ac_top_builddir}. in
meillo@0 953 .) ac_abs_top_builddir=$ac_abs_builddir;;
meillo@0 954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
meillo@0 956 esac;;
meillo@0 957 esac
meillo@0 958 case $ac_abs_builddir in
meillo@0 959 .) ac_abs_srcdir=$ac_srcdir;;
meillo@0 960 *)
meillo@0 961 case $ac_srcdir in
meillo@0 962 .) ac_abs_srcdir=$ac_abs_builddir;;
meillo@0 963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
meillo@0 964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
meillo@0 965 esac;;
meillo@0 966 esac
meillo@0 967 case $ac_abs_builddir in
meillo@0 968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 969 *)
meillo@0 970 case $ac_top_srcdir in
meillo@0 971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
meillo@0 972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
meillo@0 974 esac;;
meillo@0 975 esac
meillo@0 976
meillo@0 977 cd $ac_dir
meillo@0 978 # Check for guested configure; otherwise get Cygnus style configure.
meillo@0 979 if test -f $ac_srcdir/configure.gnu; then
meillo@0 980 echo
meillo@0 981 $SHELL $ac_srcdir/configure.gnu --help=recursive
meillo@0 982 elif test -f $ac_srcdir/configure; then
meillo@0 983 echo
meillo@0 984 $SHELL $ac_srcdir/configure --help=recursive
meillo@0 985 elif test -f $ac_srcdir/configure.ac ||
meillo@0 986 test -f $ac_srcdir/configure.in; then
meillo@0 987 echo
meillo@0 988 $ac_configure --help
meillo@0 989 else
meillo@0 990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
meillo@0 991 fi
meillo@0 992 cd "$ac_popdir"
meillo@0 993 done
meillo@0 994 fi
meillo@0 995
meillo@0 996 test -n "$ac_init_help" && exit 0
meillo@0 997 if $ac_init_version; then
meillo@0 998 cat <<\_ACEOF
meillo@0 999 masqmail configure 0.2.21
meillo@0 1000 generated by GNU Autoconf 2.59
meillo@0 1001
meillo@0 1002 Copyright (C) 2003 Free Software Foundation, Inc.
meillo@0 1003 This configure script is free software; the Free Software Foundation
meillo@0 1004 gives unlimited permission to copy, distribute and modify it.
meillo@0 1005 _ACEOF
meillo@0 1006 exit 0
meillo@0 1007 fi
meillo@0 1008 exec 5>config.log
meillo@0 1009 cat >&5 <<_ACEOF
meillo@0 1010 This file contains any messages produced by compilers while
meillo@0 1011 running configure, to aid debugging if configure makes a mistake.
meillo@0 1012
meillo@0 1013 It was created by masqmail $as_me 0.2.21, which was
meillo@0 1014 generated by GNU Autoconf 2.59. Invocation command line was
meillo@0 1015
meillo@0 1016 $ $0 $@
meillo@0 1017
meillo@0 1018 _ACEOF
meillo@0 1019 {
meillo@0 1020 cat <<_ASUNAME
meillo@0 1021 ## --------- ##
meillo@0 1022 ## Platform. ##
meillo@0 1023 ## --------- ##
meillo@0 1024
meillo@0 1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
meillo@0 1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
meillo@0 1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
meillo@0 1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
meillo@0 1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
meillo@0 1030
meillo@0 1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
meillo@0 1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
meillo@0 1033
meillo@0 1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
meillo@0 1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
meillo@0 1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
meillo@0 1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
meillo@0 1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
meillo@0 1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
meillo@0 1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
meillo@0 1041
meillo@0 1042 _ASUNAME
meillo@0 1043
meillo@0 1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1045 for as_dir in $PATH
meillo@0 1046 do
meillo@0 1047 IFS=$as_save_IFS
meillo@0 1048 test -z "$as_dir" && as_dir=.
meillo@0 1049 echo "PATH: $as_dir"
meillo@0 1050 done
meillo@0 1051
meillo@0 1052 } >&5
meillo@0 1053
meillo@0 1054 cat >&5 <<_ACEOF
meillo@0 1055
meillo@0 1056
meillo@0 1057 ## ----------- ##
meillo@0 1058 ## Core tests. ##
meillo@0 1059 ## ----------- ##
meillo@0 1060
meillo@0 1061 _ACEOF
meillo@0 1062
meillo@0 1063
meillo@0 1064 # Keep a trace of the command line.
meillo@0 1065 # Strip out --no-create and --no-recursion so they do not pile up.
meillo@0 1066 # Strip out --silent because we don't want to record it for future runs.
meillo@0 1067 # Also quote any args containing shell meta-characters.
meillo@0 1068 # Make two passes to allow for proper duplicate-argument suppression.
meillo@0 1069 ac_configure_args=
meillo@0 1070 ac_configure_args0=
meillo@0 1071 ac_configure_args1=
meillo@0 1072 ac_sep=
meillo@0 1073 ac_must_keep_next=false
meillo@0 1074 for ac_pass in 1 2
meillo@0 1075 do
meillo@0 1076 for ac_arg
meillo@0 1077 do
meillo@0 1078 case $ac_arg in
meillo@0 1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
meillo@0 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
meillo@0 1081 | -silent | --silent | --silen | --sile | --sil)
meillo@0 1082 continue ;;
meillo@0 1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
meillo@0 1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
meillo@0 1085 esac
meillo@0 1086 case $ac_pass in
meillo@0 1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
meillo@0 1088 2)
meillo@0 1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
meillo@0 1090 if test $ac_must_keep_next = true; then
meillo@0 1091 ac_must_keep_next=false # Got value, back to normal.
meillo@0 1092 else
meillo@0 1093 case $ac_arg in
meillo@0 1094 *=* | --config-cache | -C | -disable-* | --disable-* \
meillo@0 1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
meillo@0 1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
meillo@0 1097 | -with-* | --with-* | -without-* | --without-* | --x)
meillo@0 1098 case "$ac_configure_args0 " in
meillo@0 1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
meillo@0 1100 esac
meillo@0 1101 ;;
meillo@0 1102 -* ) ac_must_keep_next=true ;;
meillo@0 1103 esac
meillo@0 1104 fi
meillo@0 1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
meillo@0 1106 # Get rid of the leading space.
meillo@0 1107 ac_sep=" "
meillo@0 1108 ;;
meillo@0 1109 esac
meillo@0 1110 done
meillo@0 1111 done
meillo@0 1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
meillo@0 1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
meillo@0 1114
meillo@0 1115 # When interrupted or exit'd, cleanup temporary files, and complete
meillo@0 1116 # config.log. We remove comments because anyway the quotes in there
meillo@0 1117 # would cause problems or look ugly.
meillo@0 1118 # WARNING: Be sure not to use single quotes in there, as some shells,
meillo@0 1119 # such as our DU 5.0 friend, will then `close' the trap.
meillo@0 1120 trap 'exit_status=$?
meillo@0 1121 # Save into config.log some information that might help in debugging.
meillo@0 1122 {
meillo@0 1123 echo
meillo@0 1124
meillo@0 1125 cat <<\_ASBOX
meillo@0 1126 ## ---------------- ##
meillo@0 1127 ## Cache variables. ##
meillo@0 1128 ## ---------------- ##
meillo@0 1129 _ASBOX
meillo@0 1130 echo
meillo@0 1131 # The following way of writing the cache mishandles newlines in values,
meillo@0 1132 {
meillo@0 1133 (set) 2>&1 |
meillo@0 1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
meillo@0 1135 *ac_space=\ *)
meillo@0 1136 sed -n \
meillo@0 1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
meillo@0 1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
meillo@0 1139 ;;
meillo@0 1140 *)
meillo@0 1141 sed -n \
meillo@0 1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
meillo@0 1143 ;;
meillo@0 1144 esac;
meillo@0 1145 }
meillo@0 1146 echo
meillo@0 1147
meillo@0 1148 cat <<\_ASBOX
meillo@0 1149 ## ----------------- ##
meillo@0 1150 ## Output variables. ##
meillo@0 1151 ## ----------------- ##
meillo@0 1152 _ASBOX
meillo@0 1153 echo
meillo@0 1154 for ac_var in $ac_subst_vars
meillo@0 1155 do
meillo@0 1156 eval ac_val=$`echo $ac_var`
meillo@0 1157 echo "$ac_var='"'"'$ac_val'"'"'"
meillo@0 1158 done | sort
meillo@0 1159 echo
meillo@0 1160
meillo@0 1161 if test -n "$ac_subst_files"; then
meillo@0 1162 cat <<\_ASBOX
meillo@0 1163 ## ------------- ##
meillo@0 1164 ## Output files. ##
meillo@0 1165 ## ------------- ##
meillo@0 1166 _ASBOX
meillo@0 1167 echo
meillo@0 1168 for ac_var in $ac_subst_files
meillo@0 1169 do
meillo@0 1170 eval ac_val=$`echo $ac_var`
meillo@0 1171 echo "$ac_var='"'"'$ac_val'"'"'"
meillo@0 1172 done | sort
meillo@0 1173 echo
meillo@0 1174 fi
meillo@0 1175
meillo@0 1176 if test -s confdefs.h; then
meillo@0 1177 cat <<\_ASBOX
meillo@0 1178 ## ----------- ##
meillo@0 1179 ## confdefs.h. ##
meillo@0 1180 ## ----------- ##
meillo@0 1181 _ASBOX
meillo@0 1182 echo
meillo@0 1183 sed "/^$/d" confdefs.h | sort
meillo@0 1184 echo
meillo@0 1185 fi
meillo@0 1186 test "$ac_signal" != 0 &&
meillo@0 1187 echo "$as_me: caught signal $ac_signal"
meillo@0 1188 echo "$as_me: exit $exit_status"
meillo@0 1189 } >&5
meillo@0 1190 rm -f core *.core &&
meillo@0 1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
meillo@0 1192 exit $exit_status
meillo@0 1193 ' 0
meillo@0 1194 for ac_signal in 1 2 13 15; do
meillo@0 1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
meillo@0 1196 done
meillo@0 1197 ac_signal=0
meillo@0 1198
meillo@0 1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
meillo@0 1200 rm -rf conftest* confdefs.h
meillo@0 1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
meillo@0 1202 echo >confdefs.h
meillo@0 1203
meillo@0 1204 # Predefined preprocessor variables.
meillo@0 1205
meillo@0 1206 cat >>confdefs.h <<_ACEOF
meillo@0 1207 #define PACKAGE_NAME "$PACKAGE_NAME"
meillo@0 1208 _ACEOF
meillo@0 1209
meillo@0 1210
meillo@0 1211 cat >>confdefs.h <<_ACEOF
meillo@0 1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
meillo@0 1213 _ACEOF
meillo@0 1214
meillo@0 1215
meillo@0 1216 cat >>confdefs.h <<_ACEOF
meillo@0 1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
meillo@0 1218 _ACEOF
meillo@0 1219
meillo@0 1220
meillo@0 1221 cat >>confdefs.h <<_ACEOF
meillo@0 1222 #define PACKAGE_STRING "$PACKAGE_STRING"
meillo@0 1223 _ACEOF
meillo@0 1224
meillo@0 1225
meillo@0 1226 cat >>confdefs.h <<_ACEOF
meillo@0 1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
meillo@0 1228 _ACEOF
meillo@0 1229
meillo@0 1230
meillo@0 1231 # Let the site file select an alternate cache file if it wants to.
meillo@0 1232 # Prefer explicitly selected file to automatically selected ones.
meillo@0 1233 if test -z "$CONFIG_SITE"; then
meillo@0 1234 if test "x$prefix" != xNONE; then
meillo@0 1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
meillo@0 1236 else
meillo@0 1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
meillo@0 1238 fi
meillo@0 1239 fi
meillo@0 1240 for ac_site_file in $CONFIG_SITE; do
meillo@0 1241 if test -r "$ac_site_file"; then
meillo@0 1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
meillo@0 1243 echo "$as_me: loading site script $ac_site_file" >&6;}
meillo@0 1244 sed 's/^/| /' "$ac_site_file" >&5
meillo@0 1245 . "$ac_site_file"
meillo@0 1246 fi
meillo@0 1247 done
meillo@0 1248
meillo@0 1249 if test -r "$cache_file"; then
meillo@0 1250 # Some versions of bash will fail to source /dev/null (special
meillo@0 1251 # files actually), so we avoid doing that.
meillo@0 1252 if test -f "$cache_file"; then
meillo@0 1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
meillo@0 1254 echo "$as_me: loading cache $cache_file" >&6;}
meillo@0 1255 case $cache_file in
meillo@0 1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
meillo@0 1257 *) . ./$cache_file;;
meillo@0 1258 esac
meillo@0 1259 fi
meillo@0 1260 else
meillo@0 1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
meillo@0 1262 echo "$as_me: creating cache $cache_file" >&6;}
meillo@0 1263 >$cache_file
meillo@0 1264 fi
meillo@0 1265
meillo@0 1266 # Check that the precious variables saved in the cache have kept the same
meillo@0 1267 # value.
meillo@0 1268 ac_cache_corrupted=false
meillo@0 1269 for ac_var in `(set) 2>&1 |
meillo@0 1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
meillo@0 1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
meillo@0 1272 eval ac_new_set=\$ac_env_${ac_var}_set
meillo@0 1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
meillo@0 1274 eval ac_new_val="\$ac_env_${ac_var}_value"
meillo@0 1275 case $ac_old_set,$ac_new_set in
meillo@0 1276 set,)
meillo@0 1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
meillo@0 1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
meillo@0 1279 ac_cache_corrupted=: ;;
meillo@0 1280 ,set)
meillo@0 1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
meillo@0 1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
meillo@0 1283 ac_cache_corrupted=: ;;
meillo@0 1284 ,);;
meillo@0 1285 *)
meillo@0 1286 if test "x$ac_old_val" != "x$ac_new_val"; then
meillo@0 1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
meillo@0 1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
meillo@0 1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
meillo@0 1290 echo "$as_me: former value: $ac_old_val" >&2;}
meillo@0 1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
meillo@0 1292 echo "$as_me: current value: $ac_new_val" >&2;}
meillo@0 1293 ac_cache_corrupted=:
meillo@0 1294 fi;;
meillo@0 1295 esac
meillo@0 1296 # Pass precious variables to config.status.
meillo@0 1297 if test "$ac_new_set" = set; then
meillo@0 1298 case $ac_new_val in
meillo@0 1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
meillo@0 1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
meillo@0 1301 *) ac_arg=$ac_var=$ac_new_val ;;
meillo@0 1302 esac
meillo@0 1303 case " $ac_configure_args " in
meillo@0 1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
meillo@0 1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
meillo@0 1306 esac
meillo@0 1307 fi
meillo@0 1308 done
meillo@0 1309 if $ac_cache_corrupted; then
meillo@0 1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
meillo@0 1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
meillo@0 1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
meillo@0 1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
meillo@0 1314 { (exit 1); exit 1; }; }
meillo@0 1315 fi
meillo@0 1316
meillo@0 1317 ac_ext=c
meillo@0 1318 ac_cpp='$CPP $CPPFLAGS'
meillo@0 1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
meillo@0 1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
meillo@0 1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
meillo@0 1322
meillo@0 1323
meillo@0 1324
meillo@0 1325
meillo@0 1326
meillo@0 1327
meillo@0 1328
meillo@0 1329
meillo@0 1330
meillo@0 1331
meillo@0 1332
meillo@0 1333
meillo@0 1334
meillo@0 1335
meillo@0 1336
meillo@0 1337
meillo@0 1338
meillo@0 1339
meillo@0 1340
meillo@0 1341
meillo@0 1342
meillo@0 1343
meillo@0 1344
meillo@0 1345
meillo@0 1346
meillo@0 1347
meillo@0 1348
meillo@0 1349
meillo@0 1350 ac_config_headers="$ac_config_headers config.h"
meillo@0 1351
meillo@0 1352 am__api_version="1.7"
meillo@0 1353 ac_aux_dir=
meillo@0 1354 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
meillo@0 1355 if test -f $ac_dir/install-sh; then
meillo@0 1356 ac_aux_dir=$ac_dir
meillo@0 1357 ac_install_sh="$ac_aux_dir/install-sh -c"
meillo@0 1358 break
meillo@0 1359 elif test -f $ac_dir/install.sh; then
meillo@0 1360 ac_aux_dir=$ac_dir
meillo@0 1361 ac_install_sh="$ac_aux_dir/install.sh -c"
meillo@0 1362 break
meillo@0 1363 elif test -f $ac_dir/shtool; then
meillo@0 1364 ac_aux_dir=$ac_dir
meillo@0 1365 ac_install_sh="$ac_aux_dir/shtool install -c"
meillo@0 1366 break
meillo@0 1367 fi
meillo@0 1368 done
meillo@0 1369 if test -z "$ac_aux_dir"; then
meillo@0 1370 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
meillo@0 1371 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
meillo@0 1372 { (exit 1); exit 1; }; }
meillo@0 1373 fi
meillo@0 1374 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
meillo@0 1375 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
meillo@0 1376 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
meillo@0 1377
meillo@0 1378 # Find a good install program. We prefer a C program (faster),
meillo@0 1379 # so one script is as good as another. But avoid the broken or
meillo@0 1380 # incompatible versions:
meillo@0 1381 # SysV /etc/install, /usr/sbin/install
meillo@0 1382 # SunOS /usr/etc/install
meillo@0 1383 # IRIX /sbin/install
meillo@0 1384 # AIX /bin/install
meillo@0 1385 # AmigaOS /C/install, which installs bootblocks on floppy discs
meillo@0 1386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
meillo@0 1387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
meillo@0 1388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
meillo@0 1389 # OS/2's system install, which has a completely different semantic
meillo@0 1390 # ./install, which can be erroneously created by make from ./install.sh.
meillo@0 1391 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
meillo@0 1392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
meillo@0 1393 if test -z "$INSTALL"; then
meillo@0 1394 if test "${ac_cv_path_install+set}" = set; then
meillo@0 1395 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1396 else
meillo@0 1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1398 for as_dir in $PATH
meillo@0 1399 do
meillo@0 1400 IFS=$as_save_IFS
meillo@0 1401 test -z "$as_dir" && as_dir=.
meillo@0 1402 # Account for people who put trailing slashes in PATH elements.
meillo@0 1403 case $as_dir/ in
meillo@0 1404 ./ | .// | /cC/* | \
meillo@0 1405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
meillo@0 1406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
meillo@0 1407 /usr/ucb/* ) ;;
meillo@0 1408 *)
meillo@0 1409 # OSF1 and SCO ODT 3.0 have their own names for install.
meillo@0 1410 # Don't use installbsd from OSF since it installs stuff as root
meillo@0 1411 # by default.
meillo@0 1412 for ac_prog in ginstall scoinst install; do
meillo@0 1413 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
meillo@0 1415 if test $ac_prog = install &&
meillo@0 1416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
meillo@0 1417 # AIX install. It has an incompatible calling convention.
meillo@0 1418 :
meillo@0 1419 elif test $ac_prog = install &&
meillo@0 1420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
meillo@0 1421 # program-specific install script used by HP pwplus--don't use.
meillo@0 1422 :
meillo@0 1423 else
meillo@0 1424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
meillo@0 1425 break 3
meillo@0 1426 fi
meillo@0 1427 fi
meillo@0 1428 done
meillo@0 1429 done
meillo@0 1430 ;;
meillo@0 1431 esac
meillo@0 1432 done
meillo@0 1433
meillo@0 1434
meillo@0 1435 fi
meillo@0 1436 if test "${ac_cv_path_install+set}" = set; then
meillo@0 1437 INSTALL=$ac_cv_path_install
meillo@0 1438 else
meillo@0 1439 # As a last resort, use the slow shell script. We don't cache a
meillo@0 1440 # path for INSTALL within a source directory, because that will
meillo@0 1441 # break other packages using the cache if that directory is
meillo@0 1442 # removed, or if the path is relative.
meillo@0 1443 INSTALL=$ac_install_sh
meillo@0 1444 fi
meillo@0 1445 fi
meillo@0 1446 echo "$as_me:$LINENO: result: $INSTALL" >&5
meillo@0 1447 echo "${ECHO_T}$INSTALL" >&6
meillo@0 1448
meillo@0 1449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
meillo@0 1450 # It thinks the first close brace ends the variable substitution.
meillo@0 1451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
meillo@0 1452
meillo@0 1453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
meillo@0 1454
meillo@0 1455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
meillo@0 1456
meillo@0 1457 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
meillo@0 1458 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
meillo@0 1459 # Just in case
meillo@0 1460 sleep 1
meillo@0 1461 echo timestamp > conftest.file
meillo@0 1462 # Do `set' in a subshell so we don't clobber the current shell's
meillo@0 1463 # arguments. Must try -L first in case configure is actually a
meillo@0 1464 # symlink; some systems play weird games with the mod time of symlinks
meillo@0 1465 # (eg FreeBSD returns the mod time of the symlink's containing
meillo@0 1466 # directory).
meillo@0 1467 if (
meillo@0 1468 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
meillo@0 1469 if test "$*" = "X"; then
meillo@0 1470 # -L didn't work.
meillo@0 1471 set X `ls -t $srcdir/configure conftest.file`
meillo@0 1472 fi
meillo@0 1473 rm -f conftest.file
meillo@0 1474 if test "$*" != "X $srcdir/configure conftest.file" \
meillo@0 1475 && test "$*" != "X conftest.file $srcdir/configure"; then
meillo@0 1476
meillo@0 1477 # If neither matched, then we have a broken ls. This can happen
meillo@0 1478 # if, for instance, CONFIG_SHELL is bash and it inherits a
meillo@0 1479 # broken ls alias from the environment. This has actually
meillo@0 1480 # happened. Such a system could not be considered "sane".
meillo@0 1481 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
meillo@0 1482 alias in your environment" >&5
meillo@0 1483 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
meillo@0 1484 alias in your environment" >&2;}
meillo@0 1485 { (exit 1); exit 1; }; }
meillo@0 1486 fi
meillo@0 1487
meillo@0 1488 test "$2" = conftest.file
meillo@0 1489 )
meillo@0 1490 then
meillo@0 1491 # Ok.
meillo@0 1492 :
meillo@0 1493 else
meillo@0 1494 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
meillo@0 1495 Check your system clock" >&5
meillo@0 1496 echo "$as_me: error: newly created file is older than distributed files!
meillo@0 1497 Check your system clock" >&2;}
meillo@0 1498 { (exit 1); exit 1; }; }
meillo@0 1499 fi
meillo@0 1500 echo "$as_me:$LINENO: result: yes" >&5
meillo@0 1501 echo "${ECHO_T}yes" >&6
meillo@0 1502 test "$program_prefix" != NONE &&
meillo@0 1503 program_transform_name="s,^,$program_prefix,;$program_transform_name"
meillo@0 1504 # Use a double $ so make ignores it.
meillo@0 1505 test "$program_suffix" != NONE &&
meillo@0 1506 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
meillo@0 1507 # Double any \ or $. echo might interpret backslashes.
meillo@0 1508 # By default was `s,x,x', remove it if useless.
meillo@0 1509 cat <<\_ACEOF >conftest.sed
meillo@0 1510 s/[\\$]/&&/g;s/;s,x,x,$//
meillo@0 1511 _ACEOF
meillo@0 1512 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
meillo@0 1513 rm conftest.sed
meillo@0 1514
meillo@0 1515
meillo@0 1516 # expand $ac_aux_dir to an absolute path
meillo@0 1517 am_aux_dir=`cd $ac_aux_dir && pwd`
meillo@0 1518
meillo@0 1519 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
meillo@0 1520 # Use eval to expand $SHELL
meillo@0 1521 if eval "$MISSING --run true"; then
meillo@0 1522 am_missing_run="$MISSING --run "
meillo@0 1523 else
meillo@0 1524 am_missing_run=
meillo@0 1525 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
meillo@0 1526 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
meillo@0 1527 fi
meillo@0 1528
meillo@0 1529 for ac_prog in gawk mawk nawk awk
meillo@0 1530 do
meillo@0 1531 # Extract the first word of "$ac_prog", so it can be a program name with args.
meillo@0 1532 set dummy $ac_prog; ac_word=$2
meillo@0 1533 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1535 if test "${ac_cv_prog_AWK+set}" = set; then
meillo@0 1536 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1537 else
meillo@0 1538 if test -n "$AWK"; then
meillo@0 1539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
meillo@0 1540 else
meillo@0 1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1542 for as_dir in $PATH
meillo@0 1543 do
meillo@0 1544 IFS=$as_save_IFS
meillo@0 1545 test -z "$as_dir" && as_dir=.
meillo@0 1546 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1548 ac_cv_prog_AWK="$ac_prog"
meillo@0 1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1550 break 2
meillo@0 1551 fi
meillo@0 1552 done
meillo@0 1553 done
meillo@0 1554
meillo@0 1555 fi
meillo@0 1556 fi
meillo@0 1557 AWK=$ac_cv_prog_AWK
meillo@0 1558 if test -n "$AWK"; then
meillo@0 1559 echo "$as_me:$LINENO: result: $AWK" >&5
meillo@0 1560 echo "${ECHO_T}$AWK" >&6
meillo@0 1561 else
meillo@0 1562 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1563 echo "${ECHO_T}no" >&6
meillo@0 1564 fi
meillo@0 1565
meillo@0 1566 test -n "$AWK" && break
meillo@0 1567 done
meillo@0 1568
meillo@0 1569 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
meillo@0 1570 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
meillo@0 1571 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
meillo@0 1572 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
meillo@0 1573 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1574 else
meillo@0 1575 cat >conftest.make <<\_ACEOF
meillo@0 1576 all:
meillo@0 1577 @echo 'ac_maketemp="$(MAKE)"'
meillo@0 1578 _ACEOF
meillo@0 1579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
meillo@0 1580 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
meillo@0 1581 if test -n "$ac_maketemp"; then
meillo@0 1582 eval ac_cv_prog_make_${ac_make}_set=yes
meillo@0 1583 else
meillo@0 1584 eval ac_cv_prog_make_${ac_make}_set=no
meillo@0 1585 fi
meillo@0 1586 rm -f conftest.make
meillo@0 1587 fi
meillo@0 1588 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
meillo@0 1589 echo "$as_me:$LINENO: result: yes" >&5
meillo@0 1590 echo "${ECHO_T}yes" >&6
meillo@0 1591 SET_MAKE=
meillo@0 1592 else
meillo@0 1593 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1594 echo "${ECHO_T}no" >&6
meillo@0 1595 SET_MAKE="MAKE=${MAKE-make}"
meillo@0 1596 fi
meillo@0 1597
meillo@0 1598 rm -rf .tst 2>/dev/null
meillo@0 1599 mkdir .tst 2>/dev/null
meillo@0 1600 if test -d .tst; then
meillo@0 1601 am__leading_dot=.
meillo@0 1602 else
meillo@0 1603 am__leading_dot=_
meillo@0 1604 fi
meillo@0 1605 rmdir .tst 2>/dev/null
meillo@0 1606
meillo@0 1607 # test to see if srcdir already configured
meillo@0 1608 if test "`cd $srcdir && pwd`" != "`pwd`" &&
meillo@0 1609 test -f $srcdir/config.status; then
meillo@0 1610 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
meillo@0 1611 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
meillo@0 1612 { (exit 1); exit 1; }; }
meillo@0 1613 fi
meillo@0 1614
meillo@0 1615 # test whether we have cygpath
meillo@0 1616 if test -z "$CYGPATH_W"; then
meillo@0 1617 if (cygpath --version) >/dev/null 2>/dev/null; then
meillo@0 1618 CYGPATH_W='cygpath -w'
meillo@0 1619 else
meillo@0 1620 CYGPATH_W=echo
meillo@0 1621 fi
meillo@0 1622 fi
meillo@0 1623
meillo@0 1624
meillo@0 1625 # Define the identity of the package.
meillo@0 1626 PACKAGE='masqmail'
meillo@0 1627 VERSION='0.2.21'
meillo@0 1628
meillo@0 1629
meillo@0 1630 cat >>confdefs.h <<_ACEOF
meillo@0 1631 #define PACKAGE "$PACKAGE"
meillo@0 1632 _ACEOF
meillo@0 1633
meillo@0 1634
meillo@0 1635 cat >>confdefs.h <<_ACEOF
meillo@0 1636 #define VERSION "$VERSION"
meillo@0 1637 _ACEOF
meillo@0 1638
meillo@0 1639 # Some tools Automake needs.
meillo@0 1640
meillo@0 1641 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
meillo@0 1642
meillo@0 1643
meillo@0 1644 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
meillo@0 1645
meillo@0 1646
meillo@0 1647 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
meillo@0 1648
meillo@0 1649
meillo@0 1650 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
meillo@0 1651
meillo@0 1652
meillo@0 1653 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
meillo@0 1654
meillo@0 1655
meillo@0 1656 AMTAR=${AMTAR-"${am_missing_run}tar"}
meillo@0 1657
meillo@0 1658 install_sh=${install_sh-"$am_aux_dir/install-sh"}
meillo@0 1659
meillo@0 1660 # Installed binaries are usually stripped using `strip' when the user
meillo@0 1661 # run `make install-strip'. However `strip' might not be the right
meillo@0 1662 # tool to use in cross-compilation environments, therefore Automake
meillo@0 1663 # will honor the `STRIP' environment variable to overrule this program.
meillo@0 1664 if test "$cross_compiling" != no; then
meillo@0 1665 if test -n "$ac_tool_prefix"; then
meillo@0 1666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
meillo@0 1667 set dummy ${ac_tool_prefix}strip; ac_word=$2
meillo@0 1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1670 if test "${ac_cv_prog_STRIP+set}" = set; then
meillo@0 1671 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1672 else
meillo@0 1673 if test -n "$STRIP"; then
meillo@0 1674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
meillo@0 1675 else
meillo@0 1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1677 for as_dir in $PATH
meillo@0 1678 do
meillo@0 1679 IFS=$as_save_IFS
meillo@0 1680 test -z "$as_dir" && as_dir=.
meillo@0 1681 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
meillo@0 1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1685 break 2
meillo@0 1686 fi
meillo@0 1687 done
meillo@0 1688 done
meillo@0 1689
meillo@0 1690 fi
meillo@0 1691 fi
meillo@0 1692 STRIP=$ac_cv_prog_STRIP
meillo@0 1693 if test -n "$STRIP"; then
meillo@0 1694 echo "$as_me:$LINENO: result: $STRIP" >&5
meillo@0 1695 echo "${ECHO_T}$STRIP" >&6
meillo@0 1696 else
meillo@0 1697 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1698 echo "${ECHO_T}no" >&6
meillo@0 1699 fi
meillo@0 1700
meillo@0 1701 fi
meillo@0 1702 if test -z "$ac_cv_prog_STRIP"; then
meillo@0 1703 ac_ct_STRIP=$STRIP
meillo@0 1704 # Extract the first word of "strip", so it can be a program name with args.
meillo@0 1705 set dummy strip; ac_word=$2
meillo@0 1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
meillo@0 1709 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1710 else
meillo@0 1711 if test -n "$ac_ct_STRIP"; then
meillo@0 1712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
meillo@0 1713 else
meillo@0 1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1715 for as_dir in $PATH
meillo@0 1716 do
meillo@0 1717 IFS=$as_save_IFS
meillo@0 1718 test -z "$as_dir" && as_dir=.
meillo@0 1719 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1721 ac_cv_prog_ac_ct_STRIP="strip"
meillo@0 1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1723 break 2
meillo@0 1724 fi
meillo@0 1725 done
meillo@0 1726 done
meillo@0 1727
meillo@0 1728 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
meillo@0 1729 fi
meillo@0 1730 fi
meillo@0 1731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
meillo@0 1732 if test -n "$ac_ct_STRIP"; then
meillo@0 1733 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
meillo@0 1734 echo "${ECHO_T}$ac_ct_STRIP" >&6
meillo@0 1735 else
meillo@0 1736 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1737 echo "${ECHO_T}no" >&6
meillo@0 1738 fi
meillo@0 1739
meillo@0 1740 STRIP=$ac_ct_STRIP
meillo@0 1741 else
meillo@0 1742 STRIP="$ac_cv_prog_STRIP"
meillo@0 1743 fi
meillo@0 1744
meillo@0 1745 fi
meillo@0 1746 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
meillo@0 1747
meillo@0 1748 # We need awk for the "check" target. The system "awk" is bad on
meillo@0 1749 # some platforms.
meillo@0 1750
meillo@0 1751
meillo@0 1752
meillo@0 1753
meillo@0 1754
meillo@0 1755
meillo@0 1756
meillo@0 1757
meillo@0 1758 ac_ext=c
meillo@0 1759 ac_cpp='$CPP $CPPFLAGS'
meillo@0 1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
meillo@0 1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
meillo@0 1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
meillo@0 1763 if test -n "$ac_tool_prefix"; then
meillo@0 1764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
meillo@0 1765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
meillo@0 1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1768 if test "${ac_cv_prog_CC+set}" = set; then
meillo@0 1769 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1770 else
meillo@0 1771 if test -n "$CC"; then
meillo@0 1772 ac_cv_prog_CC="$CC" # Let the user override the test.
meillo@0 1773 else
meillo@0 1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1775 for as_dir in $PATH
meillo@0 1776 do
meillo@0 1777 IFS=$as_save_IFS
meillo@0 1778 test -z "$as_dir" && as_dir=.
meillo@0 1779 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
meillo@0 1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1783 break 2
meillo@0 1784 fi
meillo@0 1785 done
meillo@0 1786 done
meillo@0 1787
meillo@0 1788 fi
meillo@0 1789 fi
meillo@0 1790 CC=$ac_cv_prog_CC
meillo@0 1791 if test -n "$CC"; then
meillo@0 1792 echo "$as_me:$LINENO: result: $CC" >&5
meillo@0 1793 echo "${ECHO_T}$CC" >&6
meillo@0 1794 else
meillo@0 1795 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1796 echo "${ECHO_T}no" >&6
meillo@0 1797 fi
meillo@0 1798
meillo@0 1799 fi
meillo@0 1800 if test -z "$ac_cv_prog_CC"; then
meillo@0 1801 ac_ct_CC=$CC
meillo@0 1802 # Extract the first word of "gcc", so it can be a program name with args.
meillo@0 1803 set dummy gcc; ac_word=$2
meillo@0 1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
meillo@0 1807 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1808 else
meillo@0 1809 if test -n "$ac_ct_CC"; then
meillo@0 1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
meillo@0 1811 else
meillo@0 1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1813 for as_dir in $PATH
meillo@0 1814 do
meillo@0 1815 IFS=$as_save_IFS
meillo@0 1816 test -z "$as_dir" && as_dir=.
meillo@0 1817 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1819 ac_cv_prog_ac_ct_CC="gcc"
meillo@0 1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1821 break 2
meillo@0 1822 fi
meillo@0 1823 done
meillo@0 1824 done
meillo@0 1825
meillo@0 1826 fi
meillo@0 1827 fi
meillo@0 1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
meillo@0 1829 if test -n "$ac_ct_CC"; then
meillo@0 1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
meillo@0 1831 echo "${ECHO_T}$ac_ct_CC" >&6
meillo@0 1832 else
meillo@0 1833 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1834 echo "${ECHO_T}no" >&6
meillo@0 1835 fi
meillo@0 1836
meillo@0 1837 CC=$ac_ct_CC
meillo@0 1838 else
meillo@0 1839 CC="$ac_cv_prog_CC"
meillo@0 1840 fi
meillo@0 1841
meillo@0 1842 if test -z "$CC"; then
meillo@0 1843 if test -n "$ac_tool_prefix"; then
meillo@0 1844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
meillo@0 1845 set dummy ${ac_tool_prefix}cc; ac_word=$2
meillo@0 1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1848 if test "${ac_cv_prog_CC+set}" = set; then
meillo@0 1849 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1850 else
meillo@0 1851 if test -n "$CC"; then
meillo@0 1852 ac_cv_prog_CC="$CC" # Let the user override the test.
meillo@0 1853 else
meillo@0 1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1855 for as_dir in $PATH
meillo@0 1856 do
meillo@0 1857 IFS=$as_save_IFS
meillo@0 1858 test -z "$as_dir" && as_dir=.
meillo@0 1859 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1861 ac_cv_prog_CC="${ac_tool_prefix}cc"
meillo@0 1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1863 break 2
meillo@0 1864 fi
meillo@0 1865 done
meillo@0 1866 done
meillo@0 1867
meillo@0 1868 fi
meillo@0 1869 fi
meillo@0 1870 CC=$ac_cv_prog_CC
meillo@0 1871 if test -n "$CC"; then
meillo@0 1872 echo "$as_me:$LINENO: result: $CC" >&5
meillo@0 1873 echo "${ECHO_T}$CC" >&6
meillo@0 1874 else
meillo@0 1875 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1876 echo "${ECHO_T}no" >&6
meillo@0 1877 fi
meillo@0 1878
meillo@0 1879 fi
meillo@0 1880 if test -z "$ac_cv_prog_CC"; then
meillo@0 1881 ac_ct_CC=$CC
meillo@0 1882 # Extract the first word of "cc", so it can be a program name with args.
meillo@0 1883 set dummy cc; ac_word=$2
meillo@0 1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
meillo@0 1887 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1888 else
meillo@0 1889 if test -n "$ac_ct_CC"; then
meillo@0 1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
meillo@0 1891 else
meillo@0 1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1893 for as_dir in $PATH
meillo@0 1894 do
meillo@0 1895 IFS=$as_save_IFS
meillo@0 1896 test -z "$as_dir" && as_dir=.
meillo@0 1897 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1899 ac_cv_prog_ac_ct_CC="cc"
meillo@0 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1901 break 2
meillo@0 1902 fi
meillo@0 1903 done
meillo@0 1904 done
meillo@0 1905
meillo@0 1906 fi
meillo@0 1907 fi
meillo@0 1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
meillo@0 1909 if test -n "$ac_ct_CC"; then
meillo@0 1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
meillo@0 1911 echo "${ECHO_T}$ac_ct_CC" >&6
meillo@0 1912 else
meillo@0 1913 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1914 echo "${ECHO_T}no" >&6
meillo@0 1915 fi
meillo@0 1916
meillo@0 1917 CC=$ac_ct_CC
meillo@0 1918 else
meillo@0 1919 CC="$ac_cv_prog_CC"
meillo@0 1920 fi
meillo@0 1921
meillo@0 1922 fi
meillo@0 1923 if test -z "$CC"; then
meillo@0 1924 # Extract the first word of "cc", so it can be a program name with args.
meillo@0 1925 set dummy cc; ac_word=$2
meillo@0 1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1928 if test "${ac_cv_prog_CC+set}" = set; then
meillo@0 1929 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1930 else
meillo@0 1931 if test -n "$CC"; then
meillo@0 1932 ac_cv_prog_CC="$CC" # Let the user override the test.
meillo@0 1933 else
meillo@0 1934 ac_prog_rejected=no
meillo@0 1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1936 for as_dir in $PATH
meillo@0 1937 do
meillo@0 1938 IFS=$as_save_IFS
meillo@0 1939 test -z "$as_dir" && as_dir=.
meillo@0 1940 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
meillo@0 1943 ac_prog_rejected=yes
meillo@0 1944 continue
meillo@0 1945 fi
meillo@0 1946 ac_cv_prog_CC="cc"
meillo@0 1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 1948 break 2
meillo@0 1949 fi
meillo@0 1950 done
meillo@0 1951 done
meillo@0 1952
meillo@0 1953 if test $ac_prog_rejected = yes; then
meillo@0 1954 # We found a bogon in the path, so make sure we never use it.
meillo@0 1955 set dummy $ac_cv_prog_CC
meillo@0 1956 shift
meillo@0 1957 if test $# != 0; then
meillo@0 1958 # We chose a different compiler from the bogus one.
meillo@0 1959 # However, it has the same basename, so the bogon will be chosen
meillo@0 1960 # first if we set CC to just the basename; use the full file name.
meillo@0 1961 shift
meillo@0 1962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
meillo@0 1963 fi
meillo@0 1964 fi
meillo@0 1965 fi
meillo@0 1966 fi
meillo@0 1967 CC=$ac_cv_prog_CC
meillo@0 1968 if test -n "$CC"; then
meillo@0 1969 echo "$as_me:$LINENO: result: $CC" >&5
meillo@0 1970 echo "${ECHO_T}$CC" >&6
meillo@0 1971 else
meillo@0 1972 echo "$as_me:$LINENO: result: no" >&5
meillo@0 1973 echo "${ECHO_T}no" >&6
meillo@0 1974 fi
meillo@0 1975
meillo@0 1976 fi
meillo@0 1977 if test -z "$CC"; then
meillo@0 1978 if test -n "$ac_tool_prefix"; then
meillo@0 1979 for ac_prog in cl
meillo@0 1980 do
meillo@0 1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
meillo@0 1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
meillo@0 1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 1985 if test "${ac_cv_prog_CC+set}" = set; then
meillo@0 1986 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 1987 else
meillo@0 1988 if test -n "$CC"; then
meillo@0 1989 ac_cv_prog_CC="$CC" # Let the user override the test.
meillo@0 1990 else
meillo@0 1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 1992 for as_dir in $PATH
meillo@0 1993 do
meillo@0 1994 IFS=$as_save_IFS
meillo@0 1995 test -z "$as_dir" && as_dir=.
meillo@0 1996 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
meillo@0 1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 2000 break 2
meillo@0 2001 fi
meillo@0 2002 done
meillo@0 2003 done
meillo@0 2004
meillo@0 2005 fi
meillo@0 2006 fi
meillo@0 2007 CC=$ac_cv_prog_CC
meillo@0 2008 if test -n "$CC"; then
meillo@0 2009 echo "$as_me:$LINENO: result: $CC" >&5
meillo@0 2010 echo "${ECHO_T}$CC" >&6
meillo@0 2011 else
meillo@0 2012 echo "$as_me:$LINENO: result: no" >&5
meillo@0 2013 echo "${ECHO_T}no" >&6
meillo@0 2014 fi
meillo@0 2015
meillo@0 2016 test -n "$CC" && break
meillo@0 2017 done
meillo@0 2018 fi
meillo@0 2019 if test -z "$CC"; then
meillo@0 2020 ac_ct_CC=$CC
meillo@0 2021 for ac_prog in cl
meillo@0 2022 do
meillo@0 2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
meillo@0 2024 set dummy $ac_prog; ac_word=$2
meillo@0 2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
meillo@0 2028 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2029 else
meillo@0 2030 if test -n "$ac_ct_CC"; then
meillo@0 2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
meillo@0 2032 else
meillo@0 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 2034 for as_dir in $PATH
meillo@0 2035 do
meillo@0 2036 IFS=$as_save_IFS
meillo@0 2037 test -z "$as_dir" && as_dir=.
meillo@0 2038 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 2040 ac_cv_prog_ac_ct_CC="$ac_prog"
meillo@0 2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 2042 break 2
meillo@0 2043 fi
meillo@0 2044 done
meillo@0 2045 done
meillo@0 2046
meillo@0 2047 fi
meillo@0 2048 fi
meillo@0 2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
meillo@0 2050 if test -n "$ac_ct_CC"; then
meillo@0 2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
meillo@0 2052 echo "${ECHO_T}$ac_ct_CC" >&6
meillo@0 2053 else
meillo@0 2054 echo "$as_me:$LINENO: result: no" >&5
meillo@0 2055 echo "${ECHO_T}no" >&6
meillo@0 2056 fi
meillo@0 2057
meillo@0 2058 test -n "$ac_ct_CC" && break
meillo@0 2059 done
meillo@0 2060
meillo@0 2061 CC=$ac_ct_CC
meillo@0 2062 fi
meillo@0 2063
meillo@0 2064 fi
meillo@0 2065
meillo@0 2066
meillo@0 2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
meillo@0 2068 See \`config.log' for more details." >&5
meillo@0 2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
meillo@0 2070 See \`config.log' for more details." >&2;}
meillo@0 2071 { (exit 1); exit 1; }; }
meillo@0 2072
meillo@0 2073 # Provide some information about the compiler.
meillo@0 2074 echo "$as_me:$LINENO:" \
meillo@0 2075 "checking for C compiler version" >&5
meillo@0 2076 ac_compiler=`set X $ac_compile; echo $2`
meillo@0 2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
meillo@0 2078 (eval $ac_compiler --version </dev/null >&5) 2>&5
meillo@0 2079 ac_status=$?
meillo@0 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2081 (exit $ac_status); }
meillo@0 2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
meillo@0 2083 (eval $ac_compiler -v </dev/null >&5) 2>&5
meillo@0 2084 ac_status=$?
meillo@0 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2086 (exit $ac_status); }
meillo@0 2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
meillo@0 2088 (eval $ac_compiler -V </dev/null >&5) 2>&5
meillo@0 2089 ac_status=$?
meillo@0 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2091 (exit $ac_status); }
meillo@0 2092
meillo@0 2093 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2094 /* confdefs.h. */
meillo@0 2095 _ACEOF
meillo@0 2096 cat confdefs.h >>conftest.$ac_ext
meillo@0 2097 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2098 /* end confdefs.h. */
meillo@0 2099
meillo@0 2100 int
meillo@0 2101 main ()
meillo@0 2102 {
meillo@0 2103
meillo@0 2104 ;
meillo@0 2105 return 0;
meillo@0 2106 }
meillo@0 2107 _ACEOF
meillo@0 2108 ac_clean_files_save=$ac_clean_files
meillo@0 2109 ac_clean_files="$ac_clean_files a.out a.exe b.out"
meillo@0 2110 # Try to create an executable without -o first, disregard a.out.
meillo@0 2111 # It will help us diagnose broken compilers, and finding out an intuition
meillo@0 2112 # of exeext.
meillo@0 2113 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
meillo@0 2114 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
meillo@0 2115 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
meillo@0 2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
meillo@0 2117 (eval $ac_link_default) 2>&5
meillo@0 2118 ac_status=$?
meillo@0 2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2120 (exit $ac_status); }; then
meillo@0 2121 # Find the output, starting from the most likely. This scheme is
meillo@0 2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
meillo@0 2123 # resort.
meillo@0 2124
meillo@0 2125 # Be careful to initialize this variable, since it used to be cached.
meillo@0 2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
meillo@0 2127 ac_cv_exeext=
meillo@0 2128 # b.out is created by i960 compilers.
meillo@0 2129 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
meillo@0 2130 do
meillo@0 2131 test -f "$ac_file" || continue
meillo@0 2132 case $ac_file in
meillo@0 2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
meillo@0 2134 ;;
meillo@0 2135 conftest.$ac_ext )
meillo@0 2136 # This is the source file.
meillo@0 2137 ;;
meillo@0 2138 [ab].out )
meillo@0 2139 # We found the default executable, but exeext='' is most
meillo@0 2140 # certainly right.
meillo@0 2141 break;;
meillo@0 2142 *.* )
meillo@0 2143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
meillo@0 2144 # FIXME: I believe we export ac_cv_exeext for Libtool,
meillo@0 2145 # but it would be cool to find out if it's true. Does anybody
meillo@0 2146 # maintain Libtool? --akim.
meillo@0 2147 export ac_cv_exeext
meillo@0 2148 break;;
meillo@0 2149 * )
meillo@0 2150 break;;
meillo@0 2151 esac
meillo@0 2152 done
meillo@0 2153 else
meillo@0 2154 echo "$as_me: failed program was:" >&5
meillo@0 2155 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2156
meillo@0 2157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
meillo@0 2158 See \`config.log' for more details." >&5
meillo@0 2159 echo "$as_me: error: C compiler cannot create executables
meillo@0 2160 See \`config.log' for more details." >&2;}
meillo@0 2161 { (exit 77); exit 77; }; }
meillo@0 2162 fi
meillo@0 2163
meillo@0 2164 ac_exeext=$ac_cv_exeext
meillo@0 2165 echo "$as_me:$LINENO: result: $ac_file" >&5
meillo@0 2166 echo "${ECHO_T}$ac_file" >&6
meillo@0 2167
meillo@0 2168 # Check the compiler produces executables we can run. If not, either
meillo@0 2169 # the compiler is broken, or we cross compile.
meillo@0 2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
meillo@0 2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
meillo@0 2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
meillo@0 2173 # If not cross compiling, check that we can run a simple program.
meillo@0 2174 if test "$cross_compiling" != yes; then
meillo@0 2175 if { ac_try='./$ac_file'
meillo@0 2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2177 (eval $ac_try) 2>&5
meillo@0 2178 ac_status=$?
meillo@0 2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2180 (exit $ac_status); }; }; then
meillo@0 2181 cross_compiling=no
meillo@0 2182 else
meillo@0 2183 if test "$cross_compiling" = maybe; then
meillo@0 2184 cross_compiling=yes
meillo@0 2185 else
meillo@0 2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
meillo@0 2187 If you meant to cross compile, use \`--host'.
meillo@0 2188 See \`config.log' for more details." >&5
meillo@0 2189 echo "$as_me: error: cannot run C compiled programs.
meillo@0 2190 If you meant to cross compile, use \`--host'.
meillo@0 2191 See \`config.log' for more details." >&2;}
meillo@0 2192 { (exit 1); exit 1; }; }
meillo@0 2193 fi
meillo@0 2194 fi
meillo@0 2195 fi
meillo@0 2196 echo "$as_me:$LINENO: result: yes" >&5
meillo@0 2197 echo "${ECHO_T}yes" >&6
meillo@0 2198
meillo@0 2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
meillo@0 2200 ac_clean_files=$ac_clean_files_save
meillo@0 2201 # Check the compiler produces executables we can run. If not, either
meillo@0 2202 # the compiler is broken, or we cross compile.
meillo@0 2203 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
meillo@0 2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
meillo@0 2205 echo "$as_me:$LINENO: result: $cross_compiling" >&5
meillo@0 2206 echo "${ECHO_T}$cross_compiling" >&6
meillo@0 2207
meillo@0 2208 echo "$as_me:$LINENO: checking for suffix of executables" >&5
meillo@0 2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
meillo@0 2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 2211 (eval $ac_link) 2>&5
meillo@0 2212 ac_status=$?
meillo@0 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2214 (exit $ac_status); }; then
meillo@0 2215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
meillo@0 2216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
meillo@0 2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
meillo@0 2218 # `rm'.
meillo@0 2219 for ac_file in conftest.exe conftest conftest.*; do
meillo@0 2220 test -f "$ac_file" || continue
meillo@0 2221 case $ac_file in
meillo@0 2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
meillo@0 2223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
meillo@0 2224 export ac_cv_exeext
meillo@0 2225 break;;
meillo@0 2226 * ) break;;
meillo@0 2227 esac
meillo@0 2228 done
meillo@0 2229 else
meillo@0 2230 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
meillo@0 2231 See \`config.log' for more details." >&5
meillo@0 2232 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
meillo@0 2233 See \`config.log' for more details." >&2;}
meillo@0 2234 { (exit 1); exit 1; }; }
meillo@0 2235 fi
meillo@0 2236
meillo@0 2237 rm -f conftest$ac_cv_exeext
meillo@0 2238 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
meillo@0 2239 echo "${ECHO_T}$ac_cv_exeext" >&6
meillo@0 2240
meillo@0 2241 rm -f conftest.$ac_ext
meillo@0 2242 EXEEXT=$ac_cv_exeext
meillo@0 2243 ac_exeext=$EXEEXT
meillo@0 2244 echo "$as_me:$LINENO: checking for suffix of object files" >&5
meillo@0 2245 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
meillo@0 2246 if test "${ac_cv_objext+set}" = set; then
meillo@0 2247 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2248 else
meillo@0 2249 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2250 /* confdefs.h. */
meillo@0 2251 _ACEOF
meillo@0 2252 cat confdefs.h >>conftest.$ac_ext
meillo@0 2253 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2254 /* end confdefs.h. */
meillo@0 2255
meillo@0 2256 int
meillo@0 2257 main ()
meillo@0 2258 {
meillo@0 2259
meillo@0 2260 ;
meillo@0 2261 return 0;
meillo@0 2262 }
meillo@0 2263 _ACEOF
meillo@0 2264 rm -f conftest.o conftest.obj
meillo@0 2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2266 (eval $ac_compile) 2>&5
meillo@0 2267 ac_status=$?
meillo@0 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2269 (exit $ac_status); }; then
meillo@0 2270 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
meillo@0 2271 case $ac_file in
meillo@0 2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
meillo@0 2273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
meillo@0 2274 break;;
meillo@0 2275 esac
meillo@0 2276 done
meillo@0 2277 else
meillo@0 2278 echo "$as_me: failed program was:" >&5
meillo@0 2279 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2280
meillo@0 2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
meillo@0 2282 See \`config.log' for more details." >&5
meillo@0 2283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
meillo@0 2284 See \`config.log' for more details." >&2;}
meillo@0 2285 { (exit 1); exit 1; }; }
meillo@0 2286 fi
meillo@0 2287
meillo@0 2288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
meillo@0 2289 fi
meillo@0 2290 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
meillo@0 2291 echo "${ECHO_T}$ac_cv_objext" >&6
meillo@0 2292 OBJEXT=$ac_cv_objext
meillo@0 2293 ac_objext=$OBJEXT
meillo@0 2294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
meillo@0 2295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
meillo@0 2296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
meillo@0 2297 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2298 else
meillo@0 2299 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2300 /* confdefs.h. */
meillo@0 2301 _ACEOF
meillo@0 2302 cat confdefs.h >>conftest.$ac_ext
meillo@0 2303 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2304 /* end confdefs.h. */
meillo@0 2305
meillo@0 2306 int
meillo@0 2307 main ()
meillo@0 2308 {
meillo@0 2309 #ifndef __GNUC__
meillo@0 2310 choke me
meillo@0 2311 #endif
meillo@0 2312
meillo@0 2313 ;
meillo@0 2314 return 0;
meillo@0 2315 }
meillo@0 2316 _ACEOF
meillo@0 2317 rm -f conftest.$ac_objext
meillo@0 2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2319 (eval $ac_compile) 2>conftest.er1
meillo@0 2320 ac_status=$?
meillo@0 2321 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2322 rm -f conftest.er1
meillo@0 2323 cat conftest.err >&5
meillo@0 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2325 (exit $ac_status); } &&
meillo@0 2326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2328 (eval $ac_try) 2>&5
meillo@0 2329 ac_status=$?
meillo@0 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2331 (exit $ac_status); }; } &&
meillo@0 2332 { ac_try='test -s conftest.$ac_objext'
meillo@0 2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2334 (eval $ac_try) 2>&5
meillo@0 2335 ac_status=$?
meillo@0 2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2337 (exit $ac_status); }; }; then
meillo@0 2338 ac_compiler_gnu=yes
meillo@0 2339 else
meillo@0 2340 echo "$as_me: failed program was:" >&5
meillo@0 2341 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2342
meillo@0 2343 ac_compiler_gnu=no
meillo@0 2344 fi
meillo@0 2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 2346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
meillo@0 2347
meillo@0 2348 fi
meillo@0 2349 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
meillo@0 2350 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
meillo@0 2351 GCC=`test $ac_compiler_gnu = yes && echo yes`
meillo@0 2352 ac_test_CFLAGS=${CFLAGS+set}
meillo@0 2353 ac_save_CFLAGS=$CFLAGS
meillo@0 2354 CFLAGS="-g"
meillo@0 2355 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
meillo@0 2356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
meillo@0 2357 if test "${ac_cv_prog_cc_g+set}" = set; then
meillo@0 2358 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2359 else
meillo@0 2360 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2361 /* confdefs.h. */
meillo@0 2362 _ACEOF
meillo@0 2363 cat confdefs.h >>conftest.$ac_ext
meillo@0 2364 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2365 /* end confdefs.h. */
meillo@0 2366
meillo@0 2367 int
meillo@0 2368 main ()
meillo@0 2369 {
meillo@0 2370
meillo@0 2371 ;
meillo@0 2372 return 0;
meillo@0 2373 }
meillo@0 2374 _ACEOF
meillo@0 2375 rm -f conftest.$ac_objext
meillo@0 2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2377 (eval $ac_compile) 2>conftest.er1
meillo@0 2378 ac_status=$?
meillo@0 2379 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2380 rm -f conftest.er1
meillo@0 2381 cat conftest.err >&5
meillo@0 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2383 (exit $ac_status); } &&
meillo@0 2384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2386 (eval $ac_try) 2>&5
meillo@0 2387 ac_status=$?
meillo@0 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2389 (exit $ac_status); }; } &&
meillo@0 2390 { ac_try='test -s conftest.$ac_objext'
meillo@0 2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2392 (eval $ac_try) 2>&5
meillo@0 2393 ac_status=$?
meillo@0 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2395 (exit $ac_status); }; }; then
meillo@0 2396 ac_cv_prog_cc_g=yes
meillo@0 2397 else
meillo@0 2398 echo "$as_me: failed program was:" >&5
meillo@0 2399 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2400
meillo@0 2401 ac_cv_prog_cc_g=no
meillo@0 2402 fi
meillo@0 2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 2404 fi
meillo@0 2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
meillo@0 2406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
meillo@0 2407 if test "$ac_test_CFLAGS" = set; then
meillo@0 2408 CFLAGS=$ac_save_CFLAGS
meillo@0 2409 elif test $ac_cv_prog_cc_g = yes; then
meillo@0 2410 if test "$GCC" = yes; then
meillo@0 2411 CFLAGS="-g -O2"
meillo@0 2412 else
meillo@0 2413 CFLAGS="-g"
meillo@0 2414 fi
meillo@0 2415 else
meillo@0 2416 if test "$GCC" = yes; then
meillo@0 2417 CFLAGS="-O2"
meillo@0 2418 else
meillo@0 2419 CFLAGS=
meillo@0 2420 fi
meillo@0 2421 fi
meillo@0 2422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
meillo@0 2423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
meillo@0 2424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
meillo@0 2425 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2426 else
meillo@0 2427 ac_cv_prog_cc_stdc=no
meillo@0 2428 ac_save_CC=$CC
meillo@0 2429 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2430 /* confdefs.h. */
meillo@0 2431 _ACEOF
meillo@0 2432 cat confdefs.h >>conftest.$ac_ext
meillo@0 2433 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2434 /* end confdefs.h. */
meillo@0 2435 #include <stdarg.h>
meillo@0 2436 #include <stdio.h>
meillo@0 2437 #include <sys/types.h>
meillo@0 2438 #include <sys/stat.h>
meillo@0 2439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
meillo@0 2440 struct buf { int x; };
meillo@0 2441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
meillo@0 2442 static char *e (p, i)
meillo@0 2443 char **p;
meillo@0 2444 int i;
meillo@0 2445 {
meillo@0 2446 return p[i];
meillo@0 2447 }
meillo@0 2448 static char *f (char * (*g) (char **, int), char **p, ...)
meillo@0 2449 {
meillo@0 2450 char *s;
meillo@0 2451 va_list v;
meillo@0 2452 va_start (v,p);
meillo@0 2453 s = g (p, va_arg (v,int));
meillo@0 2454 va_end (v);
meillo@0 2455 return s;
meillo@0 2456 }
meillo@0 2457
meillo@0 2458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
meillo@0 2459 function prototypes and stuff, but not '\xHH' hex character constants.
meillo@0 2460 These don't provoke an error unfortunately, instead are silently treated
meillo@0 2461 as 'x'. The following induces an error, until -std1 is added to get
meillo@0 2462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
meillo@0 2463 array size at least. It's necessary to write '\x00'==0 to get something
meillo@0 2464 that's true only with -std1. */
meillo@0 2465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
meillo@0 2466
meillo@0 2467 int test (int i, double x);
meillo@0 2468 struct s1 {int (*f) (int a);};
meillo@0 2469 struct s2 {int (*f) (double a);};
meillo@0 2470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
meillo@0 2471 int argc;
meillo@0 2472 char **argv;
meillo@0 2473 int
meillo@0 2474 main ()
meillo@0 2475 {
meillo@0 2476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
meillo@0 2477 ;
meillo@0 2478 return 0;
meillo@0 2479 }
meillo@0 2480 _ACEOF
meillo@0 2481 # Don't try gcc -ansi; that turns off useful extensions and
meillo@0 2482 # breaks some systems' header files.
meillo@0 2483 # AIX -qlanglvl=ansi
meillo@0 2484 # Ultrix and OSF/1 -std1
meillo@0 2485 # HP-UX 10.20 and later -Ae
meillo@0 2486 # HP-UX older versions -Aa -D_HPUX_SOURCE
meillo@0 2487 # SVR4 -Xc -D__EXTENSIONS__
meillo@0 2488 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
meillo@0 2489 do
meillo@0 2490 CC="$ac_save_CC $ac_arg"
meillo@0 2491 rm -f conftest.$ac_objext
meillo@0 2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2493 (eval $ac_compile) 2>conftest.er1
meillo@0 2494 ac_status=$?
meillo@0 2495 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2496 rm -f conftest.er1
meillo@0 2497 cat conftest.err >&5
meillo@0 2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2499 (exit $ac_status); } &&
meillo@0 2500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2502 (eval $ac_try) 2>&5
meillo@0 2503 ac_status=$?
meillo@0 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2505 (exit $ac_status); }; } &&
meillo@0 2506 { ac_try='test -s conftest.$ac_objext'
meillo@0 2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2508 (eval $ac_try) 2>&5
meillo@0 2509 ac_status=$?
meillo@0 2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2511 (exit $ac_status); }; }; then
meillo@0 2512 ac_cv_prog_cc_stdc=$ac_arg
meillo@0 2513 break
meillo@0 2514 else
meillo@0 2515 echo "$as_me: failed program was:" >&5
meillo@0 2516 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2517
meillo@0 2518 fi
meillo@0 2519 rm -f conftest.err conftest.$ac_objext
meillo@0 2520 done
meillo@0 2521 rm -f conftest.$ac_ext conftest.$ac_objext
meillo@0 2522 CC=$ac_save_CC
meillo@0 2523
meillo@0 2524 fi
meillo@0 2525
meillo@0 2526 case "x$ac_cv_prog_cc_stdc" in
meillo@0 2527 x|xno)
meillo@0 2528 echo "$as_me:$LINENO: result: none needed" >&5
meillo@0 2529 echo "${ECHO_T}none needed" >&6 ;;
meillo@0 2530 *)
meillo@0 2531 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
meillo@0 2532 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
meillo@0 2533 CC="$CC $ac_cv_prog_cc_stdc" ;;
meillo@0 2534 esac
meillo@0 2535
meillo@0 2536 # Some people use a C++ compiler to compile C. Since we use `exit',
meillo@0 2537 # in C++ we need to declare it. In case someone uses the same compiler
meillo@0 2538 # for both compiling C and C++ we need to have the C++ compiler decide
meillo@0 2539 # the declaration of exit, since it's the most demanding environment.
meillo@0 2540 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2541 #ifndef __cplusplus
meillo@0 2542 choke me
meillo@0 2543 #endif
meillo@0 2544 _ACEOF
meillo@0 2545 rm -f conftest.$ac_objext
meillo@0 2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2547 (eval $ac_compile) 2>conftest.er1
meillo@0 2548 ac_status=$?
meillo@0 2549 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2550 rm -f conftest.er1
meillo@0 2551 cat conftest.err >&5
meillo@0 2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2553 (exit $ac_status); } &&
meillo@0 2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2556 (eval $ac_try) 2>&5
meillo@0 2557 ac_status=$?
meillo@0 2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2559 (exit $ac_status); }; } &&
meillo@0 2560 { ac_try='test -s conftest.$ac_objext'
meillo@0 2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2562 (eval $ac_try) 2>&5
meillo@0 2563 ac_status=$?
meillo@0 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2565 (exit $ac_status); }; }; then
meillo@0 2566 for ac_declaration in \
meillo@0 2567 '' \
meillo@0 2568 'extern "C" void std::exit (int) throw (); using std::exit;' \
meillo@0 2569 'extern "C" void std::exit (int); using std::exit;' \
meillo@0 2570 'extern "C" void exit (int) throw ();' \
meillo@0 2571 'extern "C" void exit (int);' \
meillo@0 2572 'void exit (int);'
meillo@0 2573 do
meillo@0 2574 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2575 /* confdefs.h. */
meillo@0 2576 _ACEOF
meillo@0 2577 cat confdefs.h >>conftest.$ac_ext
meillo@0 2578 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2579 /* end confdefs.h. */
meillo@0 2580 $ac_declaration
meillo@0 2581 #include <stdlib.h>
meillo@0 2582 int
meillo@0 2583 main ()
meillo@0 2584 {
meillo@0 2585 exit (42);
meillo@0 2586 ;
meillo@0 2587 return 0;
meillo@0 2588 }
meillo@0 2589 _ACEOF
meillo@0 2590 rm -f conftest.$ac_objext
meillo@0 2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2592 (eval $ac_compile) 2>conftest.er1
meillo@0 2593 ac_status=$?
meillo@0 2594 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2595 rm -f conftest.er1
meillo@0 2596 cat conftest.err >&5
meillo@0 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2598 (exit $ac_status); } &&
meillo@0 2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2601 (eval $ac_try) 2>&5
meillo@0 2602 ac_status=$?
meillo@0 2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2604 (exit $ac_status); }; } &&
meillo@0 2605 { ac_try='test -s conftest.$ac_objext'
meillo@0 2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2607 (eval $ac_try) 2>&5
meillo@0 2608 ac_status=$?
meillo@0 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2610 (exit $ac_status); }; }; then
meillo@0 2611 :
meillo@0 2612 else
meillo@0 2613 echo "$as_me: failed program was:" >&5
meillo@0 2614 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2615
meillo@0 2616 continue
meillo@0 2617 fi
meillo@0 2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 2619 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2620 /* confdefs.h. */
meillo@0 2621 _ACEOF
meillo@0 2622 cat confdefs.h >>conftest.$ac_ext
meillo@0 2623 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2624 /* end confdefs.h. */
meillo@0 2625 $ac_declaration
meillo@0 2626 int
meillo@0 2627 main ()
meillo@0 2628 {
meillo@0 2629 exit (42);
meillo@0 2630 ;
meillo@0 2631 return 0;
meillo@0 2632 }
meillo@0 2633 _ACEOF
meillo@0 2634 rm -f conftest.$ac_objext
meillo@0 2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 2636 (eval $ac_compile) 2>conftest.er1
meillo@0 2637 ac_status=$?
meillo@0 2638 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2639 rm -f conftest.er1
meillo@0 2640 cat conftest.err >&5
meillo@0 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2642 (exit $ac_status); } &&
meillo@0 2643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2645 (eval $ac_try) 2>&5
meillo@0 2646 ac_status=$?
meillo@0 2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2648 (exit $ac_status); }; } &&
meillo@0 2649 { ac_try='test -s conftest.$ac_objext'
meillo@0 2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2651 (eval $ac_try) 2>&5
meillo@0 2652 ac_status=$?
meillo@0 2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2654 (exit $ac_status); }; }; then
meillo@0 2655 break
meillo@0 2656 else
meillo@0 2657 echo "$as_me: failed program was:" >&5
meillo@0 2658 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2659
meillo@0 2660 fi
meillo@0 2661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 2662 done
meillo@0 2663 rm -f conftest*
meillo@0 2664 if test -n "$ac_declaration"; then
meillo@0 2665 echo '#ifdef __cplusplus' >>confdefs.h
meillo@0 2666 echo $ac_declaration >>confdefs.h
meillo@0 2667 echo '#endif' >>confdefs.h
meillo@0 2668 fi
meillo@0 2669
meillo@0 2670 else
meillo@0 2671 echo "$as_me: failed program was:" >&5
meillo@0 2672 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2673
meillo@0 2674 fi
meillo@0 2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 2676 ac_ext=c
meillo@0 2677 ac_cpp='$CPP $CPPFLAGS'
meillo@0 2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
meillo@0 2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
meillo@0 2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
meillo@0 2681 DEPDIR="${am__leading_dot}deps"
meillo@0 2682
meillo@0 2683 ac_config_commands="$ac_config_commands depfiles"
meillo@0 2684
meillo@0 2685
meillo@0 2686 am_make=${MAKE-make}
meillo@0 2687 cat > confinc << 'END'
meillo@0 2688 am__doit:
meillo@0 2689 @echo done
meillo@0 2690 .PHONY: am__doit
meillo@0 2691 END
meillo@0 2692 # If we don't find an include directive, just comment out the code.
meillo@0 2693 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
meillo@0 2694 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
meillo@0 2695 am__include="#"
meillo@0 2696 am__quote=
meillo@0 2697 _am_result=none
meillo@0 2698 # First try GNU make style include.
meillo@0 2699 echo "include confinc" > confmf
meillo@0 2700 # We grep out `Entering directory' and `Leaving directory'
meillo@0 2701 # messages which can occur if `w' ends up in MAKEFLAGS.
meillo@0 2702 # In particular we don't look at `^make:' because GNU make might
meillo@0 2703 # be invoked under some other name (usually "gmake"), in which
meillo@0 2704 # case it prints its new name instead of `make'.
meillo@0 2705 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
meillo@0 2706 am__include=include
meillo@0 2707 am__quote=
meillo@0 2708 _am_result=GNU
meillo@0 2709 fi
meillo@0 2710 # Now try BSD make style include.
meillo@0 2711 if test "$am__include" = "#"; then
meillo@0 2712 echo '.include "confinc"' > confmf
meillo@0 2713 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
meillo@0 2714 am__include=.include
meillo@0 2715 am__quote="\""
meillo@0 2716 _am_result=BSD
meillo@0 2717 fi
meillo@0 2718 fi
meillo@0 2719
meillo@0 2720
meillo@0 2721 echo "$as_me:$LINENO: result: $_am_result" >&5
meillo@0 2722 echo "${ECHO_T}$_am_result" >&6
meillo@0 2723 rm -f confinc confmf
meillo@0 2724
meillo@0 2725 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
meillo@0 2726 if test "${enable_dependency_tracking+set}" = set; then
meillo@0 2727 enableval="$enable_dependency_tracking"
meillo@0 2728
meillo@0 2729 fi;
meillo@0 2730 if test "x$enable_dependency_tracking" != xno; then
meillo@0 2731 am_depcomp="$ac_aux_dir/depcomp"
meillo@0 2732 AMDEPBACKSLASH='\'
meillo@0 2733 fi
meillo@0 2734
meillo@0 2735
meillo@0 2736 if test "x$enable_dependency_tracking" != xno; then
meillo@0 2737 AMDEP_TRUE=
meillo@0 2738 AMDEP_FALSE='#'
meillo@0 2739 else
meillo@0 2740 AMDEP_TRUE='#'
meillo@0 2741 AMDEP_FALSE=
meillo@0 2742 fi
meillo@0 2743
meillo@0 2744
meillo@0 2745
meillo@0 2746
meillo@0 2747 depcc="$CC" am_compiler_list=
meillo@0 2748
meillo@0 2749 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
meillo@0 2750 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
meillo@0 2751 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
meillo@0 2752 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2753 else
meillo@0 2754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
meillo@0 2755 # We make a subdir and do the tests there. Otherwise we can end up
meillo@0 2756 # making bogus files that we don't know about and never remove. For
meillo@0 2757 # instance it was reported that on HP-UX the gcc test will end up
meillo@0 2758 # making a dummy file named `D' -- because `-MD' means `put the output
meillo@0 2759 # in D'.
meillo@0 2760 mkdir conftest.dir
meillo@0 2761 # Copy depcomp to subdir because otherwise we won't find it if we're
meillo@0 2762 # using a relative directory.
meillo@0 2763 cp "$am_depcomp" conftest.dir
meillo@0 2764 cd conftest.dir
meillo@0 2765 # We will build objects and dependencies in a subdirectory because
meillo@0 2766 # it helps to detect inapplicable dependency modes. For instance
meillo@0 2767 # both Tru64's cc and ICC support -MD to output dependencies as a
meillo@0 2768 # side effect of compilation, but ICC will put the dependencies in
meillo@0 2769 # the current directory while Tru64 will put them in the object
meillo@0 2770 # directory.
meillo@0 2771 mkdir sub
meillo@0 2772
meillo@0 2773 am_cv_CC_dependencies_compiler_type=none
meillo@0 2774 if test "$am_compiler_list" = ""; then
meillo@0 2775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
meillo@0 2776 fi
meillo@0 2777 for depmode in $am_compiler_list; do
meillo@0 2778 # Setup a source with many dependencies, because some compilers
meillo@0 2779 # like to wrap large dependency lists on column 80 (with \), and
meillo@0 2780 # we should not choose a depcomp mode which is confused by this.
meillo@0 2781 #
meillo@0 2782 # We need to recreate these files for each test, as the compiler may
meillo@0 2783 # overwrite some of them when testing with obscure command lines.
meillo@0 2784 # This happens at least with the AIX C compiler.
meillo@0 2785 : > sub/conftest.c
meillo@0 2786 for i in 1 2 3 4 5 6; do
meillo@0 2787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
meillo@0 2788 : > sub/conftst$i.h
meillo@0 2789 done
meillo@0 2790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
meillo@0 2791
meillo@0 2792 case $depmode in
meillo@0 2793 nosideeffect)
meillo@0 2794 # after this tag, mechanisms are not by side-effect, so they'll
meillo@0 2795 # only be used when explicitly requested
meillo@0 2796 if test "x$enable_dependency_tracking" = xyes; then
meillo@0 2797 continue
meillo@0 2798 else
meillo@0 2799 break
meillo@0 2800 fi
meillo@0 2801 ;;
meillo@0 2802 none) break ;;
meillo@0 2803 esac
meillo@0 2804 # We check with `-c' and `-o' for the sake of the "dashmstdout"
meillo@0 2805 # mode. It turns out that the SunPro C++ compiler does not properly
meillo@0 2806 # handle `-M -o', and we need to detect this.
meillo@0 2807 if depmode=$depmode \
meillo@0 2808 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
meillo@0 2809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
meillo@0 2810 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
meillo@0 2811 >/dev/null 2>conftest.err &&
meillo@0 2812 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
meillo@0 2813 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
meillo@0 2814 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
meillo@0 2815 # icc doesn't choke on unknown options, it will just issue warnings
meillo@0 2816 # (even with -Werror). So we grep stderr for any message
meillo@0 2817 # that says an option was ignored.
meillo@0 2818 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
meillo@0 2819 am_cv_CC_dependencies_compiler_type=$depmode
meillo@0 2820 break
meillo@0 2821 fi
meillo@0 2822 fi
meillo@0 2823 done
meillo@0 2824
meillo@0 2825 cd ..
meillo@0 2826 rm -rf conftest.dir
meillo@0 2827 else
meillo@0 2828 am_cv_CC_dependencies_compiler_type=none
meillo@0 2829 fi
meillo@0 2830
meillo@0 2831 fi
meillo@0 2832 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
meillo@0 2833 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
meillo@0 2834 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
meillo@0 2835
meillo@0 2836
meillo@0 2837
meillo@0 2838 if
meillo@0 2839 test "x$enable_dependency_tracking" != xno \
meillo@0 2840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
meillo@0 2841 am__fastdepCC_TRUE=
meillo@0 2842 am__fastdepCC_FALSE='#'
meillo@0 2843 else
meillo@0 2844 am__fastdepCC_TRUE='#'
meillo@0 2845 am__fastdepCC_FALSE=
meillo@0 2846 fi
meillo@0 2847
meillo@0 2848
meillo@0 2849
meillo@0 2850
meillo@0 2851 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
meillo@0 2852 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
meillo@0 2853 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
meillo@0 2854 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2855 else
meillo@0 2856 ac_check_lib_save_LIBS=$LIBS
meillo@0 2857 LIBS="-lcposix $LIBS"
meillo@0 2858 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2859 /* confdefs.h. */
meillo@0 2860 _ACEOF
meillo@0 2861 cat confdefs.h >>conftest.$ac_ext
meillo@0 2862 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2863 /* end confdefs.h. */
meillo@0 2864
meillo@0 2865 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 2866 #ifdef __cplusplus
meillo@0 2867 extern "C"
meillo@0 2868 #endif
meillo@0 2869 /* We use char because int might match the return type of a gcc2
meillo@0 2870 builtin and then its argument prototype would still apply. */
meillo@0 2871 char strerror ();
meillo@0 2872 int
meillo@0 2873 main ()
meillo@0 2874 {
meillo@0 2875 strerror ();
meillo@0 2876 ;
meillo@0 2877 return 0;
meillo@0 2878 }
meillo@0 2879 _ACEOF
meillo@0 2880 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 2882 (eval $ac_link) 2>conftest.er1
meillo@0 2883 ac_status=$?
meillo@0 2884 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2885 rm -f conftest.er1
meillo@0 2886 cat conftest.err >&5
meillo@0 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2888 (exit $ac_status); } &&
meillo@0 2889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2891 (eval $ac_try) 2>&5
meillo@0 2892 ac_status=$?
meillo@0 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2894 (exit $ac_status); }; } &&
meillo@0 2895 { ac_try='test -s conftest$ac_exeext'
meillo@0 2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 2897 (eval $ac_try) 2>&5
meillo@0 2898 ac_status=$?
meillo@0 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2900 (exit $ac_status); }; }; then
meillo@0 2901 ac_cv_lib_cposix_strerror=yes
meillo@0 2902 else
meillo@0 2903 echo "$as_me: failed program was:" >&5
meillo@0 2904 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2905
meillo@0 2906 ac_cv_lib_cposix_strerror=no
meillo@0 2907 fi
meillo@0 2908 rm -f conftest.err conftest.$ac_objext \
meillo@0 2909 conftest$ac_exeext conftest.$ac_ext
meillo@0 2910 LIBS=$ac_check_lib_save_LIBS
meillo@0 2911 fi
meillo@0 2912 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
meillo@0 2913 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
meillo@0 2914 if test $ac_cv_lib_cposix_strerror = yes; then
meillo@0 2915 LIBS="$LIBS -lcposix"
meillo@0 2916 fi
meillo@0 2917
meillo@0 2918
meillo@0 2919
meillo@0 2920 ac_ext=c
meillo@0 2921 ac_cpp='$CPP $CPPFLAGS'
meillo@0 2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
meillo@0 2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
meillo@0 2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
meillo@0 2925 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
meillo@0 2926 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
meillo@0 2927 # On Suns, sometimes $CPP names a directory.
meillo@0 2928 if test -n "$CPP" && test -d "$CPP"; then
meillo@0 2929 CPP=
meillo@0 2930 fi
meillo@0 2931 if test -z "$CPP"; then
meillo@0 2932 if test "${ac_cv_prog_CPP+set}" = set; then
meillo@0 2933 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 2934 else
meillo@0 2935 # Double quotes because CPP needs to be expanded
meillo@0 2936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
meillo@0 2937 do
meillo@0 2938 ac_preproc_ok=false
meillo@0 2939 for ac_c_preproc_warn_flag in '' yes
meillo@0 2940 do
meillo@0 2941 # Use a header file that comes with gcc, so configuring glibc
meillo@0 2942 # with a fresh cross-compiler works.
meillo@0 2943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 2944 # <limits.h> exists even on freestanding compilers.
meillo@0 2945 # On the NeXT, cc -E runs the code through the compiler's parser,
meillo@0 2946 # not just through cpp. "Syntax error" is here to catch this case.
meillo@0 2947 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2948 /* confdefs.h. */
meillo@0 2949 _ACEOF
meillo@0 2950 cat confdefs.h >>conftest.$ac_ext
meillo@0 2951 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2952 /* end confdefs.h. */
meillo@0 2953 #ifdef __STDC__
meillo@0 2954 # include <limits.h>
meillo@0 2955 #else
meillo@0 2956 # include <assert.h>
meillo@0 2957 #endif
meillo@0 2958 Syntax error
meillo@0 2959 _ACEOF
meillo@0 2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
meillo@0 2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
meillo@0 2962 ac_status=$?
meillo@0 2963 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 2964 rm -f conftest.er1
meillo@0 2965 cat conftest.err >&5
meillo@0 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 2967 (exit $ac_status); } >/dev/null; then
meillo@0 2968 if test -s conftest.err; then
meillo@0 2969 ac_cpp_err=$ac_c_preproc_warn_flag
meillo@0 2970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
meillo@0 2971 else
meillo@0 2972 ac_cpp_err=
meillo@0 2973 fi
meillo@0 2974 else
meillo@0 2975 ac_cpp_err=yes
meillo@0 2976 fi
meillo@0 2977 if test -z "$ac_cpp_err"; then
meillo@0 2978 :
meillo@0 2979 else
meillo@0 2980 echo "$as_me: failed program was:" >&5
meillo@0 2981 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 2982
meillo@0 2983 # Broken: fails on valid input.
meillo@0 2984 continue
meillo@0 2985 fi
meillo@0 2986 rm -f conftest.err conftest.$ac_ext
meillo@0 2987
meillo@0 2988 # OK, works on sane cases. Now check whether non-existent headers
meillo@0 2989 # can be detected and how.
meillo@0 2990 cat >conftest.$ac_ext <<_ACEOF
meillo@0 2991 /* confdefs.h. */
meillo@0 2992 _ACEOF
meillo@0 2993 cat confdefs.h >>conftest.$ac_ext
meillo@0 2994 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 2995 /* end confdefs.h. */
meillo@0 2996 #include <ac_nonexistent.h>
meillo@0 2997 _ACEOF
meillo@0 2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
meillo@0 2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
meillo@0 3000 ac_status=$?
meillo@0 3001 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3002 rm -f conftest.er1
meillo@0 3003 cat conftest.err >&5
meillo@0 3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3005 (exit $ac_status); } >/dev/null; then
meillo@0 3006 if test -s conftest.err; then
meillo@0 3007 ac_cpp_err=$ac_c_preproc_warn_flag
meillo@0 3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
meillo@0 3009 else
meillo@0 3010 ac_cpp_err=
meillo@0 3011 fi
meillo@0 3012 else
meillo@0 3013 ac_cpp_err=yes
meillo@0 3014 fi
meillo@0 3015 if test -z "$ac_cpp_err"; then
meillo@0 3016 # Broken: success on invalid input.
meillo@0 3017 continue
meillo@0 3018 else
meillo@0 3019 echo "$as_me: failed program was:" >&5
meillo@0 3020 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3021
meillo@0 3022 # Passes both tests.
meillo@0 3023 ac_preproc_ok=:
meillo@0 3024 break
meillo@0 3025 fi
meillo@0 3026 rm -f conftest.err conftest.$ac_ext
meillo@0 3027
meillo@0 3028 done
meillo@0 3029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
meillo@0 3030 rm -f conftest.err conftest.$ac_ext
meillo@0 3031 if $ac_preproc_ok; then
meillo@0 3032 break
meillo@0 3033 fi
meillo@0 3034
meillo@0 3035 done
meillo@0 3036 ac_cv_prog_CPP=$CPP
meillo@0 3037
meillo@0 3038 fi
meillo@0 3039 CPP=$ac_cv_prog_CPP
meillo@0 3040 else
meillo@0 3041 ac_cv_prog_CPP=$CPP
meillo@0 3042 fi
meillo@0 3043 echo "$as_me:$LINENO: result: $CPP" >&5
meillo@0 3044 echo "${ECHO_T}$CPP" >&6
meillo@0 3045 ac_preproc_ok=false
meillo@0 3046 for ac_c_preproc_warn_flag in '' yes
meillo@0 3047 do
meillo@0 3048 # Use a header file that comes with gcc, so configuring glibc
meillo@0 3049 # with a fresh cross-compiler works.
meillo@0 3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 3051 # <limits.h> exists even on freestanding compilers.
meillo@0 3052 # On the NeXT, cc -E runs the code through the compiler's parser,
meillo@0 3053 # not just through cpp. "Syntax error" is here to catch this case.
meillo@0 3054 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3055 /* confdefs.h. */
meillo@0 3056 _ACEOF
meillo@0 3057 cat confdefs.h >>conftest.$ac_ext
meillo@0 3058 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3059 /* end confdefs.h. */
meillo@0 3060 #ifdef __STDC__
meillo@0 3061 # include <limits.h>
meillo@0 3062 #else
meillo@0 3063 # include <assert.h>
meillo@0 3064 #endif
meillo@0 3065 Syntax error
meillo@0 3066 _ACEOF
meillo@0 3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
meillo@0 3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
meillo@0 3069 ac_status=$?
meillo@0 3070 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3071 rm -f conftest.er1
meillo@0 3072 cat conftest.err >&5
meillo@0 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3074 (exit $ac_status); } >/dev/null; then
meillo@0 3075 if test -s conftest.err; then
meillo@0 3076 ac_cpp_err=$ac_c_preproc_warn_flag
meillo@0 3077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
meillo@0 3078 else
meillo@0 3079 ac_cpp_err=
meillo@0 3080 fi
meillo@0 3081 else
meillo@0 3082 ac_cpp_err=yes
meillo@0 3083 fi
meillo@0 3084 if test -z "$ac_cpp_err"; then
meillo@0 3085 :
meillo@0 3086 else
meillo@0 3087 echo "$as_me: failed program was:" >&5
meillo@0 3088 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3089
meillo@0 3090 # Broken: fails on valid input.
meillo@0 3091 continue
meillo@0 3092 fi
meillo@0 3093 rm -f conftest.err conftest.$ac_ext
meillo@0 3094
meillo@0 3095 # OK, works on sane cases. Now check whether non-existent headers
meillo@0 3096 # can be detected and how.
meillo@0 3097 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3098 /* confdefs.h. */
meillo@0 3099 _ACEOF
meillo@0 3100 cat confdefs.h >>conftest.$ac_ext
meillo@0 3101 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3102 /* end confdefs.h. */
meillo@0 3103 #include <ac_nonexistent.h>
meillo@0 3104 _ACEOF
meillo@0 3105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
meillo@0 3106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
meillo@0 3107 ac_status=$?
meillo@0 3108 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3109 rm -f conftest.er1
meillo@0 3110 cat conftest.err >&5
meillo@0 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3112 (exit $ac_status); } >/dev/null; then
meillo@0 3113 if test -s conftest.err; then
meillo@0 3114 ac_cpp_err=$ac_c_preproc_warn_flag
meillo@0 3115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
meillo@0 3116 else
meillo@0 3117 ac_cpp_err=
meillo@0 3118 fi
meillo@0 3119 else
meillo@0 3120 ac_cpp_err=yes
meillo@0 3121 fi
meillo@0 3122 if test -z "$ac_cpp_err"; then
meillo@0 3123 # Broken: success on invalid input.
meillo@0 3124 continue
meillo@0 3125 else
meillo@0 3126 echo "$as_me: failed program was:" >&5
meillo@0 3127 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3128
meillo@0 3129 # Passes both tests.
meillo@0 3130 ac_preproc_ok=:
meillo@0 3131 break
meillo@0 3132 fi
meillo@0 3133 rm -f conftest.err conftest.$ac_ext
meillo@0 3134
meillo@0 3135 done
meillo@0 3136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
meillo@0 3137 rm -f conftest.err conftest.$ac_ext
meillo@0 3138 if $ac_preproc_ok; then
meillo@0 3139 :
meillo@0 3140 else
meillo@0 3141 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
meillo@0 3142 See \`config.log' for more details." >&5
meillo@0 3143 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
meillo@0 3144 See \`config.log' for more details." >&2;}
meillo@0 3145 { (exit 1); exit 1; }; }
meillo@0 3146 fi
meillo@0 3147
meillo@0 3148 ac_ext=c
meillo@0 3149 ac_cpp='$CPP $CPPFLAGS'
meillo@0 3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
meillo@0 3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
meillo@0 3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
meillo@0 3153
meillo@0 3154
meillo@0 3155 echo "$as_me:$LINENO: checking for egrep" >&5
meillo@0 3156 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
meillo@0 3157 if test "${ac_cv_prog_egrep+set}" = set; then
meillo@0 3158 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3159 else
meillo@0 3160 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
meillo@0 3161 then ac_cv_prog_egrep='grep -E'
meillo@0 3162 else ac_cv_prog_egrep='egrep'
meillo@0 3163 fi
meillo@0 3164 fi
meillo@0 3165 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
meillo@0 3166 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
meillo@0 3167 EGREP=$ac_cv_prog_egrep
meillo@0 3168
meillo@0 3169
meillo@0 3170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
meillo@0 3171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
meillo@0 3172 if test "${ac_cv_header_stdc+set}" = set; then
meillo@0 3173 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3174 else
meillo@0 3175 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3176 /* confdefs.h. */
meillo@0 3177 _ACEOF
meillo@0 3178 cat confdefs.h >>conftest.$ac_ext
meillo@0 3179 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3180 /* end confdefs.h. */
meillo@0 3181 #include <stdlib.h>
meillo@0 3182 #include <stdarg.h>
meillo@0 3183 #include <string.h>
meillo@0 3184 #include <float.h>
meillo@0 3185
meillo@0 3186 int
meillo@0 3187 main ()
meillo@0 3188 {
meillo@0 3189
meillo@0 3190 ;
meillo@0 3191 return 0;
meillo@0 3192 }
meillo@0 3193 _ACEOF
meillo@0 3194 rm -f conftest.$ac_objext
meillo@0 3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 3196 (eval $ac_compile) 2>conftest.er1
meillo@0 3197 ac_status=$?
meillo@0 3198 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3199 rm -f conftest.er1
meillo@0 3200 cat conftest.err >&5
meillo@0 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3202 (exit $ac_status); } &&
meillo@0 3203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3205 (eval $ac_try) 2>&5
meillo@0 3206 ac_status=$?
meillo@0 3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3208 (exit $ac_status); }; } &&
meillo@0 3209 { ac_try='test -s conftest.$ac_objext'
meillo@0 3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3211 (eval $ac_try) 2>&5
meillo@0 3212 ac_status=$?
meillo@0 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3214 (exit $ac_status); }; }; then
meillo@0 3215 ac_cv_header_stdc=yes
meillo@0 3216 else
meillo@0 3217 echo "$as_me: failed program was:" >&5
meillo@0 3218 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3219
meillo@0 3220 ac_cv_header_stdc=no
meillo@0 3221 fi
meillo@0 3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 3223
meillo@0 3224 if test $ac_cv_header_stdc = yes; then
meillo@0 3225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
meillo@0 3226 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3227 /* confdefs.h. */
meillo@0 3228 _ACEOF
meillo@0 3229 cat confdefs.h >>conftest.$ac_ext
meillo@0 3230 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3231 /* end confdefs.h. */
meillo@0 3232 #include <string.h>
meillo@0 3233
meillo@0 3234 _ACEOF
meillo@0 3235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
meillo@0 3236 $EGREP "memchr" >/dev/null 2>&1; then
meillo@0 3237 :
meillo@0 3238 else
meillo@0 3239 ac_cv_header_stdc=no
meillo@0 3240 fi
meillo@0 3241 rm -f conftest*
meillo@0 3242
meillo@0 3243 fi
meillo@0 3244
meillo@0 3245 if test $ac_cv_header_stdc = yes; then
meillo@0 3246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
meillo@0 3247 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3248 /* confdefs.h. */
meillo@0 3249 _ACEOF
meillo@0 3250 cat confdefs.h >>conftest.$ac_ext
meillo@0 3251 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3252 /* end confdefs.h. */
meillo@0 3253 #include <stdlib.h>
meillo@0 3254
meillo@0 3255 _ACEOF
meillo@0 3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
meillo@0 3257 $EGREP "free" >/dev/null 2>&1; then
meillo@0 3258 :
meillo@0 3259 else
meillo@0 3260 ac_cv_header_stdc=no
meillo@0 3261 fi
meillo@0 3262 rm -f conftest*
meillo@0 3263
meillo@0 3264 fi
meillo@0 3265
meillo@0 3266 if test $ac_cv_header_stdc = yes; then
meillo@0 3267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
meillo@0 3268 if test "$cross_compiling" = yes; then
meillo@0 3269 :
meillo@0 3270 else
meillo@0 3271 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3272 /* confdefs.h. */
meillo@0 3273 _ACEOF
meillo@0 3274 cat confdefs.h >>conftest.$ac_ext
meillo@0 3275 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3276 /* end confdefs.h. */
meillo@0 3277 #include <ctype.h>
meillo@0 3278 #if ((' ' & 0x0FF) == 0x020)
meillo@0 3279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
meillo@0 3280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
meillo@0 3281 #else
meillo@0 3282 # define ISLOWER(c) \
meillo@0 3283 (('a' <= (c) && (c) <= 'i') \
meillo@0 3284 || ('j' <= (c) && (c) <= 'r') \
meillo@0 3285 || ('s' <= (c) && (c) <= 'z'))
meillo@0 3286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
meillo@0 3287 #endif
meillo@0 3288
meillo@0 3289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
meillo@0 3290 int
meillo@0 3291 main ()
meillo@0 3292 {
meillo@0 3293 int i;
meillo@0 3294 for (i = 0; i < 256; i++)
meillo@0 3295 if (XOR (islower (i), ISLOWER (i))
meillo@0 3296 || toupper (i) != TOUPPER (i))
meillo@0 3297 exit(2);
meillo@0 3298 exit (0);
meillo@0 3299 }
meillo@0 3300 _ACEOF
meillo@0 3301 rm -f conftest$ac_exeext
meillo@0 3302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 3303 (eval $ac_link) 2>&5
meillo@0 3304 ac_status=$?
meillo@0 3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
meillo@0 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3308 (eval $ac_try) 2>&5
meillo@0 3309 ac_status=$?
meillo@0 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3311 (exit $ac_status); }; }; then
meillo@0 3312 :
meillo@0 3313 else
meillo@0 3314 echo "$as_me: program exited with status $ac_status" >&5
meillo@0 3315 echo "$as_me: failed program was:" >&5
meillo@0 3316 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3317
meillo@0 3318 ( exit $ac_status )
meillo@0 3319 ac_cv_header_stdc=no
meillo@0 3320 fi
meillo@0 3321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
meillo@0 3322 fi
meillo@0 3323 fi
meillo@0 3324 fi
meillo@0 3325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
meillo@0 3326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
meillo@0 3327 if test $ac_cv_header_stdc = yes; then
meillo@0 3328
meillo@0 3329 cat >>confdefs.h <<\_ACEOF
meillo@0 3330 #define STDC_HEADERS 1
meillo@0 3331 _ACEOF
meillo@0 3332
meillo@0 3333 fi
meillo@0 3334
meillo@0 3335 if test -n "$ac_tool_prefix"; then
meillo@0 3336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
meillo@0 3337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
meillo@0 3338 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 3340 if test "${ac_cv_prog_RANLIB+set}" = set; then
meillo@0 3341 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3342 else
meillo@0 3343 if test -n "$RANLIB"; then
meillo@0 3344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
meillo@0 3345 else
meillo@0 3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 3347 for as_dir in $PATH
meillo@0 3348 do
meillo@0 3349 IFS=$as_save_IFS
meillo@0 3350 test -z "$as_dir" && as_dir=.
meillo@0 3351 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 3353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
meillo@0 3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 3355 break 2
meillo@0 3356 fi
meillo@0 3357 done
meillo@0 3358 done
meillo@0 3359
meillo@0 3360 fi
meillo@0 3361 fi
meillo@0 3362 RANLIB=$ac_cv_prog_RANLIB
meillo@0 3363 if test -n "$RANLIB"; then
meillo@0 3364 echo "$as_me:$LINENO: result: $RANLIB" >&5
meillo@0 3365 echo "${ECHO_T}$RANLIB" >&6
meillo@0 3366 else
meillo@0 3367 echo "$as_me:$LINENO: result: no" >&5
meillo@0 3368 echo "${ECHO_T}no" >&6
meillo@0 3369 fi
meillo@0 3370
meillo@0 3371 fi
meillo@0 3372 if test -z "$ac_cv_prog_RANLIB"; then
meillo@0 3373 ac_ct_RANLIB=$RANLIB
meillo@0 3374 # Extract the first word of "ranlib", so it can be a program name with args.
meillo@0 3375 set dummy ranlib; ac_word=$2
meillo@0 3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 3378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
meillo@0 3379 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3380 else
meillo@0 3381 if test -n "$ac_ct_RANLIB"; then
meillo@0 3382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
meillo@0 3383 else
meillo@0 3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 3385 for as_dir in $PATH
meillo@0 3386 do
meillo@0 3387 IFS=$as_save_IFS
meillo@0 3388 test -z "$as_dir" && as_dir=.
meillo@0 3389 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 3391 ac_cv_prog_ac_ct_RANLIB="ranlib"
meillo@0 3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 3393 break 2
meillo@0 3394 fi
meillo@0 3395 done
meillo@0 3396 done
meillo@0 3397
meillo@0 3398 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
meillo@0 3399 fi
meillo@0 3400 fi
meillo@0 3401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
meillo@0 3402 if test -n "$ac_ct_RANLIB"; then
meillo@0 3403 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
meillo@0 3404 echo "${ECHO_T}$ac_ct_RANLIB" >&6
meillo@0 3405 else
meillo@0 3406 echo "$as_me:$LINENO: result: no" >&5
meillo@0 3407 echo "${ECHO_T}no" >&6
meillo@0 3408 fi
meillo@0 3409
meillo@0 3410 RANLIB=$ac_ct_RANLIB
meillo@0 3411 else
meillo@0 3412 RANLIB="$ac_cv_prog_RANLIB"
meillo@0 3413 fi
meillo@0 3414
meillo@0 3415
meillo@0 3416
meillo@0 3417
meillo@0 3418 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
meillo@0 3419 if test -n "$ac_tool_prefix"; then
meillo@0 3420 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
meillo@0 3421 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
meillo@0 3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 3424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
meillo@0 3425 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3426 else
meillo@0 3427 case $PKG_CONFIG in
meillo@0 3428 [\\/]* | ?:[\\/]*)
meillo@0 3429 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
meillo@0 3430 ;;
meillo@0 3431 *)
meillo@0 3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 3433 for as_dir in $PATH
meillo@0 3434 do
meillo@0 3435 IFS=$as_save_IFS
meillo@0 3436 test -z "$as_dir" && as_dir=.
meillo@0 3437 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 3439 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
meillo@0 3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 3441 break 2
meillo@0 3442 fi
meillo@0 3443 done
meillo@0 3444 done
meillo@0 3445
meillo@0 3446 ;;
meillo@0 3447 esac
meillo@0 3448 fi
meillo@0 3449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
meillo@0 3450
meillo@0 3451 if test -n "$PKG_CONFIG"; then
meillo@0 3452 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
meillo@0 3453 echo "${ECHO_T}$PKG_CONFIG" >&6
meillo@0 3454 else
meillo@0 3455 echo "$as_me:$LINENO: result: no" >&5
meillo@0 3456 echo "${ECHO_T}no" >&6
meillo@0 3457 fi
meillo@0 3458
meillo@0 3459 fi
meillo@0 3460 if test -z "$ac_cv_path_PKG_CONFIG"; then
meillo@0 3461 ac_pt_PKG_CONFIG=$PKG_CONFIG
meillo@0 3462 # Extract the first word of "pkg-config", so it can be a program name with args.
meillo@0 3463 set dummy pkg-config; ac_word=$2
meillo@0 3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
meillo@0 3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
meillo@0 3466 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
meillo@0 3467 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3468 else
meillo@0 3469 case $ac_pt_PKG_CONFIG in
meillo@0 3470 [\\/]* | ?:[\\/]*)
meillo@0 3471 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
meillo@0 3472 ;;
meillo@0 3473 *)
meillo@0 3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 3475 for as_dir in $PATH
meillo@0 3476 do
meillo@0 3477 IFS=$as_save_IFS
meillo@0 3478 test -z "$as_dir" && as_dir=.
meillo@0 3479 for ac_exec_ext in '' $ac_executable_extensions; do
meillo@0 3480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
meillo@0 3481 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
meillo@0 3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
meillo@0 3483 break 2
meillo@0 3484 fi
meillo@0 3485 done
meillo@0 3486 done
meillo@0 3487
meillo@0 3488 ;;
meillo@0 3489 esac
meillo@0 3490 fi
meillo@0 3491 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
meillo@0 3492
meillo@0 3493 if test -n "$ac_pt_PKG_CONFIG"; then
meillo@0 3494 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
meillo@0 3495 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
meillo@0 3496 else
meillo@0 3497 echo "$as_me:$LINENO: result: no" >&5
meillo@0 3498 echo "${ECHO_T}no" >&6
meillo@0 3499 fi
meillo@0 3500
meillo@0 3501 PKG_CONFIG=$ac_pt_PKG_CONFIG
meillo@0 3502 else
meillo@0 3503 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
meillo@0 3504 fi
meillo@0 3505
meillo@0 3506 fi
meillo@0 3507 if test -n "$PKG_CONFIG"; then
meillo@0 3508 _pkg_min_version=0.9.0
meillo@0 3509 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
meillo@0 3510 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
meillo@0 3511 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
meillo@0 3512 echo "$as_me:$LINENO: result: yes" >&5
meillo@0 3513 echo "${ECHO_T}yes" >&6
meillo@0 3514 else
meillo@0 3515 echo "$as_me:$LINENO: result: no" >&5
meillo@0 3516 echo "${ECHO_T}no" >&6
meillo@0 3517 PKG_CONFIG=""
meillo@0 3518 fi
meillo@0 3519
meillo@0 3520 fi
meillo@0 3521
meillo@0 3522 pkg_failed=no
meillo@0 3523 echo "$as_me:$LINENO: checking for GLIB" >&5
meillo@0 3524 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
meillo@0 3525
meillo@0 3526 if test -n "$PKG_CONFIG"; then
meillo@0 3527 if test -n "$PKG_CONFIG" && \
meillo@0 3528 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
meillo@0 3529 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
meillo@0 3530 ac_status=$?
meillo@0 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3532 (exit $ac_status); }; then
meillo@0 3533 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
meillo@0 3534 else
meillo@0 3535 pkg_failed=yes
meillo@0 3536 fi
meillo@0 3537 else
meillo@0 3538 pkg_failed=untried
meillo@0 3539 fi
meillo@0 3540 if test -n "$PKG_CONFIG"; then
meillo@0 3541 if test -n "$PKG_CONFIG" && \
meillo@0 3542 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
meillo@0 3543 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
meillo@0 3544 ac_status=$?
meillo@0 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3546 (exit $ac_status); }; then
meillo@0 3547 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
meillo@0 3548 else
meillo@0 3549 pkg_failed=yes
meillo@0 3550 fi
meillo@0 3551 else
meillo@0 3552 pkg_failed=untried
meillo@0 3553 fi
meillo@0 3554
meillo@0 3555 if test $pkg_failed = yes; then
meillo@0 3556 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
meillo@0 3557 # Put the nasty error message in config.log where it belongs
meillo@0 3558 echo "$GLIB_PKG_ERRORS" 1>&5
meillo@0 3559
meillo@0 3560 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met.
meillo@0 3561 Consider adjusting the PKG_CONFIG_PATH environment variable if you
meillo@0 3562 installed software in a non-standard prefix.
meillo@0 3563
meillo@0 3564 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
meillo@0 3565 to avoid the need to call pkg-config. See the pkg-config man page for
meillo@0 3566 more details." >&5
meillo@0 3567 echo "$as_me: error: Package requirements (glib-2.0) were not met.
meillo@0 3568 Consider adjusting the PKG_CONFIG_PATH environment variable if you
meillo@0 3569 installed software in a non-standard prefix.
meillo@0 3570
meillo@0 3571 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
meillo@0 3572 to avoid the need to call pkg-config. See the pkg-config man page for
meillo@0 3573 more details." >&2;}
meillo@0 3574 { (exit 1); exit 1; }; }
meillo@0 3575 elif test $pkg_failed = untried; then
meillo@0 3576 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
meillo@0 3577 is in your PATH or set the PKG_CONFIG environment variable to the full
meillo@0 3578 path to pkg-config.
meillo@0 3579
meillo@0 3580 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
meillo@0 3581 to avoid the need to call pkg-config. See the pkg-config man page for
meillo@0 3582 more details.
meillo@0 3583
meillo@0 3584 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
meillo@0 3585 See \`config.log' for more details." >&5
meillo@0 3586 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
meillo@0 3587 is in your PATH or set the PKG_CONFIG environment variable to the full
meillo@0 3588 path to pkg-config.
meillo@0 3589
meillo@0 3590 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
meillo@0 3591 to avoid the need to call pkg-config. See the pkg-config man page for
meillo@0 3592 more details.
meillo@0 3593
meillo@0 3594 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
meillo@0 3595 See \`config.log' for more details." >&2;}
meillo@0 3596 { (exit 1); exit 1; }; }
meillo@0 3597 else
meillo@0 3598 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
meillo@0 3599 GLIB_LIBS=$pkg_cv_GLIB_LIBS
meillo@0 3600 echo "$as_me:$LINENO: result: yes" >&5
meillo@0 3601 echo "${ECHO_T}yes" >&6
meillo@0 3602 :
meillo@0 3603 fi
meillo@0 3604
meillo@0 3605
meillo@0 3606
meillo@0 3607 # Check whether --enable-resolver or --disable-resolver was given.
meillo@0 3608 if test "${enable_resolver+set}" = set; then
meillo@0 3609 enableval="$enable_resolver"
meillo@0 3610 if test "$enable_resolver" != 'no'; then
meillo@0 3611 resolver_enabled='yes'
meillo@0 3612 fi
meillo@0 3613 else
meillo@0 3614 resolver_enabled='yes'
meillo@0 3615
meillo@0 3616 fi;
meillo@0 3617
meillo@0 3618 if test "$resolver_enabled" = yes; then
meillo@0 3619
meillo@0 3620 cat >>confdefs.h <<\_ACEOF
meillo@0 3621 #define ENABLE_RESOLVER 1
meillo@0 3622 _ACEOF
meillo@0 3623
meillo@0 3624 echo "$as_me:$LINENO: checking for res_search in -lc" >&5
meillo@0 3625 echo $ECHO_N "checking for res_search in -lc... $ECHO_C" >&6
meillo@0 3626 if test "${ac_cv_lib_c_res_search+set}" = set; then
meillo@0 3627 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3628 else
meillo@0 3629 ac_check_lib_save_LIBS=$LIBS
meillo@0 3630 LIBS="-lc $LIBS"
meillo@0 3631 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3632 /* confdefs.h. */
meillo@0 3633 _ACEOF
meillo@0 3634 cat confdefs.h >>conftest.$ac_ext
meillo@0 3635 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3636 /* end confdefs.h. */
meillo@0 3637
meillo@0 3638 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 3639 #ifdef __cplusplus
meillo@0 3640 extern "C"
meillo@0 3641 #endif
meillo@0 3642 /* We use char because int might match the return type of a gcc2
meillo@0 3643 builtin and then its argument prototype would still apply. */
meillo@0 3644 char res_search ();
meillo@0 3645 int
meillo@0 3646 main ()
meillo@0 3647 {
meillo@0 3648 res_search ();
meillo@0 3649 ;
meillo@0 3650 return 0;
meillo@0 3651 }
meillo@0 3652 _ACEOF
meillo@0 3653 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 3655 (eval $ac_link) 2>conftest.er1
meillo@0 3656 ac_status=$?
meillo@0 3657 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3658 rm -f conftest.er1
meillo@0 3659 cat conftest.err >&5
meillo@0 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3661 (exit $ac_status); } &&
meillo@0 3662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3664 (eval $ac_try) 2>&5
meillo@0 3665 ac_status=$?
meillo@0 3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3667 (exit $ac_status); }; } &&
meillo@0 3668 { ac_try='test -s conftest$ac_exeext'
meillo@0 3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3670 (eval $ac_try) 2>&5
meillo@0 3671 ac_status=$?
meillo@0 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3673 (exit $ac_status); }; }; then
meillo@0 3674 ac_cv_lib_c_res_search=yes
meillo@0 3675 else
meillo@0 3676 echo "$as_me: failed program was:" >&5
meillo@0 3677 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3678
meillo@0 3679 ac_cv_lib_c_res_search=no
meillo@0 3680 fi
meillo@0 3681 rm -f conftest.err conftest.$ac_objext \
meillo@0 3682 conftest$ac_exeext conftest.$ac_ext
meillo@0 3683 LIBS=$ac_check_lib_save_LIBS
meillo@0 3684 fi
meillo@0 3685 echo "$as_me:$LINENO: result: $ac_cv_lib_c_res_search" >&5
meillo@0 3686 echo "${ECHO_T}$ac_cv_lib_c_res_search" >&6
meillo@0 3687 if test $ac_cv_lib_c_res_search = yes; then
meillo@0 3688 need_resolv=no
meillo@0 3689 else
meillo@0 3690 need_resolv=yes
meillo@0 3691 fi
meillo@0 3692
meillo@0 3693 if test "$need_resolv" = yes; then
meillo@0 3694 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
meillo@0 3695 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
meillo@0 3696 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
meillo@0 3697 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3698 else
meillo@0 3699 ac_check_lib_save_LIBS=$LIBS
meillo@0 3700 LIBS="-lresolv $LIBS"
meillo@0 3701 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3702 /* confdefs.h. */
meillo@0 3703 _ACEOF
meillo@0 3704 cat confdefs.h >>conftest.$ac_ext
meillo@0 3705 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3706 /* end confdefs.h. */
meillo@0 3707
meillo@0 3708 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 3709 #ifdef __cplusplus
meillo@0 3710 extern "C"
meillo@0 3711 #endif
meillo@0 3712 /* We use char because int might match the return type of a gcc2
meillo@0 3713 builtin and then its argument prototype would still apply. */
meillo@0 3714 char res_search ();
meillo@0 3715 int
meillo@0 3716 main ()
meillo@0 3717 {
meillo@0 3718 res_search ();
meillo@0 3719 ;
meillo@0 3720 return 0;
meillo@0 3721 }
meillo@0 3722 _ACEOF
meillo@0 3723 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 3725 (eval $ac_link) 2>conftest.er1
meillo@0 3726 ac_status=$?
meillo@0 3727 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3728 rm -f conftest.er1
meillo@0 3729 cat conftest.err >&5
meillo@0 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3731 (exit $ac_status); } &&
meillo@0 3732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3734 (eval $ac_try) 2>&5
meillo@0 3735 ac_status=$?
meillo@0 3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3737 (exit $ac_status); }; } &&
meillo@0 3738 { ac_try='test -s conftest$ac_exeext'
meillo@0 3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3740 (eval $ac_try) 2>&5
meillo@0 3741 ac_status=$?
meillo@0 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3743 (exit $ac_status); }; }; then
meillo@0 3744 ac_cv_lib_resolv_res_search=yes
meillo@0 3745 else
meillo@0 3746 echo "$as_me: failed program was:" >&5
meillo@0 3747 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3748
meillo@0 3749 ac_cv_lib_resolv_res_search=no
meillo@0 3750 fi
meillo@0 3751 rm -f conftest.err conftest.$ac_objext \
meillo@0 3752 conftest$ac_exeext conftest.$ac_ext
meillo@0 3753 LIBS=$ac_check_lib_save_LIBS
meillo@0 3754 fi
meillo@0 3755 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
meillo@0 3756 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
meillo@0 3757 if test $ac_cv_lib_resolv_res_search = yes; then
meillo@0 3758 has_resolv=yes
meillo@0 3759 else
meillo@0 3760 { { echo "$as_me:$LINENO: error: \"no libresolv\"" >&5
meillo@0 3761 echo "$as_me: error: \"no libresolv\"" >&2;}
meillo@0 3762 { (exit 1); exit 1; }; }
meillo@0 3763 fi
meillo@0 3764
meillo@0 3765 RESOLV_LIBS='-lresolv'
meillo@0 3766 else
meillo@0 3767 RESOLV_LIBS=''
meillo@0 3768 fi
meillo@0 3769 else
meillo@0 3770 RESOLV_LIBS=''
meillo@0 3771 fi
meillo@0 3772
meillo@0 3773
meillo@0 3774
meillo@0 3775 for ac_func in getline
meillo@0 3776 do
meillo@0 3777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
meillo@0 3778 echo "$as_me:$LINENO: checking for $ac_func" >&5
meillo@0 3779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
meillo@0 3780 if eval "test \"\${$as_ac_var+set}\" = set"; then
meillo@0 3781 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3782 else
meillo@0 3783 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3784 /* confdefs.h. */
meillo@0 3785 _ACEOF
meillo@0 3786 cat confdefs.h >>conftest.$ac_ext
meillo@0 3787 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3788 /* end confdefs.h. */
meillo@0 3789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
meillo@0 3790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 3791 #define $ac_func innocuous_$ac_func
meillo@0 3792
meillo@0 3793 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 3794 which can conflict with char $ac_func (); below.
meillo@0 3795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 3796 <limits.h> exists even on freestanding compilers. */
meillo@0 3797
meillo@0 3798 #ifdef __STDC__
meillo@0 3799 # include <limits.h>
meillo@0 3800 #else
meillo@0 3801 # include <assert.h>
meillo@0 3802 #endif
meillo@0 3803
meillo@0 3804 #undef $ac_func
meillo@0 3805
meillo@0 3806 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 3807 #ifdef __cplusplus
meillo@0 3808 extern "C"
meillo@0 3809 {
meillo@0 3810 #endif
meillo@0 3811 /* We use char because int might match the return type of a gcc2
meillo@0 3812 builtin and then its argument prototype would still apply. */
meillo@0 3813 char $ac_func ();
meillo@0 3814 /* The GNU C library defines this for functions which it implements
meillo@0 3815 to always fail with ENOSYS. Some functions are actually named
meillo@0 3816 something starting with __ and the normal name is an alias. */
meillo@0 3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
meillo@0 3818 choke me
meillo@0 3819 #else
meillo@0 3820 char (*f) () = $ac_func;
meillo@0 3821 #endif
meillo@0 3822 #ifdef __cplusplus
meillo@0 3823 }
meillo@0 3824 #endif
meillo@0 3825
meillo@0 3826 int
meillo@0 3827 main ()
meillo@0 3828 {
meillo@0 3829 return f != $ac_func;
meillo@0 3830 ;
meillo@0 3831 return 0;
meillo@0 3832 }
meillo@0 3833 _ACEOF
meillo@0 3834 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 3836 (eval $ac_link) 2>conftest.er1
meillo@0 3837 ac_status=$?
meillo@0 3838 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3839 rm -f conftest.er1
meillo@0 3840 cat conftest.err >&5
meillo@0 3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3842 (exit $ac_status); } &&
meillo@0 3843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3845 (eval $ac_try) 2>&5
meillo@0 3846 ac_status=$?
meillo@0 3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3848 (exit $ac_status); }; } &&
meillo@0 3849 { ac_try='test -s conftest$ac_exeext'
meillo@0 3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3851 (eval $ac_try) 2>&5
meillo@0 3852 ac_status=$?
meillo@0 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3854 (exit $ac_status); }; }; then
meillo@0 3855 eval "$as_ac_var=yes"
meillo@0 3856 else
meillo@0 3857 echo "$as_me: failed program was:" >&5
meillo@0 3858 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3859
meillo@0 3860 eval "$as_ac_var=no"
meillo@0 3861 fi
meillo@0 3862 rm -f conftest.err conftest.$ac_objext \
meillo@0 3863 conftest$ac_exeext conftest.$ac_ext
meillo@0 3864 fi
meillo@0 3865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
meillo@0 3866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
meillo@0 3867 if test `eval echo '${'$as_ac_var'}'` = yes; then
meillo@0 3868 cat >>confdefs.h <<_ACEOF
meillo@0 3869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
meillo@0 3870 _ACEOF
meillo@0 3871
meillo@0 3872 fi
meillo@0 3873 done
meillo@0 3874
meillo@0 3875
meillo@0 3876
meillo@0 3877 for ac_func in fdatasync
meillo@0 3878 do
meillo@0 3879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
meillo@0 3880 echo "$as_me:$LINENO: checking for $ac_func" >&5
meillo@0 3881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
meillo@0 3882 if eval "test \"\${$as_ac_var+set}\" = set"; then
meillo@0 3883 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3884 else
meillo@0 3885 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3886 /* confdefs.h. */
meillo@0 3887 _ACEOF
meillo@0 3888 cat confdefs.h >>conftest.$ac_ext
meillo@0 3889 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3890 /* end confdefs.h. */
meillo@0 3891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
meillo@0 3892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 3893 #define $ac_func innocuous_$ac_func
meillo@0 3894
meillo@0 3895 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 3896 which can conflict with char $ac_func (); below.
meillo@0 3897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 3898 <limits.h> exists even on freestanding compilers. */
meillo@0 3899
meillo@0 3900 #ifdef __STDC__
meillo@0 3901 # include <limits.h>
meillo@0 3902 #else
meillo@0 3903 # include <assert.h>
meillo@0 3904 #endif
meillo@0 3905
meillo@0 3906 #undef $ac_func
meillo@0 3907
meillo@0 3908 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 3909 #ifdef __cplusplus
meillo@0 3910 extern "C"
meillo@0 3911 {
meillo@0 3912 #endif
meillo@0 3913 /* We use char because int might match the return type of a gcc2
meillo@0 3914 builtin and then its argument prototype would still apply. */
meillo@0 3915 char $ac_func ();
meillo@0 3916 /* The GNU C library defines this for functions which it implements
meillo@0 3917 to always fail with ENOSYS. Some functions are actually named
meillo@0 3918 something starting with __ and the normal name is an alias. */
meillo@0 3919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
meillo@0 3920 choke me
meillo@0 3921 #else
meillo@0 3922 char (*f) () = $ac_func;
meillo@0 3923 #endif
meillo@0 3924 #ifdef __cplusplus
meillo@0 3925 }
meillo@0 3926 #endif
meillo@0 3927
meillo@0 3928 int
meillo@0 3929 main ()
meillo@0 3930 {
meillo@0 3931 return f != $ac_func;
meillo@0 3932 ;
meillo@0 3933 return 0;
meillo@0 3934 }
meillo@0 3935 _ACEOF
meillo@0 3936 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 3938 (eval $ac_link) 2>conftest.er1
meillo@0 3939 ac_status=$?
meillo@0 3940 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 3941 rm -f conftest.er1
meillo@0 3942 cat conftest.err >&5
meillo@0 3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3944 (exit $ac_status); } &&
meillo@0 3945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3947 (eval $ac_try) 2>&5
meillo@0 3948 ac_status=$?
meillo@0 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3950 (exit $ac_status); }; } &&
meillo@0 3951 { ac_try='test -s conftest$ac_exeext'
meillo@0 3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 3953 (eval $ac_try) 2>&5
meillo@0 3954 ac_status=$?
meillo@0 3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 3956 (exit $ac_status); }; }; then
meillo@0 3957 eval "$as_ac_var=yes"
meillo@0 3958 else
meillo@0 3959 echo "$as_me: failed program was:" >&5
meillo@0 3960 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 3961
meillo@0 3962 eval "$as_ac_var=no"
meillo@0 3963 fi
meillo@0 3964 rm -f conftest.err conftest.$ac_objext \
meillo@0 3965 conftest$ac_exeext conftest.$ac_ext
meillo@0 3966 fi
meillo@0 3967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
meillo@0 3968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
meillo@0 3969 if test `eval echo '${'$as_ac_var'}'` = yes; then
meillo@0 3970 cat >>confdefs.h <<_ACEOF
meillo@0 3971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
meillo@0 3972 _ACEOF
meillo@0 3973
meillo@0 3974 fi
meillo@0 3975 done
meillo@0 3976
meillo@0 3977
meillo@0 3978 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
meillo@0 3979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
meillo@0 3980 if test "${ac_cv_header_stdc+set}" = set; then
meillo@0 3981 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 3982 else
meillo@0 3983 cat >conftest.$ac_ext <<_ACEOF
meillo@0 3984 /* confdefs.h. */
meillo@0 3985 _ACEOF
meillo@0 3986 cat confdefs.h >>conftest.$ac_ext
meillo@0 3987 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 3988 /* end confdefs.h. */
meillo@0 3989 #include <stdlib.h>
meillo@0 3990 #include <stdarg.h>
meillo@0 3991 #include <string.h>
meillo@0 3992 #include <float.h>
meillo@0 3993
meillo@0 3994 int
meillo@0 3995 main ()
meillo@0 3996 {
meillo@0 3997
meillo@0 3998 ;
meillo@0 3999 return 0;
meillo@0 4000 }
meillo@0 4001 _ACEOF
meillo@0 4002 rm -f conftest.$ac_objext
meillo@0 4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4004 (eval $ac_compile) 2>conftest.er1
meillo@0 4005 ac_status=$?
meillo@0 4006 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4007 rm -f conftest.er1
meillo@0 4008 cat conftest.err >&5
meillo@0 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4010 (exit $ac_status); } &&
meillo@0 4011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4013 (eval $ac_try) 2>&5
meillo@0 4014 ac_status=$?
meillo@0 4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4016 (exit $ac_status); }; } &&
meillo@0 4017 { ac_try='test -s conftest.$ac_objext'
meillo@0 4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4019 (eval $ac_try) 2>&5
meillo@0 4020 ac_status=$?
meillo@0 4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4022 (exit $ac_status); }; }; then
meillo@0 4023 ac_cv_header_stdc=yes
meillo@0 4024 else
meillo@0 4025 echo "$as_me: failed program was:" >&5
meillo@0 4026 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4027
meillo@0 4028 ac_cv_header_stdc=no
meillo@0 4029 fi
meillo@0 4030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4031
meillo@0 4032 if test $ac_cv_header_stdc = yes; then
meillo@0 4033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
meillo@0 4034 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4035 /* confdefs.h. */
meillo@0 4036 _ACEOF
meillo@0 4037 cat confdefs.h >>conftest.$ac_ext
meillo@0 4038 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4039 /* end confdefs.h. */
meillo@0 4040 #include <string.h>
meillo@0 4041
meillo@0 4042 _ACEOF
meillo@0 4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
meillo@0 4044 $EGREP "memchr" >/dev/null 2>&1; then
meillo@0 4045 :
meillo@0 4046 else
meillo@0 4047 ac_cv_header_stdc=no
meillo@0 4048 fi
meillo@0 4049 rm -f conftest*
meillo@0 4050
meillo@0 4051 fi
meillo@0 4052
meillo@0 4053 if test $ac_cv_header_stdc = yes; then
meillo@0 4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
meillo@0 4055 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4056 /* confdefs.h. */
meillo@0 4057 _ACEOF
meillo@0 4058 cat confdefs.h >>conftest.$ac_ext
meillo@0 4059 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4060 /* end confdefs.h. */
meillo@0 4061 #include <stdlib.h>
meillo@0 4062
meillo@0 4063 _ACEOF
meillo@0 4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
meillo@0 4065 $EGREP "free" >/dev/null 2>&1; then
meillo@0 4066 :
meillo@0 4067 else
meillo@0 4068 ac_cv_header_stdc=no
meillo@0 4069 fi
meillo@0 4070 rm -f conftest*
meillo@0 4071
meillo@0 4072 fi
meillo@0 4073
meillo@0 4074 if test $ac_cv_header_stdc = yes; then
meillo@0 4075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
meillo@0 4076 if test "$cross_compiling" = yes; then
meillo@0 4077 :
meillo@0 4078 else
meillo@0 4079 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4080 /* confdefs.h. */
meillo@0 4081 _ACEOF
meillo@0 4082 cat confdefs.h >>conftest.$ac_ext
meillo@0 4083 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4084 /* end confdefs.h. */
meillo@0 4085 #include <ctype.h>
meillo@0 4086 #if ((' ' & 0x0FF) == 0x020)
meillo@0 4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
meillo@0 4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
meillo@0 4089 #else
meillo@0 4090 # define ISLOWER(c) \
meillo@0 4091 (('a' <= (c) && (c) <= 'i') \
meillo@0 4092 || ('j' <= (c) && (c) <= 'r') \
meillo@0 4093 || ('s' <= (c) && (c) <= 'z'))
meillo@0 4094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
meillo@0 4095 #endif
meillo@0 4096
meillo@0 4097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
meillo@0 4098 int
meillo@0 4099 main ()
meillo@0 4100 {
meillo@0 4101 int i;
meillo@0 4102 for (i = 0; i < 256; i++)
meillo@0 4103 if (XOR (islower (i), ISLOWER (i))
meillo@0 4104 || toupper (i) != TOUPPER (i))
meillo@0 4105 exit(2);
meillo@0 4106 exit (0);
meillo@0 4107 }
meillo@0 4108 _ACEOF
meillo@0 4109 rm -f conftest$ac_exeext
meillo@0 4110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 4111 (eval $ac_link) 2>&5
meillo@0 4112 ac_status=$?
meillo@0 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
meillo@0 4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4116 (eval $ac_try) 2>&5
meillo@0 4117 ac_status=$?
meillo@0 4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4119 (exit $ac_status); }; }; then
meillo@0 4120 :
meillo@0 4121 else
meillo@0 4122 echo "$as_me: program exited with status $ac_status" >&5
meillo@0 4123 echo "$as_me: failed program was:" >&5
meillo@0 4124 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4125
meillo@0 4126 ( exit $ac_status )
meillo@0 4127 ac_cv_header_stdc=no
meillo@0 4128 fi
meillo@0 4129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
meillo@0 4130 fi
meillo@0 4131 fi
meillo@0 4132 fi
meillo@0 4133 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
meillo@0 4134 echo "${ECHO_T}$ac_cv_header_stdc" >&6
meillo@0 4135 if test $ac_cv_header_stdc = yes; then
meillo@0 4136
meillo@0 4137 cat >>confdefs.h <<\_ACEOF
meillo@0 4138 #define STDC_HEADERS 1
meillo@0 4139 _ACEOF
meillo@0 4140
meillo@0 4141 fi
meillo@0 4142
meillo@0 4143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
meillo@0 4144
meillo@0 4145
meillo@0 4146
meillo@0 4147
meillo@0 4148
meillo@0 4149
meillo@0 4150
meillo@0 4151
meillo@0 4152
meillo@0 4153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
meillo@0 4154 inttypes.h stdint.h unistd.h
meillo@0 4155 do
meillo@0 4156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
meillo@0 4157 echo "$as_me:$LINENO: checking for $ac_header" >&5
meillo@0 4158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
meillo@0 4159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
meillo@0 4160 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4161 else
meillo@0 4162 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4163 /* confdefs.h. */
meillo@0 4164 _ACEOF
meillo@0 4165 cat confdefs.h >>conftest.$ac_ext
meillo@0 4166 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4167 /* end confdefs.h. */
meillo@0 4168 $ac_includes_default
meillo@0 4169
meillo@0 4170 #include <$ac_header>
meillo@0 4171 _ACEOF
meillo@0 4172 rm -f conftest.$ac_objext
meillo@0 4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4174 (eval $ac_compile) 2>conftest.er1
meillo@0 4175 ac_status=$?
meillo@0 4176 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4177 rm -f conftest.er1
meillo@0 4178 cat conftest.err >&5
meillo@0 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4180 (exit $ac_status); } &&
meillo@0 4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4183 (eval $ac_try) 2>&5
meillo@0 4184 ac_status=$?
meillo@0 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4186 (exit $ac_status); }; } &&
meillo@0 4187 { ac_try='test -s conftest.$ac_objext'
meillo@0 4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4189 (eval $ac_try) 2>&5
meillo@0 4190 ac_status=$?
meillo@0 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4192 (exit $ac_status); }; }; then
meillo@0 4193 eval "$as_ac_Header=yes"
meillo@0 4194 else
meillo@0 4195 echo "$as_me: failed program was:" >&5
meillo@0 4196 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4197
meillo@0 4198 eval "$as_ac_Header=no"
meillo@0 4199 fi
meillo@0 4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4201 fi
meillo@0 4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
meillo@0 4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
meillo@0 4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
meillo@0 4205 cat >>confdefs.h <<_ACEOF
meillo@0 4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
meillo@0 4207 _ACEOF
meillo@0 4208
meillo@0 4209 fi
meillo@0 4210
meillo@0 4211 done
meillo@0 4212
meillo@0 4213
meillo@0 4214
meillo@0 4215
meillo@0 4216
meillo@0 4217
meillo@0 4218 for ac_header in fcntl.h sys/time.h syslog.h unistd.h
meillo@0 4219 do
meillo@0 4220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
meillo@0 4221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
meillo@0 4222 echo "$as_me:$LINENO: checking for $ac_header" >&5
meillo@0 4223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
meillo@0 4224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
meillo@0 4225 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4226 fi
meillo@0 4227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
meillo@0 4228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
meillo@0 4229 else
meillo@0 4230 # Is the header compilable?
meillo@0 4231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
meillo@0 4232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
meillo@0 4233 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4234 /* confdefs.h. */
meillo@0 4235 _ACEOF
meillo@0 4236 cat confdefs.h >>conftest.$ac_ext
meillo@0 4237 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4238 /* end confdefs.h. */
meillo@0 4239 $ac_includes_default
meillo@0 4240 #include <$ac_header>
meillo@0 4241 _ACEOF
meillo@0 4242 rm -f conftest.$ac_objext
meillo@0 4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4244 (eval $ac_compile) 2>conftest.er1
meillo@0 4245 ac_status=$?
meillo@0 4246 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4247 rm -f conftest.er1
meillo@0 4248 cat conftest.err >&5
meillo@0 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4250 (exit $ac_status); } &&
meillo@0 4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4253 (eval $ac_try) 2>&5
meillo@0 4254 ac_status=$?
meillo@0 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4256 (exit $ac_status); }; } &&
meillo@0 4257 { ac_try='test -s conftest.$ac_objext'
meillo@0 4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4259 (eval $ac_try) 2>&5
meillo@0 4260 ac_status=$?
meillo@0 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4262 (exit $ac_status); }; }; then
meillo@0 4263 ac_header_compiler=yes
meillo@0 4264 else
meillo@0 4265 echo "$as_me: failed program was:" >&5
meillo@0 4266 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4267
meillo@0 4268 ac_header_compiler=no
meillo@0 4269 fi
meillo@0 4270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
meillo@0 4272 echo "${ECHO_T}$ac_header_compiler" >&6
meillo@0 4273
meillo@0 4274 # Is the header present?
meillo@0 4275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
meillo@0 4276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
meillo@0 4277 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4278 /* confdefs.h. */
meillo@0 4279 _ACEOF
meillo@0 4280 cat confdefs.h >>conftest.$ac_ext
meillo@0 4281 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4282 /* end confdefs.h. */
meillo@0 4283 #include <$ac_header>
meillo@0 4284 _ACEOF
meillo@0 4285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
meillo@0 4286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
meillo@0 4287 ac_status=$?
meillo@0 4288 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4289 rm -f conftest.er1
meillo@0 4290 cat conftest.err >&5
meillo@0 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4292 (exit $ac_status); } >/dev/null; then
meillo@0 4293 if test -s conftest.err; then
meillo@0 4294 ac_cpp_err=$ac_c_preproc_warn_flag
meillo@0 4295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
meillo@0 4296 else
meillo@0 4297 ac_cpp_err=
meillo@0 4298 fi
meillo@0 4299 else
meillo@0 4300 ac_cpp_err=yes
meillo@0 4301 fi
meillo@0 4302 if test -z "$ac_cpp_err"; then
meillo@0 4303 ac_header_preproc=yes
meillo@0 4304 else
meillo@0 4305 echo "$as_me: failed program was:" >&5
meillo@0 4306 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4307
meillo@0 4308 ac_header_preproc=no
meillo@0 4309 fi
meillo@0 4310 rm -f conftest.err conftest.$ac_ext
meillo@0 4311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
meillo@0 4312 echo "${ECHO_T}$ac_header_preproc" >&6
meillo@0 4313
meillo@0 4314 # So? What about this header?
meillo@0 4315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
meillo@0 4316 yes:no: )
meillo@0 4317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
meillo@0 4318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
meillo@0 4319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
meillo@0 4320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
meillo@0 4321 ac_header_preproc=yes
meillo@0 4322 ;;
meillo@0 4323 no:yes:* )
meillo@0 4324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
meillo@0 4325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
meillo@0 4326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
meillo@0 4327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
meillo@0 4328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
meillo@0 4329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
meillo@0 4330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
meillo@0 4331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
meillo@0 4332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
meillo@0 4333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
meillo@0 4334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
meillo@0 4335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
meillo@0 4336 (
meillo@0 4337 cat <<\_ASBOX
meillo@0 4338 ## ----------------------------- ##
meillo@0 4339 ## Report this to oku@debian.org ##
meillo@0 4340 ## ----------------------------- ##
meillo@0 4341 _ASBOX
meillo@0 4342 ) |
meillo@0 4343 sed "s/^/$as_me: WARNING: /" >&2
meillo@0 4344 ;;
meillo@0 4345 esac
meillo@0 4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
meillo@0 4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
meillo@0 4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
meillo@0 4349 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4350 else
meillo@0 4351 eval "$as_ac_Header=\$ac_header_preproc"
meillo@0 4352 fi
meillo@0 4353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
meillo@0 4354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
meillo@0 4355
meillo@0 4356 fi
meillo@0 4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
meillo@0 4358 cat >>confdefs.h <<_ACEOF
meillo@0 4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
meillo@0 4360 _ACEOF
meillo@0 4361
meillo@0 4362 fi
meillo@0 4363
meillo@0 4364 done
meillo@0 4365
meillo@0 4366
meillo@0 4367 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
meillo@0 4368 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
meillo@0 4369 if test "${ac_cv_c_const+set}" = set; then
meillo@0 4370 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4371 else
meillo@0 4372 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4373 /* confdefs.h. */
meillo@0 4374 _ACEOF
meillo@0 4375 cat confdefs.h >>conftest.$ac_ext
meillo@0 4376 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4377 /* end confdefs.h. */
meillo@0 4378
meillo@0 4379 int
meillo@0 4380 main ()
meillo@0 4381 {
meillo@0 4382 /* FIXME: Include the comments suggested by Paul. */
meillo@0 4383 #ifndef __cplusplus
meillo@0 4384 /* Ultrix mips cc rejects this. */
meillo@0 4385 typedef int charset[2];
meillo@0 4386 const charset x;
meillo@0 4387 /* SunOS 4.1.1 cc rejects this. */
meillo@0 4388 char const *const *ccp;
meillo@0 4389 char **p;
meillo@0 4390 /* NEC SVR4.0.2 mips cc rejects this. */
meillo@0 4391 struct point {int x, y;};
meillo@0 4392 static struct point const zero = {0,0};
meillo@0 4393 /* AIX XL C 1.02.0.0 rejects this.
meillo@0 4394 It does not let you subtract one const X* pointer from another in
meillo@0 4395 an arm of an if-expression whose if-part is not a constant
meillo@0 4396 expression */
meillo@0 4397 const char *g = "string";
meillo@0 4398 ccp = &g + (g ? g-g : 0);
meillo@0 4399 /* HPUX 7.0 cc rejects these. */
meillo@0 4400 ++ccp;
meillo@0 4401 p = (char**) ccp;
meillo@0 4402 ccp = (char const *const *) p;
meillo@0 4403 { /* SCO 3.2v4 cc rejects this. */
meillo@0 4404 char *t;
meillo@0 4405 char const *s = 0 ? (char *) 0 : (char const *) 0;
meillo@0 4406
meillo@0 4407 *t++ = 0;
meillo@0 4408 }
meillo@0 4409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
meillo@0 4410 int x[] = {25, 17};
meillo@0 4411 const int *foo = &x[0];
meillo@0 4412 ++foo;
meillo@0 4413 }
meillo@0 4414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
meillo@0 4415 typedef const int *iptr;
meillo@0 4416 iptr p = 0;
meillo@0 4417 ++p;
meillo@0 4418 }
meillo@0 4419 { /* AIX XL C 1.02.0.0 rejects this saying
meillo@0 4420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
meillo@0 4421 struct s { int j; const int *ap[3]; };
meillo@0 4422 struct s *b; b->j = 5;
meillo@0 4423 }
meillo@0 4424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
meillo@0 4425 const int foo = 10;
meillo@0 4426 }
meillo@0 4427 #endif
meillo@0 4428
meillo@0 4429 ;
meillo@0 4430 return 0;
meillo@0 4431 }
meillo@0 4432 _ACEOF
meillo@0 4433 rm -f conftest.$ac_objext
meillo@0 4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4435 (eval $ac_compile) 2>conftest.er1
meillo@0 4436 ac_status=$?
meillo@0 4437 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4438 rm -f conftest.er1
meillo@0 4439 cat conftest.err >&5
meillo@0 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4441 (exit $ac_status); } &&
meillo@0 4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4444 (eval $ac_try) 2>&5
meillo@0 4445 ac_status=$?
meillo@0 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4447 (exit $ac_status); }; } &&
meillo@0 4448 { ac_try='test -s conftest.$ac_objext'
meillo@0 4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4450 (eval $ac_try) 2>&5
meillo@0 4451 ac_status=$?
meillo@0 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4453 (exit $ac_status); }; }; then
meillo@0 4454 ac_cv_c_const=yes
meillo@0 4455 else
meillo@0 4456 echo "$as_me: failed program was:" >&5
meillo@0 4457 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4458
meillo@0 4459 ac_cv_c_const=no
meillo@0 4460 fi
meillo@0 4461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4462 fi
meillo@0 4463 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
meillo@0 4464 echo "${ECHO_T}$ac_cv_c_const" >&6
meillo@0 4465 if test $ac_cv_c_const = no; then
meillo@0 4466
meillo@0 4467 cat >>confdefs.h <<\_ACEOF
meillo@0 4468 #define const
meillo@0 4469 _ACEOF
meillo@0 4470
meillo@0 4471 fi
meillo@0 4472
meillo@0 4473 echo "$as_me:$LINENO: checking for pid_t" >&5
meillo@0 4474 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
meillo@0 4475 if test "${ac_cv_type_pid_t+set}" = set; then
meillo@0 4476 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4477 else
meillo@0 4478 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4479 /* confdefs.h. */
meillo@0 4480 _ACEOF
meillo@0 4481 cat confdefs.h >>conftest.$ac_ext
meillo@0 4482 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4483 /* end confdefs.h. */
meillo@0 4484 $ac_includes_default
meillo@0 4485 int
meillo@0 4486 main ()
meillo@0 4487 {
meillo@0 4488 if ((pid_t *) 0)
meillo@0 4489 return 0;
meillo@0 4490 if (sizeof (pid_t))
meillo@0 4491 return 0;
meillo@0 4492 ;
meillo@0 4493 return 0;
meillo@0 4494 }
meillo@0 4495 _ACEOF
meillo@0 4496 rm -f conftest.$ac_objext
meillo@0 4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4498 (eval $ac_compile) 2>conftest.er1
meillo@0 4499 ac_status=$?
meillo@0 4500 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4501 rm -f conftest.er1
meillo@0 4502 cat conftest.err >&5
meillo@0 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4504 (exit $ac_status); } &&
meillo@0 4505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4507 (eval $ac_try) 2>&5
meillo@0 4508 ac_status=$?
meillo@0 4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4510 (exit $ac_status); }; } &&
meillo@0 4511 { ac_try='test -s conftest.$ac_objext'
meillo@0 4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4513 (eval $ac_try) 2>&5
meillo@0 4514 ac_status=$?
meillo@0 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4516 (exit $ac_status); }; }; then
meillo@0 4517 ac_cv_type_pid_t=yes
meillo@0 4518 else
meillo@0 4519 echo "$as_me: failed program was:" >&5
meillo@0 4520 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4521
meillo@0 4522 ac_cv_type_pid_t=no
meillo@0 4523 fi
meillo@0 4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4525 fi
meillo@0 4526 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
meillo@0 4527 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
meillo@0 4528 if test $ac_cv_type_pid_t = yes; then
meillo@0 4529 :
meillo@0 4530 else
meillo@0 4531
meillo@0 4532 cat >>confdefs.h <<_ACEOF
meillo@0 4533 #define pid_t int
meillo@0 4534 _ACEOF
meillo@0 4535
meillo@0 4536 fi
meillo@0 4537
meillo@0 4538 echo "$as_me:$LINENO: checking for size_t" >&5
meillo@0 4539 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
meillo@0 4540 if test "${ac_cv_type_size_t+set}" = set; then
meillo@0 4541 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4542 else
meillo@0 4543 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4544 /* confdefs.h. */
meillo@0 4545 _ACEOF
meillo@0 4546 cat confdefs.h >>conftest.$ac_ext
meillo@0 4547 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4548 /* end confdefs.h. */
meillo@0 4549 $ac_includes_default
meillo@0 4550 int
meillo@0 4551 main ()
meillo@0 4552 {
meillo@0 4553 if ((size_t *) 0)
meillo@0 4554 return 0;
meillo@0 4555 if (sizeof (size_t))
meillo@0 4556 return 0;
meillo@0 4557 ;
meillo@0 4558 return 0;
meillo@0 4559 }
meillo@0 4560 _ACEOF
meillo@0 4561 rm -f conftest.$ac_objext
meillo@0 4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4563 (eval $ac_compile) 2>conftest.er1
meillo@0 4564 ac_status=$?
meillo@0 4565 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4566 rm -f conftest.er1
meillo@0 4567 cat conftest.err >&5
meillo@0 4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4569 (exit $ac_status); } &&
meillo@0 4570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4572 (eval $ac_try) 2>&5
meillo@0 4573 ac_status=$?
meillo@0 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4575 (exit $ac_status); }; } &&
meillo@0 4576 { ac_try='test -s conftest.$ac_objext'
meillo@0 4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4578 (eval $ac_try) 2>&5
meillo@0 4579 ac_status=$?
meillo@0 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4581 (exit $ac_status); }; }; then
meillo@0 4582 ac_cv_type_size_t=yes
meillo@0 4583 else
meillo@0 4584 echo "$as_me: failed program was:" >&5
meillo@0 4585 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4586
meillo@0 4587 ac_cv_type_size_t=no
meillo@0 4588 fi
meillo@0 4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4590 fi
meillo@0 4591 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
meillo@0 4592 echo "${ECHO_T}$ac_cv_type_size_t" >&6
meillo@0 4593 if test $ac_cv_type_size_t = yes; then
meillo@0 4594 :
meillo@0 4595 else
meillo@0 4596
meillo@0 4597 cat >>confdefs.h <<_ACEOF
meillo@0 4598 #define size_t unsigned
meillo@0 4599 _ACEOF
meillo@0 4600
meillo@0 4601 fi
meillo@0 4602
meillo@0 4603 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
meillo@0 4604 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
meillo@0 4605 if test "${ac_cv_header_time+set}" = set; then
meillo@0 4606 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4607 else
meillo@0 4608 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4609 /* confdefs.h. */
meillo@0 4610 _ACEOF
meillo@0 4611 cat confdefs.h >>conftest.$ac_ext
meillo@0 4612 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4613 /* end confdefs.h. */
meillo@0 4614 #include <sys/types.h>
meillo@0 4615 #include <sys/time.h>
meillo@0 4616 #include <time.h>
meillo@0 4617
meillo@0 4618 int
meillo@0 4619 main ()
meillo@0 4620 {
meillo@0 4621 if ((struct tm *) 0)
meillo@0 4622 return 0;
meillo@0 4623 ;
meillo@0 4624 return 0;
meillo@0 4625 }
meillo@0 4626 _ACEOF
meillo@0 4627 rm -f conftest.$ac_objext
meillo@0 4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4629 (eval $ac_compile) 2>conftest.er1
meillo@0 4630 ac_status=$?
meillo@0 4631 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4632 rm -f conftest.er1
meillo@0 4633 cat conftest.err >&5
meillo@0 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4635 (exit $ac_status); } &&
meillo@0 4636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4638 (eval $ac_try) 2>&5
meillo@0 4639 ac_status=$?
meillo@0 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4641 (exit $ac_status); }; } &&
meillo@0 4642 { ac_try='test -s conftest.$ac_objext'
meillo@0 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4644 (eval $ac_try) 2>&5
meillo@0 4645 ac_status=$?
meillo@0 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4647 (exit $ac_status); }; }; then
meillo@0 4648 ac_cv_header_time=yes
meillo@0 4649 else
meillo@0 4650 echo "$as_me: failed program was:" >&5
meillo@0 4651 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4652
meillo@0 4653 ac_cv_header_time=no
meillo@0 4654 fi
meillo@0 4655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4656 fi
meillo@0 4657 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
meillo@0 4658 echo "${ECHO_T}$ac_cv_header_time" >&6
meillo@0 4659 if test $ac_cv_header_time = yes; then
meillo@0 4660
meillo@0 4661 cat >>confdefs.h <<\_ACEOF
meillo@0 4662 #define TIME_WITH_SYS_TIME 1
meillo@0 4663 _ACEOF
meillo@0 4664
meillo@0 4665 fi
meillo@0 4666
meillo@0 4667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
meillo@0 4668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
meillo@0 4669 if test "${ac_cv_struct_tm+set}" = set; then
meillo@0 4670 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4671 else
meillo@0 4672 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4673 /* confdefs.h. */
meillo@0 4674 _ACEOF
meillo@0 4675 cat confdefs.h >>conftest.$ac_ext
meillo@0 4676 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4677 /* end confdefs.h. */
meillo@0 4678 #include <sys/types.h>
meillo@0 4679 #include <time.h>
meillo@0 4680
meillo@0 4681 int
meillo@0 4682 main ()
meillo@0 4683 {
meillo@0 4684 struct tm *tp; tp->tm_sec;
meillo@0 4685 ;
meillo@0 4686 return 0;
meillo@0 4687 }
meillo@0 4688 _ACEOF
meillo@0 4689 rm -f conftest.$ac_objext
meillo@0 4690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4691 (eval $ac_compile) 2>conftest.er1
meillo@0 4692 ac_status=$?
meillo@0 4693 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4694 rm -f conftest.er1
meillo@0 4695 cat conftest.err >&5
meillo@0 4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4697 (exit $ac_status); } &&
meillo@0 4698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4700 (eval $ac_try) 2>&5
meillo@0 4701 ac_status=$?
meillo@0 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4703 (exit $ac_status); }; } &&
meillo@0 4704 { ac_try='test -s conftest.$ac_objext'
meillo@0 4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4706 (eval $ac_try) 2>&5
meillo@0 4707 ac_status=$?
meillo@0 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4709 (exit $ac_status); }; }; then
meillo@0 4710 ac_cv_struct_tm=time.h
meillo@0 4711 else
meillo@0 4712 echo "$as_me: failed program was:" >&5
meillo@0 4713 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4714
meillo@0 4715 ac_cv_struct_tm=sys/time.h
meillo@0 4716 fi
meillo@0 4717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4718 fi
meillo@0 4719 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
meillo@0 4720 echo "${ECHO_T}$ac_cv_struct_tm" >&6
meillo@0 4721 if test $ac_cv_struct_tm = sys/time.h; then
meillo@0 4722
meillo@0 4723 cat >>confdefs.h <<\_ACEOF
meillo@0 4724 #define TM_IN_SYS_TIME 1
meillo@0 4725 _ACEOF
meillo@0 4726
meillo@0 4727 fi
meillo@0 4728
meillo@0 4729
meillo@0 4730 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
meillo@0 4731 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
meillo@0 4732 if test "${ac_cv_func_fnmatch_works+set}" = set; then
meillo@0 4733 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4734 else
meillo@0 4735 # Some versions of Solaris, SCO, and the GNU C Library
meillo@0 4736 # have a broken or incompatible fnmatch.
meillo@0 4737 # So we run a test program. If we are cross-compiling, take no chance.
meillo@0 4738 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
meillo@0 4739 if test "$cross_compiling" = yes; then
meillo@0 4740 ac_cv_func_fnmatch_works=cross
meillo@0 4741 else
meillo@0 4742 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4743 /* confdefs.h. */
meillo@0 4744 _ACEOF
meillo@0 4745 cat confdefs.h >>conftest.$ac_ext
meillo@0 4746 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4747 /* end confdefs.h. */
meillo@0 4748 #include <fnmatch.h>
meillo@0 4749 # define y(a, b, c) (fnmatch (a, b, c) == 0)
meillo@0 4750 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
meillo@0 4751
meillo@0 4752 int
meillo@0 4753 main ()
meillo@0 4754 {
meillo@0 4755 exit
meillo@0 4756 (!(y ("a*", "abc", 0)
meillo@0 4757 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
meillo@0 4758 && y ("a\\\\bc", "abc", 0)
meillo@0 4759 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
meillo@0 4760 && y ("*x", ".x", 0)
meillo@0 4761 && n ("*x", ".x", FNM_PERIOD)
meillo@0 4762 && 1));
meillo@0 4763 ;
meillo@0 4764 return 0;
meillo@0 4765 }
meillo@0 4766 _ACEOF
meillo@0 4767 rm -f conftest$ac_exeext
meillo@0 4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 4769 (eval $ac_link) 2>&5
meillo@0 4770 ac_status=$?
meillo@0 4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
meillo@0 4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4774 (eval $ac_try) 2>&5
meillo@0 4775 ac_status=$?
meillo@0 4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4777 (exit $ac_status); }; }; then
meillo@0 4778 ac_cv_func_fnmatch_works=yes
meillo@0 4779 else
meillo@0 4780 echo "$as_me: program exited with status $ac_status" >&5
meillo@0 4781 echo "$as_me: failed program was:" >&5
meillo@0 4782 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4783
meillo@0 4784 ( exit $ac_status )
meillo@0 4785 ac_cv_func_fnmatch_works=no
meillo@0 4786 fi
meillo@0 4787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
meillo@0 4788 fi
meillo@0 4789 fi
meillo@0 4790 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
meillo@0 4791 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
meillo@0 4792 if test $ac_cv_func_fnmatch_works = yes; then
meillo@0 4793
meillo@0 4794 cat >>confdefs.h <<\_ACEOF
meillo@0 4795 #define HAVE_FNMATCH 1
meillo@0 4796 _ACEOF
meillo@0 4797
meillo@0 4798 fi
meillo@0 4799
meillo@0 4800
meillo@0 4801
meillo@0 4802 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
meillo@0 4803 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
meillo@0 4804 if test "${ac_cv_type_signal+set}" = set; then
meillo@0 4805 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4806 else
meillo@0 4807 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4808 /* confdefs.h. */
meillo@0 4809 _ACEOF
meillo@0 4810 cat confdefs.h >>conftest.$ac_ext
meillo@0 4811 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4812 /* end confdefs.h. */
meillo@0 4813 #include <sys/types.h>
meillo@0 4814 #include <signal.h>
meillo@0 4815 #ifdef signal
meillo@0 4816 # undef signal
meillo@0 4817 #endif
meillo@0 4818 #ifdef __cplusplus
meillo@0 4819 extern "C" void (*signal (int, void (*)(int)))(int);
meillo@0 4820 #else
meillo@0 4821 void (*signal ()) ();
meillo@0 4822 #endif
meillo@0 4823
meillo@0 4824 int
meillo@0 4825 main ()
meillo@0 4826 {
meillo@0 4827 int i;
meillo@0 4828 ;
meillo@0 4829 return 0;
meillo@0 4830 }
meillo@0 4831 _ACEOF
meillo@0 4832 rm -f conftest.$ac_objext
meillo@0 4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
meillo@0 4834 (eval $ac_compile) 2>conftest.er1
meillo@0 4835 ac_status=$?
meillo@0 4836 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4837 rm -f conftest.er1
meillo@0 4838 cat conftest.err >&5
meillo@0 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4840 (exit $ac_status); } &&
meillo@0 4841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4843 (eval $ac_try) 2>&5
meillo@0 4844 ac_status=$?
meillo@0 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4846 (exit $ac_status); }; } &&
meillo@0 4847 { ac_try='test -s conftest.$ac_objext'
meillo@0 4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4849 (eval $ac_try) 2>&5
meillo@0 4850 ac_status=$?
meillo@0 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4852 (exit $ac_status); }; }; then
meillo@0 4853 ac_cv_type_signal=void
meillo@0 4854 else
meillo@0 4855 echo "$as_me: failed program was:" >&5
meillo@0 4856 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4857
meillo@0 4858 ac_cv_type_signal=int
meillo@0 4859 fi
meillo@0 4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
meillo@0 4861 fi
meillo@0 4862 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
meillo@0 4863 echo "${ECHO_T}$ac_cv_type_signal" >&6
meillo@0 4864
meillo@0 4865 cat >>confdefs.h <<_ACEOF
meillo@0 4866 #define RETSIGTYPE $ac_cv_type_signal
meillo@0 4867 _ACEOF
meillo@0 4868
meillo@0 4869
meillo@0 4870
meillo@0 4871 for ac_func in strftime
meillo@0 4872 do
meillo@0 4873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
meillo@0 4874 echo "$as_me:$LINENO: checking for $ac_func" >&5
meillo@0 4875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
meillo@0 4876 if eval "test \"\${$as_ac_var+set}\" = set"; then
meillo@0 4877 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4878 else
meillo@0 4879 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4880 /* confdefs.h. */
meillo@0 4881 _ACEOF
meillo@0 4882 cat confdefs.h >>conftest.$ac_ext
meillo@0 4883 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4884 /* end confdefs.h. */
meillo@0 4885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
meillo@0 4886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 4887 #define $ac_func innocuous_$ac_func
meillo@0 4888
meillo@0 4889 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 4890 which can conflict with char $ac_func (); below.
meillo@0 4891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 4892 <limits.h> exists even on freestanding compilers. */
meillo@0 4893
meillo@0 4894 #ifdef __STDC__
meillo@0 4895 # include <limits.h>
meillo@0 4896 #else
meillo@0 4897 # include <assert.h>
meillo@0 4898 #endif
meillo@0 4899
meillo@0 4900 #undef $ac_func
meillo@0 4901
meillo@0 4902 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 4903 #ifdef __cplusplus
meillo@0 4904 extern "C"
meillo@0 4905 {
meillo@0 4906 #endif
meillo@0 4907 /* We use char because int might match the return type of a gcc2
meillo@0 4908 builtin and then its argument prototype would still apply. */
meillo@0 4909 char $ac_func ();
meillo@0 4910 /* The GNU C library defines this for functions which it implements
meillo@0 4911 to always fail with ENOSYS. Some functions are actually named
meillo@0 4912 something starting with __ and the normal name is an alias. */
meillo@0 4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
meillo@0 4914 choke me
meillo@0 4915 #else
meillo@0 4916 char (*f) () = $ac_func;
meillo@0 4917 #endif
meillo@0 4918 #ifdef __cplusplus
meillo@0 4919 }
meillo@0 4920 #endif
meillo@0 4921
meillo@0 4922 int
meillo@0 4923 main ()
meillo@0 4924 {
meillo@0 4925 return f != $ac_func;
meillo@0 4926 ;
meillo@0 4927 return 0;
meillo@0 4928 }
meillo@0 4929 _ACEOF
meillo@0 4930 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 4932 (eval $ac_link) 2>conftest.er1
meillo@0 4933 ac_status=$?
meillo@0 4934 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 4935 rm -f conftest.er1
meillo@0 4936 cat conftest.err >&5
meillo@0 4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4938 (exit $ac_status); } &&
meillo@0 4939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4941 (eval $ac_try) 2>&5
meillo@0 4942 ac_status=$?
meillo@0 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4944 (exit $ac_status); }; } &&
meillo@0 4945 { ac_try='test -s conftest$ac_exeext'
meillo@0 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 4947 (eval $ac_try) 2>&5
meillo@0 4948 ac_status=$?
meillo@0 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 4950 (exit $ac_status); }; }; then
meillo@0 4951 eval "$as_ac_var=yes"
meillo@0 4952 else
meillo@0 4953 echo "$as_me: failed program was:" >&5
meillo@0 4954 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 4955
meillo@0 4956 eval "$as_ac_var=no"
meillo@0 4957 fi
meillo@0 4958 rm -f conftest.err conftest.$ac_objext \
meillo@0 4959 conftest$ac_exeext conftest.$ac_ext
meillo@0 4960 fi
meillo@0 4961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
meillo@0 4962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
meillo@0 4963 if test `eval echo '${'$as_ac_var'}'` = yes; then
meillo@0 4964 cat >>confdefs.h <<_ACEOF
meillo@0 4965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
meillo@0 4966 _ACEOF
meillo@0 4967
meillo@0 4968 else
meillo@0 4969 # strftime is in -lintl on SCO UNIX.
meillo@0 4970 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
meillo@0 4971 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
meillo@0 4972 if test "${ac_cv_lib_intl_strftime+set}" = set; then
meillo@0 4973 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 4974 else
meillo@0 4975 ac_check_lib_save_LIBS=$LIBS
meillo@0 4976 LIBS="-lintl $LIBS"
meillo@0 4977 cat >conftest.$ac_ext <<_ACEOF
meillo@0 4978 /* confdefs.h. */
meillo@0 4979 _ACEOF
meillo@0 4980 cat confdefs.h >>conftest.$ac_ext
meillo@0 4981 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 4982 /* end confdefs.h. */
meillo@0 4983
meillo@0 4984 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 4985 #ifdef __cplusplus
meillo@0 4986 extern "C"
meillo@0 4987 #endif
meillo@0 4988 /* We use char because int might match the return type of a gcc2
meillo@0 4989 builtin and then its argument prototype would still apply. */
meillo@0 4990 char strftime ();
meillo@0 4991 int
meillo@0 4992 main ()
meillo@0 4993 {
meillo@0 4994 strftime ();
meillo@0 4995 ;
meillo@0 4996 return 0;
meillo@0 4997 }
meillo@0 4998 _ACEOF
meillo@0 4999 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5001 (eval $ac_link) 2>conftest.er1
meillo@0 5002 ac_status=$?
meillo@0 5003 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5004 rm -f conftest.er1
meillo@0 5005 cat conftest.err >&5
meillo@0 5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5007 (exit $ac_status); } &&
meillo@0 5008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5010 (eval $ac_try) 2>&5
meillo@0 5011 ac_status=$?
meillo@0 5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5013 (exit $ac_status); }; } &&
meillo@0 5014 { ac_try='test -s conftest$ac_exeext'
meillo@0 5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5016 (eval $ac_try) 2>&5
meillo@0 5017 ac_status=$?
meillo@0 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5019 (exit $ac_status); }; }; then
meillo@0 5020 ac_cv_lib_intl_strftime=yes
meillo@0 5021 else
meillo@0 5022 echo "$as_me: failed program was:" >&5
meillo@0 5023 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5024
meillo@0 5025 ac_cv_lib_intl_strftime=no
meillo@0 5026 fi
meillo@0 5027 rm -f conftest.err conftest.$ac_objext \
meillo@0 5028 conftest$ac_exeext conftest.$ac_ext
meillo@0 5029 LIBS=$ac_check_lib_save_LIBS
meillo@0 5030 fi
meillo@0 5031 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
meillo@0 5032 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
meillo@0 5033 if test $ac_cv_lib_intl_strftime = yes; then
meillo@0 5034 cat >>confdefs.h <<\_ACEOF
meillo@0 5035 #define HAVE_STRFTIME 1
meillo@0 5036 _ACEOF
meillo@0 5037
meillo@0 5038 LIBS="-lintl $LIBS"
meillo@0 5039 fi
meillo@0 5040
meillo@0 5041 fi
meillo@0 5042 done
meillo@0 5043
meillo@0 5044
meillo@0 5045 for ac_func in vprintf
meillo@0 5046 do
meillo@0 5047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
meillo@0 5048 echo "$as_me:$LINENO: checking for $ac_func" >&5
meillo@0 5049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
meillo@0 5050 if eval "test \"\${$as_ac_var+set}\" = set"; then
meillo@0 5051 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5052 else
meillo@0 5053 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5054 /* confdefs.h. */
meillo@0 5055 _ACEOF
meillo@0 5056 cat confdefs.h >>conftest.$ac_ext
meillo@0 5057 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5058 /* end confdefs.h. */
meillo@0 5059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
meillo@0 5060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 5061 #define $ac_func innocuous_$ac_func
meillo@0 5062
meillo@0 5063 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 5064 which can conflict with char $ac_func (); below.
meillo@0 5065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 5066 <limits.h> exists even on freestanding compilers. */
meillo@0 5067
meillo@0 5068 #ifdef __STDC__
meillo@0 5069 # include <limits.h>
meillo@0 5070 #else
meillo@0 5071 # include <assert.h>
meillo@0 5072 #endif
meillo@0 5073
meillo@0 5074 #undef $ac_func
meillo@0 5075
meillo@0 5076 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5077 #ifdef __cplusplus
meillo@0 5078 extern "C"
meillo@0 5079 {
meillo@0 5080 #endif
meillo@0 5081 /* We use char because int might match the return type of a gcc2
meillo@0 5082 builtin and then its argument prototype would still apply. */
meillo@0 5083 char $ac_func ();
meillo@0 5084 /* The GNU C library defines this for functions which it implements
meillo@0 5085 to always fail with ENOSYS. Some functions are actually named
meillo@0 5086 something starting with __ and the normal name is an alias. */
meillo@0 5087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
meillo@0 5088 choke me
meillo@0 5089 #else
meillo@0 5090 char (*f) () = $ac_func;
meillo@0 5091 #endif
meillo@0 5092 #ifdef __cplusplus
meillo@0 5093 }
meillo@0 5094 #endif
meillo@0 5095
meillo@0 5096 int
meillo@0 5097 main ()
meillo@0 5098 {
meillo@0 5099 return f != $ac_func;
meillo@0 5100 ;
meillo@0 5101 return 0;
meillo@0 5102 }
meillo@0 5103 _ACEOF
meillo@0 5104 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5106 (eval $ac_link) 2>conftest.er1
meillo@0 5107 ac_status=$?
meillo@0 5108 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5109 rm -f conftest.er1
meillo@0 5110 cat conftest.err >&5
meillo@0 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5112 (exit $ac_status); } &&
meillo@0 5113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5115 (eval $ac_try) 2>&5
meillo@0 5116 ac_status=$?
meillo@0 5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5118 (exit $ac_status); }; } &&
meillo@0 5119 { ac_try='test -s conftest$ac_exeext'
meillo@0 5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5121 (eval $ac_try) 2>&5
meillo@0 5122 ac_status=$?
meillo@0 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5124 (exit $ac_status); }; }; then
meillo@0 5125 eval "$as_ac_var=yes"
meillo@0 5126 else
meillo@0 5127 echo "$as_me: failed program was:" >&5
meillo@0 5128 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5129
meillo@0 5130 eval "$as_ac_var=no"
meillo@0 5131 fi
meillo@0 5132 rm -f conftest.err conftest.$ac_objext \
meillo@0 5133 conftest$ac_exeext conftest.$ac_ext
meillo@0 5134 fi
meillo@0 5135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
meillo@0 5136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
meillo@0 5137 if test `eval echo '${'$as_ac_var'}'` = yes; then
meillo@0 5138 cat >>confdefs.h <<_ACEOF
meillo@0 5139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
meillo@0 5140 _ACEOF
meillo@0 5141
meillo@0 5142 echo "$as_me:$LINENO: checking for _doprnt" >&5
meillo@0 5143 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
meillo@0 5144 if test "${ac_cv_func__doprnt+set}" = set; then
meillo@0 5145 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5146 else
meillo@0 5147 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5148 /* confdefs.h. */
meillo@0 5149 _ACEOF
meillo@0 5150 cat confdefs.h >>conftest.$ac_ext
meillo@0 5151 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5152 /* end confdefs.h. */
meillo@0 5153 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
meillo@0 5154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 5155 #define _doprnt innocuous__doprnt
meillo@0 5156
meillo@0 5157 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 5158 which can conflict with char _doprnt (); below.
meillo@0 5159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 5160 <limits.h> exists even on freestanding compilers. */
meillo@0 5161
meillo@0 5162 #ifdef __STDC__
meillo@0 5163 # include <limits.h>
meillo@0 5164 #else
meillo@0 5165 # include <assert.h>
meillo@0 5166 #endif
meillo@0 5167
meillo@0 5168 #undef _doprnt
meillo@0 5169
meillo@0 5170 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5171 #ifdef __cplusplus
meillo@0 5172 extern "C"
meillo@0 5173 {
meillo@0 5174 #endif
meillo@0 5175 /* We use char because int might match the return type of a gcc2
meillo@0 5176 builtin and then its argument prototype would still apply. */
meillo@0 5177 char _doprnt ();
meillo@0 5178 /* The GNU C library defines this for functions which it implements
meillo@0 5179 to always fail with ENOSYS. Some functions are actually named
meillo@0 5180 something starting with __ and the normal name is an alias. */
meillo@0 5181 #if defined (__stub__doprnt) || defined (__stub____doprnt)
meillo@0 5182 choke me
meillo@0 5183 #else
meillo@0 5184 char (*f) () = _doprnt;
meillo@0 5185 #endif
meillo@0 5186 #ifdef __cplusplus
meillo@0 5187 }
meillo@0 5188 #endif
meillo@0 5189
meillo@0 5190 int
meillo@0 5191 main ()
meillo@0 5192 {
meillo@0 5193 return f != _doprnt;
meillo@0 5194 ;
meillo@0 5195 return 0;
meillo@0 5196 }
meillo@0 5197 _ACEOF
meillo@0 5198 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5200 (eval $ac_link) 2>conftest.er1
meillo@0 5201 ac_status=$?
meillo@0 5202 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5203 rm -f conftest.er1
meillo@0 5204 cat conftest.err >&5
meillo@0 5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5206 (exit $ac_status); } &&
meillo@0 5207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5209 (eval $ac_try) 2>&5
meillo@0 5210 ac_status=$?
meillo@0 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5212 (exit $ac_status); }; } &&
meillo@0 5213 { ac_try='test -s conftest$ac_exeext'
meillo@0 5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5215 (eval $ac_try) 2>&5
meillo@0 5216 ac_status=$?
meillo@0 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5218 (exit $ac_status); }; }; then
meillo@0 5219 ac_cv_func__doprnt=yes
meillo@0 5220 else
meillo@0 5221 echo "$as_me: failed program was:" >&5
meillo@0 5222 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5223
meillo@0 5224 ac_cv_func__doprnt=no
meillo@0 5225 fi
meillo@0 5226 rm -f conftest.err conftest.$ac_objext \
meillo@0 5227 conftest$ac_exeext conftest.$ac_ext
meillo@0 5228 fi
meillo@0 5229 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
meillo@0 5230 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
meillo@0 5231 if test $ac_cv_func__doprnt = yes; then
meillo@0 5232
meillo@0 5233 cat >>confdefs.h <<\_ACEOF
meillo@0 5234 #define HAVE_DOPRNT 1
meillo@0 5235 _ACEOF
meillo@0 5236
meillo@0 5237 fi
meillo@0 5238
meillo@0 5239 fi
meillo@0 5240 done
meillo@0 5241
meillo@0 5242
meillo@0 5243
meillo@0 5244
meillo@0 5245
meillo@0 5246
meillo@0 5247 for ac_func in select socket strerror strstr
meillo@0 5248 do
meillo@0 5249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
meillo@0 5250 echo "$as_me:$LINENO: checking for $ac_func" >&5
meillo@0 5251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
meillo@0 5252 if eval "test \"\${$as_ac_var+set}\" = set"; then
meillo@0 5253 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5254 else
meillo@0 5255 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5256 /* confdefs.h. */
meillo@0 5257 _ACEOF
meillo@0 5258 cat confdefs.h >>conftest.$ac_ext
meillo@0 5259 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5260 /* end confdefs.h. */
meillo@0 5261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
meillo@0 5262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
meillo@0 5263 #define $ac_func innocuous_$ac_func
meillo@0 5264
meillo@0 5265 /* System header to define __stub macros and hopefully few prototypes,
meillo@0 5266 which can conflict with char $ac_func (); below.
meillo@0 5267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
meillo@0 5268 <limits.h> exists even on freestanding compilers. */
meillo@0 5269
meillo@0 5270 #ifdef __STDC__
meillo@0 5271 # include <limits.h>
meillo@0 5272 #else
meillo@0 5273 # include <assert.h>
meillo@0 5274 #endif
meillo@0 5275
meillo@0 5276 #undef $ac_func
meillo@0 5277
meillo@0 5278 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5279 #ifdef __cplusplus
meillo@0 5280 extern "C"
meillo@0 5281 {
meillo@0 5282 #endif
meillo@0 5283 /* We use char because int might match the return type of a gcc2
meillo@0 5284 builtin and then its argument prototype would still apply. */
meillo@0 5285 char $ac_func ();
meillo@0 5286 /* The GNU C library defines this for functions which it implements
meillo@0 5287 to always fail with ENOSYS. Some functions are actually named
meillo@0 5288 something starting with __ and the normal name is an alias. */
meillo@0 5289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
meillo@0 5290 choke me
meillo@0 5291 #else
meillo@0 5292 char (*f) () = $ac_func;
meillo@0 5293 #endif
meillo@0 5294 #ifdef __cplusplus
meillo@0 5295 }
meillo@0 5296 #endif
meillo@0 5297
meillo@0 5298 int
meillo@0 5299 main ()
meillo@0 5300 {
meillo@0 5301 return f != $ac_func;
meillo@0 5302 ;
meillo@0 5303 return 0;
meillo@0 5304 }
meillo@0 5305 _ACEOF
meillo@0 5306 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5308 (eval $ac_link) 2>conftest.er1
meillo@0 5309 ac_status=$?
meillo@0 5310 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5311 rm -f conftest.er1
meillo@0 5312 cat conftest.err >&5
meillo@0 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5314 (exit $ac_status); } &&
meillo@0 5315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5317 (eval $ac_try) 2>&5
meillo@0 5318 ac_status=$?
meillo@0 5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5320 (exit $ac_status); }; } &&
meillo@0 5321 { ac_try='test -s conftest$ac_exeext'
meillo@0 5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5323 (eval $ac_try) 2>&5
meillo@0 5324 ac_status=$?
meillo@0 5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5326 (exit $ac_status); }; }; then
meillo@0 5327 eval "$as_ac_var=yes"
meillo@0 5328 else
meillo@0 5329 echo "$as_me: failed program was:" >&5
meillo@0 5330 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5331
meillo@0 5332 eval "$as_ac_var=no"
meillo@0 5333 fi
meillo@0 5334 rm -f conftest.err conftest.$ac_objext \
meillo@0 5335 conftest$ac_exeext conftest.$ac_ext
meillo@0 5336 fi
meillo@0 5337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
meillo@0 5338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
meillo@0 5339 if test `eval echo '${'$as_ac_var'}'` = yes; then
meillo@0 5340 cat >>confdefs.h <<_ACEOF
meillo@0 5341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
meillo@0 5342 _ACEOF
meillo@0 5343
meillo@0 5344 fi
meillo@0 5345 done
meillo@0 5346
meillo@0 5347
meillo@0 5348
meillo@0 5349 # Check whether --with-user or --without-user was given.
meillo@0 5350 if test "${with_user+set}" = set; then
meillo@0 5351 withval="$with_user"
meillo@0 5352
meillo@0 5353 fi;
meillo@0 5354 if test "x$with_user" = 'x'; then
meillo@0 5355 with_user='mail'
meillo@0 5356 fi
meillo@0 5357
meillo@0 5358
meillo@0 5359 # Check whether --with-group or --without-group was given.
meillo@0 5360 if test "${with_group+set}" = set; then
meillo@0 5361 withval="$with_group"
meillo@0 5362
meillo@0 5363 fi;
meillo@0 5364 if test "x$with_group" = 'x'; then
meillo@0 5365 with_group='trusted'
meillo@0 5366 fi
meillo@0 5367
meillo@0 5368 # Check whether --enable-debug or --disable-debug was given.
meillo@0 5369 if test "${enable_debug+set}" = set; then
meillo@0 5370 enableval="$enable_debug"
meillo@0 5371 if test "x$enable_debug" != 'xno'; then
meillo@0 5372 debug_enabled='yes'
meillo@0 5373 fi
meillo@0 5374 else
meillo@0 5375 debug_enabled='yes'
meillo@0 5376
meillo@0 5377 fi;
meillo@0 5378 if test "x$debug_enabled" = xyes; then
meillo@0 5379
meillo@0 5380 cat >>confdefs.h <<\_ACEOF
meillo@0 5381 #define ENABLE_DEBUG 1
meillo@0 5382 _ACEOF
meillo@0 5383
meillo@0 5384 fi
meillo@0 5385
meillo@0 5386
meillo@0 5387 cat >>confdefs.h <<_ACEOF
meillo@0 5388 #define DEF_MAIL_USER "${with_user}"
meillo@0 5389 _ACEOF
meillo@0 5390
meillo@0 5391
meillo@0 5392
meillo@0 5393 cat >>confdefs.h <<_ACEOF
meillo@0 5394 #define DEF_MAIL_GROUP "${with_group}"
meillo@0 5395 _ACEOF
meillo@0 5396
meillo@0 5397
meillo@0 5398
meillo@0 5399
meillo@0 5400 # Check whether --with-glib_static or --without-glib_static was given.
meillo@0 5401 if test "${with_glib_static+set}" = set; then
meillo@0 5402 withval="$with_glib_static"
meillo@0 5403
meillo@0 5404 fi;
meillo@0 5405 if test "x$with_glib_static" != 'x'; then
meillo@0 5406 GLIB_LIBS=$with_glib_static
meillo@0 5407
meillo@0 5408 fi
meillo@0 5409
meillo@0 5410 MD5_LIBS=''
meillo@0 5411 BASE64_LIBS=''
meillo@0 5412
meillo@0 5413 # Check whether --enable-smtp_server or --disable-smtp_server was given.
meillo@0 5414 if test "${enable_smtp_server+set}" = set; then
meillo@0 5415 enableval="$enable_smtp_server"
meillo@0 5416 if test "x$enable_smtp_server" != 'xno'; then
meillo@0 5417 smtp_server_enabled='yes'
meillo@0 5418 fi
meillo@0 5419 else
meillo@0 5420 smtp_server_enabled='yes'
meillo@0 5421
meillo@0 5422 fi;
meillo@0 5423 if test "x$smtp_server_enabled" = xyes; then
meillo@0 5424
meillo@0 5425 cat >>confdefs.h <<\_ACEOF
meillo@0 5426 #define ENABLE_SMTP_SERVER 1
meillo@0 5427 _ACEOF
meillo@0 5428
meillo@0 5429 fi
meillo@0 5430
meillo@0 5431 # Check whether --enable-pop3 or --disable-pop3 was given.
meillo@0 5432 if test "${enable_pop3+set}" = set; then
meillo@0 5433 enableval="$enable_pop3"
meillo@0 5434 if test "x$enable_pop3" != 'xno'; then
meillo@0 5435 pop3_enabled='yes'
meillo@0 5436 fi
meillo@0 5437 else
meillo@0 5438 pop3_enabled='yes'
meillo@0 5439
meillo@0 5440 fi;
meillo@0 5441 if test "x$pop3_enabled" = xyes; then
meillo@0 5442
meillo@0 5443 cat >>confdefs.h <<\_ACEOF
meillo@0 5444 #define ENABLE_POP3 1
meillo@0 5445 _ACEOF
meillo@0 5446
meillo@0 5447 # MD5_LIBS='md5/libmd5c.a'
meillo@0 5448 need_md5='yes'
meillo@0 5449 fi
meillo@0 5450
meillo@0 5451 # Check whether --enable-auth or --disable-auth was given.
meillo@0 5452 if test "${enable_auth+set}" = set; then
meillo@0 5453 enableval="$enable_auth"
meillo@0 5454 if test "x$enable_auth" != 'xno'; then
meillo@0 5455 auth_enabled='yes'
meillo@0 5456 fi
meillo@0 5457 fi;
meillo@0 5458 if test "x$auth_enabled" = xyes; then
meillo@0 5459
meillo@0 5460 cat >>confdefs.h <<\_ACEOF
meillo@0 5461 #define ENABLE_AUTH 1
meillo@0 5462 _ACEOF
meillo@0 5463
meillo@0 5464 BASE64_LIBS='base64/libbase64.a'
meillo@0 5465 # MD5_LIBS='md5/libmd5c.a'
meillo@0 5466 need_md5='yes'
meillo@0 5467 fi
meillo@0 5468
meillo@0 5469
meillo@0 5470 # Check whether --enable-maildir or --disable-maildir was given.
meillo@0 5471 if test "${enable_maildir+set}" = set; then
meillo@0 5472 enableval="$enable_maildir"
meillo@0 5473 if test "x$enable_maildir" != 'xno'; then
meillo@0 5474 maildir_enabled='yes'
meillo@0 5475 fi
meillo@0 5476 fi;
meillo@0 5477 if test "x$maildir_enabled" = xyes; then
meillo@0 5478
meillo@0 5479 cat >>confdefs.h <<\_ACEOF
meillo@0 5480 #define ENABLE_MAILDIR 1
meillo@0 5481 _ACEOF
meillo@0 5482
meillo@0 5483 fi
meillo@0 5484
meillo@0 5485
meillo@0 5486 # Check whether --with-libcrypto or --without-libcrypto was given.
meillo@0 5487 if test "${with_libcrypto+set}" = set; then
meillo@0 5488 withval="$with_libcrypto"
meillo@0 5489
meillo@0 5490 fi;
meillo@0 5491 if test "x$with_libcrypto" != 'xyes'; then
meillo@0 5492 with_libcrypto='no'
meillo@0 5493 fi
meillo@0 5494
meillo@0 5495 if test "x$need_md5" = 'xyes'; then
meillo@0 5496 if test "x$with_libcrypto" = "xyes"; then
meillo@0 5497 echo "$as_me:$LINENO: checking for MD5 in -lcrypto" >&5
meillo@0 5498 echo $ECHO_N "checking for MD5 in -lcrypto... $ECHO_C" >&6
meillo@0 5499 if test "${ac_cv_lib_crypto_MD5+set}" = set; then
meillo@0 5500 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5501 else
meillo@0 5502 ac_check_lib_save_LIBS=$LIBS
meillo@0 5503 LIBS="-lcrypto $LIBS"
meillo@0 5504 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5505 /* confdefs.h. */
meillo@0 5506 _ACEOF
meillo@0 5507 cat confdefs.h >>conftest.$ac_ext
meillo@0 5508 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5509 /* end confdefs.h. */
meillo@0 5510
meillo@0 5511 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5512 #ifdef __cplusplus
meillo@0 5513 extern "C"
meillo@0 5514 #endif
meillo@0 5515 /* We use char because int might match the return type of a gcc2
meillo@0 5516 builtin and then its argument prototype would still apply. */
meillo@0 5517 char MD5 ();
meillo@0 5518 int
meillo@0 5519 main ()
meillo@0 5520 {
meillo@0 5521 MD5 ();
meillo@0 5522 ;
meillo@0 5523 return 0;
meillo@0 5524 }
meillo@0 5525 _ACEOF
meillo@0 5526 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5528 (eval $ac_link) 2>conftest.er1
meillo@0 5529 ac_status=$?
meillo@0 5530 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5531 rm -f conftest.er1
meillo@0 5532 cat conftest.err >&5
meillo@0 5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5534 (exit $ac_status); } &&
meillo@0 5535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5537 (eval $ac_try) 2>&5
meillo@0 5538 ac_status=$?
meillo@0 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5540 (exit $ac_status); }; } &&
meillo@0 5541 { ac_try='test -s conftest$ac_exeext'
meillo@0 5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5543 (eval $ac_try) 2>&5
meillo@0 5544 ac_status=$?
meillo@0 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5546 (exit $ac_status); }; }; then
meillo@0 5547 ac_cv_lib_crypto_MD5=yes
meillo@0 5548 else
meillo@0 5549 echo "$as_me: failed program was:" >&5
meillo@0 5550 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5551
meillo@0 5552 ac_cv_lib_crypto_MD5=no
meillo@0 5553 fi
meillo@0 5554 rm -f conftest.err conftest.$ac_objext \
meillo@0 5555 conftest$ac_exeext conftest.$ac_ext
meillo@0 5556 LIBS=$ac_check_lib_save_LIBS
meillo@0 5557 fi
meillo@0 5558 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5" >&5
meillo@0 5559 echo "${ECHO_T}$ac_cv_lib_crypto_MD5" >&6
meillo@0 5560 if test $ac_cv_lib_crypto_MD5 = yes; then
meillo@0 5561 has_crypto='yes'
meillo@0 5562 else
meillo@0 5563 { { echo "$as_me:$LINENO: error: 'no libcrypto'" >&5
meillo@0 5564 echo "$as_me: error: 'no libcrypto'" >&2;}
meillo@0 5565 { (exit 1); exit 1; }; }
meillo@0 5566 fi
meillo@0 5567
meillo@0 5568 if test "x$has_crypto" = 'xyes'; then
meillo@0 5569
meillo@0 5570 cat >>confdefs.h <<\_ACEOF
meillo@0 5571 #define USE_LIB_CRYPTO 1
meillo@0 5572 _ACEOF
meillo@0 5573
meillo@0 5574 MD5_LIBS='-lcrypto'
meillo@0 5575 fi
meillo@0 5576 else
meillo@0 5577 MD5_LIBS='md5/libmd5c.a'
meillo@0 5578 fi
meillo@0 5579 fi
meillo@0 5580
meillo@0 5581
meillo@0 5582 IDENT_LIBS=''
meillo@0 5583 # Check whether --enable-ident or --disable-ident was given.
meillo@0 5584 if test "${enable_ident+set}" = set; then
meillo@0 5585 enableval="$enable_ident"
meillo@0 5586 if test "x$enable_ident" != 'xno'; then
meillo@0 5587 ident_enabled='yes'
meillo@0 5588 fi
meillo@0 5589 fi;
meillo@0 5590
meillo@0 5591 if test "x$ident_enabled" = xyes; then
meillo@0 5592
meillo@0 5593 cat >>confdefs.h <<\_ACEOF
meillo@0 5594 #define ENABLE_IDENT 1
meillo@0 5595 _ACEOF
meillo@0 5596
meillo@0 5597 echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
meillo@0 5598 echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6
meillo@0 5599 if test "${ac_cv_lib_ident_ident_id+set}" = set; then
meillo@0 5600 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5601 else
meillo@0 5602 ac_check_lib_save_LIBS=$LIBS
meillo@0 5603 LIBS="-lident $LIBS"
meillo@0 5604 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5605 /* confdefs.h. */
meillo@0 5606 _ACEOF
meillo@0 5607 cat confdefs.h >>conftest.$ac_ext
meillo@0 5608 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5609 /* end confdefs.h. */
meillo@0 5610
meillo@0 5611 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5612 #ifdef __cplusplus
meillo@0 5613 extern "C"
meillo@0 5614 #endif
meillo@0 5615 /* We use char because int might match the return type of a gcc2
meillo@0 5616 builtin and then its argument prototype would still apply. */
meillo@0 5617 char ident_id ();
meillo@0 5618 int
meillo@0 5619 main ()
meillo@0 5620 {
meillo@0 5621 ident_id ();
meillo@0 5622 ;
meillo@0 5623 return 0;
meillo@0 5624 }
meillo@0 5625 _ACEOF
meillo@0 5626 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5628 (eval $ac_link) 2>conftest.er1
meillo@0 5629 ac_status=$?
meillo@0 5630 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5631 rm -f conftest.er1
meillo@0 5632 cat conftest.err >&5
meillo@0 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5634 (exit $ac_status); } &&
meillo@0 5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5637 (eval $ac_try) 2>&5
meillo@0 5638 ac_status=$?
meillo@0 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5640 (exit $ac_status); }; } &&
meillo@0 5641 { ac_try='test -s conftest$ac_exeext'
meillo@0 5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5643 (eval $ac_try) 2>&5
meillo@0 5644 ac_status=$?
meillo@0 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5646 (exit $ac_status); }; }; then
meillo@0 5647 ac_cv_lib_ident_ident_id=yes
meillo@0 5648 else
meillo@0 5649 echo "$as_me: failed program was:" >&5
meillo@0 5650 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5651
meillo@0 5652 ac_cv_lib_ident_ident_id=no
meillo@0 5653 fi
meillo@0 5654 rm -f conftest.err conftest.$ac_objext \
meillo@0 5655 conftest$ac_exeext conftest.$ac_ext
meillo@0 5656 LIBS=$ac_check_lib_save_LIBS
meillo@0 5657 fi
meillo@0 5658 echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
meillo@0 5659 echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6
meillo@0 5660 if test $ac_cv_lib_ident_ident_id = yes; then
meillo@0 5661 IDENT_LIBS='-lident'
meillo@0 5662 else
meillo@0 5663 IDENT_LIBS='libident/libident.a'
meillo@0 5664 fi
meillo@0 5665
meillo@0 5666 fi
meillo@0 5667
meillo@0 5668
meillo@0 5669 # Check whether --enable-mserver or --disable-mserver was given.
meillo@0 5670 if test "${enable_mserver+set}" = set; then
meillo@0 5671 enableval="$enable_mserver"
meillo@0 5672 if test "x$enable_mserver" != 'xno'; then
meillo@0 5673 mserver_enabled='yes'
meillo@0 5674 fi
meillo@0 5675 fi;
meillo@0 5676 if test "x$mserver_enabled" = xyes; then
meillo@0 5677
meillo@0 5678 cat >>confdefs.h <<\_ACEOF
meillo@0 5679 #define ENABLE_MSERVER 1
meillo@0 5680 _ACEOF
meillo@0 5681
meillo@0 5682 fi
meillo@0 5683
meillo@0 5684
meillo@0 5685 # Check whether --with-liblockfile or --without-liblockfile was given.
meillo@0 5686 if test "${with_liblockfile+set}" = set; then
meillo@0 5687 withval="$with_liblockfile"
meillo@0 5688
meillo@0 5689 fi;
meillo@0 5690 if test "x$with_liblockfile" != 'x'; then
meillo@0 5691 with_liblockfile='yes'
meillo@0 5692 fi
meillo@0 5693 if test "x$with_liblockfile" = xyes; then
meillo@0 5694 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
meillo@0 5695 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
meillo@0 5696 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
meillo@0 5697 echo $ECHO_N "(cached) $ECHO_C" >&6
meillo@0 5698 else
meillo@0 5699 ac_check_lib_save_LIBS=$LIBS
meillo@0 5700 LIBS="-llockfile $LIBS"
meillo@0 5701 cat >conftest.$ac_ext <<_ACEOF
meillo@0 5702 /* confdefs.h. */
meillo@0 5703 _ACEOF
meillo@0 5704 cat confdefs.h >>conftest.$ac_ext
meillo@0 5705 cat >>conftest.$ac_ext <<_ACEOF
meillo@0 5706 /* end confdefs.h. */
meillo@0 5707
meillo@0 5708 /* Override any gcc2 internal prototype to avoid an error. */
meillo@0 5709 #ifdef __cplusplus
meillo@0 5710 extern "C"
meillo@0 5711 #endif
meillo@0 5712 /* We use char because int might match the return type of a gcc2
meillo@0 5713 builtin and then its argument prototype would still apply. */
meillo@0 5714 char maillock ();
meillo@0 5715 int
meillo@0 5716 main ()
meillo@0 5717 {
meillo@0 5718 maillock ();
meillo@0 5719 ;
meillo@0 5720 return 0;
meillo@0 5721 }
meillo@0 5722 _ACEOF
meillo@0 5723 rm -f conftest.$ac_objext conftest$ac_exeext
meillo@0 5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
meillo@0 5725 (eval $ac_link) 2>conftest.er1
meillo@0 5726 ac_status=$?
meillo@0 5727 grep -v '^ *+' conftest.er1 >conftest.err
meillo@0 5728 rm -f conftest.er1
meillo@0 5729 cat conftest.err >&5
meillo@0 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5731 (exit $ac_status); } &&
meillo@0 5732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
meillo@0 5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5734 (eval $ac_try) 2>&5
meillo@0 5735 ac_status=$?
meillo@0 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5737 (exit $ac_status); }; } &&
meillo@0 5738 { ac_try='test -s conftest$ac_exeext'
meillo@0 5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
meillo@0 5740 (eval $ac_try) 2>&5
meillo@0 5741 ac_status=$?
meillo@0 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
meillo@0 5743 (exit $ac_status); }; }; then
meillo@0 5744 ac_cv_lib_lockfile_maillock=yes
meillo@0 5745 else
meillo@0 5746 echo "$as_me: failed program was:" >&5
meillo@0 5747 sed 's/^/| /' conftest.$ac_ext >&5
meillo@0 5748
meillo@0 5749 ac_cv_lib_lockfile_maillock=no
meillo@0 5750 fi
meillo@0 5751 rm -f conftest.err conftest.$ac_objext \
meillo@0 5752 conftest$ac_exeext conftest.$ac_ext
meillo@0 5753 LIBS=$ac_check_lib_save_LIBS
meillo@0 5754 fi
meillo@0 5755 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
meillo@0 5756 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
meillo@0 5757 if test $ac_cv_lib_lockfile_maillock = yes; then
meillo@0 5758 has_lockfile=yes
meillo@0 5759 else
meillo@0 5760 { { echo "$as_me:$LINENO: error: \"no liblockfile\"" >&5
meillo@0 5761 echo "$as_me: error: \"no liblockfile\"" >&2;}
meillo@0 5762 { (exit 1); exit 1; }; }
meillo@0 5763 fi
meillo@0 5764
meillo@0 5765 LOCKFILE_LIBS='-llockfile'
meillo@0 5766
meillo@0 5767 cat >>confdefs.h <<\_ACEOF
meillo@0 5768 #define USE_LIBLOCKFILE 1
meillo@0 5769 _ACEOF
meillo@0 5770
meillo@0 5771 else
meillo@0 5772 LOCKFILE_LIBS=''
meillo@0 5773 fi
meillo@0 5774
meillo@0 5775
meillo@0 5776
meillo@0 5777
meillo@0 5778 # Check whether --with-logdir or --without-logdir was given.
meillo@0 5779 if test "${with_logdir+set}" = set; then
meillo@0 5780 withval="$with_logdir"
meillo@0 5781
meillo@0 5782 else
meillo@0 5783 with_logdir='/var/log/masqmail/'
meillo@0 5784
meillo@0 5785 fi;
meillo@0 5786
meillo@0 5787
meillo@0 5788
meillo@0 5789 # Check whether --with-spooldir or --without-spooldir was given.
meillo@0 5790 if test "${with_spooldir+set}" = set; then
meillo@0 5791 withval="$with_spooldir"
meillo@0 5792
meillo@0 5793 else
meillo@0 5794 with_spooldir='/var/spool/masqmail/'
meillo@0 5795
meillo@0 5796 fi;
meillo@0 5797
meillo@0 5798
meillo@0 5799
meillo@0 5800 # Check whether --with-confdir or --without-confdir was given.
meillo@0 5801 if test "${with_confdir+set}" = set; then
meillo@0 5802 withval="$with_confdir"
meillo@0 5803
meillo@0 5804 else
meillo@0 5805 with_confdir='/etc/masqmail'
meillo@0 5806
meillo@0 5807 fi;
meillo@0 5808
meillo@0 5809 cat >>confdefs.h <<_ACEOF
meillo@0 5810 #define CONF_DIR "${with_confdir}"
meillo@0 5811 _ACEOF
meillo@0 5812
meillo@0 5813
meillo@0 5814
meillo@0 5815 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
meillo@0 5816
meillo@0 5817 cat >>confdefs.h <<_ACEOF
meillo@0 5818 #define DATA_DIR "`eval echo \""$datadir"\"`/masqmail"
meillo@0 5819 _ACEOF
meillo@0 5820
meillo@0 5821
meillo@0 5822 if test "x${exec_prefix}" != 'xNONE'; then
meillo@0 5823
meillo@0 5824 cat >>confdefs.h <<_ACEOF
meillo@0 5825 #define SBINDIR "${exec_prefix}/sbin"
meillo@0 5826 _ACEOF
meillo@0 5827
meillo@0 5828 else
meillo@0 5829 if test "x${prefix}" != 'xNONE'; then
meillo@0 5830 cat >>confdefs.h <<_ACEOF
meillo@0 5831 #define SBINDIR "${prefix}/sbin"
meillo@0 5832 _ACEOF
meillo@0 5833
meillo@0 5834 else
meillo@0 5835 cat >>confdefs.h <<_ACEOF
meillo@0 5836 #define SBINDIR "/usr/sbin"
meillo@0 5837 _ACEOF
meillo@0 5838
meillo@0 5839 fi
meillo@0 5840 fi
meillo@0 5841
meillo@0 5842 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 5843 cat >confcache <<\_ACEOF
meillo@0 5844 # This file is a shell script that caches the results of configure
meillo@0 5845 # tests run on this system so they can be shared between configure
meillo@0 5846 # scripts and configure runs, see configure's option --config-cache.
meillo@0 5847 # It is not useful on other systems. If it contains results you don't
meillo@0 5848 # want to keep, you may remove or edit it.
meillo@0 5849 #
meillo@0 5850 # config.status only pays attention to the cache file if you give it
meillo@0 5851 # the --recheck option to rerun configure.
meillo@0 5852 #
meillo@0 5853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
meillo@0 5854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
meillo@0 5855 # following values.
meillo@0 5856
meillo@0 5857 _ACEOF
meillo@0 5858
meillo@0 5859 # The following way of writing the cache mishandles newlines in values,
meillo@0 5860 # but we know of no workaround that is simple, portable, and efficient.
meillo@0 5861 # So, don't put newlines in cache variables' values.
meillo@0 5862 # Ultrix sh set writes to stderr and can't be redirected directly,
meillo@0 5863 # and sets the high bit in the cache file unless we assign to the vars.
meillo@0 5864 {
meillo@0 5865 (set) 2>&1 |
meillo@0 5866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
meillo@0 5867 *ac_space=\ *)
meillo@0 5868 # `set' does not quote correctly, so add quotes (double-quote
meillo@0 5869 # substitution turns \\\\ into \\, and sed turns \\ into \).
meillo@0 5870 sed -n \
meillo@0 5871 "s/'/'\\\\''/g;
meillo@0 5872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
meillo@0 5873 ;;
meillo@0 5874 *)
meillo@0 5875 # `set' quotes correctly as required by POSIX, so do not add quotes.
meillo@0 5876 sed -n \
meillo@0 5877 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
meillo@0 5878 ;;
meillo@0 5879 esac;
meillo@0 5880 } |
meillo@0 5881 sed '
meillo@0 5882 t clear
meillo@0 5883 : clear
meillo@0 5884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
meillo@0 5885 t end
meillo@0 5886 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
meillo@0 5887 : end' >>confcache
meillo@0 5888 if diff $cache_file confcache >/dev/null 2>&1; then :; else
meillo@0 5889 if test -w $cache_file; then
meillo@0 5890 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
meillo@0 5891 cat confcache >$cache_file
meillo@0 5892 else
meillo@0 5893 echo "not updating unwritable cache $cache_file"
meillo@0 5894 fi
meillo@0 5895 fi
meillo@0 5896 rm -f confcache
meillo@0 5897
meillo@0 5898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
meillo@0 5899 # Let make expand exec_prefix.
meillo@0 5900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
meillo@0 5901
meillo@0 5902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
meillo@0 5903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
meillo@0 5904 # trailing colons and then remove the whole line if VPATH becomes empty
meillo@0 5905 # (actually we leave an empty line to preserve line numbers).
meillo@0 5906 if test "x$srcdir" = x.; then
meillo@0 5907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
meillo@0 5908 s/:*\$(srcdir):*/:/;
meillo@0 5909 s/:*\${srcdir}:*/:/;
meillo@0 5910 s/:*@srcdir@:*/:/;
meillo@0 5911 s/^\([^=]*=[ ]*\):*/\1/;
meillo@0 5912 s/:*$//;
meillo@0 5913 s/^[^=]*=[ ]*$//;
meillo@0 5914 }'
meillo@0 5915 fi
meillo@0 5916
meillo@0 5917 DEFS=-DHAVE_CONFIG_H
meillo@0 5918
meillo@0 5919 ac_libobjs=
meillo@0 5920 ac_ltlibobjs=
meillo@0 5921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
meillo@0 5922 # 1. Remove the extension, and $U if already installed.
meillo@0 5923 ac_i=`echo "$ac_i" |
meillo@0 5924 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
meillo@0 5925 # 2. Add them.
meillo@0 5926 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
meillo@0 5927 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
meillo@0 5928 done
meillo@0 5929 LIBOBJS=$ac_libobjs
meillo@0 5930
meillo@0 5931 LTLIBOBJS=$ac_ltlibobjs
meillo@0 5932
meillo@0 5933
meillo@0 5934 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
meillo@0 5935 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
meillo@0 5936 Usually this means the macro was only invoked conditionally." >&5
meillo@0 5937 echo "$as_me: error: conditional \"AMDEP\" was never defined.
meillo@0 5938 Usually this means the macro was only invoked conditionally." >&2;}
meillo@0 5939 { (exit 1); exit 1; }; }
meillo@0 5940 fi
meillo@0 5941 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
meillo@0 5942 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
meillo@0 5943 Usually this means the macro was only invoked conditionally." >&5
meillo@0 5944 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
meillo@0 5945 Usually this means the macro was only invoked conditionally." >&2;}
meillo@0 5946 { (exit 1); exit 1; }; }
meillo@0 5947 fi
meillo@0 5948
meillo@0 5949 : ${CONFIG_STATUS=./config.status}
meillo@0 5950 ac_clean_files_save=$ac_clean_files
meillo@0 5951 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
meillo@0 5952 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
meillo@0 5953 echo "$as_me: creating $CONFIG_STATUS" >&6;}
meillo@0 5954 cat >$CONFIG_STATUS <<_ACEOF
meillo@0 5955 #! $SHELL
meillo@0 5956 # Generated by $as_me.
meillo@0 5957 # Run this file to recreate the current configuration.
meillo@0 5958 # Compiler output produced by configure, useful for debugging
meillo@0 5959 # configure, is in config.log if it exists.
meillo@0 5960
meillo@0 5961 debug=false
meillo@0 5962 ac_cs_recheck=false
meillo@0 5963 ac_cs_silent=false
meillo@0 5964 SHELL=\${CONFIG_SHELL-$SHELL}
meillo@0 5965 _ACEOF
meillo@0 5966
meillo@0 5967 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 5968 ## --------------------- ##
meillo@0 5969 ## M4sh Initialization. ##
meillo@0 5970 ## --------------------- ##
meillo@0 5971
meillo@0 5972 # Be Bourne compatible
meillo@0 5973 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
meillo@0 5974 emulate sh
meillo@0 5975 NULLCMD=:
meillo@0 5976 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
meillo@0 5977 # is contrary to our usage. Disable this feature.
meillo@0 5978 alias -g '${1+"$@"}'='"$@"'
meillo@0 5979 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
meillo@0 5980 set -o posix
meillo@0 5981 fi
meillo@0 5982 DUALCASE=1; export DUALCASE # for MKS sh
meillo@0 5983
meillo@0 5984 # Support unset when possible.
meillo@0 5985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
meillo@0 5986 as_unset=unset
meillo@0 5987 else
meillo@0 5988 as_unset=false
meillo@0 5989 fi
meillo@0 5990
meillo@0 5991
meillo@0 5992 # Work around bugs in pre-3.0 UWIN ksh.
meillo@0 5993 $as_unset ENV MAIL MAILPATH
meillo@0 5994 PS1='$ '
meillo@0 5995 PS2='> '
meillo@0 5996 PS4='+ '
meillo@0 5997
meillo@0 5998 # NLS nuisances.
meillo@0 5999 for as_var in \
meillo@0 6000 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
meillo@0 6001 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
meillo@0 6002 LC_TELEPHONE LC_TIME
meillo@0 6003 do
meillo@0 6004 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
meillo@0 6005 eval $as_var=C; export $as_var
meillo@0 6006 else
meillo@0 6007 $as_unset $as_var
meillo@0 6008 fi
meillo@0 6009 done
meillo@0 6010
meillo@0 6011 # Required to use basename.
meillo@0 6012 if expr a : '\(a\)' >/dev/null 2>&1; then
meillo@0 6013 as_expr=expr
meillo@0 6014 else
meillo@0 6015 as_expr=false
meillo@0 6016 fi
meillo@0 6017
meillo@0 6018 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
meillo@0 6019 as_basename=basename
meillo@0 6020 else
meillo@0 6021 as_basename=false
meillo@0 6022 fi
meillo@0 6023
meillo@0 6024
meillo@0 6025 # Name of the executable.
meillo@0 6026 as_me=`$as_basename "$0" ||
meillo@0 6027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
meillo@0 6028 X"$0" : 'X\(//\)$' \| \
meillo@0 6029 X"$0" : 'X\(/\)$' \| \
meillo@0 6030 . : '\(.\)' 2>/dev/null ||
meillo@0 6031 echo X/"$0" |
meillo@0 6032 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
meillo@0 6033 /^X\/\(\/\/\)$/{ s//\1/; q; }
meillo@0 6034 /^X\/\(\/\).*/{ s//\1/; q; }
meillo@0 6035 s/.*/./; q'`
meillo@0 6036
meillo@0 6037
meillo@0 6038 # PATH needs CR, and LINENO needs CR and PATH.
meillo@0 6039 # Avoid depending upon Character Ranges.
meillo@0 6040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
meillo@0 6041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
meillo@0 6042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
meillo@0 6043 as_cr_digits='0123456789'
meillo@0 6044 as_cr_alnum=$as_cr_Letters$as_cr_digits
meillo@0 6045
meillo@0 6046 # The user is always right.
meillo@0 6047 if test "${PATH_SEPARATOR+set}" != set; then
meillo@0 6048 echo "#! /bin/sh" >conf$$.sh
meillo@0 6049 echo "exit 0" >>conf$$.sh
meillo@0 6050 chmod +x conf$$.sh
meillo@0 6051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
meillo@0 6052 PATH_SEPARATOR=';'
meillo@0 6053 else
meillo@0 6054 PATH_SEPARATOR=:
meillo@0 6055 fi
meillo@0 6056 rm -f conf$$.sh
meillo@0 6057 fi
meillo@0 6058
meillo@0 6059
meillo@0 6060 as_lineno_1=$LINENO
meillo@0 6061 as_lineno_2=$LINENO
meillo@0 6062 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
meillo@0 6063 test "x$as_lineno_1" != "x$as_lineno_2" &&
meillo@0 6064 test "x$as_lineno_3" = "x$as_lineno_2" || {
meillo@0 6065 # Find who we are. Look in the path if we contain no path at all
meillo@0 6066 # relative or not.
meillo@0 6067 case $0 in
meillo@0 6068 *[\\/]* ) as_myself=$0 ;;
meillo@0 6069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 6070 for as_dir in $PATH
meillo@0 6071 do
meillo@0 6072 IFS=$as_save_IFS
meillo@0 6073 test -z "$as_dir" && as_dir=.
meillo@0 6074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
meillo@0 6075 done
meillo@0 6076
meillo@0 6077 ;;
meillo@0 6078 esac
meillo@0 6079 # We did not find ourselves, most probably we were run as `sh COMMAND'
meillo@0 6080 # in which case we are not to be found in the path.
meillo@0 6081 if test "x$as_myself" = x; then
meillo@0 6082 as_myself=$0
meillo@0 6083 fi
meillo@0 6084 if test ! -f "$as_myself"; then
meillo@0 6085 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
meillo@0 6086 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
meillo@0 6087 { (exit 1); exit 1; }; }
meillo@0 6088 fi
meillo@0 6089 case $CONFIG_SHELL in
meillo@0 6090 '')
meillo@0 6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
meillo@0 6092 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
meillo@0 6093 do
meillo@0 6094 IFS=$as_save_IFS
meillo@0 6095 test -z "$as_dir" && as_dir=.
meillo@0 6096 for as_base in sh bash ksh sh5; do
meillo@0 6097 case $as_dir in
meillo@0 6098 /*)
meillo@0 6099 if ("$as_dir/$as_base" -c '
meillo@0 6100 as_lineno_1=$LINENO
meillo@0 6101 as_lineno_2=$LINENO
meillo@0 6102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
meillo@0 6103 test "x$as_lineno_1" != "x$as_lineno_2" &&
meillo@0 6104 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
meillo@0 6105 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
meillo@0 6106 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
meillo@0 6107 CONFIG_SHELL=$as_dir/$as_base
meillo@0 6108 export CONFIG_SHELL
meillo@0 6109 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
meillo@0 6110 fi;;
meillo@0 6111 esac
meillo@0 6112 done
meillo@0 6113 done
meillo@0 6114 ;;
meillo@0 6115 esac
meillo@0 6116
meillo@0 6117 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
meillo@0 6118 # uniformly replaced by the line number. The first 'sed' inserts a
meillo@0 6119 # line-number line before each line; the second 'sed' does the real
meillo@0 6120 # work. The second script uses 'N' to pair each line-number line
meillo@0 6121 # with the numbered line, and appends trailing '-' during
meillo@0 6122 # substitution so that $LINENO is not a special case at line end.
meillo@0 6123 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
meillo@0 6124 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
meillo@0 6125 sed '=' <$as_myself |
meillo@0 6126 sed '
meillo@0 6127 N
meillo@0 6128 s,$,-,
meillo@0 6129 : loop
meillo@0 6130 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
meillo@0 6131 t loop
meillo@0 6132 s,-$,,
meillo@0 6133 s,^['$as_cr_digits']*\n,,
meillo@0 6134 ' >$as_me.lineno &&
meillo@0 6135 chmod +x $as_me.lineno ||
meillo@0 6136 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
meillo@0 6137 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
meillo@0 6138 { (exit 1); exit 1; }; }
meillo@0 6139
meillo@0 6140 # Don't try to exec as it changes $[0], causing all sort of problems
meillo@0 6141 # (the dirname of $[0] is not the place where we might find the
meillo@0 6142 # original and so on. Autoconf is especially sensible to this).
meillo@0 6143 . ./$as_me.lineno
meillo@0 6144 # Exit status is that of the last command.
meillo@0 6145 exit
meillo@0 6146 }
meillo@0 6147
meillo@0 6148
meillo@0 6149 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
meillo@0 6150 *c*,-n*) ECHO_N= ECHO_C='
meillo@0 6151 ' ECHO_T=' ' ;;
meillo@0 6152 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
meillo@0 6153 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
meillo@0 6154 esac
meillo@0 6155
meillo@0 6156 if expr a : '\(a\)' >/dev/null 2>&1; then
meillo@0 6157 as_expr=expr
meillo@0 6158 else
meillo@0 6159 as_expr=false
meillo@0 6160 fi
meillo@0 6161
meillo@0 6162 rm -f conf$$ conf$$.exe conf$$.file
meillo@0 6163 echo >conf$$.file
meillo@0 6164 if ln -s conf$$.file conf$$ 2>/dev/null; then
meillo@0 6165 # We could just check for DJGPP; but this test a) works b) is more generic
meillo@0 6166 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
meillo@0 6167 if test -f conf$$.exe; then
meillo@0 6168 # Don't use ln at all; we don't have any links
meillo@0 6169 as_ln_s='cp -p'
meillo@0 6170 else
meillo@0 6171 as_ln_s='ln -s'
meillo@0 6172 fi
meillo@0 6173 elif ln conf$$.file conf$$ 2>/dev/null; then
meillo@0 6174 as_ln_s=ln
meillo@0 6175 else
meillo@0 6176 as_ln_s='cp -p'
meillo@0 6177 fi
meillo@0 6178 rm -f conf$$ conf$$.exe conf$$.file
meillo@0 6179
meillo@0 6180 if mkdir -p . 2>/dev/null; then
meillo@0 6181 as_mkdir_p=:
meillo@0 6182 else
meillo@0 6183 test -d ./-p && rmdir ./-p
meillo@0 6184 as_mkdir_p=false
meillo@0 6185 fi
meillo@0 6186
meillo@0 6187 as_executable_p="test -f"
meillo@0 6188
meillo@0 6189 # Sed expression to map a string onto a valid CPP name.
meillo@0 6190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
meillo@0 6191
meillo@0 6192 # Sed expression to map a string onto a valid variable name.
meillo@0 6193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
meillo@0 6194
meillo@0 6195
meillo@0 6196 # IFS
meillo@0 6197 # We need space, tab and new line, in precisely that order.
meillo@0 6198 as_nl='
meillo@0 6199 '
meillo@0 6200 IFS=" $as_nl"
meillo@0 6201
meillo@0 6202 # CDPATH.
meillo@0 6203 $as_unset CDPATH
meillo@0 6204
meillo@0 6205 exec 6>&1
meillo@0 6206
meillo@0 6207 # Open the log real soon, to keep \$[0] and so on meaningful, and to
meillo@0 6208 # report actual input values of CONFIG_FILES etc. instead of their
meillo@0 6209 # values after options handling. Logging --version etc. is OK.
meillo@0 6210 exec 5>>config.log
meillo@0 6211 {
meillo@0 6212 echo
meillo@0 6213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
meillo@0 6214 ## Running $as_me. ##
meillo@0 6215 _ASBOX
meillo@0 6216 } >&5
meillo@0 6217 cat >&5 <<_CSEOF
meillo@0 6218
meillo@0 6219 This file was extended by masqmail $as_me 0.2.21, which was
meillo@0 6220 generated by GNU Autoconf 2.59. Invocation command line was
meillo@0 6221
meillo@0 6222 CONFIG_FILES = $CONFIG_FILES
meillo@0 6223 CONFIG_HEADERS = $CONFIG_HEADERS
meillo@0 6224 CONFIG_LINKS = $CONFIG_LINKS
meillo@0 6225 CONFIG_COMMANDS = $CONFIG_COMMANDS
meillo@0 6226 $ $0 $@
meillo@0 6227
meillo@0 6228 _CSEOF
meillo@0 6229 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
meillo@0 6230 echo >&5
meillo@0 6231 _ACEOF
meillo@0 6232
meillo@0 6233 # Files that config.status was made for.
meillo@0 6234 if test -n "$ac_config_files"; then
meillo@0 6235 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
meillo@0 6236 fi
meillo@0 6237
meillo@0 6238 if test -n "$ac_config_headers"; then
meillo@0 6239 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
meillo@0 6240 fi
meillo@0 6241
meillo@0 6242 if test -n "$ac_config_links"; then
meillo@0 6243 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
meillo@0 6244 fi
meillo@0 6245
meillo@0 6246 if test -n "$ac_config_commands"; then
meillo@0 6247 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
meillo@0 6248 fi
meillo@0 6249
meillo@0 6250 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6251
meillo@0 6252 ac_cs_usage="\
meillo@0 6253 \`$as_me' instantiates files from templates according to the
meillo@0 6254 current configuration.
meillo@0 6255
meillo@0 6256 Usage: $0 [OPTIONS] [FILE]...
meillo@0 6257
meillo@0 6258 -h, --help print this help, then exit
meillo@0 6259 -V, --version print version number, then exit
meillo@0 6260 -q, --quiet do not print progress messages
meillo@0 6261 -d, --debug don't remove temporary files
meillo@0 6262 --recheck update $as_me by reconfiguring in the same conditions
meillo@0 6263 --file=FILE[:TEMPLATE]
meillo@0 6264 instantiate the configuration file FILE
meillo@0 6265 --header=FILE[:TEMPLATE]
meillo@0 6266 instantiate the configuration header FILE
meillo@0 6267
meillo@0 6268 Configuration files:
meillo@0 6269 $config_files
meillo@0 6270
meillo@0 6271 Configuration headers:
meillo@0 6272 $config_headers
meillo@0 6273
meillo@0 6274 Configuration commands:
meillo@0 6275 $config_commands
meillo@0 6276
meillo@0 6277 Report bugs to <bug-autoconf@gnu.org>."
meillo@0 6278 _ACEOF
meillo@0 6279
meillo@0 6280 cat >>$CONFIG_STATUS <<_ACEOF
meillo@0 6281 ac_cs_version="\\
meillo@0 6282 masqmail config.status 0.2.21
meillo@0 6283 configured by $0, generated by GNU Autoconf 2.59,
meillo@0 6284 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
meillo@0 6285
meillo@0 6286 Copyright (C) 2003 Free Software Foundation, Inc.
meillo@0 6287 This config.status script is free software; the Free Software Foundation
meillo@0 6288 gives unlimited permission to copy, distribute and modify it."
meillo@0 6289 srcdir=$srcdir
meillo@0 6290 INSTALL="$INSTALL"
meillo@0 6291 _ACEOF
meillo@0 6292
meillo@0 6293 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6294 # If no file are specified by the user, then we need to provide default
meillo@0 6295 # value. By we need to know if files were specified by the user.
meillo@0 6296 ac_need_defaults=:
meillo@0 6297 while test $# != 0
meillo@0 6298 do
meillo@0 6299 case $1 in
meillo@0 6300 --*=*)
meillo@0 6301 ac_option=`expr "x$1" : 'x\([^=]*\)='`
meillo@0 6302 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
meillo@0 6303 ac_shift=:
meillo@0 6304 ;;
meillo@0 6305 -*)
meillo@0 6306 ac_option=$1
meillo@0 6307 ac_optarg=$2
meillo@0 6308 ac_shift=shift
meillo@0 6309 ;;
meillo@0 6310 *) # This is not an option, so the user has probably given explicit
meillo@0 6311 # arguments.
meillo@0 6312 ac_option=$1
meillo@0 6313 ac_need_defaults=false;;
meillo@0 6314 esac
meillo@0 6315
meillo@0 6316 case $ac_option in
meillo@0 6317 # Handling of the options.
meillo@0 6318 _ACEOF
meillo@0 6319 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
meillo@0 6321 ac_cs_recheck=: ;;
meillo@0 6322 --version | --vers* | -V )
meillo@0 6323 echo "$ac_cs_version"; exit 0 ;;
meillo@0 6324 --he | --h)
meillo@0 6325 # Conflict between --help and --header
meillo@0 6326 { { echo "$as_me:$LINENO: error: ambiguous option: $1
meillo@0 6327 Try \`$0 --help' for more information." >&5
meillo@0 6328 echo "$as_me: error: ambiguous option: $1
meillo@0 6329 Try \`$0 --help' for more information." >&2;}
meillo@0 6330 { (exit 1); exit 1; }; };;
meillo@0 6331 --help | --hel | -h )
meillo@0 6332 echo "$ac_cs_usage"; exit 0 ;;
meillo@0 6333 --debug | --d* | -d )
meillo@0 6334 debug=: ;;
meillo@0 6335 --file | --fil | --fi | --f )
meillo@0 6336 $ac_shift
meillo@0 6337 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
meillo@0 6338 ac_need_defaults=false;;
meillo@0 6339 --header | --heade | --head | --hea )
meillo@0 6340 $ac_shift
meillo@0 6341 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
meillo@0 6342 ac_need_defaults=false;;
meillo@0 6343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
meillo@0 6344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
meillo@0 6345 ac_cs_silent=: ;;
meillo@0 6346
meillo@0 6347 # This is an error.
meillo@0 6348 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
meillo@0 6349 Try \`$0 --help' for more information." >&5
meillo@0 6350 echo "$as_me: error: unrecognized option: $1
meillo@0 6351 Try \`$0 --help' for more information." >&2;}
meillo@0 6352 { (exit 1); exit 1; }; } ;;
meillo@0 6353
meillo@0 6354 *) ac_config_targets="$ac_config_targets $1" ;;
meillo@0 6355
meillo@0 6356 esac
meillo@0 6357 shift
meillo@0 6358 done
meillo@0 6359
meillo@0 6360 ac_configure_extra_args=
meillo@0 6361
meillo@0 6362 if $ac_cs_silent; then
meillo@0 6363 exec 6>/dev/null
meillo@0 6364 ac_configure_extra_args="$ac_configure_extra_args --silent"
meillo@0 6365 fi
meillo@0 6366
meillo@0 6367 _ACEOF
meillo@0 6368 cat >>$CONFIG_STATUS <<_ACEOF
meillo@0 6369 if \$ac_cs_recheck; then
meillo@0 6370 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
meillo@0 6371 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
meillo@0 6372 fi
meillo@0 6373
meillo@0 6374 _ACEOF
meillo@0 6375
meillo@0 6376 cat >>$CONFIG_STATUS <<_ACEOF
meillo@0 6377 #
meillo@0 6378 # INIT-COMMANDS section.
meillo@0 6379 #
meillo@0 6380
meillo@0 6381 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
meillo@0 6382
meillo@0 6383 _ACEOF
meillo@0 6384
meillo@0 6385
meillo@0 6386
meillo@0 6387 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6388 for ac_config_target in $ac_config_targets
meillo@0 6389 do
meillo@0 6390 case "$ac_config_target" in
meillo@0 6391 # Handling of arguments.
meillo@0 6392 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
meillo@0 6393 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
meillo@0 6394 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
meillo@0 6395 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
meillo@0 6396 "docs/xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/xml/Makefile" ;;
meillo@0 6397 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
meillo@0 6398 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
meillo@0 6399 "src/base64/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base64/Makefile" ;;
meillo@0 6400 "src/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/md5/Makefile" ;;
meillo@0 6401 "src/libident/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libident/Makefile" ;;
meillo@0 6402 "suse/masqmail.spec" ) CONFIG_FILES="$CONFIG_FILES suse/masqmail.spec" ;;
meillo@0 6403 "redhat/masqmail.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/masqmail.spec" ;;
meillo@0 6404 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
meillo@0 6405 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
meillo@0 6406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
meillo@0 6407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
meillo@0 6408 { (exit 1); exit 1; }; };;
meillo@0 6409 esac
meillo@0 6410 done
meillo@0 6411
meillo@0 6412 # If the user did not use the arguments to specify the items to instantiate,
meillo@0 6413 # then the envvar interface is used. Set only those that are not.
meillo@0 6414 # We use the long form for the default assignment because of an extremely
meillo@0 6415 # bizarre bug on SunOS 4.1.3.
meillo@0 6416 if $ac_need_defaults; then
meillo@0 6417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
meillo@0 6418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
meillo@0 6419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
meillo@0 6420 fi
meillo@0 6421
meillo@0 6422 # Have a temporary directory for convenience. Make it in the build tree
meillo@0 6423 # simply because there is no reason to put it here, and in addition,
meillo@0 6424 # creating and moving files from /tmp can sometimes cause problems.
meillo@0 6425 # Create a temporary directory, and hook for its removal unless debugging.
meillo@0 6426 $debug ||
meillo@0 6427 {
meillo@0 6428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
meillo@0 6429 trap '{ (exit 1); exit 1; }' 1 2 13 15
meillo@0 6430 }
meillo@0 6431
meillo@0 6432 # Create a (secure) tmp directory for tmp files.
meillo@0 6433
meillo@0 6434 {
meillo@0 6435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
meillo@0 6436 test -n "$tmp" && test -d "$tmp"
meillo@0 6437 } ||
meillo@0 6438 {
meillo@0 6439 tmp=./confstat$$-$RANDOM
meillo@0 6440 (umask 077 && mkdir $tmp)
meillo@0 6441 } ||
meillo@0 6442 {
meillo@0 6443 echo "$me: cannot create a temporary directory in ." >&2
meillo@0 6444 { (exit 1); exit 1; }
meillo@0 6445 }
meillo@0 6446
meillo@0 6447 _ACEOF
meillo@0 6448
meillo@0 6449 cat >>$CONFIG_STATUS <<_ACEOF
meillo@0 6450
meillo@0 6451 #
meillo@0 6452 # CONFIG_FILES section.
meillo@0 6453 #
meillo@0 6454
meillo@0 6455 # No need to generate the scripts if there are no CONFIG_FILES.
meillo@0 6456 # This happens for instance when ./config.status config.h
meillo@0 6457 if test -n "\$CONFIG_FILES"; then
meillo@0 6458 # Protect against being on the right side of a sed subst in config.status.
meillo@0 6459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
meillo@0 6460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
meillo@0 6461 s,@SHELL@,$SHELL,;t t
meillo@0 6462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
meillo@0 6463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
meillo@0 6464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
meillo@0 6465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
meillo@0 6466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
meillo@0 6467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
meillo@0 6468 s,@exec_prefix@,$exec_prefix,;t t
meillo@0 6469 s,@prefix@,$prefix,;t t
meillo@0 6470 s,@program_transform_name@,$program_transform_name,;t t
meillo@0 6471 s,@bindir@,$bindir,;t t
meillo@0 6472 s,@sbindir@,$sbindir,;t t
meillo@0 6473 s,@libexecdir@,$libexecdir,;t t
meillo@0 6474 s,@datadir@,$datadir,;t t
meillo@0 6475 s,@sysconfdir@,$sysconfdir,;t t
meillo@0 6476 s,@sharedstatedir@,$sharedstatedir,;t t
meillo@0 6477 s,@localstatedir@,$localstatedir,;t t
meillo@0 6478 s,@libdir@,$libdir,;t t
meillo@0 6479 s,@includedir@,$includedir,;t t
meillo@0 6480 s,@oldincludedir@,$oldincludedir,;t t
meillo@0 6481 s,@infodir@,$infodir,;t t
meillo@0 6482 s,@mandir@,$mandir,;t t
meillo@0 6483 s,@build_alias@,$build_alias,;t t
meillo@0 6484 s,@host_alias@,$host_alias,;t t
meillo@0 6485 s,@target_alias@,$target_alias,;t t
meillo@0 6486 s,@DEFS@,$DEFS,;t t
meillo@0 6487 s,@ECHO_C@,$ECHO_C,;t t
meillo@0 6488 s,@ECHO_N@,$ECHO_N,;t t
meillo@0 6489 s,@ECHO_T@,$ECHO_T,;t t
meillo@0 6490 s,@LIBS@,$LIBS,;t t
meillo@0 6491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
meillo@0 6492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
meillo@0 6493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
meillo@0 6494 s,@CYGPATH_W@,$CYGPATH_W,;t t
meillo@0 6495 s,@PACKAGE@,$PACKAGE,;t t
meillo@0 6496 s,@VERSION@,$VERSION,;t t
meillo@0 6497 s,@ACLOCAL@,$ACLOCAL,;t t
meillo@0 6498 s,@AUTOCONF@,$AUTOCONF,;t t
meillo@0 6499 s,@AUTOMAKE@,$AUTOMAKE,;t t
meillo@0 6500 s,@AUTOHEADER@,$AUTOHEADER,;t t
meillo@0 6501 s,@MAKEINFO@,$MAKEINFO,;t t
meillo@0 6502 s,@AMTAR@,$AMTAR,;t t
meillo@0 6503 s,@install_sh@,$install_sh,;t t
meillo@0 6504 s,@STRIP@,$STRIP,;t t
meillo@0 6505 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
meillo@0 6506 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
meillo@0 6507 s,@AWK@,$AWK,;t t
meillo@0 6508 s,@SET_MAKE@,$SET_MAKE,;t t
meillo@0 6509 s,@am__leading_dot@,$am__leading_dot,;t t
meillo@0 6510 s,@CC@,$CC,;t t
meillo@0 6511 s,@CFLAGS@,$CFLAGS,;t t
meillo@0 6512 s,@LDFLAGS@,$LDFLAGS,;t t
meillo@0 6513 s,@CPPFLAGS@,$CPPFLAGS,;t t
meillo@0 6514 s,@ac_ct_CC@,$ac_ct_CC,;t t
meillo@0 6515 s,@EXEEXT@,$EXEEXT,;t t
meillo@0 6516 s,@OBJEXT@,$OBJEXT,;t t
meillo@0 6517 s,@DEPDIR@,$DEPDIR,;t t
meillo@0 6518 s,@am__include@,$am__include,;t t
meillo@0 6519 s,@am__quote@,$am__quote,;t t
meillo@0 6520 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
meillo@0 6521 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
meillo@0 6522 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
meillo@0 6523 s,@CCDEPMODE@,$CCDEPMODE,;t t
meillo@0 6524 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
meillo@0 6525 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
meillo@0 6526 s,@CPP@,$CPP,;t t
meillo@0 6527 s,@EGREP@,$EGREP,;t t
meillo@0 6528 s,@RANLIB@,$RANLIB,;t t
meillo@0 6529 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
meillo@0 6530 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
meillo@0 6531 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
meillo@0 6532 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
meillo@0 6533 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
meillo@0 6534 s,@RESOLV_LIBS@,$RESOLV_LIBS,;t t
meillo@0 6535 s,@with_user@,$with_user,;t t
meillo@0 6536 s,@with_group@,$with_group,;t t
meillo@0 6537 s,@BASE64_LIBS@,$BASE64_LIBS,;t t
meillo@0 6538 s,@MD5_LIBS@,$MD5_LIBS,;t t
meillo@0 6539 s,@has_ident@,$has_ident,;t t
meillo@0 6540 s,@IDENT_LIBS@,$IDENT_LIBS,;t t
meillo@0 6541 s,@LOCKFILE_LIBS@,$LOCKFILE_LIBS,;t t
meillo@0 6542 s,@USE_LIBLOCKFILE@,$USE_LIBLOCKFILE,;t t
meillo@0 6543 s,@with_logdir@,$with_logdir,;t t
meillo@0 6544 s,@with_spooldir@,$with_spooldir,;t t
meillo@0 6545 s,@with_confdir@,$with_confdir,;t t
meillo@0 6546 s,@LIBOBJS@,$LIBOBJS,;t t
meillo@0 6547 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
meillo@0 6548 CEOF
meillo@0 6549
meillo@0 6550 _ACEOF
meillo@0 6551
meillo@0 6552 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6553 # Split the substitutions into bite-sized pieces for seds with
meillo@0 6554 # small command number limits, like on Digital OSF/1 and HP-UX.
meillo@0 6555 ac_max_sed_lines=48
meillo@0 6556 ac_sed_frag=1 # Number of current file.
meillo@0 6557 ac_beg=1 # First line for current file.
meillo@0 6558 ac_end=$ac_max_sed_lines # Line after last line for current file.
meillo@0 6559 ac_more_lines=:
meillo@0 6560 ac_sed_cmds=
meillo@0 6561 while $ac_more_lines; do
meillo@0 6562 if test $ac_beg -gt 1; then
meillo@0 6563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
meillo@0 6564 else
meillo@0 6565 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
meillo@0 6566 fi
meillo@0 6567 if test ! -s $tmp/subs.frag; then
meillo@0 6568 ac_more_lines=false
meillo@0 6569 else
meillo@0 6570 # The purpose of the label and of the branching condition is to
meillo@0 6571 # speed up the sed processing (if there are no `@' at all, there
meillo@0 6572 # is no need to browse any of the substitutions).
meillo@0 6573 # These are the two extra sed commands mentioned above.
meillo@0 6574 (echo ':t
meillo@0 6575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
meillo@0 6576 if test -z "$ac_sed_cmds"; then
meillo@0 6577 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
meillo@0 6578 else
meillo@0 6579 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
meillo@0 6580 fi
meillo@0 6581 ac_sed_frag=`expr $ac_sed_frag + 1`
meillo@0 6582 ac_beg=$ac_end
meillo@0 6583 ac_end=`expr $ac_end + $ac_max_sed_lines`
meillo@0 6584 fi
meillo@0 6585 done
meillo@0 6586 if test -z "$ac_sed_cmds"; then
meillo@0 6587 ac_sed_cmds=cat
meillo@0 6588 fi
meillo@0 6589 fi # test -n "$CONFIG_FILES"
meillo@0 6590
meillo@0 6591 _ACEOF
meillo@0 6592 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6593 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
meillo@0 6594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
meillo@0 6595 case $ac_file in
meillo@0 6596 - | *:- | *:-:* ) # input from stdin
meillo@0 6597 cat >$tmp/stdin
meillo@0 6598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
meillo@0 6599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
meillo@0 6600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
meillo@0 6601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
meillo@0 6602 * ) ac_file_in=$ac_file.in ;;
meillo@0 6603 esac
meillo@0 6604
meillo@0 6605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
meillo@0 6606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
meillo@0 6607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 6608 X"$ac_file" : 'X\(//\)[^/]' \| \
meillo@0 6609 X"$ac_file" : 'X\(//\)$' \| \
meillo@0 6610 X"$ac_file" : 'X\(/\)' \| \
meillo@0 6611 . : '\(.\)' 2>/dev/null ||
meillo@0 6612 echo X"$ac_file" |
meillo@0 6613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 6614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 6615 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 6616 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 6617 s/.*/./; q'`
meillo@0 6618 { if $as_mkdir_p; then
meillo@0 6619 mkdir -p "$ac_dir"
meillo@0 6620 else
meillo@0 6621 as_dir="$ac_dir"
meillo@0 6622 as_dirs=
meillo@0 6623 while test ! -d "$as_dir"; do
meillo@0 6624 as_dirs="$as_dir $as_dirs"
meillo@0 6625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
meillo@0 6626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 6627 X"$as_dir" : 'X\(//\)[^/]' \| \
meillo@0 6628 X"$as_dir" : 'X\(//\)$' \| \
meillo@0 6629 X"$as_dir" : 'X\(/\)' \| \
meillo@0 6630 . : '\(.\)' 2>/dev/null ||
meillo@0 6631 echo X"$as_dir" |
meillo@0 6632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 6633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 6634 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 6635 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 6636 s/.*/./; q'`
meillo@0 6637 done
meillo@0 6638 test ! -n "$as_dirs" || mkdir $as_dirs
meillo@0 6639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
meillo@0 6640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
meillo@0 6641 { (exit 1); exit 1; }; }; }
meillo@0 6642
meillo@0 6643 ac_builddir=.
meillo@0 6644
meillo@0 6645 if test "$ac_dir" != .; then
meillo@0 6646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
meillo@0 6647 # A "../" for each directory in $ac_dir_suffix.
meillo@0 6648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
meillo@0 6649 else
meillo@0 6650 ac_dir_suffix= ac_top_builddir=
meillo@0 6651 fi
meillo@0 6652
meillo@0 6653 case $srcdir in
meillo@0 6654 .) # No --srcdir option. We are building in place.
meillo@0 6655 ac_srcdir=.
meillo@0 6656 if test -z "$ac_top_builddir"; then
meillo@0 6657 ac_top_srcdir=.
meillo@0 6658 else
meillo@0 6659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
meillo@0 6660 fi ;;
meillo@0 6661 [\\/]* | ?:[\\/]* ) # Absolute path.
meillo@0 6662 ac_srcdir=$srcdir$ac_dir_suffix;
meillo@0 6663 ac_top_srcdir=$srcdir ;;
meillo@0 6664 *) # Relative path.
meillo@0 6665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
meillo@0 6666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
meillo@0 6667 esac
meillo@0 6668
meillo@0 6669 # Do not use `cd foo && pwd` to compute absolute paths, because
meillo@0 6670 # the directories may not exist.
meillo@0 6671 case `pwd` in
meillo@0 6672 .) ac_abs_builddir="$ac_dir";;
meillo@0 6673 *)
meillo@0 6674 case "$ac_dir" in
meillo@0 6675 .) ac_abs_builddir=`pwd`;;
meillo@0 6676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
meillo@0 6677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
meillo@0 6678 esac;;
meillo@0 6679 esac
meillo@0 6680 case $ac_abs_builddir in
meillo@0 6681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 6682 *)
meillo@0 6683 case ${ac_top_builddir}. in
meillo@0 6684 .) ac_abs_top_builddir=$ac_abs_builddir;;
meillo@0 6685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 6686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
meillo@0 6687 esac;;
meillo@0 6688 esac
meillo@0 6689 case $ac_abs_builddir in
meillo@0 6690 .) ac_abs_srcdir=$ac_srcdir;;
meillo@0 6691 *)
meillo@0 6692 case $ac_srcdir in
meillo@0 6693 .) ac_abs_srcdir=$ac_abs_builddir;;
meillo@0 6694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
meillo@0 6695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
meillo@0 6696 esac;;
meillo@0 6697 esac
meillo@0 6698 case $ac_abs_builddir in
meillo@0 6699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 6700 *)
meillo@0 6701 case $ac_top_srcdir in
meillo@0 6702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
meillo@0 6703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 6704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
meillo@0 6705 esac;;
meillo@0 6706 esac
meillo@0 6707
meillo@0 6708
meillo@0 6709 case $INSTALL in
meillo@0 6710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
meillo@0 6711 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
meillo@0 6712 esac
meillo@0 6713
meillo@0 6714 # Let's still pretend it is `configure' which instantiates (i.e., don't
meillo@0 6715 # use $as_me), people would be surprised to read:
meillo@0 6716 # /* config.h. Generated by config.status. */
meillo@0 6717 if test x"$ac_file" = x-; then
meillo@0 6718 configure_input=
meillo@0 6719 else
meillo@0 6720 configure_input="$ac_file. "
meillo@0 6721 fi
meillo@0 6722 configure_input=$configure_input"Generated from `echo $ac_file_in |
meillo@0 6723 sed 's,.*/,,'` by configure."
meillo@0 6724
meillo@0 6725 # First look for the input files in the build tree, otherwise in the
meillo@0 6726 # src tree.
meillo@0 6727 ac_file_inputs=`IFS=:
meillo@0 6728 for f in $ac_file_in; do
meillo@0 6729 case $f in
meillo@0 6730 -) echo $tmp/stdin ;;
meillo@0 6731 [\\/$]*)
meillo@0 6732 # Absolute (can't be DOS-style, as IFS=:)
meillo@0 6733 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
meillo@0 6734 echo "$as_me: error: cannot find input file: $f" >&2;}
meillo@0 6735 { (exit 1); exit 1; }; }
meillo@0 6736 echo "$f";;
meillo@0 6737 *) # Relative
meillo@0 6738 if test -f "$f"; then
meillo@0 6739 # Build tree
meillo@0 6740 echo "$f"
meillo@0 6741 elif test -f "$srcdir/$f"; then
meillo@0 6742 # Source tree
meillo@0 6743 echo "$srcdir/$f"
meillo@0 6744 else
meillo@0 6745 # /dev/null tree
meillo@0 6746 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
meillo@0 6747 echo "$as_me: error: cannot find input file: $f" >&2;}
meillo@0 6748 { (exit 1); exit 1; }; }
meillo@0 6749 fi;;
meillo@0 6750 esac
meillo@0 6751 done` || { (exit 1); exit 1; }
meillo@0 6752
meillo@0 6753 if test x"$ac_file" != x-; then
meillo@0 6754 { echo "$as_me:$LINENO: creating $ac_file" >&5
meillo@0 6755 echo "$as_me: creating $ac_file" >&6;}
meillo@0 6756 rm -f "$ac_file"
meillo@0 6757 fi
meillo@0 6758 _ACEOF
meillo@0 6759 cat >>$CONFIG_STATUS <<_ACEOF
meillo@0 6760 sed "$ac_vpsub
meillo@0 6761 $extrasub
meillo@0 6762 _ACEOF
meillo@0 6763 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6764 :t
meillo@0 6765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
meillo@0 6766 s,@configure_input@,$configure_input,;t t
meillo@0 6767 s,@srcdir@,$ac_srcdir,;t t
meillo@0 6768 s,@abs_srcdir@,$ac_abs_srcdir,;t t
meillo@0 6769 s,@top_srcdir@,$ac_top_srcdir,;t t
meillo@0 6770 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
meillo@0 6771 s,@builddir@,$ac_builddir,;t t
meillo@0 6772 s,@abs_builddir@,$ac_abs_builddir,;t t
meillo@0 6773 s,@top_builddir@,$ac_top_builddir,;t t
meillo@0 6774 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
meillo@0 6775 s,@INSTALL@,$ac_INSTALL,;t t
meillo@0 6776 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
meillo@0 6777 rm -f $tmp/stdin
meillo@0 6778 if test x"$ac_file" != x-; then
meillo@0 6779 mv $tmp/out $ac_file
meillo@0 6780 else
meillo@0 6781 cat $tmp/out
meillo@0 6782 rm -f $tmp/out
meillo@0 6783 fi
meillo@0 6784
meillo@0 6785 done
meillo@0 6786 _ACEOF
meillo@0 6787 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6788
meillo@0 6789 #
meillo@0 6790 # CONFIG_HEADER section.
meillo@0 6791 #
meillo@0 6792
meillo@0 6793 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
meillo@0 6794 # NAME is the cpp macro being defined and VALUE is the value it is being given.
meillo@0 6795 #
meillo@0 6796 # ac_d sets the value in "#define NAME VALUE" lines.
meillo@0 6797 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
meillo@0 6798 ac_dB='[ ].*$,\1#\2'
meillo@0 6799 ac_dC=' '
meillo@0 6800 ac_dD=',;t'
meillo@0 6801 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
meillo@0 6802 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
meillo@0 6803 ac_uB='$,\1#\2define\3'
meillo@0 6804 ac_uC=' '
meillo@0 6805 ac_uD=',;t'
meillo@0 6806
meillo@0 6807 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
meillo@0 6808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
meillo@0 6809 case $ac_file in
meillo@0 6810 - | *:- | *:-:* ) # input from stdin
meillo@0 6811 cat >$tmp/stdin
meillo@0 6812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
meillo@0 6813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
meillo@0 6814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
meillo@0 6815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
meillo@0 6816 * ) ac_file_in=$ac_file.in ;;
meillo@0 6817 esac
meillo@0 6818
meillo@0 6819 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
meillo@0 6820 echo "$as_me: creating $ac_file" >&6;}
meillo@0 6821
meillo@0 6822 # First look for the input files in the build tree, otherwise in the
meillo@0 6823 # src tree.
meillo@0 6824 ac_file_inputs=`IFS=:
meillo@0 6825 for f in $ac_file_in; do
meillo@0 6826 case $f in
meillo@0 6827 -) echo $tmp/stdin ;;
meillo@0 6828 [\\/$]*)
meillo@0 6829 # Absolute (can't be DOS-style, as IFS=:)
meillo@0 6830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
meillo@0 6831 echo "$as_me: error: cannot find input file: $f" >&2;}
meillo@0 6832 { (exit 1); exit 1; }; }
meillo@0 6833 # Do quote $f, to prevent DOS paths from being IFS'd.
meillo@0 6834 echo "$f";;
meillo@0 6835 *) # Relative
meillo@0 6836 if test -f "$f"; then
meillo@0 6837 # Build tree
meillo@0 6838 echo "$f"
meillo@0 6839 elif test -f "$srcdir/$f"; then
meillo@0 6840 # Source tree
meillo@0 6841 echo "$srcdir/$f"
meillo@0 6842 else
meillo@0 6843 # /dev/null tree
meillo@0 6844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
meillo@0 6845 echo "$as_me: error: cannot find input file: $f" >&2;}
meillo@0 6846 { (exit 1); exit 1; }; }
meillo@0 6847 fi;;
meillo@0 6848 esac
meillo@0 6849 done` || { (exit 1); exit 1; }
meillo@0 6850 # Remove the trailing spaces.
meillo@0 6851 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
meillo@0 6852
meillo@0 6853 _ACEOF
meillo@0 6854
meillo@0 6855 # Transform confdefs.h into two sed scripts, `conftest.defines' and
meillo@0 6856 # `conftest.undefs', that substitutes the proper values into
meillo@0 6857 # config.h.in to produce config.h. The first handles `#define'
meillo@0 6858 # templates, and the second `#undef' templates.
meillo@0 6859 # And first: Protect against being on the right side of a sed subst in
meillo@0 6860 # config.status. Protect against being in an unquoted here document
meillo@0 6861 # in config.status.
meillo@0 6862 rm -f conftest.defines conftest.undefs
meillo@0 6863 # Using a here document instead of a string reduces the quoting nightmare.
meillo@0 6864 # Putting comments in sed scripts is not portable.
meillo@0 6865 #
meillo@0 6866 # `end' is used to avoid that the second main sed command (meant for
meillo@0 6867 # 0-ary CPP macros) applies to n-ary macro definitions.
meillo@0 6868 # See the Autoconf documentation for `clear'.
meillo@0 6869 cat >confdef2sed.sed <<\_ACEOF
meillo@0 6870 s/[\\&,]/\\&/g
meillo@0 6871 s,[\\$`],\\&,g
meillo@0 6872 t clear
meillo@0 6873 : clear
meillo@0 6874 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
meillo@0 6875 t end
meillo@0 6876 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
meillo@0 6877 : end
meillo@0 6878 _ACEOF
meillo@0 6879 # If some macros were called several times there might be several times
meillo@0 6880 # the same #defines, which is useless. Nevertheless, we may not want to
meillo@0 6881 # sort them, since we want the *last* AC-DEFINE to be honored.
meillo@0 6882 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
meillo@0 6883 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
meillo@0 6884 rm -f confdef2sed.sed
meillo@0 6885
meillo@0 6886 # This sed command replaces #undef with comments. This is necessary, for
meillo@0 6887 # example, in the case of _POSIX_SOURCE, which is predefined and required
meillo@0 6888 # on some systems where configure will not decide to define it.
meillo@0 6889 cat >>conftest.undefs <<\_ACEOF
meillo@0 6890 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
meillo@0 6891 _ACEOF
meillo@0 6892
meillo@0 6893 # Break up conftest.defines because some shells have a limit on the size
meillo@0 6894 # of here documents, and old seds have small limits too (100 cmds).
meillo@0 6895 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
meillo@0 6896 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
meillo@0 6897 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
meillo@0 6898 echo ' :' >>$CONFIG_STATUS
meillo@0 6899 rm -f conftest.tail
meillo@0 6900 while grep . conftest.defines >/dev/null
meillo@0 6901 do
meillo@0 6902 # Write a limited-size here document to $tmp/defines.sed.
meillo@0 6903 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
meillo@0 6904 # Speed up: don't consider the non `#define' lines.
meillo@0 6905 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
meillo@0 6906 # Work around the forget-to-reset-the-flag bug.
meillo@0 6907 echo 't clr' >>$CONFIG_STATUS
meillo@0 6908 echo ': clr' >>$CONFIG_STATUS
meillo@0 6909 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
meillo@0 6910 echo 'CEOF
meillo@0 6911 sed -f $tmp/defines.sed $tmp/in >$tmp/out
meillo@0 6912 rm -f $tmp/in
meillo@0 6913 mv $tmp/out $tmp/in
meillo@0 6914 ' >>$CONFIG_STATUS
meillo@0 6915 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
meillo@0 6916 rm -f conftest.defines
meillo@0 6917 mv conftest.tail conftest.defines
meillo@0 6918 done
meillo@0 6919 rm -f conftest.defines
meillo@0 6920 echo ' fi # grep' >>$CONFIG_STATUS
meillo@0 6921 echo >>$CONFIG_STATUS
meillo@0 6922
meillo@0 6923 # Break up conftest.undefs because some shells have a limit on the size
meillo@0 6924 # of here documents, and old seds have small limits too (100 cmds).
meillo@0 6925 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
meillo@0 6926 rm -f conftest.tail
meillo@0 6927 while grep . conftest.undefs >/dev/null
meillo@0 6928 do
meillo@0 6929 # Write a limited-size here document to $tmp/undefs.sed.
meillo@0 6930 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
meillo@0 6931 # Speed up: don't consider the non `#undef'
meillo@0 6932 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
meillo@0 6933 # Work around the forget-to-reset-the-flag bug.
meillo@0 6934 echo 't clr' >>$CONFIG_STATUS
meillo@0 6935 echo ': clr' >>$CONFIG_STATUS
meillo@0 6936 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
meillo@0 6937 echo 'CEOF
meillo@0 6938 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
meillo@0 6939 rm -f $tmp/in
meillo@0 6940 mv $tmp/out $tmp/in
meillo@0 6941 ' >>$CONFIG_STATUS
meillo@0 6942 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
meillo@0 6943 rm -f conftest.undefs
meillo@0 6944 mv conftest.tail conftest.undefs
meillo@0 6945 done
meillo@0 6946 rm -f conftest.undefs
meillo@0 6947
meillo@0 6948 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 6949 # Let's still pretend it is `configure' which instantiates (i.e., don't
meillo@0 6950 # use $as_me), people would be surprised to read:
meillo@0 6951 # /* config.h. Generated by config.status. */
meillo@0 6952 if test x"$ac_file" = x-; then
meillo@0 6953 echo "/* Generated by configure. */" >$tmp/config.h
meillo@0 6954 else
meillo@0 6955 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
meillo@0 6956 fi
meillo@0 6957 cat $tmp/in >>$tmp/config.h
meillo@0 6958 rm -f $tmp/in
meillo@0 6959 if test x"$ac_file" != x-; then
meillo@0 6960 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
meillo@0 6961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
meillo@0 6962 echo "$as_me: $ac_file is unchanged" >&6;}
meillo@0 6963 else
meillo@0 6964 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
meillo@0 6965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 6966 X"$ac_file" : 'X\(//\)[^/]' \| \
meillo@0 6967 X"$ac_file" : 'X\(//\)$' \| \
meillo@0 6968 X"$ac_file" : 'X\(/\)' \| \
meillo@0 6969 . : '\(.\)' 2>/dev/null ||
meillo@0 6970 echo X"$ac_file" |
meillo@0 6971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 6972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 6973 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 6974 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 6975 s/.*/./; q'`
meillo@0 6976 { if $as_mkdir_p; then
meillo@0 6977 mkdir -p "$ac_dir"
meillo@0 6978 else
meillo@0 6979 as_dir="$ac_dir"
meillo@0 6980 as_dirs=
meillo@0 6981 while test ! -d "$as_dir"; do
meillo@0 6982 as_dirs="$as_dir $as_dirs"
meillo@0 6983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
meillo@0 6984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 6985 X"$as_dir" : 'X\(//\)[^/]' \| \
meillo@0 6986 X"$as_dir" : 'X\(//\)$' \| \
meillo@0 6987 X"$as_dir" : 'X\(/\)' \| \
meillo@0 6988 . : '\(.\)' 2>/dev/null ||
meillo@0 6989 echo X"$as_dir" |
meillo@0 6990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 6991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 6992 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 6993 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 6994 s/.*/./; q'`
meillo@0 6995 done
meillo@0 6996 test ! -n "$as_dirs" || mkdir $as_dirs
meillo@0 6997 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
meillo@0 6998 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
meillo@0 6999 { (exit 1); exit 1; }; }; }
meillo@0 7000
meillo@0 7001 rm -f $ac_file
meillo@0 7002 mv $tmp/config.h $ac_file
meillo@0 7003 fi
meillo@0 7004 else
meillo@0 7005 cat $tmp/config.h
meillo@0 7006 rm -f $tmp/config.h
meillo@0 7007 fi
meillo@0 7008 # Compute $ac_file's index in $config_headers.
meillo@0 7009 _am_stamp_count=1
meillo@0 7010 for _am_header in $config_headers :; do
meillo@0 7011 case $_am_header in
meillo@0 7012 $ac_file | $ac_file:* )
meillo@0 7013 break ;;
meillo@0 7014 * )
meillo@0 7015 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
meillo@0 7016 esac
meillo@0 7017 done
meillo@0 7018 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
meillo@0 7019 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7020 X$ac_file : 'X\(//\)[^/]' \| \
meillo@0 7021 X$ac_file : 'X\(//\)$' \| \
meillo@0 7022 X$ac_file : 'X\(/\)' \| \
meillo@0 7023 . : '\(.\)' 2>/dev/null ||
meillo@0 7024 echo X$ac_file |
meillo@0 7025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7027 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7028 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7029 s/.*/./; q'`/stamp-h$_am_stamp_count
meillo@0 7030 done
meillo@0 7031 _ACEOF
meillo@0 7032 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 7033
meillo@0 7034 #
meillo@0 7035 # CONFIG_COMMANDS section.
meillo@0 7036 #
meillo@0 7037 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
meillo@0 7038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
meillo@0 7039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
meillo@0 7040 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
meillo@0 7041 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7042 X"$ac_dest" : 'X\(//\)[^/]' \| \
meillo@0 7043 X"$ac_dest" : 'X\(//\)$' \| \
meillo@0 7044 X"$ac_dest" : 'X\(/\)' \| \
meillo@0 7045 . : '\(.\)' 2>/dev/null ||
meillo@0 7046 echo X"$ac_dest" |
meillo@0 7047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7049 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7050 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7051 s/.*/./; q'`
meillo@0 7052 { if $as_mkdir_p; then
meillo@0 7053 mkdir -p "$ac_dir"
meillo@0 7054 else
meillo@0 7055 as_dir="$ac_dir"
meillo@0 7056 as_dirs=
meillo@0 7057 while test ! -d "$as_dir"; do
meillo@0 7058 as_dirs="$as_dir $as_dirs"
meillo@0 7059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
meillo@0 7060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7061 X"$as_dir" : 'X\(//\)[^/]' \| \
meillo@0 7062 X"$as_dir" : 'X\(//\)$' \| \
meillo@0 7063 X"$as_dir" : 'X\(/\)' \| \
meillo@0 7064 . : '\(.\)' 2>/dev/null ||
meillo@0 7065 echo X"$as_dir" |
meillo@0 7066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7068 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7069 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7070 s/.*/./; q'`
meillo@0 7071 done
meillo@0 7072 test ! -n "$as_dirs" || mkdir $as_dirs
meillo@0 7073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
meillo@0 7074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
meillo@0 7075 { (exit 1); exit 1; }; }; }
meillo@0 7076
meillo@0 7077 ac_builddir=.
meillo@0 7078
meillo@0 7079 if test "$ac_dir" != .; then
meillo@0 7080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
meillo@0 7081 # A "../" for each directory in $ac_dir_suffix.
meillo@0 7082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
meillo@0 7083 else
meillo@0 7084 ac_dir_suffix= ac_top_builddir=
meillo@0 7085 fi
meillo@0 7086
meillo@0 7087 case $srcdir in
meillo@0 7088 .) # No --srcdir option. We are building in place.
meillo@0 7089 ac_srcdir=.
meillo@0 7090 if test -z "$ac_top_builddir"; then
meillo@0 7091 ac_top_srcdir=.
meillo@0 7092 else
meillo@0 7093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
meillo@0 7094 fi ;;
meillo@0 7095 [\\/]* | ?:[\\/]* ) # Absolute path.
meillo@0 7096 ac_srcdir=$srcdir$ac_dir_suffix;
meillo@0 7097 ac_top_srcdir=$srcdir ;;
meillo@0 7098 *) # Relative path.
meillo@0 7099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
meillo@0 7100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
meillo@0 7101 esac
meillo@0 7102
meillo@0 7103 # Do not use `cd foo && pwd` to compute absolute paths, because
meillo@0 7104 # the directories may not exist.
meillo@0 7105 case `pwd` in
meillo@0 7106 .) ac_abs_builddir="$ac_dir";;
meillo@0 7107 *)
meillo@0 7108 case "$ac_dir" in
meillo@0 7109 .) ac_abs_builddir=`pwd`;;
meillo@0 7110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
meillo@0 7111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
meillo@0 7112 esac;;
meillo@0 7113 esac
meillo@0 7114 case $ac_abs_builddir in
meillo@0 7115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 7116 *)
meillo@0 7117 case ${ac_top_builddir}. in
meillo@0 7118 .) ac_abs_top_builddir=$ac_abs_builddir;;
meillo@0 7119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
meillo@0 7120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
meillo@0 7121 esac;;
meillo@0 7122 esac
meillo@0 7123 case $ac_abs_builddir in
meillo@0 7124 .) ac_abs_srcdir=$ac_srcdir;;
meillo@0 7125 *)
meillo@0 7126 case $ac_srcdir in
meillo@0 7127 .) ac_abs_srcdir=$ac_abs_builddir;;
meillo@0 7128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
meillo@0 7129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
meillo@0 7130 esac;;
meillo@0 7131 esac
meillo@0 7132 case $ac_abs_builddir in
meillo@0 7133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 7134 *)
meillo@0 7135 case $ac_top_srcdir in
meillo@0 7136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
meillo@0 7137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
meillo@0 7138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
meillo@0 7139 esac;;
meillo@0 7140 esac
meillo@0 7141
meillo@0 7142
meillo@0 7143 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
meillo@0 7144 echo "$as_me: executing $ac_dest commands" >&6;}
meillo@0 7145 case $ac_dest in
meillo@0 7146 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
meillo@0 7147 # Strip MF so we end up with the name of the file.
meillo@0 7148 mf=`echo "$mf" | sed -e 's/:.*$//'`
meillo@0 7149 # Check whether this is an Automake generated Makefile or not.
meillo@0 7150 # We used to match only the files named `Makefile.in', but
meillo@0 7151 # some people rename them; so instead we look at the file content.
meillo@0 7152 # Grep'ing the first line is not enough: some people post-process
meillo@0 7153 # each Makefile.in and add a new line on top of each file to say so.
meillo@0 7154 # So let's grep whole file.
meillo@0 7155 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
meillo@0 7156 dirpart=`(dirname "$mf") 2>/dev/null ||
meillo@0 7157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7158 X"$mf" : 'X\(//\)[^/]' \| \
meillo@0 7159 X"$mf" : 'X\(//\)$' \| \
meillo@0 7160 X"$mf" : 'X\(/\)' \| \
meillo@0 7161 . : '\(.\)' 2>/dev/null ||
meillo@0 7162 echo X"$mf" |
meillo@0 7163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7165 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7166 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7167 s/.*/./; q'`
meillo@0 7168 else
meillo@0 7169 continue
meillo@0 7170 fi
meillo@0 7171 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
meillo@0 7172 # Extract the definition of DEP_FILES from the Makefile without
meillo@0 7173 # running `make'.
meillo@0 7174 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
meillo@0 7175 test -z "$DEPDIR" && continue
meillo@0 7176 # When using ansi2knr, U may be empty or an underscore; expand it
meillo@0 7177 U=`sed -n -e '/^U = / s///p' < "$mf"`
meillo@0 7178 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
meillo@0 7179 # We invoke sed twice because it is the simplest approach to
meillo@0 7180 # changing $(DEPDIR) to its actual value in the expansion.
meillo@0 7181 for file in `sed -n -e '
meillo@0 7182 /^DEP_FILES = .*\\\\$/ {
meillo@0 7183 s/^DEP_FILES = //
meillo@0 7184 :loop
meillo@0 7185 s/\\\\$//
meillo@0 7186 p
meillo@0 7187 n
meillo@0 7188 /\\\\$/ b loop
meillo@0 7189 p
meillo@0 7190 }
meillo@0 7191 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
meillo@0 7192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
meillo@0 7193 # Make sure the directory exists.
meillo@0 7194 test -f "$dirpart/$file" && continue
meillo@0 7195 fdir=`(dirname "$file") 2>/dev/null ||
meillo@0 7196 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7197 X"$file" : 'X\(//\)[^/]' \| \
meillo@0 7198 X"$file" : 'X\(//\)$' \| \
meillo@0 7199 X"$file" : 'X\(/\)' \| \
meillo@0 7200 . : '\(.\)' 2>/dev/null ||
meillo@0 7201 echo X"$file" |
meillo@0 7202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7204 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7205 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7206 s/.*/./; q'`
meillo@0 7207 { if $as_mkdir_p; then
meillo@0 7208 mkdir -p $dirpart/$fdir
meillo@0 7209 else
meillo@0 7210 as_dir=$dirpart/$fdir
meillo@0 7211 as_dirs=
meillo@0 7212 while test ! -d "$as_dir"; do
meillo@0 7213 as_dirs="$as_dir $as_dirs"
meillo@0 7214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
meillo@0 7215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
meillo@0 7216 X"$as_dir" : 'X\(//\)[^/]' \| \
meillo@0 7217 X"$as_dir" : 'X\(//\)$' \| \
meillo@0 7218 X"$as_dir" : 'X\(/\)' \| \
meillo@0 7219 . : '\(.\)' 2>/dev/null ||
meillo@0 7220 echo X"$as_dir" |
meillo@0 7221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
meillo@0 7222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
meillo@0 7223 /^X\(\/\/\)$/{ s//\1/; q; }
meillo@0 7224 /^X\(\/\).*/{ s//\1/; q; }
meillo@0 7225 s/.*/./; q'`
meillo@0 7226 done
meillo@0 7227 test ! -n "$as_dirs" || mkdir $as_dirs
meillo@0 7228 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
meillo@0 7229 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
meillo@0 7230 { (exit 1); exit 1; }; }; }
meillo@0 7231
meillo@0 7232 # echo "creating $dirpart/$file"
meillo@0 7233 echo '# dummy' > "$dirpart/$file"
meillo@0 7234 done
meillo@0 7235 done
meillo@0 7236 ;;
meillo@0 7237 esac
meillo@0 7238 done
meillo@0 7239 _ACEOF
meillo@0 7240
meillo@0 7241 cat >>$CONFIG_STATUS <<\_ACEOF
meillo@0 7242
meillo@0 7243 { (exit 0); exit 0; }
meillo@0 7244 _ACEOF
meillo@0 7245 chmod +x $CONFIG_STATUS
meillo@0 7246 ac_clean_files=$ac_clean_files_save
meillo@0 7247
meillo@0 7248
meillo@0 7249 # configure is writing to config.log, and then calls config.status.
meillo@0 7250 # config.status does its own redirection, appending to config.log.
meillo@0 7251 # Unfortunately, on DOS this fails, as config.log is still kept open
meillo@0 7252 # by configure, so config.status won't be able to write to it; its
meillo@0 7253 # output is simply discarded. So we exec the FD to /dev/null,
meillo@0 7254 # effectively closing config.log, so it can be properly (re)opened and
meillo@0 7255 # appended to by config.status. When coming back to configure, we
meillo@0 7256 # need to make the FD available again.
meillo@0 7257 if test "$no_create" != yes; then
meillo@0 7258 ac_cs_success=:
meillo@0 7259 ac_config_status_args=
meillo@0 7260 test "$silent" = yes &&
meillo@0 7261 ac_config_status_args="$ac_config_status_args --quiet"
meillo@0 7262 exec 5>/dev/null
meillo@0 7263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
meillo@0 7264 exec 5>>config.log
meillo@0 7265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
meillo@0 7266 # would make configure fail if this is the last instruction.
meillo@0 7267 $ac_cs_success || { (exit 1); exit 1; }
meillo@0 7268 fi
meillo@0 7269