masqmail

annotate configure @ 9:31cc8a89cb74

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