masqmail

annotate configure @ 431:34c919a8d74e

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