configure revision ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412
7d32c065c7bb56f281651ae3dd2888f32ce4f1d9Bob Halley# Guess values for system-dependent variables and create Makefiles.
2f072c2982861ec2e86e97f8a3ed199fe45c1f70Michael Graff# Generated by GNU Autoconf 2.69.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# This configure script is free software; the Free Software Foundation
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# gives unlimited permission to copy, distribute and modify it.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews## -------------------- ##
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews## M4sh Initialization. ##
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews## -------------------- ##
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Be more Bourne compatible
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson # is contrary to our usage. Disable this feature.
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff# Printing a long string crashes Solaris 7 /usr/bin/printf.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Prefer a ksh shell builtin over an external printf program on Solaris,
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# but without wasting forks for bash or zsh.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test -z "$BASH_VERSION$ZSH_VERSION" \
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0bd044c2afee944d93879a7de82cd2ccc0635798David Lawrence if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
0bd044c2afee944d93879a7de82cd2ccc0635798David Lawrence as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews as_echo_n_body='eval
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews export as_echo_n_body
ea8651059209b96fa005e06a0b9b33ae5a8eacd4David Lawrence export as_echo_body
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# The user is always right.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test "${PATH_SEPARATOR+set}" != set; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews PATH_SEPARATOR=:
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# We need space, tab and new line, in precisely that order. Quoting is
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# there to prevent editors from complaining about space-tab.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# (If _AS_PATH_WALK were called with IFS unset, it would disable word
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# splitting by setting IFS to empty value.)
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark AndrewsIFS=" "" $as_nl"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Find who we are. Look in the path if we contain no directory separator.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewscase $0 in #((
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews *[\\/]* ) as_myself=$0 ;;
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsfor as_dir in $PATH
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews IFS=$as_save_IFS
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews test -z "$as_dir" && as_dir=.
822f6cdabb1edd44472c7a758b5cae71376fa9beBrian Wellington test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark AndrewsIFS=$as_save_IFS
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# We did not find ourselves, most probably we were run as `sh COMMAND'
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# in which case we are not to be found in the path.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test "x$as_myself" = x; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test ! -f "$as_myself"; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Unset variables that we do not need and which cause bugs (e.g. in
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# suppresses any "Segmentation fault" message there. '((' could
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# trigger a bug in pdksh 5.2.14.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# NLS nuisances.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Use a proper internal environment variable to ensure we don't fall
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # into an infinite loop, continuously re-executing ourselves.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # We cannot yet assume a decent shell, so we have to provide a
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# neutralization value for shells without unset; and this also
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# works around shells that cannot unset nonexistent variables.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Preserve -v and -x to the replacement shell.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# Admittedly, this is quite paranoid, since all the known shells bail
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# out after a failed `exec'.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # We don't want this to propagate to other subprocesses.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsif test "x$CONFIG_SHELL" = x; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # is contrary to our usage. Disable this feature.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews alias -g '\${1+\"\$@\"}'='\"\$@\"'
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews setopt NO_GLOB_SUBST
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews case \`(set -o) 2>/dev/null\` in #(
2bc0da0cd874b15593d65338ba96e90ceed13072Mark Andrews set -o posix ;; #(
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson as_required="as_fn_return () { (exit \$1); }
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonas_fn_success () { as_fn_return 0; }
fad44a20eede1bbc66716241dede225500c91caaAndreas Gustafssonas_fn_failure () { as_fn_return 1; }
fad44a20eede1bbc66716241dede225500c91caaAndreas Gustafssonas_fn_ret_success () { return 0; }
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonas_fn_ret_failure () { return 1; }
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsas_fn_success || { exitcode=1; echo as_fn_success failed.; }
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews exitcode=1; echo positional parameters were not saved.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewstest x\$exitcode = x0 || exit 1
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewstest -x / || exit 1"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewstest \$(( 1 + 1 )) = 2 || exit 1"
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson if (eval "$as_required") 2>/dev/null; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # Try only shells that exist, to save several forks.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews if test "x$CONFIG_SHELL" != x; then :
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews # We cannot yet assume a decent shell, so we have to provide a
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# neutralization value for shells without unset; and this also
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# works around shells that cannot unset nonexistent variables.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Preserve -v and -x to the replacement shell.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Admittedly, this is quite paranoid, since all the known shells bail
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# out after a failed `exec'.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$0: This script requires a shell more modern than all"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$0: the shells that I found on your system."
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$0: be upgraded to zsh 4.3.4 or later."
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews$0: including any error possibly output before this
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson$0: message. Then install a modern shell, or manually run
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews$0: the script under such a shell if you do have one."
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Unset more variables known to interfere with behavior of common tools.
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson## --------------------- ##
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson## M4sh Shell Functions. ##
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson## --------------------- ##
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# as_fn_unset VAR
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# ---------------
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# Portably unset VAR.
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson# as_fn_set_status STATUS
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson# -----------------------
e6c22f37d8df55a9f66b479a22717e179bcf79a3Andreas Gustafsson# Set $? to STATUS, without forking.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# as_fn_exit STATUS
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# -----------------
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# as_fn_mkdir_p
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews# -------------
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson# Create "$as_dir" as a directory, including parents if necessary.
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington /^X\(\/\/\)[^/].*/{
cf3f14106d082e4676431c10c54b60b9a0e9b127Brian Wellington /^X\(\/\/\)$/{
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington /^X\(\/\).*/{
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington test -z "$as_dirs" || eval "mkdir $as_dirs"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# as_fn_executable_p FILE
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# -----------------------
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# Test if FILE is an executable regular file.
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# as_fn_append VAR VALUE
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# ----------------------
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# Append the text in VALUE to the end of the definition contained in VAR. Take
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# advantage of any shell optimizations that allow amortized linear growth over
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# repeated appends, instead of the typical quadratic growth present in naive
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# implementations.
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellingtonif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington eval 'as_fn_append ()
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington eval $1=\$$1\$2
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellingtonfi # as_fn_append
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# as_fn_arith ARG...
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# ------------------
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# Perform arithmetic evaluation on the ARGs, and store the result in the
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# global $as_val. Take advantage of shells that can avoid forks. The arguments
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# must be portable across $(()) and expr.
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellingtonif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington eval 'as_fn_arith ()
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington as_val=$(( $* ))
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellingtonfi # as_fn_arith
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# as_fn_error STATUS ERROR [LINENO LOG_FD]
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# ----------------------------------------
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington# script with STATUS, using 1 if that was 0.
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington as_status=$1; test $as_status -eq 0 && as_status=1
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d8813e2ceee2f4adaf697931c2491de265ce5eb9Brian Wellington test "X`expr 00001 : '.*\(...\)'`" = X001; then
542deb20c44666a870855bf755a100d254db074dAndreas Gustafssonif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4529cdaedaf1a0a5f8ff89aeca510b7a4475446cBob Halleyif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cf3f14106d082e4676431c10c54b60b9a0e9b127Brian Wellington$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
d981ca645597116d227a48bf37cc5edc061c854dBob Halley /^X\/\(\/\/\)$/{
542deb20c44666a870855bf755a100d254db074dAndreas Gustafsson /^X\/\(\/\).*/{
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley# Avoid depending upon Character Ranges.
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley /[$]LINENO/=
e27a69f8bd9538e08f775265167ba6cc5f47c587Bob Halley s/[$]LINENO.*/&-/
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
_as_can_reexec=no; export _as_can_reexec
test -d ./-p && rmdir ./-p
as_mkdir_p=false
#include <stdio.h>
# include <stdlib.h>
# include <stddef.h>
# include <stdlib.h>
# include <memory.h>
# include <string.h>
# include <strings.h>
# include <inttypes.h>
# include <stdint.h>
# include <unistd.h>
ac_init_version=false
program_transform_name=s,x,x,
site=
for ac_option
if test -n "$ac_prev"; then
*=) ac_optarg= ;;
ac_init_help=long ;;
| --ht=*)
ac_init_version=: ;;
export $ac_envvar ;;
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
if test -n "$ac_prev"; then
if test -n "$ac_unrecognized_opts"; then
no) ;;
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
if test -z "$srcdir"; then
if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=..
if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=.
cat <<_ACEOF
if test -n "$ac_init_help"; then
if test -f "$ac_srcdir/configure.gnu"; then
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
(eval "$ac_compile") 2>conftest.err
if test -s conftest.err; then
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
test ! -s conftest.err
(eval "$ac_link") 2>conftest.err
if test -s conftest.err; then
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
test ! -s conftest.err
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
if test -s conftest.err; then
cat conftest.er1 >&5
test ! -s conftest.err
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eval ac_res=\$$3
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
eval ac_res=\$$3
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eval ac_res=\$$3
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
rm -f conftest.val
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cat >config.log <<_ACEOF
exec 5>>config.log
cat <<_ASUNAME
cat >&5 <<_ACEOF
ac_must_keep_next=false
for ac_arg
if test $ac_must_keep_next = true; then
-* ) ac_must_keep_next=true ;;
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}
# config.log. We remove comments because anyway the quotes in there
# Save into config.log some information that might help in debugging.
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
for ac_var in $ac_subst_vars
done | sort
for ac_var in $ac_subst_files
done | sort
if test -s confdefs.h; then
## confdefs.h. ##
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h
$as_echo "/* confdefs.h */" > confdefs.h
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
# We do not want a PATH search for config.site.
ac_site_file1=$prefix/share/config.site
ac_site_file2=$prefix/etc/config.site
ac_site_file1=$ac_default_prefix/share/config.site
ac_site_file2=$ac_default_prefix/etc/config.site
case $cache_file in
for ac_var in $ac_precious_vars; do
case $ac_old_set,$ac_new_set in
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
eval $ac_var=\$ac_old_val
# Pass precious variables to config.status.
case $ac_new_val in
*) ac_arg=$ac_var=$ac_new_val ;;
if $ac_cache_corrupted; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_compiler_gnu=$ac_cv_c_compiler_gnu
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
ac_ct_CC=$CC
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
ac_ct_CC=$ac_cv_prog_ac_ct_CC
case $cross_compiling:$ac_tool_warned in
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
CC=$ac_ct_CC
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
if test $ac_prog_rejected = yes; then
set dummy $ac_cv_prog_CC
for ac_prog in cl.exe
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
ac_ct_CC=$CC
for ac_prog in cl.exe
set dummy $ac_prog; ac_word=$2
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
IFS=$as_save_IFS
ac_ct_CC=$ac_cv_prog_ac_ct_CC
case $cross_compiling:$ac_tool_warned in
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
CC=$ac_ct_CC
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
if test -s conftest.err; then
cat conftest.er1 >&5
rm -f conftest.er1 conftest.err
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
for ac_file in conftest.exe conftest conftest.*; do
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
test $ac_status = 0; }
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
if ${ac_cv_objext+:} false; then :
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
ac_status=$?
for ac_file in conftest.o conftest.obj conftest.*; do
if ${ac_cv_c_compiler_gnu+:} false; then :
if test $ac_compiler_gnu = yes; then
GCC=
ac_test_CFLAGS=${CFLAGS+set}
if ${ac_cv_prog_cc_g+:} false; then :
elif test $ac_cv_prog_cc_g = yes; then
if ${ac_cv_prog_cc_c89+:} false; then :
xno)
ac_ext=c
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# ./install, which can be erroneously created by make from ./install.sh.
if ${ac_cv_path_install+:} false; then :
./ | .// | /[cC]/* | \
echo one > conftest.one
echo two > conftest.two
test -s conftest.one && test -s conftest.two &&
test -s conftest.dir/conftest.one &&
test -s conftest.dir/conftest.two
if ${ac_cv_lib_resolv_res_query+:} false; then :
rm -f core conftest.err conftest.$ac_objext \
cat >>confdefs.h <<_ACEOF
ac_ext=c
CPP=
if ${ac_cv_prog_CPP+:} false; then :
ac_preproc_ok=false
if $ac_preproc_ok; then :
ac_preproc_ok=false
if $ac_preproc_ok; then :
ac_ext=c
if ${ac_cv_path_GREP+:} false; then :
ac_path_GREP_found=false
*GNU*)
ac_count=0
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then
$ac_path_GREP_found && break 3
if ${ac_cv_path_EGREP+:} false; then :
ac_path_EGREP_found=false
*GNU*)
ac_count=0
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
$ac_path_EGREP_found && break 3
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
if ${ac_cv_header_stdc+:} false; then :
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
if test $ac_cv_header_stdc = yes; then
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cat >>confdefs.h <<_ACEOF
ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "$ac_includes_default"
cat >>confdefs.h <<_ACEOF
ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
rm -f core conftest.err conftest.$ac_objext \
rm -f core conftest.err conftest.$ac_objext \
if ${ac_cv_c_const+:} false; then :
if test $ac_cv_c_const = no; then
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
if ${ac_cv_sizeof_long+:} false; then :
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cat >>confdefs.h <<_ACEOF
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
if ${ac_cv_sizeof_int+:} false; then :
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cat >>confdefs.h <<_ACEOF
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
if ${ac_cv_sizeof_short+:} false; then :
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
cat >>confdefs.h <<_ACEOF
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
if ${ac_cv_sizeof_char+:} false; then :
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
cat >>confdefs.h <<_ACEOF
# config.status only pays attention to the cache file if you give it
*${as_nl}*)
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
sed -n \
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
NULLCMD=:
*posix*) :
export as_nl
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
arg=$1;
as_myself=$0
# Unset variables that we do not need and which cause bugs (e.g. in
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
as_status=$1; test $as_status -eq 0 && as_status=1
as_expr=false
as_basename=false
as_dirname=false
test -d ./-p && rmdir ./-p
as_mkdir_p=false
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
This file was extended by $as_me, which was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
\`$as_me' instantiates files and other configuration actions
--recheck update $as_me by reconfiguring in the same conditions
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
case $1 in
ac_shift=:
ac_shift=:
ac_option=$1
ac_optarg=$2
ac_shift=shift
case $ac_option in
ac_cs_recheck=: ;;
debug=: ;;
case $ac_optarg in
ac_need_defaults=false;;
case $ac_optarg in
ac_need_defaults=false;;
--he | --h)
ac_cs_silent=: ;;
ac_need_defaults=false ;;
if $ac_cs_silent; then
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
case $ac_config_target in
if $ac_need_defaults; then
$debug ||
# This happens for instance with `./config.status config.h'.
eval ac_cr=\$\'\\r\'
for ac_last_try in false false false false false :; do
if test $ac_delim_n = $ac_delim_num; then
elif $ac_last_try; then
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# This happens for instance with `./config.status Makefile'.
# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.
# Create a delimiter string that does not exist in confdefs.h, to ease
for ac_last_try in false false :; do
elif $ac_last_try; then
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
for ac_tag
:[FHL]*:*);;
IFS=:
set x $ac_tag
ac_file=$1
:L) ac_source=$1;;
:[FH])
for ac_f
case $ac_top_builddir_sub in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
# Shell code in configure.ac might set extrasub.
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
case $ac_file in
ac_clean_files=$ac_clean_files_save
test $ac_write_fail = 0 ||
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
exec 5>>config.log
$ac_cs_success || as_fn_exit 1