[3b77289] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[44f44617] | 3 | # Generated by GNU Autoconf 2.69 for cfa-cc 1.0.0.0.
|
---|
[3b77289] | 4 | #
|
---|
| 5 | # Report bugs to <cforall@plg.uwaterloo.ca>.
|
---|
| 6 | #
|
---|
| 7 | #
|
---|
[44f44617] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
[3b77289] | 9 | #
|
---|
| 10 | #
|
---|
| 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
| 16 |
|
---|
| 17 | # Be more Bourne compatible
|
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
| 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 25 | setopt NO_GLOB_SUBST
|
---|
| 26 | else
|
---|
| 27 | case `(set -o) 2>/dev/null` in #(
|
---|
| 28 | *posix*) :
|
---|
| 29 | set -o posix ;; #(
|
---|
| 30 | *) :
|
---|
| 31 | ;;
|
---|
| 32 | esac
|
---|
| 33 | fi
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | as_nl='
|
---|
| 37 | '
|
---|
| 38 | export as_nl
|
---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 44 | # but without wasting forks for bash or zsh.
|
---|
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 47 | as_echo='print -r --'
|
---|
| 48 | as_echo_n='print -rn --'
|
---|
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 50 | as_echo='printf %s\n'
|
---|
| 51 | as_echo_n='printf %s'
|
---|
| 52 | else
|
---|
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 55 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 56 | else
|
---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 58 | as_echo_n_body='eval
|
---|
| 59 | arg=$1;
|
---|
| 60 | case $arg in #(
|
---|
| 61 | *"$as_nl"*)
|
---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 64 | esac;
|
---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 66 | '
|
---|
| 67 | export as_echo_n_body
|
---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 69 | fi
|
---|
| 70 | export as_echo_body
|
---|
| 71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
| 72 | fi
|
---|
| 73 |
|
---|
| 74 | # The user is always right.
|
---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 76 | PATH_SEPARATOR=:
|
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 79 | PATH_SEPARATOR=';'
|
---|
| 80 | }
|
---|
| 81 | fi
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 | # IFS
|
---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 86 | # there to prevent editors from complaining about space-tab.
|
---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 88 | # splitting by setting IFS to empty value.)
|
---|
| 89 | IFS=" "" $as_nl"
|
---|
| 90 |
|
---|
| 91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 92 | as_myself=
|
---|
| 93 | case $0 in #((
|
---|
| 94 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 96 | for as_dir in $PATH
|
---|
| 97 | do
|
---|
| 98 | IFS=$as_save_IFS
|
---|
| 99 | test -z "$as_dir" && as_dir=.
|
---|
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 101 | done
|
---|
| 102 | IFS=$as_save_IFS
|
---|
| 103 |
|
---|
| 104 | ;;
|
---|
| 105 | esac
|
---|
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 107 | # in which case we are not to be found in the path.
|
---|
| 108 | if test "x$as_myself" = x; then
|
---|
| 109 | as_myself=$0
|
---|
| 110 | fi
|
---|
| 111 | if test ! -f "$as_myself"; then
|
---|
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 113 | exit 1
|
---|
| 114 | fi
|
---|
| 115 |
|
---|
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 119 | # trigger a bug in pdksh 5.2.14.
|
---|
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 121 | do eval test x\${$as_var+set} = xset \
|
---|
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 123 | done
|
---|
| 124 | PS1='$ '
|
---|
| 125 | PS2='> '
|
---|
| 126 | PS4='+ '
|
---|
| 127 |
|
---|
| 128 | # NLS nuisances.
|
---|
| 129 | LC_ALL=C
|
---|
| 130 | export LC_ALL
|
---|
| 131 | LANGUAGE=C
|
---|
| 132 | export LANGUAGE
|
---|
| 133 |
|
---|
| 134 | # CDPATH.
|
---|
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 136 |
|
---|
[44f44617] | 137 | # Use a proper internal environment variable to ensure we don't fall
|
---|
| 138 | # into an infinite loop, continuously re-executing ourselves.
|
---|
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
| 140 | _as_can_reexec=no; export _as_can_reexec;
|
---|
| 141 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 142 | # neutralization value for shells without unset; and this also
|
---|
| 143 | # works around shells that cannot unset nonexistent variables.
|
---|
| 144 | # Preserve -v and -x to the replacement shell.
|
---|
| 145 | BASH_ENV=/dev/null
|
---|
| 146 | ENV=/dev/null
|
---|
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 148 | case $- in # ((((
|
---|
| 149 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 150 | *v* ) as_opts=-v ;;
|
---|
| 151 | *x* ) as_opts=-x ;;
|
---|
| 152 | * ) as_opts= ;;
|
---|
| 153 | esac
|
---|
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
| 156 | # out after a failed `exec'.
|
---|
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
| 158 | as_fn_exit 255
|
---|
| 159 | fi
|
---|
| 160 | # We don't want this to propagate to other subprocesses.
|
---|
| 161 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
[3b77289] | 162 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 164 | emulate sh
|
---|
| 165 | NULLCMD=:
|
---|
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 167 | # is contrary to our usage. Disable this feature.
|
---|
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 169 | setopt NO_GLOB_SUBST
|
---|
| 170 | else
|
---|
| 171 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 172 | *posix*) :
|
---|
| 173 | set -o posix ;; #(
|
---|
| 174 | *) :
|
---|
| 175 | ;;
|
---|
| 176 | esac
|
---|
| 177 | fi
|
---|
| 178 | "
|
---|
| 179 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 180 | as_fn_success () { as_fn_return 0; }
|
---|
| 181 | as_fn_failure () { as_fn_return 1; }
|
---|
| 182 | as_fn_ret_success () { return 0; }
|
---|
| 183 | as_fn_ret_failure () { return 1; }
|
---|
| 184 |
|
---|
| 185 | exitcode=0
|
---|
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
| 191 |
|
---|
| 192 | else
|
---|
| 193 | exitcode=1; echo positional parameters were not saved.
|
---|
| 194 | fi
|
---|
[44f44617] | 195 | test x\$exitcode = x0 || exit 1
|
---|
| 196 | test -x / || exit 1"
|
---|
[3b77289] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 201 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 202 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 203 | as_have_required=yes
|
---|
| 204 | else
|
---|
| 205 | as_have_required=no
|
---|
| 206 | fi
|
---|
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
| 208 |
|
---|
| 209 | else
|
---|
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 211 | as_found=false
|
---|
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 213 | do
|
---|
| 214 | IFS=$as_save_IFS
|
---|
| 215 | test -z "$as_dir" && as_dir=.
|
---|
| 216 | as_found=:
|
---|
| 217 | case $as_dir in #(
|
---|
| 218 | /*)
|
---|
| 219 | for as_base in sh bash ksh sh5; do
|
---|
| 220 | # Try only shells that exist, to save several forks.
|
---|
| 221 | as_shell=$as_dir/$as_base
|
---|
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 226 | break 2
|
---|
| 227 | fi
|
---|
| 228 | fi
|
---|
| 229 | done;;
|
---|
| 230 | esac
|
---|
| 231 | as_found=false
|
---|
| 232 | done
|
---|
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 236 | fi; }
|
---|
| 237 | IFS=$as_save_IFS
|
---|
| 238 |
|
---|
| 239 |
|
---|
| 240 | if test "x$CONFIG_SHELL" != x; then :
|
---|
[44f44617] | 241 | export CONFIG_SHELL
|
---|
| 242 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 243 | # neutralization value for shells without unset; and this also
|
---|
| 244 | # works around shells that cannot unset nonexistent variables.
|
---|
| 245 | # Preserve -v and -x to the replacement shell.
|
---|
| 246 | BASH_ENV=/dev/null
|
---|
| 247 | ENV=/dev/null
|
---|
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 249 | case $- in # ((((
|
---|
| 250 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 251 | *v* ) as_opts=-v ;;
|
---|
| 252 | *x* ) as_opts=-x ;;
|
---|
| 253 | * ) as_opts= ;;
|
---|
| 254 | esac
|
---|
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
| 257 | # out after a failed `exec'.
|
---|
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
| 259 | exit 255
|
---|
[3b77289] | 260 | fi
|
---|
| 261 |
|
---|
| 262 | if test x$as_have_required = xno; then :
|
---|
| 263 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 264 | $as_echo "$0: the shells that I found on your system."
|
---|
| 265 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
| 268 | else
|
---|
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and
|
---|
| 270 | $0: cforall@plg.uwaterloo.ca about your system, including
|
---|
| 271 | $0: any error possibly output before this message. Then
|
---|
| 272 | $0: install a modern shell, or manually run the script
|
---|
| 273 | $0: under such a shell if you do have one."
|
---|
| 274 | fi
|
---|
| 275 | exit 1
|
---|
| 276 | fi
|
---|
| 277 | fi
|
---|
| 278 | fi
|
---|
| 279 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 280 | export SHELL
|
---|
| 281 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 282 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
| 284 |
|
---|
| 285 | ## --------------------- ##
|
---|
| 286 | ## M4sh Shell Functions. ##
|
---|
| 287 | ## --------------------- ##
|
---|
| 288 | # as_fn_unset VAR
|
---|
| 289 | # ---------------
|
---|
| 290 | # Portably unset VAR.
|
---|
| 291 | as_fn_unset ()
|
---|
| 292 | {
|
---|
| 293 | { eval $1=; unset $1;}
|
---|
| 294 | }
|
---|
| 295 | as_unset=as_fn_unset
|
---|
| 296 |
|
---|
| 297 | # as_fn_set_status STATUS
|
---|
| 298 | # -----------------------
|
---|
| 299 | # Set $? to STATUS, without forking.
|
---|
| 300 | as_fn_set_status ()
|
---|
| 301 | {
|
---|
| 302 | return $1
|
---|
| 303 | } # as_fn_set_status
|
---|
| 304 |
|
---|
| 305 | # as_fn_exit STATUS
|
---|
| 306 | # -----------------
|
---|
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 308 | as_fn_exit ()
|
---|
| 309 | {
|
---|
| 310 | set +e
|
---|
| 311 | as_fn_set_status $1
|
---|
| 312 | exit $1
|
---|
| 313 | } # as_fn_exit
|
---|
| 314 |
|
---|
| 315 | # as_fn_mkdir_p
|
---|
| 316 | # -------------
|
---|
| 317 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 318 | as_fn_mkdir_p ()
|
---|
| 319 | {
|
---|
| 320 |
|
---|
| 321 | case $as_dir in #(
|
---|
| 322 | -*) as_dir=./$as_dir;;
|
---|
| 323 | esac
|
---|
| 324 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 325 | as_dirs=
|
---|
| 326 | while :; do
|
---|
| 327 | case $as_dir in #(
|
---|
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 329 | *) as_qdir=$as_dir;;
|
---|
| 330 | esac
|
---|
| 331 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 332 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 335 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 337 | $as_echo X"$as_dir" |
|
---|
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 339 | s//\1/
|
---|
| 340 | q
|
---|
| 341 | }
|
---|
| 342 | /^X\(\/\/\)[^/].*/{
|
---|
| 343 | s//\1/
|
---|
| 344 | q
|
---|
| 345 | }
|
---|
| 346 | /^X\(\/\/\)$/{
|
---|
| 347 | s//\1/
|
---|
| 348 | q
|
---|
| 349 | }
|
---|
| 350 | /^X\(\/\).*/{
|
---|
| 351 | s//\1/
|
---|
| 352 | q
|
---|
| 353 | }
|
---|
| 354 | s/.*/./; q'`
|
---|
| 355 | test -d "$as_dir" && break
|
---|
| 356 | done
|
---|
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
| 359 |
|
---|
| 360 |
|
---|
| 361 | } # as_fn_mkdir_p
|
---|
[44f44617] | 362 |
|
---|
| 363 | # as_fn_executable_p FILE
|
---|
| 364 | # -----------------------
|
---|
| 365 | # Test if FILE is an executable regular file.
|
---|
| 366 | as_fn_executable_p ()
|
---|
| 367 | {
|
---|
| 368 | test -f "$1" && test -x "$1"
|
---|
| 369 | } # as_fn_executable_p
|
---|
[3b77289] | 370 | # as_fn_append VAR VALUE
|
---|
| 371 | # ----------------------
|
---|
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 373 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 374 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 375 | # implementations.
|
---|
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 377 | eval 'as_fn_append ()
|
---|
| 378 | {
|
---|
| 379 | eval $1+=\$2
|
---|
| 380 | }'
|
---|
| 381 | else
|
---|
| 382 | as_fn_append ()
|
---|
| 383 | {
|
---|
| 384 | eval $1=\$$1\$2
|
---|
| 385 | }
|
---|
| 386 | fi # as_fn_append
|
---|
| 387 |
|
---|
| 388 | # as_fn_arith ARG...
|
---|
| 389 | # ------------------
|
---|
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 392 | # must be portable across $(()) and expr.
|
---|
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 394 | eval 'as_fn_arith ()
|
---|
| 395 | {
|
---|
| 396 | as_val=$(( $* ))
|
---|
| 397 | }'
|
---|
| 398 | else
|
---|
| 399 | as_fn_arith ()
|
---|
| 400 | {
|
---|
| 401 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 402 | }
|
---|
| 403 | fi # as_fn_arith
|
---|
| 404 |
|
---|
| 405 |
|
---|
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 407 | # ----------------------------------------
|
---|
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 410 | # script with STATUS, using 1 if that was 0.
|
---|
| 411 | as_fn_error ()
|
---|
| 412 | {
|
---|
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 414 | if test "$4"; then
|
---|
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 417 | fi
|
---|
| 418 | $as_echo "$as_me: error: $2" >&2
|
---|
| 419 | as_fn_exit $as_status
|
---|
| 420 | } # as_fn_error
|
---|
| 421 |
|
---|
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 424 | as_expr=expr
|
---|
| 425 | else
|
---|
| 426 | as_expr=false
|
---|
| 427 | fi
|
---|
| 428 |
|
---|
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 430 | as_basename=basename
|
---|
| 431 | else
|
---|
| 432 | as_basename=false
|
---|
| 433 | fi
|
---|
| 434 |
|
---|
| 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 436 | as_dirname=dirname
|
---|
| 437 | else
|
---|
| 438 | as_dirname=false
|
---|
| 439 | fi
|
---|
| 440 |
|
---|
| 441 | as_me=`$as_basename -- "$0" ||
|
---|
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 443 | X"$0" : 'X\(//\)$' \| \
|
---|
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 445 | $as_echo X/"$0" |
|
---|
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 447 | s//\1/
|
---|
| 448 | q
|
---|
| 449 | }
|
---|
| 450 | /^X\/\(\/\/\)$/{
|
---|
| 451 | s//\1/
|
---|
| 452 | q
|
---|
| 453 | }
|
---|
| 454 | /^X\/\(\/\).*/{
|
---|
| 455 | s//\1/
|
---|
| 456 | q
|
---|
| 457 | }
|
---|
| 458 | s/.*/./; q'`
|
---|
| 459 |
|
---|
| 460 | # Avoid depending upon Character Ranges.
|
---|
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 464 | as_cr_digits='0123456789'
|
---|
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 466 |
|
---|
| 467 |
|
---|
| 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 473 | sed -n '
|
---|
| 474 | p
|
---|
| 475 | /[$]LINENO/=
|
---|
| 476 | ' <$as_myself |
|
---|
| 477 | sed '
|
---|
| 478 | s/[$]LINENO.*/&-/
|
---|
| 479 | t lineno
|
---|
| 480 | b
|
---|
| 481 | :lineno
|
---|
| 482 | N
|
---|
| 483 | :loop
|
---|
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
| 485 | t loop
|
---|
| 486 | s/-\n.*//
|
---|
| 487 | ' >$as_me.lineno &&
|
---|
| 488 | chmod +x "$as_me.lineno" ||
|
---|
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
| 490 |
|
---|
[44f44617] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
| 492 | # already done that, so ensure we don't try to do so again and fall
|
---|
| 493 | # in an infinite loop. This has already happened in practice.
|
---|
| 494 | _as_can_reexec=no; export _as_can_reexec
|
---|
[3b77289] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 496 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 497 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 498 | . "./$as_me.lineno"
|
---|
| 499 | # Exit status is that of the last command.
|
---|
| 500 | exit
|
---|
| 501 | }
|
---|
| 502 |
|
---|
| 503 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 504 | case `echo -n x` in #(((((
|
---|
| 505 | -n*)
|
---|
| 506 | case `echo 'xy\c'` in
|
---|
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 508 | xy) ECHO_C='\c';;
|
---|
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 510 | ECHO_T=' ';;
|
---|
| 511 | esac;;
|
---|
| 512 | *)
|
---|
| 513 | ECHO_N='-n';;
|
---|
| 514 | esac
|
---|
| 515 |
|
---|
| 516 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 517 | if test -d conf$$.dir; then
|
---|
| 518 | rm -f conf$$.dir/conf$$.file
|
---|
| 519 | else
|
---|
| 520 | rm -f conf$$.dir
|
---|
| 521 | mkdir conf$$.dir 2>/dev/null
|
---|
| 522 | fi
|
---|
| 523 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 525 | as_ln_s='ln -s'
|
---|
| 526 | # ... but there are two gotchas:
|
---|
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
[44f44617] | 529 | # In both cases, we have to default to `cp -pR'.
|
---|
[3b77289] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[44f44617] | 531 | as_ln_s='cp -pR'
|
---|
[3b77289] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 533 | as_ln_s=ln
|
---|
| 534 | else
|
---|
[44f44617] | 535 | as_ln_s='cp -pR'
|
---|
[3b77289] | 536 | fi
|
---|
| 537 | else
|
---|
[44f44617] | 538 | as_ln_s='cp -pR'
|
---|
[3b77289] | 539 | fi
|
---|
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 541 | rmdir conf$$.dir 2>/dev/null
|
---|
| 542 |
|
---|
| 543 | if mkdir -p . 2>/dev/null; then
|
---|
| 544 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
| 545 | else
|
---|
| 546 | test -d ./-p && rmdir ./-p
|
---|
| 547 | as_mkdir_p=false
|
---|
| 548 | fi
|
---|
| 549 |
|
---|
[44f44617] | 550 | as_test_x='test -x'
|
---|
| 551 | as_executable_p=as_fn_executable_p
|
---|
[3b77289] | 552 |
|
---|
| 553 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 555 |
|
---|
| 556 | # Sed expression to map a string onto a valid variable name.
|
---|
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 558 |
|
---|
| 559 |
|
---|
| 560 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 561 | exec 6>&1
|
---|
| 562 |
|
---|
| 563 | # Name of the host.
|
---|
| 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
| 565 | # so uname gets run too.
|
---|
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 567 |
|
---|
| 568 | #
|
---|
| 569 | # Initializations.
|
---|
| 570 | #
|
---|
| 571 | ac_default_prefix=/usr/local
|
---|
| 572 | ac_clean_files=
|
---|
| 573 | ac_config_libobj_dir=.
|
---|
| 574 | LIBOBJS=
|
---|
| 575 | cross_compiling=no
|
---|
| 576 | subdirs=
|
---|
| 577 | MFLAGS=
|
---|
| 578 | MAKEFLAGS=
|
---|
| 579 |
|
---|
| 580 | # Identity of this package.
|
---|
| 581 | PACKAGE_NAME='cfa-cc'
|
---|
| 582 | PACKAGE_TARNAME='cfa-cc'
|
---|
[4b1afb6] | 583 | PACKAGE_VERSION='1.0.0.0'
|
---|
| 584 | PACKAGE_STRING='cfa-cc 1.0.0.0'
|
---|
[3b77289] | 585 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca'
|
---|
| 586 | PACKAGE_URL=''
|
---|
| 587 |
|
---|
| 588 | # Factoring default headers for most tests.
|
---|
| 589 | ac_includes_default="\
|
---|
| 590 | #include <stdio.h>
|
---|
| 591 | #ifdef HAVE_SYS_TYPES_H
|
---|
| 592 | # include <sys/types.h>
|
---|
| 593 | #endif
|
---|
| 594 | #ifdef HAVE_SYS_STAT_H
|
---|
| 595 | # include <sys/stat.h>
|
---|
| 596 | #endif
|
---|
| 597 | #ifdef STDC_HEADERS
|
---|
| 598 | # include <stdlib.h>
|
---|
| 599 | # include <stddef.h>
|
---|
| 600 | #else
|
---|
| 601 | # ifdef HAVE_STDLIB_H
|
---|
| 602 | # include <stdlib.h>
|
---|
| 603 | # endif
|
---|
| 604 | #endif
|
---|
| 605 | #ifdef HAVE_STRING_H
|
---|
| 606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
| 607 | # include <memory.h>
|
---|
| 608 | # endif
|
---|
| 609 | # include <string.h>
|
---|
| 610 | #endif
|
---|
| 611 | #ifdef HAVE_STRINGS_H
|
---|
| 612 | # include <strings.h>
|
---|
| 613 | #endif
|
---|
| 614 | #ifdef HAVE_INTTYPES_H
|
---|
| 615 | # include <inttypes.h>
|
---|
| 616 | #endif
|
---|
| 617 | #ifdef HAVE_STDINT_H
|
---|
| 618 | # include <stdint.h>
|
---|
| 619 | #endif
|
---|
| 620 | #ifdef HAVE_UNISTD_H
|
---|
| 621 | # include <unistd.h>
|
---|
| 622 | #endif"
|
---|
| 623 |
|
---|
| 624 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
| 625 | am__EXEEXT_TRUE
|
---|
| 626 | LTLIBOBJS
|
---|
| 627 | LIBOBJS
|
---|
[5d6ce1f] | 628 | ALLOCA
|
---|
[3b77289] | 629 | EGREP
|
---|
| 630 | GREP
|
---|
| 631 | CPP
|
---|
[00cc023] | 632 | RANLIB
|
---|
[56c3935] | 633 | LEXLIB
|
---|
| 634 | LEX_OUTPUT_ROOT
|
---|
| 635 | LEX
|
---|
| 636 | YFLAGS
|
---|
| 637 | YACC
|
---|
[8e5724e] | 638 | am__fastdepCCAS_FALSE
|
---|
| 639 | am__fastdepCCAS_TRUE
|
---|
| 640 | CCASDEPMODE
|
---|
| 641 | CCASFLAGS
|
---|
| 642 | CCAS
|
---|
[3b77289] | 643 | am__fastdepCC_FALSE
|
---|
| 644 | am__fastdepCC_TRUE
|
---|
| 645 | CCDEPMODE
|
---|
| 646 | ac_ct_CC
|
---|
| 647 | CFLAGS
|
---|
| 648 | CC
|
---|
| 649 | am__fastdepCXX_FALSE
|
---|
| 650 | am__fastdepCXX_TRUE
|
---|
| 651 | CXXDEPMODE
|
---|
| 652 | am__nodep
|
---|
| 653 | AMDEPBACKSLASH
|
---|
| 654 | AMDEP_FALSE
|
---|
| 655 | AMDEP_TRUE
|
---|
| 656 | am__quote
|
---|
| 657 | am__include
|
---|
| 658 | DEPDIR
|
---|
| 659 | OBJEXT
|
---|
| 660 | EXEEXT
|
---|
| 661 | ac_ct_CXX
|
---|
| 662 | CPPFLAGS
|
---|
| 663 | LDFLAGS
|
---|
| 664 | CXXFLAGS
|
---|
| 665 | CXX
|
---|
[3f414ef] | 666 | CFA_FLAGS
|
---|
[e4745d7a] | 667 | MACHINE_TYPE
|
---|
| 668 | host_os
|
---|
| 669 | host_vendor
|
---|
| 670 | host_cpu
|
---|
| 671 | host
|
---|
| 672 | build_os
|
---|
| 673 | build_vendor
|
---|
| 674 | build_cpu
|
---|
| 675 | build
|
---|
[5d6ce1f] | 676 | CFA_LIBDIR
|
---|
| 677 | CFA_BINDIR
|
---|
| 678 | CFA_INCDIR
|
---|
| 679 | CFA_PREFIX
|
---|
[05f4b85] | 680 | DOendif
|
---|
| 681 | DOifskipcompile
|
---|
[facc44f] | 682 | BUILD_CONCURRENCY_FALSE
|
---|
| 683 | BUILD_CONCURRENCY_TRUE
|
---|
[24f4671] | 684 | BUILD_NO_LIB_FALSE
|
---|
| 685 | BUILD_NO_LIB_TRUE
|
---|
[9def87a] | 686 | BUILD_DEBUG_FALSE
|
---|
| 687 | BUILD_DEBUG_TRUE
|
---|
| 688 | BUILD_RELEASE_FALSE
|
---|
| 689 | BUILD_RELEASE_TRUE
|
---|
[e24f13a] | 690 | CFA_BACKEND_CC
|
---|
[5d6ce1f] | 691 | BACKEND_CC
|
---|
[df47e2f] | 692 | CFA_NAME
|
---|
[3b77289] | 693 | am__untar
|
---|
| 694 | am__tar
|
---|
| 695 | AMTAR
|
---|
| 696 | am__leading_dot
|
---|
| 697 | SET_MAKE
|
---|
| 698 | AWK
|
---|
| 699 | mkdir_p
|
---|
| 700 | MKDIR_P
|
---|
| 701 | INSTALL_STRIP_PROGRAM
|
---|
| 702 | STRIP
|
---|
| 703 | install_sh
|
---|
| 704 | MAKEINFO
|
---|
| 705 | AUTOHEADER
|
---|
| 706 | AUTOMAKE
|
---|
| 707 | AUTOCONF
|
---|
| 708 | ACLOCAL
|
---|
| 709 | VERSION
|
---|
| 710 | PACKAGE
|
---|
| 711 | CYGPATH_W
|
---|
| 712 | am__isrc
|
---|
| 713 | INSTALL_DATA
|
---|
| 714 | INSTALL_SCRIPT
|
---|
| 715 | INSTALL_PROGRAM
|
---|
[ef7d253] | 716 | AM_BACKSLASH
|
---|
| 717 | AM_DEFAULT_VERBOSITY
|
---|
| 718 | AM_DEFAULT_V
|
---|
| 719 | AM_V
|
---|
[3b77289] | 720 | target_alias
|
---|
| 721 | host_alias
|
---|
| 722 | build_alias
|
---|
| 723 | LIBS
|
---|
| 724 | ECHO_T
|
---|
| 725 | ECHO_N
|
---|
| 726 | ECHO_C
|
---|
| 727 | DEFS
|
---|
| 728 | mandir
|
---|
| 729 | localedir
|
---|
| 730 | libdir
|
---|
| 731 | psdir
|
---|
| 732 | pdfdir
|
---|
| 733 | dvidir
|
---|
| 734 | htmldir
|
---|
| 735 | infodir
|
---|
| 736 | docdir
|
---|
| 737 | oldincludedir
|
---|
| 738 | includedir
|
---|
[44f44617] | 739 | runstatedir
|
---|
[3b77289] | 740 | localstatedir
|
---|
| 741 | sharedstatedir
|
---|
| 742 | sysconfdir
|
---|
| 743 | datadir
|
---|
| 744 | datarootdir
|
---|
| 745 | libexecdir
|
---|
| 746 | sbindir
|
---|
| 747 | bindir
|
---|
| 748 | program_transform_name
|
---|
| 749 | prefix
|
---|
| 750 | exec_prefix
|
---|
| 751 | PACKAGE_URL
|
---|
| 752 | PACKAGE_BUGREPORT
|
---|
| 753 | PACKAGE_STRING
|
---|
| 754 | PACKAGE_VERSION
|
---|
| 755 | PACKAGE_TARNAME
|
---|
| 756 | PACKAGE_NAME
|
---|
| 757 | PATH_SEPARATOR
|
---|
| 758 | SHELL'
|
---|
| 759 | ac_subst_files=''
|
---|
| 760 | ac_user_opts='
|
---|
| 761 | enable_option_checking
|
---|
[ef7d253] | 762 | enable_silent_rules
|
---|
[796cea3] | 763 | with_cfa_name
|
---|
[3b77289] | 764 | with_backend_compiler
|
---|
[9def87a] | 765 | enable_target_release
|
---|
| 766 | enable_target_debug
|
---|
[facc44f] | 767 | enable_threading
|
---|
[5d6ce1f] | 768 | enable_dependency_tracking
|
---|
[3b77289] | 769 | '
|
---|
| 770 | ac_precious_vars='build_alias
|
---|
| 771 | host_alias
|
---|
| 772 | target_alias
|
---|
| 773 | CXX
|
---|
| 774 | CXXFLAGS
|
---|
| 775 | LDFLAGS
|
---|
| 776 | LIBS
|
---|
| 777 | CPPFLAGS
|
---|
| 778 | CCC
|
---|
| 779 | CC
|
---|
| 780 | CFLAGS
|
---|
[8e5724e] | 781 | CCAS
|
---|
| 782 | CCASFLAGS
|
---|
[56c3935] | 783 | YACC
|
---|
| 784 | YFLAGS
|
---|
[3b77289] | 785 | CPP'
|
---|
| 786 |
|
---|
| 787 |
|
---|
| 788 | # Initialize some variables set by options.
|
---|
| 789 | ac_init_help=
|
---|
| 790 | ac_init_version=false
|
---|
| 791 | ac_unrecognized_opts=
|
---|
| 792 | ac_unrecognized_sep=
|
---|
| 793 | # The variables have the same names as the options, with
|
---|
| 794 | # dashes changed to underlines.
|
---|
| 795 | cache_file=/dev/null
|
---|
| 796 | exec_prefix=NONE
|
---|
| 797 | no_create=
|
---|
| 798 | no_recursion=
|
---|
| 799 | prefix=NONE
|
---|
| 800 | program_prefix=NONE
|
---|
| 801 | program_suffix=NONE
|
---|
| 802 | program_transform_name=s,x,x,
|
---|
| 803 | silent=
|
---|
| 804 | site=
|
---|
| 805 | srcdir=
|
---|
| 806 | verbose=
|
---|
| 807 | x_includes=NONE
|
---|
| 808 | x_libraries=NONE
|
---|
| 809 |
|
---|
| 810 | # Installation directory options.
|
---|
| 811 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 812 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 813 | # by default will actually change.
|
---|
| 814 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 815 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
| 816 | bindir='${exec_prefix}/bin'
|
---|
| 817 | sbindir='${exec_prefix}/sbin'
|
---|
| 818 | libexecdir='${exec_prefix}/libexec'
|
---|
| 819 | datarootdir='${prefix}/share'
|
---|
| 820 | datadir='${datarootdir}'
|
---|
| 821 | sysconfdir='${prefix}/etc'
|
---|
| 822 | sharedstatedir='${prefix}/com'
|
---|
| 823 | localstatedir='${prefix}/var'
|
---|
[44f44617] | 824 | runstatedir='${localstatedir}/run'
|
---|
[3b77289] | 825 | includedir='${prefix}/include'
|
---|
| 826 | oldincludedir='/usr/include'
|
---|
| 827 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
| 828 | infodir='${datarootdir}/info'
|
---|
| 829 | htmldir='${docdir}'
|
---|
| 830 | dvidir='${docdir}'
|
---|
| 831 | pdfdir='${docdir}'
|
---|
| 832 | psdir='${docdir}'
|
---|
| 833 | libdir='${exec_prefix}/lib'
|
---|
| 834 | localedir='${datarootdir}/locale'
|
---|
| 835 | mandir='${datarootdir}/man'
|
---|
| 836 |
|
---|
| 837 | ac_prev=
|
---|
| 838 | ac_dashdash=
|
---|
| 839 | for ac_option
|
---|
| 840 | do
|
---|
| 841 | # If the previous option needs an argument, assign it.
|
---|
| 842 | if test -n "$ac_prev"; then
|
---|
| 843 | eval $ac_prev=\$ac_option
|
---|
| 844 | ac_prev=
|
---|
| 845 | continue
|
---|
| 846 | fi
|
---|
| 847 |
|
---|
| 848 | case $ac_option in
|
---|
| 849 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 850 | *=) ac_optarg= ;;
|
---|
| 851 | *) ac_optarg=yes ;;
|
---|
| 852 | esac
|
---|
| 853 |
|
---|
| 854 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 855 |
|
---|
| 856 | case $ac_dashdash$ac_option in
|
---|
| 857 | --)
|
---|
| 858 | ac_dashdash=yes ;;
|
---|
| 859 |
|
---|
| 860 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 861 | ac_prev=bindir ;;
|
---|
| 862 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 863 | bindir=$ac_optarg ;;
|
---|
| 864 |
|
---|
| 865 | -build | --build | --buil | --bui | --bu)
|
---|
| 866 | ac_prev=build_alias ;;
|
---|
| 867 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 868 | build_alias=$ac_optarg ;;
|
---|
| 869 |
|
---|
| 870 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 871 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 872 | ac_prev=cache_file ;;
|
---|
| 873 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 874 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 875 | cache_file=$ac_optarg ;;
|
---|
| 876 |
|
---|
| 877 | --config-cache | -C)
|
---|
| 878 | cache_file=config.cache ;;
|
---|
| 879 |
|
---|
| 880 | -datadir | --datadir | --datadi | --datad)
|
---|
| 881 | ac_prev=datadir ;;
|
---|
| 882 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
| 883 | datadir=$ac_optarg ;;
|
---|
| 884 |
|
---|
| 885 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 886 | | --dataroo | --dataro | --datar)
|
---|
| 887 | ac_prev=datarootdir ;;
|
---|
| 888 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 889 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 890 | datarootdir=$ac_optarg ;;
|
---|
| 891 |
|
---|
| 892 | -disable-* | --disable-*)
|
---|
| 893 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 894 | # Reject names that are not valid shell variable names.
|
---|
| 895 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 896 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
| 897 | ac_useropt_orig=$ac_useropt
|
---|
| 898 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 899 | case $ac_user_opts in
|
---|
| 900 | *"
|
---|
| 901 | "enable_$ac_useropt"
|
---|
| 902 | "*) ;;
|
---|
| 903 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 904 | ac_unrecognized_sep=', ';;
|
---|
| 905 | esac
|
---|
| 906 | eval enable_$ac_useropt=no ;;
|
---|
| 907 |
|
---|
| 908 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 909 | ac_prev=docdir ;;
|
---|
| 910 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 911 | docdir=$ac_optarg ;;
|
---|
| 912 |
|
---|
| 913 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 914 | ac_prev=dvidir ;;
|
---|
| 915 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 916 | dvidir=$ac_optarg ;;
|
---|
| 917 |
|
---|
| 918 | -enable-* | --enable-*)
|
---|
| 919 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 920 | # Reject names that are not valid shell variable names.
|
---|
| 921 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 922 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
| 923 | ac_useropt_orig=$ac_useropt
|
---|
| 924 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 925 | case $ac_user_opts in
|
---|
| 926 | *"
|
---|
| 927 | "enable_$ac_useropt"
|
---|
| 928 | "*) ;;
|
---|
| 929 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 930 | ac_unrecognized_sep=', ';;
|
---|
| 931 | esac
|
---|
| 932 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
| 933 |
|
---|
| 934 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 935 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 936 | | --exec | --exe | --ex)
|
---|
| 937 | ac_prev=exec_prefix ;;
|
---|
| 938 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 939 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 940 | | --exec=* | --exe=* | --ex=*)
|
---|
| 941 | exec_prefix=$ac_optarg ;;
|
---|
| 942 |
|
---|
| 943 | -gas | --gas | --ga | --g)
|
---|
| 944 | # Obsolete; use --with-gas.
|
---|
| 945 | with_gas=yes ;;
|
---|
| 946 |
|
---|
| 947 | -help | --help | --hel | --he | -h)
|
---|
| 948 | ac_init_help=long ;;
|
---|
| 949 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 950 | ac_init_help=recursive ;;
|
---|
| 951 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 952 | ac_init_help=short ;;
|
---|
| 953 |
|
---|
| 954 | -host | --host | --hos | --ho)
|
---|
| 955 | ac_prev=host_alias ;;
|
---|
| 956 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 957 | host_alias=$ac_optarg ;;
|
---|
| 958 |
|
---|
| 959 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 960 | ac_prev=htmldir ;;
|
---|
| 961 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 962 | | --ht=*)
|
---|
| 963 | htmldir=$ac_optarg ;;
|
---|
| 964 |
|
---|
| 965 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 966 | | --includ | --inclu | --incl | --inc)
|
---|
| 967 | ac_prev=includedir ;;
|
---|
| 968 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 969 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 970 | includedir=$ac_optarg ;;
|
---|
| 971 |
|
---|
| 972 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 973 | ac_prev=infodir ;;
|
---|
| 974 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 975 | infodir=$ac_optarg ;;
|
---|
| 976 |
|
---|
| 977 | -libdir | --libdir | --libdi | --libd)
|
---|
| 978 | ac_prev=libdir ;;
|
---|
| 979 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 980 | libdir=$ac_optarg ;;
|
---|
| 981 |
|
---|
| 982 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 983 | | --libexe | --libex | --libe)
|
---|
| 984 | ac_prev=libexecdir ;;
|
---|
| 985 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 986 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 987 | libexecdir=$ac_optarg ;;
|
---|
| 988 |
|
---|
| 989 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 990 | ac_prev=localedir ;;
|
---|
| 991 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 992 | localedir=$ac_optarg ;;
|
---|
| 993 |
|
---|
| 994 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 995 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
| 996 | ac_prev=localstatedir ;;
|
---|
| 997 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 998 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
| 999 | localstatedir=$ac_optarg ;;
|
---|
| 1000 |
|
---|
| 1001 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 1002 | ac_prev=mandir ;;
|
---|
| 1003 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 1004 | mandir=$ac_optarg ;;
|
---|
| 1005 |
|
---|
| 1006 | -nfp | --nfp | --nf)
|
---|
| 1007 | # Obsolete; use --without-fp.
|
---|
| 1008 | with_fp=no ;;
|
---|
| 1009 |
|
---|
| 1010 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 1011 | | --no-cr | --no-c | -n)
|
---|
| 1012 | no_create=yes ;;
|
---|
| 1013 |
|
---|
| 1014 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 1015 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 1016 | no_recursion=yes ;;
|
---|
| 1017 |
|
---|
| 1018 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 1019 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 1020 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 1021 | ac_prev=oldincludedir ;;
|
---|
| 1022 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 1023 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 1024 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 1025 | oldincludedir=$ac_optarg ;;
|
---|
| 1026 |
|
---|
| 1027 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 1028 | ac_prev=prefix ;;
|
---|
| 1029 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 1030 | prefix=$ac_optarg ;;
|
---|
| 1031 |
|
---|
| 1032 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 1033 | | --program-pre | --program-pr | --program-p)
|
---|
| 1034 | ac_prev=program_prefix ;;
|
---|
| 1035 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 1036 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 1037 | program_prefix=$ac_optarg ;;
|
---|
| 1038 |
|
---|
| 1039 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 1040 | | --program-suf | --program-su | --program-s)
|
---|
| 1041 | ac_prev=program_suffix ;;
|
---|
| 1042 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 1043 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 1044 | program_suffix=$ac_optarg ;;
|
---|
| 1045 |
|
---|
| 1046 | -program-transform-name | --program-transform-name \
|
---|
| 1047 | | --program-transform-nam | --program-transform-na \
|
---|
| 1048 | | --program-transform-n | --program-transform- \
|
---|
| 1049 | | --program-transform | --program-transfor \
|
---|
| 1050 | | --program-transfo | --program-transf \
|
---|
| 1051 | | --program-trans | --program-tran \
|
---|
| 1052 | | --progr-tra | --program-tr | --program-t)
|
---|
| 1053 | ac_prev=program_transform_name ;;
|
---|
| 1054 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 1055 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 1056 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 1057 | | --program-transform=* | --program-transfor=* \
|
---|
| 1058 | | --program-transfo=* | --program-transf=* \
|
---|
| 1059 | | --program-trans=* | --program-tran=* \
|
---|
| 1060 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 1061 | program_transform_name=$ac_optarg ;;
|
---|
| 1062 |
|
---|
| 1063 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 1064 | ac_prev=pdfdir ;;
|
---|
| 1065 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 1066 | pdfdir=$ac_optarg ;;
|
---|
| 1067 |
|
---|
| 1068 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 1069 | ac_prev=psdir ;;
|
---|
| 1070 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1071 | psdir=$ac_optarg ;;
|
---|
| 1072 |
|
---|
| 1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1074 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1075 | silent=yes ;;
|
---|
| 1076 |
|
---|
[44f44617] | 1077 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
| 1078 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
| 1079 | | --run | --ru | --r)
|
---|
| 1080 | ac_prev=runstatedir ;;
|
---|
| 1081 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
| 1082 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
| 1083 | | --run=* | --ru=* | --r=*)
|
---|
| 1084 | runstatedir=$ac_optarg ;;
|
---|
| 1085 |
|
---|
[3b77289] | 1086 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1087 | ac_prev=sbindir ;;
|
---|
| 1088 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1089 | | --sbi=* | --sb=*)
|
---|
| 1090 | sbindir=$ac_optarg ;;
|
---|
| 1091 |
|
---|
| 1092 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1093 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1094 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1095 | | --sha | --sh)
|
---|
| 1096 | ac_prev=sharedstatedir ;;
|
---|
| 1097 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1098 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1099 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1100 | | --sha=* | --sh=*)
|
---|
| 1101 | sharedstatedir=$ac_optarg ;;
|
---|
| 1102 |
|
---|
| 1103 | -site | --site | --sit)
|
---|
| 1104 | ac_prev=site ;;
|
---|
| 1105 | -site=* | --site=* | --sit=*)
|
---|
| 1106 | site=$ac_optarg ;;
|
---|
| 1107 |
|
---|
| 1108 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1109 | ac_prev=srcdir ;;
|
---|
| 1110 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 1111 | srcdir=$ac_optarg ;;
|
---|
| 1112 |
|
---|
| 1113 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1114 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1115 | ac_prev=sysconfdir ;;
|
---|
| 1116 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1117 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 1118 | sysconfdir=$ac_optarg ;;
|
---|
| 1119 |
|
---|
| 1120 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 1121 | ac_prev=target_alias ;;
|
---|
| 1122 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 1123 | target_alias=$ac_optarg ;;
|
---|
| 1124 |
|
---|
| 1125 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1126 | verbose=yes ;;
|
---|
| 1127 |
|
---|
| 1128 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1129 | ac_init_version=: ;;
|
---|
| 1130 |
|
---|
| 1131 | -with-* | --with-*)
|
---|
| 1132 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 1133 | # Reject names that are not valid shell variable names.
|
---|
| 1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 1135 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
| 1136 | ac_useropt_orig=$ac_useropt
|
---|
| 1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1138 | case $ac_user_opts in
|
---|
| 1139 | *"
|
---|
| 1140 | "with_$ac_useropt"
|
---|
| 1141 | "*) ;;
|
---|
| 1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1143 | ac_unrecognized_sep=', ';;
|
---|
| 1144 | esac
|
---|
| 1145 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
| 1146 |
|
---|
| 1147 | -without-* | --without-*)
|
---|
| 1148 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 1149 | # Reject names that are not valid shell variable names.
|
---|
| 1150 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 1151 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
| 1152 | ac_useropt_orig=$ac_useropt
|
---|
| 1153 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1154 | case $ac_user_opts in
|
---|
| 1155 | *"
|
---|
| 1156 | "with_$ac_useropt"
|
---|
| 1157 | "*) ;;
|
---|
| 1158 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1159 | ac_unrecognized_sep=', ';;
|
---|
| 1160 | esac
|
---|
| 1161 | eval with_$ac_useropt=no ;;
|
---|
| 1162 |
|
---|
| 1163 | --x)
|
---|
| 1164 | # Obsolete; use --with-x.
|
---|
| 1165 | with_x=yes ;;
|
---|
| 1166 |
|
---|
| 1167 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1168 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1169 | ac_prev=x_includes ;;
|
---|
| 1170 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1171 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 1172 | x_includes=$ac_optarg ;;
|
---|
| 1173 |
|
---|
| 1174 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1175 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1176 | ac_prev=x_libraries ;;
|
---|
| 1177 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1178 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 1179 | x_libraries=$ac_optarg ;;
|
---|
| 1180 |
|
---|
| 1181 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
| 1182 | Try \`$0 --help' for more information"
|
---|
| 1183 | ;;
|
---|
| 1184 |
|
---|
| 1185 | *=*)
|
---|
| 1186 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1187 | # Reject names that are not valid shell variable names.
|
---|
| 1188 | case $ac_envvar in #(
|
---|
| 1189 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
| 1190 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
| 1191 | esac
|
---|
| 1192 | eval $ac_envvar=\$ac_optarg
|
---|
| 1193 | export $ac_envvar ;;
|
---|
| 1194 |
|
---|
| 1195 | *)
|
---|
| 1196 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 1197 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 1198 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1199 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 1200 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
| 1201 | ;;
|
---|
| 1202 |
|
---|
| 1203 | esac
|
---|
| 1204 | done
|
---|
| 1205 |
|
---|
| 1206 | if test -n "$ac_prev"; then
|
---|
| 1207 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 1208 | as_fn_error $? "missing argument to $ac_option"
|
---|
| 1209 | fi
|
---|
| 1210 |
|
---|
| 1211 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1212 | case $enable_option_checking in
|
---|
| 1213 | no) ;;
|
---|
| 1214 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
| 1215 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
| 1216 | esac
|
---|
| 1217 | fi
|
---|
| 1218 |
|
---|
| 1219 | # Check all directory arguments for consistency.
|
---|
| 1220 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1221 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1222 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
[44f44617] | 1223 | libdir localedir mandir runstatedir
|
---|
[3b77289] | 1224 | do
|
---|
| 1225 | eval ac_val=\$$ac_var
|
---|
| 1226 | # Remove trailing slashes.
|
---|
| 1227 | case $ac_val in
|
---|
| 1228 | */ )
|
---|
| 1229 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1230 | eval $ac_var=\$ac_val;;
|
---|
| 1231 | esac
|
---|
| 1232 | # Be sure to have absolute directory names.
|
---|
| 1233 | case $ac_val in
|
---|
| 1234 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1235 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1236 | esac
|
---|
| 1237 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
| 1238 | done
|
---|
| 1239 |
|
---|
| 1240 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1241 | # used to hold the argument of --host etc.
|
---|
| 1242 | # FIXME: To remove some day.
|
---|
| 1243 | build=$build_alias
|
---|
| 1244 | host=$host_alias
|
---|
| 1245 | target=$target_alias
|
---|
| 1246 |
|
---|
| 1247 | # FIXME: To remove some day.
|
---|
| 1248 | if test "x$host_alias" != x; then
|
---|
| 1249 | if test "x$build_alias" = x; then
|
---|
| 1250 | cross_compiling=maybe
|
---|
| 1251 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1252 | cross_compiling=yes
|
---|
| 1253 | fi
|
---|
| 1254 | fi
|
---|
| 1255 |
|
---|
| 1256 | ac_tool_prefix=
|
---|
| 1257 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 1258 |
|
---|
| 1259 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1260 |
|
---|
| 1261 |
|
---|
| 1262 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1263 | ac_ls_di=`ls -di .` &&
|
---|
| 1264 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
| 1265 | as_fn_error $? "working directory cannot be determined"
|
---|
| 1266 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
| 1267 | as_fn_error $? "pwd does not report name of working directory"
|
---|
| 1268 |
|
---|
| 1269 |
|
---|
| 1270 | # Find the source files, if location was not specified.
|
---|
| 1271 | if test -z "$srcdir"; then
|
---|
| 1272 | ac_srcdir_defaulted=yes
|
---|
| 1273 | # Try the directory containing this script, then the parent directory.
|
---|
| 1274 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1275 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1276 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1277 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1278 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1279 | $as_echo X"$as_myself" |
|
---|
| 1280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1281 | s//\1/
|
---|
| 1282 | q
|
---|
| 1283 | }
|
---|
| 1284 | /^X\(\/\/\)[^/].*/{
|
---|
| 1285 | s//\1/
|
---|
| 1286 | q
|
---|
| 1287 | }
|
---|
| 1288 | /^X\(\/\/\)$/{
|
---|
| 1289 | s//\1/
|
---|
| 1290 | q
|
---|
| 1291 | }
|
---|
| 1292 | /^X\(\/\).*/{
|
---|
| 1293 | s//\1/
|
---|
| 1294 | q
|
---|
| 1295 | }
|
---|
| 1296 | s/.*/./; q'`
|
---|
| 1297 | srcdir=$ac_confdir
|
---|
| 1298 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1299 | srcdir=..
|
---|
| 1300 | fi
|
---|
| 1301 | else
|
---|
| 1302 | ac_srcdir_defaulted=no
|
---|
| 1303 | fi
|
---|
| 1304 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1305 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
| 1306 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
| 1307 | fi
|
---|
| 1308 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1309 | ac_abs_confdir=`(
|
---|
| 1310 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
| 1311 | pwd)`
|
---|
| 1312 | # When building in place, set srcdir=.
|
---|
| 1313 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1314 | srcdir=.
|
---|
| 1315 | fi
|
---|
| 1316 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1317 | # Double slashes in file names in object file debugging info
|
---|
| 1318 | # mess up M-x gdb in Emacs.
|
---|
| 1319 | case $srcdir in
|
---|
| 1320 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1321 | esac
|
---|
| 1322 | for ac_var in $ac_precious_vars; do
|
---|
| 1323 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1324 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1325 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1326 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1327 | done
|
---|
| 1328 |
|
---|
| 1329 | #
|
---|
| 1330 | # Report the --help message.
|
---|
| 1331 | #
|
---|
| 1332 | if test "$ac_init_help" = "long"; then
|
---|
| 1333 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1334 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1335 | cat <<_ACEOF
|
---|
[4b1afb6] | 1336 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems.
|
---|
[3b77289] | 1337 |
|
---|
| 1338 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1339 |
|
---|
| 1340 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1341 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1342 |
|
---|
| 1343 | Defaults for the options are specified in brackets.
|
---|
| 1344 |
|
---|
| 1345 | Configuration:
|
---|
| 1346 | -h, --help display this help and exit
|
---|
| 1347 | --help=short display options specific to this package
|
---|
| 1348 | --help=recursive display the short help of all the included packages
|
---|
| 1349 | -V, --version display version information and exit
|
---|
| 1350 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
| 1351 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1352 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1353 | -n, --no-create do not create output files
|
---|
| 1354 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1355 |
|
---|
| 1356 | Installation directories:
|
---|
| 1357 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 1358 | [$ac_default_prefix]
|
---|
| 1359 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 1360 | [PREFIX]
|
---|
| 1361 |
|
---|
| 1362 | By default, \`make install' will install all the files in
|
---|
| 1363 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1364 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1365 | for instance \`--prefix=\$HOME'.
|
---|
| 1366 |
|
---|
| 1367 | For better control, use the options below.
|
---|
| 1368 |
|
---|
| 1369 | Fine tuning of the installation directories:
|
---|
| 1370 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1371 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1372 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1373 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1374 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1375 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
[44f44617] | 1376 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
[3b77289] | 1377 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1378 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1379 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1380 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1381 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1382 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1383 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1384 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1385 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc]
|
---|
| 1386 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1387 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1388 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1389 | --psdir=DIR ps documentation [DOCDIR]
|
---|
| 1390 | _ACEOF
|
---|
| 1391 |
|
---|
| 1392 | cat <<\_ACEOF
|
---|
| 1393 |
|
---|
| 1394 | Program names:
|
---|
| 1395 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 1396 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 1397 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[e4745d7a] | 1398 |
|
---|
| 1399 | System types:
|
---|
| 1400 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1401 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
[3b77289] | 1402 | _ACEOF
|
---|
| 1403 | fi
|
---|
| 1404 |
|
---|
| 1405 | if test -n "$ac_init_help"; then
|
---|
| 1406 | case $ac_init_help in
|
---|
[4b1afb6] | 1407 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";;
|
---|
[3b77289] | 1408 | esac
|
---|
| 1409 | cat <<\_ACEOF
|
---|
| 1410 |
|
---|
| 1411 | Optional Features:
|
---|
| 1412 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
| 1413 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1414 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
[44f44617] | 1415 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
| 1416 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
[9def87a] | 1417 | --enable-target-release Build and install the release target
|
---|
| 1418 | --enable-target-debug Build and install the debug target
|
---|
[facc44f] | 1419 | --enable-threading Build and install libcfa with threading support
|
---|
| 1420 | (Enabled by default)
|
---|
[44f44617] | 1421 | --enable-dependency-tracking
|
---|
| 1422 | do not reject slow dependency extractors
|
---|
| 1423 | --disable-dependency-tracking
|
---|
| 1424 | speeds up one-time build
|
---|
[3b77289] | 1425 |
|
---|
| 1426 | Optional Packages:
|
---|
| 1427 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1428 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
[796cea3] | 1429 | --with-cfa-name=NAME NAME too which cfa will be installed
|
---|
[3b77289] | 1430 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible)
|
---|
| 1431 |
|
---|
| 1432 | Some influential environment variables:
|
---|
| 1433 | CXX C++ compiler command
|
---|
| 1434 | CXXFLAGS C++ compiler flags
|
---|
| 1435 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1436 | nonstandard directory <lib dir>
|
---|
| 1437 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1438 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
| 1439 | you have headers in a nonstandard directory <include dir>
|
---|
| 1440 | CC C compiler command
|
---|
| 1441 | CFLAGS C compiler flags
|
---|
[8e5724e] | 1442 | CCAS assembler compiler command (defaults to CC)
|
---|
| 1443 | CCASFLAGS assembler compiler flags (defaults to CFLAGS)
|
---|
[56c3935] | 1444 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
| 1445 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
| 1446 | `yacc'.
|
---|
| 1447 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1448 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1449 | default value of `-d' given by some make applications.
|
---|
[3b77289] | 1450 | CPP C preprocessor
|
---|
| 1451 |
|
---|
| 1452 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1453 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1454 |
|
---|
| 1455 | Report bugs to <cforall@plg.uwaterloo.ca>.
|
---|
| 1456 | _ACEOF
|
---|
| 1457 | ac_status=$?
|
---|
| 1458 | fi
|
---|
| 1459 |
|
---|
| 1460 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1461 | # If there are subdirs, report their specific --help.
|
---|
| 1462 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 1463 | test -d "$ac_dir" ||
|
---|
| 1464 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1465 | continue
|
---|
| 1466 | ac_builddir=.
|
---|
| 1467 |
|
---|
| 1468 | case "$ac_dir" in
|
---|
| 1469 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1470 | *)
|
---|
| 1471 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1472 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1473 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1474 | case $ac_top_builddir_sub in
|
---|
| 1475 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1476 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1477 | esac ;;
|
---|
| 1478 | esac
|
---|
| 1479 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1480 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1481 | # for backward compatibility:
|
---|
| 1482 | ac_top_builddir=$ac_top_build_prefix
|
---|
| 1483 |
|
---|
| 1484 | case $srcdir in
|
---|
| 1485 | .) # We are building in place.
|
---|
| 1486 | ac_srcdir=.
|
---|
| 1487 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1488 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1489 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
| 1490 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 1491 | ac_top_srcdir=$srcdir
|
---|
| 1492 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1493 | *) # Relative name.
|
---|
| 1494 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1495 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1496 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
| 1497 | esac
|
---|
| 1498 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
| 1499 |
|
---|
| 1500 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1501 | # Check for guested configure.
|
---|
| 1502 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1503 | echo &&
|
---|
| 1504 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1505 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1506 | echo &&
|
---|
| 1507 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
| 1508 | else
|
---|
| 1509 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1510 | fi || ac_status=$?
|
---|
| 1511 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
| 1512 | done
|
---|
| 1513 | fi
|
---|
| 1514 |
|
---|
| 1515 | test -n "$ac_init_help" && exit $ac_status
|
---|
| 1516 | if $ac_init_version; then
|
---|
| 1517 | cat <<\_ACEOF
|
---|
[4b1afb6] | 1518 | cfa-cc configure 1.0.0.0
|
---|
[44f44617] | 1519 | generated by GNU Autoconf 2.69
|
---|
[3b77289] | 1520 |
|
---|
[44f44617] | 1521 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
[3b77289] | 1522 | This configure script is free software; the Free Software Foundation
|
---|
| 1523 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1524 | _ACEOF
|
---|
| 1525 | exit
|
---|
| 1526 | fi
|
---|
| 1527 |
|
---|
| 1528 | ## ------------------------ ##
|
---|
| 1529 | ## Autoconf initialization. ##
|
---|
| 1530 | ## ------------------------ ##
|
---|
| 1531 |
|
---|
| 1532 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1533 | # ----------------------------
|
---|
| 1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1535 | ac_fn_cxx_try_compile ()
|
---|
| 1536 | {
|
---|
| 1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1538 | rm -f conftest.$ac_objext
|
---|
| 1539 | if { { ac_try="$ac_compile"
|
---|
| 1540 | case "(($ac_try" in
|
---|
| 1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1542 | *) ac_try_echo=$ac_try;;
|
---|
| 1543 | esac
|
---|
| 1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1545 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1546 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1547 | ac_status=$?
|
---|
| 1548 | if test -s conftest.err; then
|
---|
| 1549 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1550 | cat conftest.er1 >&5
|
---|
| 1551 | mv -f conftest.er1 conftest.err
|
---|
| 1552 | fi
|
---|
| 1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1554 | test $ac_status = 0; } && {
|
---|
| 1555 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1556 | test ! -s conftest.err
|
---|
| 1557 | } && test -s conftest.$ac_objext; then :
|
---|
| 1558 | ac_retval=0
|
---|
| 1559 | else
|
---|
| 1560 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1561 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1562 |
|
---|
| 1563 | ac_retval=1
|
---|
| 1564 | fi
|
---|
| 1565 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1566 | as_fn_set_status $ac_retval
|
---|
| 1567 |
|
---|
| 1568 | } # ac_fn_cxx_try_compile
|
---|
| 1569 |
|
---|
| 1570 | # ac_fn_c_try_compile LINENO
|
---|
| 1571 | # --------------------------
|
---|
| 1572 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1573 | ac_fn_c_try_compile ()
|
---|
| 1574 | {
|
---|
| 1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1576 | rm -f conftest.$ac_objext
|
---|
| 1577 | if { { ac_try="$ac_compile"
|
---|
| 1578 | case "(($ac_try" in
|
---|
| 1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1580 | *) ac_try_echo=$ac_try;;
|
---|
| 1581 | esac
|
---|
| 1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1583 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1584 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1585 | ac_status=$?
|
---|
| 1586 | if test -s conftest.err; then
|
---|
| 1587 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1588 | cat conftest.er1 >&5
|
---|
| 1589 | mv -f conftest.er1 conftest.err
|
---|
| 1590 | fi
|
---|
| 1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1592 | test $ac_status = 0; } && {
|
---|
| 1593 | test -z "$ac_c_werror_flag" ||
|
---|
| 1594 | test ! -s conftest.err
|
---|
| 1595 | } && test -s conftest.$ac_objext; then :
|
---|
| 1596 | ac_retval=0
|
---|
| 1597 | else
|
---|
| 1598 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1599 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1600 |
|
---|
| 1601 | ac_retval=1
|
---|
| 1602 | fi
|
---|
| 1603 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1604 | as_fn_set_status $ac_retval
|
---|
| 1605 |
|
---|
| 1606 | } # ac_fn_c_try_compile
|
---|
| 1607 |
|
---|
[56c3935] | 1608 | # ac_fn_c_try_link LINENO
|
---|
| 1609 | # -----------------------
|
---|
| 1610 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1611 | ac_fn_c_try_link ()
|
---|
| 1612 | {
|
---|
| 1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1614 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1615 | if { { ac_try="$ac_link"
|
---|
| 1616 | case "(($ac_try" in
|
---|
| 1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1618 | *) ac_try_echo=$ac_try;;
|
---|
| 1619 | esac
|
---|
| 1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1621 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1622 | (eval "$ac_link") 2>conftest.err
|
---|
| 1623 | ac_status=$?
|
---|
| 1624 | if test -s conftest.err; then
|
---|
| 1625 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1626 | cat conftest.er1 >&5
|
---|
| 1627 | mv -f conftest.er1 conftest.err
|
---|
| 1628 | fi
|
---|
| 1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1630 | test $ac_status = 0; } && {
|
---|
| 1631 | test -z "$ac_c_werror_flag" ||
|
---|
| 1632 | test ! -s conftest.err
|
---|
| 1633 | } && test -s conftest$ac_exeext && {
|
---|
| 1634 | test "$cross_compiling" = yes ||
|
---|
[44f44617] | 1635 | test -x conftest$ac_exeext
|
---|
[56c3935] | 1636 | }; then :
|
---|
| 1637 | ac_retval=0
|
---|
| 1638 | else
|
---|
| 1639 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1640 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1641 |
|
---|
| 1642 | ac_retval=1
|
---|
| 1643 | fi
|
---|
| 1644 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1645 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1646 | # interfere with the next link command; also delete a directory that is
|
---|
| 1647 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1648 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1650 | as_fn_set_status $ac_retval
|
---|
| 1651 |
|
---|
| 1652 | } # ac_fn_c_try_link
|
---|
| 1653 |
|
---|
[5d6ce1f] | 1654 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1655 | # -------------------------------------------
|
---|
| 1656 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1657 | # variable VAR accordingly.
|
---|
| 1658 | ac_fn_c_check_type ()
|
---|
[3b77289] | 1659 | {
|
---|
| 1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[5d6ce1f] | 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1662 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1663 | if eval \${$3+:} false; then :
|
---|
| 1664 | $as_echo_n "(cached) " >&6
|
---|
| 1665 | else
|
---|
| 1666 | eval "$3=no"
|
---|
| 1667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1668 | /* end confdefs.h. */
|
---|
| 1669 | $4
|
---|
| 1670 | int
|
---|
| 1671 | main ()
|
---|
| 1672 | {
|
---|
| 1673 | if (sizeof ($2))
|
---|
| 1674 | return 0;
|
---|
| 1675 | ;
|
---|
| 1676 | return 0;
|
---|
| 1677 | }
|
---|
| 1678 | _ACEOF
|
---|
| 1679 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1681 | /* end confdefs.h. */
|
---|
| 1682 | $4
|
---|
| 1683 | int
|
---|
| 1684 | main ()
|
---|
| 1685 | {
|
---|
| 1686 | if (sizeof (($2)))
|
---|
| 1687 | return 0;
|
---|
| 1688 | ;
|
---|
| 1689 | return 0;
|
---|
| 1690 | }
|
---|
| 1691 | _ACEOF
|
---|
| 1692 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1693 |
|
---|
| 1694 | else
|
---|
| 1695 | eval "$3=yes"
|
---|
| 1696 | fi
|
---|
| 1697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1698 | fi
|
---|
| 1699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1700 | fi
|
---|
| 1701 | eval ac_res=\$$3
|
---|
| 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1703 | $as_echo "$ac_res" >&6; }
|
---|
| 1704 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1705 |
|
---|
| 1706 | } # ac_fn_c_check_type
|
---|
| 1707 |
|
---|
| 1708 | # ac_fn_c_try_cpp LINENO
|
---|
| 1709 | # ----------------------
|
---|
| 1710 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1711 | ac_fn_c_try_cpp ()
|
---|
| 1712 | {
|
---|
| 1713 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1714 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
[3b77289] | 1715 | case "(($ac_try" in
|
---|
| 1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1717 | *) ac_try_echo=$ac_try;;
|
---|
| 1718 | esac
|
---|
| 1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1720 | $as_echo "$ac_try_echo"; } >&5
|
---|
[5d6ce1f] | 1721 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
[3b77289] | 1722 | ac_status=$?
|
---|
| 1723 | if test -s conftest.err; then
|
---|
| 1724 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1725 | cat conftest.er1 >&5
|
---|
| 1726 | mv -f conftest.er1 conftest.err
|
---|
| 1727 | fi
|
---|
| 1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
[5d6ce1f] | 1729 | test $ac_status = 0; } > conftest.i && {
|
---|
| 1730 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
[3b77289] | 1731 | test ! -s conftest.err
|
---|
| 1732 | }; then :
|
---|
| 1733 | ac_retval=0
|
---|
| 1734 | else
|
---|
| 1735 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1736 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1737 |
|
---|
[5d6ce1f] | 1738 | ac_retval=1
|
---|
[3b77289] | 1739 | fi
|
---|
| 1740 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1741 | as_fn_set_status $ac_retval
|
---|
| 1742 |
|
---|
[5d6ce1f] | 1743 | } # ac_fn_c_try_cpp
|
---|
[3b77289] | 1744 |
|
---|
[5d6ce1f] | 1745 | # ac_fn_c_try_run LINENO
|
---|
[3b77289] | 1746 | # ----------------------
|
---|
[5d6ce1f] | 1747 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1748 | # that executables *can* be run.
|
---|
| 1749 | ac_fn_c_try_run ()
|
---|
[3b77289] | 1750 | {
|
---|
| 1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[5d6ce1f] | 1752 | if { { ac_try="$ac_link"
|
---|
[3b77289] | 1753 | case "(($ac_try" in
|
---|
| 1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1755 | *) ac_try_echo=$ac_try;;
|
---|
| 1756 | esac
|
---|
| 1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1758 | $as_echo "$ac_try_echo"; } >&5
|
---|
[5d6ce1f] | 1759 | (eval "$ac_link") 2>&5
|
---|
| 1760 | ac_status=$?
|
---|
| 1761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1762 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1763 | { { case "(($ac_try" in
|
---|
| 1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1765 | *) ac_try_echo=$ac_try;;
|
---|
| 1766 | esac
|
---|
| 1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1768 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1769 | (eval "$ac_try") 2>&5
|
---|
| 1770 | ac_status=$?
|
---|
| 1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1772 | test $ac_status = 0; }; }; then :
|
---|
| 1773 | ac_retval=0
|
---|
| 1774 | else
|
---|
| 1775 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1776 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1777 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1778 |
|
---|
| 1779 | ac_retval=$ac_status
|
---|
| 1780 | fi
|
---|
| 1781 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1782 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1783 | as_fn_set_status $ac_retval
|
---|
| 1784 |
|
---|
| 1785 | } # ac_fn_c_try_run
|
---|
| 1786 |
|
---|
| 1787 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1788 | # -------------------------------------------------------
|
---|
| 1789 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1790 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1791 | ac_fn_c_check_header_compile ()
|
---|
| 1792 | {
|
---|
| 1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1795 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1796 | if eval \${$3+:} false; then :
|
---|
| 1797 | $as_echo_n "(cached) " >&6
|
---|
| 1798 | else
|
---|
| 1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1800 | /* end confdefs.h. */
|
---|
| 1801 | $4
|
---|
| 1802 | #include <$2>
|
---|
| 1803 | _ACEOF
|
---|
| 1804 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1805 | eval "$3=yes"
|
---|
| 1806 | else
|
---|
| 1807 | eval "$3=no"
|
---|
| 1808 | fi
|
---|
| 1809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1810 | fi
|
---|
| 1811 | eval ac_res=\$$3
|
---|
| 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1813 | $as_echo "$ac_res" >&6; }
|
---|
| 1814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1815 |
|
---|
| 1816 | } # ac_fn_c_check_header_compile
|
---|
| 1817 |
|
---|
| 1818 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1819 | # ----------------------------------
|
---|
| 1820 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1821 | ac_fn_c_check_func ()
|
---|
| 1822 | {
|
---|
| 1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1825 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1826 | if eval \${$3+:} false; then :
|
---|
| 1827 | $as_echo_n "(cached) " >&6
|
---|
| 1828 | else
|
---|
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1830 | /* end confdefs.h. */
|
---|
| 1831 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1833 | #define $2 innocuous_$2
|
---|
| 1834 |
|
---|
| 1835 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1836 | which can conflict with char $2 (); below.
|
---|
| 1837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1838 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1839 |
|
---|
| 1840 | #ifdef __STDC__
|
---|
| 1841 | # include <limits.h>
|
---|
| 1842 | #else
|
---|
| 1843 | # include <assert.h>
|
---|
| 1844 | #endif
|
---|
| 1845 |
|
---|
| 1846 | #undef $2
|
---|
| 1847 |
|
---|
| 1848 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1849 | Use char because int might match the return type of a GCC
|
---|
| 1850 | builtin and then its argument prototype would still apply. */
|
---|
| 1851 | #ifdef __cplusplus
|
---|
| 1852 | extern "C"
|
---|
| 1853 | #endif
|
---|
| 1854 | char $2 ();
|
---|
| 1855 | /* The GNU C library defines this for functions which it implements
|
---|
| 1856 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1857 | something starting with __ and the normal name is an alias. */
|
---|
| 1858 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1859 | choke me
|
---|
| 1860 | #endif
|
---|
| 1861 |
|
---|
| 1862 | int
|
---|
| 1863 | main ()
|
---|
| 1864 | {
|
---|
| 1865 | return $2 ();
|
---|
| 1866 | ;
|
---|
| 1867 | return 0;
|
---|
| 1868 | }
|
---|
| 1869 | _ACEOF
|
---|
| 1870 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1871 | eval "$3=yes"
|
---|
| 1872 | else
|
---|
| 1873 | eval "$3=no"
|
---|
| 1874 | fi
|
---|
| 1875 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1876 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1877 | fi
|
---|
| 1878 | eval ac_res=\$$3
|
---|
| 1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1880 | $as_echo "$ac_res" >&6; }
|
---|
| 1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1882 |
|
---|
| 1883 | } # ac_fn_c_check_func
|
---|
[3b77289] | 1884 |
|
---|
| 1885 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1886 | # -------------------------------------------------------
|
---|
| 1887 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1888 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1889 | # accordingly.
|
---|
| 1890 | ac_fn_c_check_header_mongrel ()
|
---|
| 1891 | {
|
---|
| 1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1893 | if eval \${$3+:} false; then :
|
---|
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1895 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1896 | if eval \${$3+:} false; then :
|
---|
| 1897 | $as_echo_n "(cached) " >&6
|
---|
| 1898 | fi
|
---|
| 1899 | eval ac_res=\$$3
|
---|
| 1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1901 | $as_echo "$ac_res" >&6; }
|
---|
| 1902 | else
|
---|
| 1903 | # Is the header compilable?
|
---|
| 1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1905 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1907 | /* end confdefs.h. */
|
---|
| 1908 | $4
|
---|
| 1909 | #include <$2>
|
---|
| 1910 | _ACEOF
|
---|
| 1911 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1912 | ac_header_compiler=yes
|
---|
| 1913 | else
|
---|
| 1914 | ac_header_compiler=no
|
---|
| 1915 | fi
|
---|
| 1916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1918 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1919 |
|
---|
| 1920 | # Is the header present?
|
---|
| 1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1922 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1924 | /* end confdefs.h. */
|
---|
| 1925 | #include <$2>
|
---|
| 1926 | _ACEOF
|
---|
| 1927 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1928 | ac_header_preproc=yes
|
---|
| 1929 | else
|
---|
| 1930 | ac_header_preproc=no
|
---|
| 1931 | fi
|
---|
| 1932 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1934 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1935 |
|
---|
| 1936 | # So? What about this header?
|
---|
| 1937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1938 | yes:no: )
|
---|
| 1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1940 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1942 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1943 | ;;
|
---|
| 1944 | no:yes:* )
|
---|
| 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1946 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1948 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1950 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1952 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1954 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1955 | ( $as_echo "## --------------------------------------- ##
|
---|
| 1956 | ## Report this to cforall@plg.uwaterloo.ca ##
|
---|
| 1957 | ## --------------------------------------- ##"
|
---|
| 1958 | ) | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 1959 | ;;
|
---|
| 1960 | esac
|
---|
| 1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1962 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1963 | if eval \${$3+:} false; then :
|
---|
| 1964 | $as_echo_n "(cached) " >&6
|
---|
| 1965 | else
|
---|
| 1966 | eval "$3=\$ac_header_compiler"
|
---|
| 1967 | fi
|
---|
| 1968 | eval ac_res=\$$3
|
---|
| 1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1970 | $as_echo "$ac_res" >&6; }
|
---|
| 1971 | fi
|
---|
| 1972 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1973 |
|
---|
| 1974 | } # ac_fn_c_check_header_mongrel
|
---|
| 1975 |
|
---|
[5d6ce1f] | 1976 | # ac_fn_c_find_intX_t LINENO BITS VAR
|
---|
| 1977 | # -----------------------------------
|
---|
| 1978 | # Finds a signed integer type with width BITS, setting cache variable VAR
|
---|
| 1979 | # accordingly.
|
---|
| 1980 | ac_fn_c_find_intX_t ()
|
---|
[3b77289] | 1981 | {
|
---|
| 1982 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[5d6ce1f] | 1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
|
---|
| 1984 | $as_echo_n "checking for int$2_t... " >&6; }
|
---|
| 1985 | if eval \${$3+:} false; then :
|
---|
| 1986 | $as_echo_n "(cached) " >&6
|
---|
[3b77289] | 1987 | else
|
---|
[5d6ce1f] | 1988 | eval "$3=no"
|
---|
| 1989 | # Order is important - never check a type that is potentially smaller
|
---|
| 1990 | # than half of the expected target width.
|
---|
| 1991 | for ac_type in int$2_t 'int' 'long int' \
|
---|
| 1992 | 'long long int' 'short int' 'signed char'; do
|
---|
| 1993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1994 | /* end confdefs.h. */
|
---|
| 1995 | $ac_includes_default
|
---|
| 1996 | enum { N = $2 / 2 - 1 };
|
---|
| 1997 | int
|
---|
| 1998 | main ()
|
---|
| 1999 | {
|
---|
| 2000 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
|
---|
[44f44617] | 2001 | test_array [0] = 0;
|
---|
| 2002 | return test_array [0];
|
---|
[3b77289] | 2003 |
|
---|
[5d6ce1f] | 2004 | ;
|
---|
| 2005 | return 0;
|
---|
| 2006 | }
|
---|
| 2007 | _ACEOF
|
---|
| 2008 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 2009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2010 | /* end confdefs.h. */
|
---|
| 2011 | $ac_includes_default
|
---|
| 2012 | enum { N = $2 / 2 - 1 };
|
---|
| 2013 | int
|
---|
| 2014 | main ()
|
---|
| 2015 | {
|
---|
| 2016 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
|
---|
| 2017 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
|
---|
[44f44617] | 2018 | test_array [0] = 0;
|
---|
| 2019 | return test_array [0];
|
---|
[5d6ce1f] | 2020 |
|
---|
| 2021 | ;
|
---|
| 2022 | return 0;
|
---|
| 2023 | }
|
---|
| 2024 | _ACEOF
|
---|
| 2025 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 2026 |
|
---|
| 2027 | else
|
---|
| 2028 | case $ac_type in #(
|
---|
| 2029 | int$2_t) :
|
---|
| 2030 | eval "$3=yes" ;; #(
|
---|
| 2031 | *) :
|
---|
| 2032 | eval "$3=\$ac_type" ;;
|
---|
| 2033 | esac
|
---|
[3b77289] | 2034 | fi
|
---|
[5d6ce1f] | 2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2036 | fi
|
---|
| 2037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2038 | if eval test \"x\$"$3"\" = x"no"; then :
|
---|
| 2039 |
|
---|
| 2040 | else
|
---|
| 2041 | break
|
---|
| 2042 | fi
|
---|
| 2043 | done
|
---|
| 2044 | fi
|
---|
| 2045 | eval ac_res=\$$3
|
---|
| 2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 2047 | $as_echo "$ac_res" >&6; }
|
---|
[3b77289] | 2048 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 2049 |
|
---|
[5d6ce1f] | 2050 | } # ac_fn_c_find_intX_t
|
---|
[3b77289] | 2051 |
|
---|
[5d6ce1f] | 2052 | # ac_fn_c_find_uintX_t LINENO BITS VAR
|
---|
| 2053 | # ------------------------------------
|
---|
| 2054 | # Finds an unsigned integer type with width BITS, setting cache variable VAR
|
---|
| 2055 | # accordingly.
|
---|
| 2056 | ac_fn_c_find_uintX_t ()
|
---|
[3b77289] | 2057 | {
|
---|
| 2058 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[5d6ce1f] | 2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
|
---|
| 2060 | $as_echo_n "checking for uint$2_t... " >&6; }
|
---|
[3b77289] | 2061 | if eval \${$3+:} false; then :
|
---|
| 2062 | $as_echo_n "(cached) " >&6
|
---|
| 2063 | else
|
---|
[5d6ce1f] | 2064 | eval "$3=no"
|
---|
| 2065 | # Order is important - never check a type that is potentially smaller
|
---|
| 2066 | # than half of the expected target width.
|
---|
| 2067 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
|
---|
| 2068 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
|
---|
| 2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[3b77289] | 2070 | /* end confdefs.h. */
|
---|
[5d6ce1f] | 2071 | $ac_includes_default
|
---|
| 2072 | int
|
---|
| 2073 | main ()
|
---|
| 2074 | {
|
---|
| 2075 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
|
---|
[44f44617] | 2076 | test_array [0] = 0;
|
---|
| 2077 | return test_array [0];
|
---|
[5d6ce1f] | 2078 |
|
---|
| 2079 | ;
|
---|
| 2080 | return 0;
|
---|
| 2081 | }
|
---|
[3b77289] | 2082 | _ACEOF
|
---|
| 2083 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[5d6ce1f] | 2084 | case $ac_type in #(
|
---|
| 2085 | uint$2_t) :
|
---|
| 2086 | eval "$3=yes" ;; #(
|
---|
| 2087 | *) :
|
---|
| 2088 | eval "$3=\$ac_type" ;;
|
---|
| 2089 | esac
|
---|
[3b77289] | 2090 | fi
|
---|
| 2091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5d6ce1f] | 2092 | if eval test \"x\$"$3"\" = x"no"; then :
|
---|
| 2093 |
|
---|
| 2094 | else
|
---|
| 2095 | break
|
---|
| 2096 | fi
|
---|
| 2097 | done
|
---|
[3b77289] | 2098 | fi
|
---|
| 2099 | eval ac_res=\$$3
|
---|
| 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 2101 | $as_echo "$ac_res" >&6; }
|
---|
| 2102 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 2103 |
|
---|
[5d6ce1f] | 2104 | } # ac_fn_c_find_uintX_t
|
---|
[3b77289] | 2105 | cat >config.log <<_ACEOF
|
---|
| 2106 | This file contains any messages produced by compilers while
|
---|
| 2107 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 2108 |
|
---|
[4b1afb6] | 2109 | It was created by cfa-cc $as_me 1.0.0.0, which was
|
---|
[44f44617] | 2110 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
[3b77289] | 2111 |
|
---|
| 2112 | $ $0 $@
|
---|
| 2113 |
|
---|
| 2114 | _ACEOF
|
---|
| 2115 | exec 5>>config.log
|
---|
| 2116 | {
|
---|
| 2117 | cat <<_ASUNAME
|
---|
| 2118 | ## --------- ##
|
---|
| 2119 | ## Platform. ##
|
---|
| 2120 | ## --------- ##
|
---|
| 2121 |
|
---|
| 2122 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 2123 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 2124 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 2125 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 2126 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 2127 |
|
---|
| 2128 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 2129 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 2130 |
|
---|
| 2131 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 2132 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 2133 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 2134 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
| 2135 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 2136 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 2137 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 2138 |
|
---|
| 2139 | _ASUNAME
|
---|
| 2140 |
|
---|
| 2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2142 | for as_dir in $PATH
|
---|
| 2143 | do
|
---|
| 2144 | IFS=$as_save_IFS
|
---|
| 2145 | test -z "$as_dir" && as_dir=.
|
---|
| 2146 | $as_echo "PATH: $as_dir"
|
---|
| 2147 | done
|
---|
| 2148 | IFS=$as_save_IFS
|
---|
| 2149 |
|
---|
| 2150 | } >&5
|
---|
| 2151 |
|
---|
| 2152 | cat >&5 <<_ACEOF
|
---|
| 2153 |
|
---|
| 2154 |
|
---|
| 2155 | ## ----------- ##
|
---|
| 2156 | ## Core tests. ##
|
---|
| 2157 | ## ----------- ##
|
---|
| 2158 |
|
---|
| 2159 | _ACEOF
|
---|
| 2160 |
|
---|
| 2161 |
|
---|
| 2162 | # Keep a trace of the command line.
|
---|
| 2163 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 2164 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 2165 | # Also quote any args containing shell meta-characters.
|
---|
| 2166 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 2167 | ac_configure_args=
|
---|
| 2168 | ac_configure_args0=
|
---|
| 2169 | ac_configure_args1=
|
---|
| 2170 | ac_must_keep_next=false
|
---|
| 2171 | for ac_pass in 1 2
|
---|
| 2172 | do
|
---|
| 2173 | for ac_arg
|
---|
| 2174 | do
|
---|
| 2175 | case $ac_arg in
|
---|
| 2176 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 2177 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 2178 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 2179 | continue ;;
|
---|
| 2180 | *\'*)
|
---|
| 2181 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 2182 | esac
|
---|
| 2183 | case $ac_pass in
|
---|
| 2184 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
| 2185 | 2)
|
---|
| 2186 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
| 2187 | if test $ac_must_keep_next = true; then
|
---|
| 2188 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 2189 | else
|
---|
| 2190 | case $ac_arg in
|
---|
| 2191 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 2192 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 2193 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 2194 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 2195 | case "$ac_configure_args0 " in
|
---|
| 2196 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 2197 | esac
|
---|
| 2198 | ;;
|
---|
| 2199 | -* ) ac_must_keep_next=true ;;
|
---|
| 2200 | esac
|
---|
| 2201 | fi
|
---|
| 2202 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
| 2203 | ;;
|
---|
| 2204 | esac
|
---|
| 2205 | done
|
---|
| 2206 | done
|
---|
| 2207 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 2208 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
| 2209 |
|
---|
| 2210 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 2211 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 2212 | # would cause problems or look ugly.
|
---|
| 2213 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 2214 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
| 2215 | trap 'exit_status=$?
|
---|
| 2216 | # Save into config.log some information that might help in debugging.
|
---|
| 2217 | {
|
---|
| 2218 | echo
|
---|
| 2219 |
|
---|
| 2220 | $as_echo "## ---------------- ##
|
---|
| 2221 | ## Cache variables. ##
|
---|
| 2222 | ## ---------------- ##"
|
---|
| 2223 | echo
|
---|
| 2224 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 2225 | (
|
---|
| 2226 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 2227 | eval ac_val=\$$ac_var
|
---|
| 2228 | case $ac_val in #(
|
---|
| 2229 | *${as_nl}*)
|
---|
| 2230 | case $ac_var in #(
|
---|
| 2231 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 2232 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2233 | esac
|
---|
| 2234 | case $ac_var in #(
|
---|
| 2235 | _ | IFS | as_nl) ;; #(
|
---|
| 2236 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 2237 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 2238 | esac ;;
|
---|
| 2239 | esac
|
---|
| 2240 | done
|
---|
| 2241 | (set) 2>&1 |
|
---|
| 2242 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2243 | *${as_nl}ac_space=\ *)
|
---|
| 2244 | sed -n \
|
---|
| 2245 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2247 | ;; #(
|
---|
| 2248 | *)
|
---|
| 2249 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
| 2250 | ;;
|
---|
| 2251 | esac |
|
---|
| 2252 | sort
|
---|
| 2253 | )
|
---|
| 2254 | echo
|
---|
| 2255 |
|
---|
| 2256 | $as_echo "## ----------------- ##
|
---|
| 2257 | ## Output variables. ##
|
---|
| 2258 | ## ----------------- ##"
|
---|
| 2259 | echo
|
---|
| 2260 | for ac_var in $ac_subst_vars
|
---|
| 2261 | do
|
---|
| 2262 | eval ac_val=\$$ac_var
|
---|
| 2263 | case $ac_val in
|
---|
| 2264 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2265 | esac
|
---|
| 2266 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
| 2267 | done | sort
|
---|
| 2268 | echo
|
---|
| 2269 |
|
---|
| 2270 | if test -n "$ac_subst_files"; then
|
---|
| 2271 | $as_echo "## ------------------- ##
|
---|
| 2272 | ## File substitutions. ##
|
---|
| 2273 | ## ------------------- ##"
|
---|
| 2274 | echo
|
---|
| 2275 | for ac_var in $ac_subst_files
|
---|
| 2276 | do
|
---|
| 2277 | eval ac_val=\$$ac_var
|
---|
| 2278 | case $ac_val in
|
---|
| 2279 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2280 | esac
|
---|
| 2281 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
| 2282 | done | sort
|
---|
| 2283 | echo
|
---|
| 2284 | fi
|
---|
| 2285 |
|
---|
| 2286 | if test -s confdefs.h; then
|
---|
| 2287 | $as_echo "## ----------- ##
|
---|
| 2288 | ## confdefs.h. ##
|
---|
| 2289 | ## ----------- ##"
|
---|
| 2290 | echo
|
---|
| 2291 | cat confdefs.h
|
---|
| 2292 | echo
|
---|
| 2293 | fi
|
---|
| 2294 | test "$ac_signal" != 0 &&
|
---|
| 2295 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2296 | $as_echo "$as_me: exit $exit_status"
|
---|
| 2297 | } >&5
|
---|
| 2298 | rm -f core *.core core.conftest.* &&
|
---|
| 2299 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 2300 | exit $exit_status
|
---|
| 2301 | ' 0
|
---|
| 2302 | for ac_signal in 1 2 13 15; do
|
---|
| 2303 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
| 2304 | done
|
---|
| 2305 | ac_signal=0
|
---|
| 2306 |
|
---|
| 2307 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 2308 | rm -f -r conftest* confdefs.h
|
---|
| 2309 |
|
---|
| 2310 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2311 |
|
---|
| 2312 | # Predefined preprocessor variables.
|
---|
| 2313 |
|
---|
| 2314 | cat >>confdefs.h <<_ACEOF
|
---|
| 2315 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2316 | _ACEOF
|
---|
| 2317 |
|
---|
| 2318 | cat >>confdefs.h <<_ACEOF
|
---|
| 2319 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2320 | _ACEOF
|
---|
| 2321 |
|
---|
| 2322 | cat >>confdefs.h <<_ACEOF
|
---|
| 2323 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2324 | _ACEOF
|
---|
| 2325 |
|
---|
| 2326 | cat >>confdefs.h <<_ACEOF
|
---|
| 2327 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2328 | _ACEOF
|
---|
| 2329 |
|
---|
| 2330 | cat >>confdefs.h <<_ACEOF
|
---|
| 2331 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2332 | _ACEOF
|
---|
| 2333 |
|
---|
| 2334 | cat >>confdefs.h <<_ACEOF
|
---|
| 2335 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2336 | _ACEOF
|
---|
| 2337 |
|
---|
| 2338 |
|
---|
| 2339 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 2340 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2341 | ac_site_file1=NONE
|
---|
| 2342 | ac_site_file2=NONE
|
---|
| 2343 | if test -n "$CONFIG_SITE"; then
|
---|
| 2344 | # We do not want a PATH search for config.site.
|
---|
| 2345 | case $CONFIG_SITE in #((
|
---|
| 2346 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2347 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
| 2348 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2349 | esac
|
---|
| 2350 | elif test "x$prefix" != xNONE; then
|
---|
| 2351 | ac_site_file1=$prefix/share/config.site
|
---|
| 2352 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2353 | else
|
---|
| 2354 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2355 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
| 2356 | fi
|
---|
| 2357 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2358 | do
|
---|
| 2359 | test "x$ac_site_file" = xNONE && continue
|
---|
| 2360 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
| 2362 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 2363 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
| 2364 | . "$ac_site_file" \
|
---|
| 2365 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2367 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
| 2368 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2369 | fi
|
---|
| 2370 | done
|
---|
| 2371 |
|
---|
| 2372 | if test -r "$cache_file"; then
|
---|
| 2373 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2374 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2375 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
| 2377 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 2378 | case $cache_file in
|
---|
| 2379 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2380 | *) . "./$cache_file";;
|
---|
| 2381 | esac
|
---|
| 2382 | fi
|
---|
| 2383 | else
|
---|
| 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
| 2385 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 2386 | >$cache_file
|
---|
| 2387 | fi
|
---|
| 2388 |
|
---|
| 2389 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2390 | # value.
|
---|
| 2391 | ac_cache_corrupted=false
|
---|
| 2392 | for ac_var in $ac_precious_vars; do
|
---|
| 2393 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2394 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 2395 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2396 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
| 2397 | case $ac_old_set,$ac_new_set in
|
---|
| 2398 | set,)
|
---|
| 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 2400 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 2401 | ac_cache_corrupted=: ;;
|
---|
| 2402 | ,set)
|
---|
| 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 2404 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 2405 | ac_cache_corrupted=: ;;
|
---|
| 2406 | ,);;
|
---|
| 2407 | *)
|
---|
| 2408 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 2409 | # differences in whitespace do not lead to failure.
|
---|
| 2410 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2411 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2412 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
| 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 2414 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2415 | ac_cache_corrupted=:
|
---|
| 2416 | else
|
---|
| 2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
| 2418 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2419 | eval $ac_var=\$ac_old_val
|
---|
| 2420 | fi
|
---|
| 2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
| 2422 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
| 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
| 2424 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
| 2425 | fi;;
|
---|
| 2426 | esac
|
---|
| 2427 | # Pass precious variables to config.status.
|
---|
| 2428 | if test "$ac_new_set" = set; then
|
---|
| 2429 | case $ac_new_val in
|
---|
| 2430 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 2431 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2432 | esac
|
---|
| 2433 | case " $ac_configure_args " in
|
---|
| 2434 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 2435 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
| 2436 | esac
|
---|
| 2437 | fi
|
---|
| 2438 | done
|
---|
| 2439 | if $ac_cache_corrupted; then
|
---|
| 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
| 2443 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 2444 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
| 2445 | fi
|
---|
| 2446 | ## -------------------- ##
|
---|
| 2447 | ## Main body of script. ##
|
---|
| 2448 | ## -------------------- ##
|
---|
| 2449 |
|
---|
| 2450 | ac_ext=c
|
---|
| 2451 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2455 |
|
---|
| 2456 |
|
---|
| 2457 | ac_aux_dir=
|
---|
[00cc023] | 2458 | for ac_dir in automake "$srcdir"/automake; do
|
---|
[3b77289] | 2459 | if test -f "$ac_dir/install-sh"; then
|
---|
| 2460 | ac_aux_dir=$ac_dir
|
---|
| 2461 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2462 | break
|
---|
| 2463 | elif test -f "$ac_dir/install.sh"; then
|
---|
| 2464 | ac_aux_dir=$ac_dir
|
---|
| 2465 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2466 | break
|
---|
| 2467 | elif test -f "$ac_dir/shtool"; then
|
---|
| 2468 | ac_aux_dir=$ac_dir
|
---|
| 2469 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2470 | break
|
---|
| 2471 | fi
|
---|
| 2472 | done
|
---|
| 2473 | if test -z "$ac_aux_dir"; then
|
---|
[00cc023] | 2474 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5
|
---|
[3b77289] | 2475 | fi
|
---|
| 2476 |
|
---|
| 2477 | # These three variables are undocumented and unsupported,
|
---|
| 2478 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 2479 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 2480 | # whose full name contains unusual characters.
|
---|
| 2481 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 2482 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 2483 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 2484 |
|
---|
| 2485 |
|
---|
[d3b7937] | 2486 | #AC_CONFIG_SRCDIR([src/main.cc])
|
---|
[a5c722b] | 2487 | ac_config_headers="$ac_config_headers config.h:src/config.h.in"
|
---|
[00cc023] | 2488 |
|
---|
[ef7d253] | 2489 | # Check whether --enable-silent-rules was given.
|
---|
| 2490 | if test "${enable_silent_rules+set}" = set; then :
|
---|
| 2491 | enableval=$enable_silent_rules;
|
---|
| 2492 | fi
|
---|
| 2493 |
|
---|
[44f44617] | 2494 | case $enable_silent_rules in # (((
|
---|
| 2495 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
| 2496 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
| 2497 | *) AM_DEFAULT_VERBOSITY=1;;
|
---|
[ef7d253] | 2498 | esac
|
---|
| 2499 | am_make=${MAKE-make}
|
---|
| 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
| 2501 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
---|
| 2502 | if ${am_cv_make_support_nested_variables+:} false; then :
|
---|
| 2503 | $as_echo_n "(cached) " >&6
|
---|
| 2504 | else
|
---|
| 2505 | if $as_echo 'TRUE=$(BAR$(V))
|
---|
| 2506 | BAR0=false
|
---|
| 2507 | BAR1=true
|
---|
| 2508 | V=1
|
---|
| 2509 | am__doit:
|
---|
| 2510 | @$(TRUE)
|
---|
| 2511 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
| 2512 | am_cv_make_support_nested_variables=yes
|
---|
| 2513 | else
|
---|
| 2514 | am_cv_make_support_nested_variables=no
|
---|
| 2515 | fi
|
---|
| 2516 | fi
|
---|
| 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
| 2518 | $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
---|
| 2519 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
| 2520 | AM_V='$(V)'
|
---|
| 2521 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
| 2522 | else
|
---|
| 2523 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
| 2524 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
| 2525 | fi
|
---|
| 2526 | AM_BACKSLASH='\'
|
---|
| 2527 |
|
---|
[00cc023] | 2528 |
|
---|
[44f44617] | 2529 | am__api_version='1.15'
|
---|
[00cc023] | 2530 |
|
---|
[3b77289] | 2531 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2532 | # so one script is as good as another. But avoid the broken or
|
---|
| 2533 | # incompatible versions:
|
---|
| 2534 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2535 | # SunOS /usr/etc/install
|
---|
| 2536 | # IRIX /sbin/install
|
---|
| 2537 | # AIX /bin/install
|
---|
| 2538 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 2539 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2540 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2541 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 2542 | # OS/2's system install, which has a completely different semantic
|
---|
| 2543 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
| 2544 | # Reject install programs that cannot install multiple files.
|
---|
| 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
| 2546 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
| 2547 | if test -z "$INSTALL"; then
|
---|
| 2548 | if ${ac_cv_path_install+:} false; then :
|
---|
| 2549 | $as_echo_n "(cached) " >&6
|
---|
| 2550 | else
|
---|
| 2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2552 | for as_dir in $PATH
|
---|
| 2553 | do
|
---|
| 2554 | IFS=$as_save_IFS
|
---|
| 2555 | test -z "$as_dir" && as_dir=.
|
---|
| 2556 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2557 | case $as_dir/ in #((
|
---|
| 2558 | ./ | .// | /[cC]/* | \
|
---|
| 2559 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2560 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
| 2561 | /usr/ucb/* ) ;;
|
---|
| 2562 | *)
|
---|
| 2563 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2564 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2565 | # by default.
|
---|
| 2566 | for ac_prog in ginstall scoinst install; do
|
---|
| 2567 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 2568 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3b77289] | 2569 | if test $ac_prog = install &&
|
---|
| 2570 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2571 | # AIX install. It has an incompatible calling convention.
|
---|
| 2572 | :
|
---|
| 2573 | elif test $ac_prog = install &&
|
---|
| 2574 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2575 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2576 | :
|
---|
| 2577 | else
|
---|
| 2578 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 2579 | echo one > conftest.one
|
---|
| 2580 | echo two > conftest.two
|
---|
| 2581 | mkdir conftest.dir
|
---|
| 2582 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 2583 | test -s conftest.one && test -s conftest.two &&
|
---|
| 2584 | test -s conftest.dir/conftest.one &&
|
---|
| 2585 | test -s conftest.dir/conftest.two
|
---|
| 2586 | then
|
---|
| 2587 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2588 | break 3
|
---|
| 2589 | fi
|
---|
| 2590 | fi
|
---|
| 2591 | fi
|
---|
| 2592 | done
|
---|
| 2593 | done
|
---|
| 2594 | ;;
|
---|
| 2595 | esac
|
---|
| 2596 |
|
---|
| 2597 | done
|
---|
| 2598 | IFS=$as_save_IFS
|
---|
| 2599 |
|
---|
| 2600 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 2601 |
|
---|
| 2602 | fi
|
---|
| 2603 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2604 | INSTALL=$ac_cv_path_install
|
---|
| 2605 | else
|
---|
| 2606 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 2607 | # value for INSTALL within a source directory, because that will
|
---|
| 2608 | # break other packages using the cache if that directory is
|
---|
| 2609 | # removed, or if the value is a relative name.
|
---|
| 2610 | INSTALL=$ac_install_sh
|
---|
| 2611 | fi
|
---|
| 2612 | fi
|
---|
| 2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
| 2614 | $as_echo "$INSTALL" >&6; }
|
---|
| 2615 |
|
---|
| 2616 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2617 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2618 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2619 |
|
---|
| 2620 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 2621 |
|
---|
| 2622 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2623 |
|
---|
| 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
| 2625 | $as_echo_n "checking whether build environment is sane... " >&6; }
|
---|
| 2626 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
| 2627 | # name. Accept space and tab only in the latter.
|
---|
| 2628 | am_lf='
|
---|
| 2629 | '
|
---|
| 2630 | case `pwd` in
|
---|
| 2631 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
| 2632 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
| 2633 | esac
|
---|
| 2634 | case $srcdir in
|
---|
| 2635 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
[44f44617] | 2636 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
[3b77289] | 2637 | esac
|
---|
| 2638 |
|
---|
[44f44617] | 2639 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
[3b77289] | 2640 | # arguments. Must try -L first in case configure is actually a
|
---|
| 2641 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
| 2642 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
| 2643 | # directory).
|
---|
| 2644 | if (
|
---|
[44f44617] | 2645 | am_has_slept=no
|
---|
| 2646 | for am_try in 1 2; do
|
---|
| 2647 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
| 2648 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
| 2649 | if test "$*" = "X"; then
|
---|
| 2650 | # -L didn't work.
|
---|
| 2651 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
| 2652 | fi
|
---|
| 2653 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
| 2654 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
| 2655 |
|
---|
| 2656 | # If neither matched, then we have a broken ls. This can happen
|
---|
| 2657 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
| 2658 | # broken ls alias from the environment. This has actually
|
---|
| 2659 | # happened. Such a system could not be considered "sane".
|
---|
| 2660 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
---|
| 2661 | alias in your environment" "$LINENO" 5
|
---|
| 2662 | fi
|
---|
| 2663 | if test "$2" = conftest.file || test $am_try -eq 2; then
|
---|
| 2664 | break
|
---|
| 2665 | fi
|
---|
| 2666 | # Just in case.
|
---|
| 2667 | sleep 1
|
---|
| 2668 | am_has_slept=yes
|
---|
| 2669 | done
|
---|
[3b77289] | 2670 | test "$2" = conftest.file
|
---|
| 2671 | )
|
---|
| 2672 | then
|
---|
| 2673 | # Ok.
|
---|
| 2674 | :
|
---|
| 2675 | else
|
---|
| 2676 | as_fn_error $? "newly created file is older than distributed files!
|
---|
| 2677 | Check your system clock" "$LINENO" 5
|
---|
| 2678 | fi
|
---|
| 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2680 | $as_echo "yes" >&6; }
|
---|
[44f44617] | 2681 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
| 2682 | # generated files are strictly newer.
|
---|
| 2683 | am_sleep_pid=
|
---|
| 2684 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
---|
| 2685 | ( sleep 1 ) &
|
---|
| 2686 | am_sleep_pid=$!
|
---|
| 2687 | fi
|
---|
| 2688 |
|
---|
| 2689 | rm -f conftest.file
|
---|
| 2690 |
|
---|
[3b77289] | 2691 | test "$program_prefix" != NONE &&
|
---|
| 2692 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
| 2693 | # Use a double $ so make ignores it.
|
---|
| 2694 | test "$program_suffix" != NONE &&
|
---|
| 2695 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
| 2696 | # Double any \ or $.
|
---|
| 2697 | # By default was `s,x,x', remove it if useless.
|
---|
| 2698 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
| 2699 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
| 2700 |
|
---|
[44f44617] | 2701 | # Expand $ac_aux_dir to an absolute path.
|
---|
| 2702 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
[3b77289] | 2703 |
|
---|
| 2704 | if test x"${MISSING+set}" != xset; then
|
---|
| 2705 | case $am_aux_dir in
|
---|
| 2706 | *\ * | *\ *)
|
---|
| 2707 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
---|
| 2708 | *)
|
---|
| 2709 | MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
---|
| 2710 | esac
|
---|
| 2711 | fi
|
---|
| 2712 | # Use eval to expand $SHELL
|
---|
[44f44617] | 2713 | if eval "$MISSING --is-lightweight"; then
|
---|
| 2714 | am_missing_run="$MISSING "
|
---|
[3b77289] | 2715 | else
|
---|
| 2716 | am_missing_run=
|
---|
[44f44617] | 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
| 2718 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
[3b77289] | 2719 | fi
|
---|
| 2720 |
|
---|
[44f44617] | 2721 | if test x"${install_sh+set}" != xset; then
|
---|
[3b77289] | 2722 | case $am_aux_dir in
|
---|
| 2723 | *\ * | *\ *)
|
---|
| 2724 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
| 2725 | *)
|
---|
| 2726 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
| 2727 | esac
|
---|
| 2728 | fi
|
---|
| 2729 |
|
---|
[44f44617] | 2730 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
| 2731 | # run "make install-strip". However 'strip' might not be the right
|
---|
[3b77289] | 2732 | # tool to use in cross-compilation environments, therefore Automake
|
---|
[44f44617] | 2733 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
[3b77289] | 2734 | if test "$cross_compiling" != no; then
|
---|
| 2735 | if test -n "$ac_tool_prefix"; then
|
---|
| 2736 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
| 2737 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
| 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2739 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2740 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
| 2741 | $as_echo_n "(cached) " >&6
|
---|
| 2742 | else
|
---|
| 2743 | if test -n "$STRIP"; then
|
---|
| 2744 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
| 2745 | else
|
---|
| 2746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2747 | for as_dir in $PATH
|
---|
| 2748 | do
|
---|
| 2749 | IFS=$as_save_IFS
|
---|
| 2750 | test -z "$as_dir" && as_dir=.
|
---|
| 2751 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 2752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 2753 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
| 2754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2755 | break 2
|
---|
| 2756 | fi
|
---|
| 2757 | done
|
---|
| 2758 | done
|
---|
| 2759 | IFS=$as_save_IFS
|
---|
| 2760 |
|
---|
| 2761 | fi
|
---|
| 2762 | fi
|
---|
| 2763 | STRIP=$ac_cv_prog_STRIP
|
---|
| 2764 | if test -n "$STRIP"; then
|
---|
| 2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
| 2766 | $as_echo "$STRIP" >&6; }
|
---|
| 2767 | else
|
---|
| 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2769 | $as_echo "no" >&6; }
|
---|
| 2770 | fi
|
---|
| 2771 |
|
---|
| 2772 |
|
---|
| 2773 | fi
|
---|
| 2774 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
| 2775 | ac_ct_STRIP=$STRIP
|
---|
| 2776 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
| 2777 | set dummy strip; ac_word=$2
|
---|
| 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2779 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2780 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
| 2781 | $as_echo_n "(cached) " >&6
|
---|
| 2782 | else
|
---|
| 2783 | if test -n "$ac_ct_STRIP"; then
|
---|
| 2784 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
| 2785 | else
|
---|
| 2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2787 | for as_dir in $PATH
|
---|
| 2788 | do
|
---|
| 2789 | IFS=$as_save_IFS
|
---|
| 2790 | test -z "$as_dir" && as_dir=.
|
---|
| 2791 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 2792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 2793 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
| 2794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2795 | break 2
|
---|
| 2796 | fi
|
---|
| 2797 | done
|
---|
| 2798 | done
|
---|
| 2799 | IFS=$as_save_IFS
|
---|
| 2800 |
|
---|
| 2801 | fi
|
---|
| 2802 | fi
|
---|
| 2803 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
| 2804 | if test -n "$ac_ct_STRIP"; then
|
---|
| 2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
| 2806 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
| 2807 | else
|
---|
| 2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2809 | $as_echo "no" >&6; }
|
---|
| 2810 | fi
|
---|
| 2811 |
|
---|
| 2812 | if test "x$ac_ct_STRIP" = x; then
|
---|
| 2813 | STRIP=":"
|
---|
| 2814 | else
|
---|
| 2815 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2816 | yes:)
|
---|
| 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2819 | ac_tool_warned=yes ;;
|
---|
| 2820 | esac
|
---|
| 2821 | STRIP=$ac_ct_STRIP
|
---|
| 2822 | fi
|
---|
| 2823 | else
|
---|
| 2824 | STRIP="$ac_cv_prog_STRIP"
|
---|
| 2825 | fi
|
---|
| 2826 |
|
---|
| 2827 | fi
|
---|
| 2828 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
| 2829 |
|
---|
| 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
---|
| 2831 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
---|
| 2832 | if test -z "$MKDIR_P"; then
|
---|
| 2833 | if ${ac_cv_path_mkdir+:} false; then :
|
---|
| 2834 | $as_echo_n "(cached) " >&6
|
---|
| 2835 | else
|
---|
| 2836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2837 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
| 2838 | do
|
---|
| 2839 | IFS=$as_save_IFS
|
---|
| 2840 | test -z "$as_dir" && as_dir=.
|
---|
| 2841 | for ac_prog in mkdir gmkdir; do
|
---|
| 2842 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 2843 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
---|
[3b77289] | 2844 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
| 2845 | 'mkdir (GNU coreutils) '* | \
|
---|
| 2846 | 'mkdir (coreutils) '* | \
|
---|
| 2847 | 'mkdir (fileutils) '4.1*)
|
---|
| 2848 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
---|
| 2849 | break 3;;
|
---|
| 2850 | esac
|
---|
| 2851 | done
|
---|
| 2852 | done
|
---|
| 2853 | done
|
---|
| 2854 | IFS=$as_save_IFS
|
---|
| 2855 |
|
---|
| 2856 | fi
|
---|
| 2857 |
|
---|
| 2858 | test -d ./--version && rmdir ./--version
|
---|
| 2859 | if test "${ac_cv_path_mkdir+set}" = set; then
|
---|
| 2860 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
| 2861 | else
|
---|
| 2862 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 2863 | # value for MKDIR_P within a source directory, because that will
|
---|
| 2864 | # break other packages using the cache if that directory is
|
---|
| 2865 | # removed, or if the value is a relative name.
|
---|
| 2866 | MKDIR_P="$ac_install_sh -d"
|
---|
| 2867 | fi
|
---|
| 2868 | fi
|
---|
| 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
| 2870 | $as_echo "$MKDIR_P" >&6; }
|
---|
| 2871 |
|
---|
| 2872 | for ac_prog in gawk mawk nawk awk
|
---|
| 2873 | do
|
---|
| 2874 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2875 | set dummy $ac_prog; ac_word=$2
|
---|
| 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2877 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2878 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
| 2879 | $as_echo_n "(cached) " >&6
|
---|
| 2880 | else
|
---|
| 2881 | if test -n "$AWK"; then
|
---|
| 2882 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2883 | else
|
---|
| 2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2885 | for as_dir in $PATH
|
---|
| 2886 | do
|
---|
| 2887 | IFS=$as_save_IFS
|
---|
| 2888 | test -z "$as_dir" && as_dir=.
|
---|
| 2889 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 2890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 2891 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2893 | break 2
|
---|
| 2894 | fi
|
---|
| 2895 | done
|
---|
| 2896 | done
|
---|
| 2897 | IFS=$as_save_IFS
|
---|
| 2898 |
|
---|
| 2899 | fi
|
---|
| 2900 | fi
|
---|
| 2901 | AWK=$ac_cv_prog_AWK
|
---|
| 2902 | if test -n "$AWK"; then
|
---|
| 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
| 2904 | $as_echo "$AWK" >&6; }
|
---|
| 2905 | else
|
---|
| 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2907 | $as_echo "no" >&6; }
|
---|
| 2908 | fi
|
---|
| 2909 |
|
---|
| 2910 |
|
---|
| 2911 | test -n "$AWK" && break
|
---|
| 2912 | done
|
---|
| 2913 |
|
---|
| 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2915 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 2916 | set x ${MAKE-make}
|
---|
| 2917 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
| 2918 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
| 2919 | $as_echo_n "(cached) " >&6
|
---|
| 2920 | else
|
---|
| 2921 | cat >conftest.make <<\_ACEOF
|
---|
| 2922 | SHELL = /bin/sh
|
---|
| 2923 | all:
|
---|
| 2924 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
| 2925 | _ACEOF
|
---|
| 2926 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
| 2927 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 2928 | *@@@%%%=?*=@@@%%%*)
|
---|
| 2929 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 2930 | *)
|
---|
| 2931 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 2932 | esac
|
---|
| 2933 | rm -f conftest.make
|
---|
| 2934 | fi
|
---|
| 2935 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2937 | $as_echo "yes" >&6; }
|
---|
| 2938 | SET_MAKE=
|
---|
| 2939 | else
|
---|
| 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2941 | $as_echo "no" >&6; }
|
---|
| 2942 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2943 | fi
|
---|
| 2944 |
|
---|
| 2945 | rm -rf .tst 2>/dev/null
|
---|
| 2946 | mkdir .tst 2>/dev/null
|
---|
| 2947 | if test -d .tst; then
|
---|
| 2948 | am__leading_dot=.
|
---|
| 2949 | else
|
---|
| 2950 | am__leading_dot=_
|
---|
| 2951 | fi
|
---|
| 2952 | rmdir .tst 2>/dev/null
|
---|
| 2953 |
|
---|
| 2954 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
| 2955 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
| 2956 | # is not polluted with repeated "-I."
|
---|
| 2957 | am__isrc=' -I$(srcdir)'
|
---|
| 2958 | # test to see if srcdir already configured
|
---|
| 2959 | if test -f $srcdir/config.status; then
|
---|
| 2960 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
| 2961 | fi
|
---|
| 2962 | fi
|
---|
| 2963 |
|
---|
| 2964 | # test whether we have cygpath
|
---|
| 2965 | if test -z "$CYGPATH_W"; then
|
---|
| 2966 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
| 2967 | CYGPATH_W='cygpath -w'
|
---|
| 2968 | else
|
---|
| 2969 | CYGPATH_W=echo
|
---|
| 2970 | fi
|
---|
| 2971 | fi
|
---|
| 2972 |
|
---|
| 2973 |
|
---|
| 2974 | # Define the identity of the package.
|
---|
[b87a5ed] | 2975 | PACKAGE='cfa-cc'
|
---|
[4b1afb6] | 2976 | VERSION='1.0.0.0'
|
---|
[3b77289] | 2977 |
|
---|
| 2978 |
|
---|
| 2979 | cat >>confdefs.h <<_ACEOF
|
---|
| 2980 | #define PACKAGE "$PACKAGE"
|
---|
| 2981 | _ACEOF
|
---|
| 2982 |
|
---|
| 2983 |
|
---|
| 2984 | cat >>confdefs.h <<_ACEOF
|
---|
| 2985 | #define VERSION "$VERSION"
|
---|
| 2986 | _ACEOF
|
---|
| 2987 |
|
---|
| 2988 | # Some tools Automake needs.
|
---|
| 2989 |
|
---|
| 2990 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
| 2991 |
|
---|
| 2992 |
|
---|
| 2993 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
| 2994 |
|
---|
| 2995 |
|
---|
| 2996 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
| 2997 |
|
---|
| 2998 |
|
---|
| 2999 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
| 3000 |
|
---|
| 3001 |
|
---|
| 3002 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
| 3003 |
|
---|
[44f44617] | 3004 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
| 3005 | # dies out for good. For more background, see:
|
---|
| 3006 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
| 3007 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
| 3008 | mkdir_p='$(MKDIR_P)'
|
---|
| 3009 |
|
---|
| 3010 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
| 3011 | # system "awk" is bad on some platforms.
|
---|
[3b77289] | 3012 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
| 3013 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
| 3014 | AMTAR='$${TAR-tar}'
|
---|
| 3015 |
|
---|
[44f44617] | 3016 |
|
---|
| 3017 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
| 3018 | _am_tools='gnutar pax cpio none'
|
---|
| 3019 |
|
---|
[3b77289] | 3020 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
| 3021 |
|
---|
| 3022 |
|
---|
| 3023 |
|
---|
| 3024 |
|
---|
[7e91d4f] | 3025 |
|
---|
[5d6ce1f] | 3026 |
|
---|
[44f44617] | 3027 | # POSIX will say in a future version that running "rm -f" with no argument
|
---|
| 3028 | # is OK; and we want to be able to make that assumption in our Makefile
|
---|
| 3029 | # recipes. So use an aggressive probe to check that the usage we want is
|
---|
| 3030 | # actually supported "in the wild" to an acceptable degree.
|
---|
| 3031 | # See automake bug#10828.
|
---|
| 3032 | # To make any issue more visible, cause the running configure to be aborted
|
---|
| 3033 | # by default if the 'rm' program in use doesn't match our expectations; the
|
---|
| 3034 | # user can still override this though.
|
---|
| 3035 | if rm -f && rm -fr && rm -rf; then : OK; else
|
---|
| 3036 | cat >&2 <<'END'
|
---|
| 3037 | Oops!
|
---|
| 3038 |
|
---|
| 3039 | Your 'rm' program seems unable to run without file operands specified
|
---|
| 3040 | on the command line, even when the '-f' option is present. This is contrary
|
---|
| 3041 | to the behaviour of most rm programs out there, and not conforming with
|
---|
| 3042 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
---|
| 3043 |
|
---|
| 3044 | Please tell bug-automake@gnu.org about your system, including the value
|
---|
| 3045 | of your $PATH and any error possibly output before this message. This
|
---|
| 3046 | can help us improve future automake versions.
|
---|
| 3047 |
|
---|
| 3048 | END
|
---|
| 3049 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
---|
| 3050 | echo 'Configuration will proceed anyway, since you have set the' >&2
|
---|
| 3051 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
---|
| 3052 | echo >&2
|
---|
| 3053 | else
|
---|
| 3054 | cat >&2 <<'END'
|
---|
| 3055 | Aborting the configuration process, to ensure you take notice of the issue.
|
---|
| 3056 |
|
---|
| 3057 | You can download and install GNU coreutils to get an 'rm' implementation
|
---|
| 3058 | that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
---|
| 3059 |
|
---|
| 3060 | If you want to complete the configuration process using your problematic
|
---|
| 3061 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
---|
| 3062 | to "yes", and re-run configure.
|
---|
| 3063 |
|
---|
| 3064 | END
|
---|
| 3065 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
---|
| 3066 | fi
|
---|
| 3067 | fi
|
---|
| 3068 |
|
---|
| 3069 |
|
---|
[df47e2f] | 3070 | # Allow program name tansformation
|
---|
[65e9bc1] | 3071 | # will fill program_transform_name with appropriate sed regex
|
---|
[df47e2f] | 3072 |
|
---|
| 3073 |
|
---|
| 3074 | #Trasforming cc1 will break compilation
|
---|
[65e9bc1] | 3075 | if test "${program_transform_name}" = ""; then
|
---|
| 3076 | as_fn_error $? "Program transform not supported.
|
---|
| 3077 | Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5
|
---|
[df47e2f] | 3078 | fi
|
---|
| 3079 |
|
---|
[796cea3] | 3080 |
|
---|
| 3081 | # Check whether --with-cfa-name was given.
|
---|
| 3082 | if test "${with_cfa_name+set}" = set; then :
|
---|
| 3083 | withval=$with_cfa_name; cfa_name=$withval
|
---|
| 3084 | else
|
---|
| 3085 | cfa_name="cfa"
|
---|
| 3086 | fi
|
---|
| 3087 |
|
---|
| 3088 |
|
---|
[df47e2f] | 3089 | #Define the new name of the installed command
|
---|
| 3090 | CFA_NAME=${cfa_name}
|
---|
| 3091 |
|
---|
| 3092 |
|
---|
[65c61ec] | 3093 | rm -f version
|
---|
[2042d41] | 3094 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools
|
---|
[65c61ec] | 3095 | chmod ugo-w version
|
---|
[2042d41] | 3096 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods
|
---|
| 3097 | ver_minor=`cut -d '.' -f2 version`
|
---|
| 3098 | ver_patch=`cut -d '.' -f3 version`
|
---|
| 3099 | ver_build=`cut -d '.' -f4 version`
|
---|
[ec129c4] | 3100 |
|
---|
[4b1afb6] | 3101 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version'])
|
---|
[ec129c4] | 3102 |
|
---|
[47a8d17] | 3103 | cat >>confdefs.h <<_ACEOF
|
---|
| 3104 | #define CFA_VERSION_MAJOR ${ver_major}
|
---|
| 3105 | _ACEOF
|
---|
| 3106 |
|
---|
| 3107 |
|
---|
| 3108 | cat >>confdefs.h <<_ACEOF
|
---|
| 3109 | #define CFA_VERSION_MINOR ${ver_minor}
|
---|
| 3110 | _ACEOF
|
---|
| 3111 |
|
---|
| 3112 |
|
---|
| 3113 | cat >>confdefs.h <<_ACEOF
|
---|
| 3114 | #define CFA_VERSION_PATCH ${ver_patch}
|
---|
| 3115 | _ACEOF
|
---|
| 3116 |
|
---|
| 3117 |
|
---|
| 3118 | cat >>confdefs.h <<_ACEOF
|
---|
| 3119 | #define CFA_VERSION_BUILD ${ver_build}
|
---|
| 3120 | _ACEOF
|
---|
[ec129c4] | 3121 |
|
---|
| 3122 |
|
---|
[47a8d17] | 3123 | cat >>confdefs.h <<_ACEOF
|
---|
[4b1afb6] | 3124 | #define CFA_VERSION_SHORT "${ver_major}"
|
---|
[47a8d17] | 3125 | _ACEOF
|
---|
| 3126 |
|
---|
| 3127 |
|
---|
| 3128 | cat >>confdefs.h <<_ACEOF
|
---|
[4b1afb6] | 3129 | #define CFA_VERSION "${ver_major}.${ver_minor}"
|
---|
[47a8d17] | 3130 | _ACEOF
|
---|
| 3131 |
|
---|
| 3132 |
|
---|
| 3133 | cat >>confdefs.h <<_ACEOF
|
---|
[4b1afb6] | 3134 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}"
|
---|
[47a8d17] | 3135 | _ACEOF
|
---|
| 3136 |
|
---|
| 3137 |
|
---|
| 3138 | cat >>confdefs.h <<_ACEOF
|
---|
[4b1afb6] | 3139 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}"
|
---|
[47a8d17] | 3140 | _ACEOF
|
---|
[ec129c4] | 3141 |
|
---|
| 3142 |
|
---|
[5d6ce1f] | 3143 | # Installation paths
|
---|
| 3144 |
|
---|
| 3145 |
|
---|
| 3146 | # Check whether --with-backend-compiler was given.
|
---|
| 3147 | if test "${with_backend_compiler+set}" = set; then :
|
---|
[e24f13a] | 3148 | withval=$with_backend_compiler; backendcompiler=$withval
|
---|
[5d6ce1f] | 3149 | else
|
---|
[e24f13a] | 3150 | backendcompiler=""
|
---|
[5d6ce1f] | 3151 | fi
|
---|
| 3152 |
|
---|
[6e4b913] | 3153 | if test "x$backendcompiler" != "x"; then
|
---|
[e24f13a] | 3154 | BACKEND_CC=${backendcompiler}
|
---|
| 3155 | else
|
---|
[00cc023] | 3156 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[5d6ce1f] | 3157 | set dummy gcc; ac_word=$2
|
---|
[3b77289] | 3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3159 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[e24f13a] | 3160 | if ${ac_cv_path_BACKEND_CC+:} false; then :
|
---|
[3b77289] | 3161 | $as_echo_n "(cached) " >&6
|
---|
| 3162 | else
|
---|
[e24f13a] | 3163 | case $BACKEND_CC in
|
---|
[5d6ce1f] | 3164 | [\\/]* | ?:[\\/]*)
|
---|
[e24f13a] | 3165 | ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path.
|
---|
[5d6ce1f] | 3166 | ;;
|
---|
| 3167 | *)
|
---|
| 3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
[3b77289] | 3169 | for as_dir in $PATH
|
---|
| 3170 | do
|
---|
| 3171 | IFS=$as_save_IFS
|
---|
| 3172 | test -z "$as_dir" && as_dir=.
|
---|
| 3173 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 3174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[e24f13a] | 3175 | ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext"
|
---|
[3b77289] | 3176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3177 | break 2
|
---|
| 3178 | fi
|
---|
| 3179 | done
|
---|
| 3180 | done
|
---|
| 3181 | IFS=$as_save_IFS
|
---|
| 3182 |
|
---|
[5d6ce1f] | 3183 | ;;
|
---|
| 3184 | esac
|
---|
[3b77289] | 3185 | fi
|
---|
[e24f13a] | 3186 | BACKEND_CC=$ac_cv_path_BACKEND_CC
|
---|
| 3187 | if test -n "$BACKEND_CC"; then
|
---|
| 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5
|
---|
| 3189 | $as_echo "$BACKEND_CC" >&6; }
|
---|
[5d6ce1f] | 3190 | else
|
---|
| 3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3192 | $as_echo "no" >&6; }
|
---|
| 3193 | fi
|
---|
| 3194 |
|
---|
[6e4b913] | 3195 | # check gcc installed
|
---|
[e24f13a] | 3196 | if test "x$BACKEND_CC" = "x"; then
|
---|
[00cc023] | 3197 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5
|
---|
| 3198 | exit 1
|
---|
| 3199 | fi
|
---|
[e24f13a] | 3200 | fi
|
---|
[5d6ce1f] | 3201 |
|
---|
| 3202 | cat >>confdefs.h <<_ACEOF
|
---|
[e24f13a] | 3203 | #define CFA_BACKEND_CC "${BACKEND_CC}"
|
---|
[5d6ce1f] | 3204 | _ACEOF
|
---|
| 3205 |
|
---|
| 3206 |
|
---|
| 3207 |
|
---|
[9def87a] | 3208 |
|
---|
| 3209 |
|
---|
| 3210 | # Check whether --enable-target-release was given.
|
---|
| 3211 | if test "${enable_target_release+set}" = set; then :
|
---|
| 3212 | enableval=$enable_target_release;
|
---|
| 3213 | fi
|
---|
| 3214 |
|
---|
| 3215 | # Check whether --enable-target-debug was given.
|
---|
| 3216 | if test "${enable_target_debug+set}" = set; then :
|
---|
| 3217 | enableval=$enable_target_debug;
|
---|
| 3218 | fi
|
---|
| 3219 |
|
---|
[facc44f] | 3220 | # Check whether --enable-threading was given.
|
---|
| 3221 | if test "${enable_threading+set}" = set; then :
|
---|
| 3222 | enableval=$enable_threading; case "${enableval}" in
|
---|
[a62cbb3] | 3223 | yes) build_threading="yes" ;;
|
---|
[facc44f] | 3224 | no) build_threading="no" ;;
|
---|
| 3225 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
|
---|
| 3226 | esac
|
---|
| 3227 | else
|
---|
| 3228 | build_threading="yes"
|
---|
| 3229 | fi
|
---|
| 3230 |
|
---|
[9def87a] | 3231 |
|
---|
| 3232 | case "$enable_target_release" in
|
---|
| 3233 | yes)
|
---|
| 3234 | case "$enable_target_debug" in
|
---|
| 3235 | yes)
|
---|
| 3236 | build_release="yes"
|
---|
| 3237 | build_debug="yes"
|
---|
| 3238 | ;;
|
---|
| 3239 | no)
|
---|
| 3240 | build_release="yes"
|
---|
| 3241 | build_debug="no"
|
---|
| 3242 | ;;
|
---|
| 3243 | *)
|
---|
| 3244 | build_release="yes"
|
---|
| 3245 | build_debug="no"
|
---|
| 3246 | ;;
|
---|
| 3247 | esac
|
---|
| 3248 | ;;
|
---|
| 3249 | no)
|
---|
| 3250 | case "$enable_target_debug" in
|
---|
| 3251 | yes)
|
---|
| 3252 | build_release="no"
|
---|
| 3253 | build_debug="yes"
|
---|
| 3254 | ;;
|
---|
| 3255 | no)
|
---|
[24f4671] | 3256 | build_release="no"
|
---|
| 3257 | build_debug="no"
|
---|
[9def87a] | 3258 | ;;
|
---|
| 3259 | *)
|
---|
| 3260 | build_release="no"
|
---|
| 3261 | build_debug="yes"
|
---|
| 3262 | ;;
|
---|
| 3263 | esac
|
---|
| 3264 | ;;
|
---|
| 3265 | *)
|
---|
| 3266 | case "$enable_target_debug" in
|
---|
| 3267 | yes)
|
---|
| 3268 | build_release="no"
|
---|
| 3269 | build_debug="yes"
|
---|
| 3270 | ;;
|
---|
| 3271 | no)
|
---|
| 3272 | build_release="yes"
|
---|
| 3273 | build_debug="no"
|
---|
| 3274 | ;;
|
---|
| 3275 | *)
|
---|
| 3276 | build_release="yes"
|
---|
| 3277 | build_debug="yes"
|
---|
| 3278 | ;;
|
---|
| 3279 | esac
|
---|
| 3280 | ;;
|
---|
| 3281 | esac
|
---|
| 3282 |
|
---|
| 3283 | if test "x$build_release" = "xyes"; then
|
---|
| 3284 | BUILD_RELEASE_TRUE=
|
---|
| 3285 | BUILD_RELEASE_FALSE='#'
|
---|
| 3286 | else
|
---|
| 3287 | BUILD_RELEASE_TRUE='#'
|
---|
| 3288 | BUILD_RELEASE_FALSE=
|
---|
| 3289 | fi
|
---|
| 3290 |
|
---|
| 3291 | if test "x$build_debug" = "xyes"; then
|
---|
| 3292 | BUILD_DEBUG_TRUE=
|
---|
| 3293 | BUILD_DEBUG_FALSE='#'
|
---|
| 3294 | else
|
---|
| 3295 | BUILD_DEBUG_TRUE='#'
|
---|
| 3296 | BUILD_DEBUG_FALSE=
|
---|
| 3297 | fi
|
---|
| 3298 |
|
---|
[24f4671] | 3299 | if test "x$build_release$build_debug" = "xnono"; then
|
---|
| 3300 | BUILD_NO_LIB_TRUE=
|
---|
| 3301 | BUILD_NO_LIB_FALSE='#'
|
---|
| 3302 | else
|
---|
| 3303 | BUILD_NO_LIB_TRUE='#'
|
---|
| 3304 | BUILD_NO_LIB_FALSE=
|
---|
| 3305 | fi
|
---|
| 3306 |
|
---|
[facc44f] | 3307 | if test "x$build_threading" = "xyes"; then
|
---|
| 3308 | BUILD_CONCURRENCY_TRUE=
|
---|
| 3309 | BUILD_CONCURRENCY_FALSE='#'
|
---|
| 3310 | else
|
---|
| 3311 | BUILD_CONCURRENCY_TRUE='#'
|
---|
| 3312 | BUILD_CONCURRENCY_FALSE=
|
---|
| 3313 | fi
|
---|
| 3314 |
|
---|
[9def87a] | 3315 |
|
---|
[05f4b85] | 3316 | DOifskipcompile='ifeq ($(skipcompile),yes)
|
---|
| 3317 | else'
|
---|
| 3318 |
|
---|
| 3319 |
|
---|
| 3320 |
|
---|
| 3321 | DOendif='endif'
|
---|
| 3322 |
|
---|
| 3323 |
|
---|
| 3324 |
|
---|
[5d6ce1f] | 3325 | if test "x$prefix" = "xNONE"; then
|
---|
[00cc023] | 3326 | cfa_prefix=${ac_default_prefix}
|
---|
[5d6ce1f] | 3327 | else
|
---|
[00cc023] | 3328 | cfa_prefix=${prefix}
|
---|
[5d6ce1f] | 3329 | fi
|
---|
| 3330 |
|
---|
| 3331 | cat >>confdefs.h <<_ACEOF
|
---|
| 3332 | #define CFA_PREFIX "${cfa_prefix}"
|
---|
| 3333 | _ACEOF
|
---|
| 3334 |
|
---|
| 3335 | CFA_PREFIX=${cfa_prefix}
|
---|
| 3336 |
|
---|
| 3337 |
|
---|
| 3338 | if test "$includedir" = '${prefix}/include'; then
|
---|
[df47e2f] | 3339 | cfa_incdir="${cfa_prefix}/include/${cfa_name}"
|
---|
[5d6ce1f] | 3340 | else
|
---|
[faf8857] | 3341 | cfa_incdir=${includedir}
|
---|
[5d6ce1f] | 3342 | fi
|
---|
| 3343 |
|
---|
| 3344 | cat >>confdefs.h <<_ACEOF
|
---|
| 3345 | #define CFA_INCDIR "${cfa_incdir}"
|
---|
| 3346 | _ACEOF
|
---|
| 3347 |
|
---|
| 3348 | CFA_INCDIR=${cfa_incdir}
|
---|
| 3349 |
|
---|
| 3350 |
|
---|
| 3351 | if test "$bindir" = '${exec_prefix}/bin'; then
|
---|
| 3352 | cfa_bindir="${cfa_prefix}/bin"
|
---|
| 3353 | else
|
---|
| 3354 | cfa_bindir=${bindir}
|
---|
[3b77289] | 3355 | fi
|
---|
[5d6ce1f] | 3356 |
|
---|
| 3357 | cat >>confdefs.h <<_ACEOF
|
---|
| 3358 | #define CFA_BINDIR "${cfa_bindir}"
|
---|
| 3359 | _ACEOF
|
---|
| 3360 |
|
---|
| 3361 | CFA_BINDIR=${cfa_bindir}
|
---|
| 3362 |
|
---|
| 3363 |
|
---|
| 3364 | if test "$libdir" = '${exec_prefix}/lib'; then
|
---|
[df47e2f] | 3365 | cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
|
---|
[3b77289] | 3366 | else
|
---|
[5d6ce1f] | 3367 | cfa_libdir=${libdir}
|
---|
[3b77289] | 3368 | fi
|
---|
| 3369 |
|
---|
[5d6ce1f] | 3370 | cat >>confdefs.h <<_ACEOF
|
---|
| 3371 | #define CFA_LIBDIR "${cfa_libdir}"
|
---|
| 3372 | _ACEOF
|
---|
| 3373 |
|
---|
| 3374 | CFA_LIBDIR=${cfa_libdir}
|
---|
[3b77289] | 3375 |
|
---|
| 3376 |
|
---|
[e4745d7a] | 3377 | # Make sure we can run config.sub.
|
---|
| 3378 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
| 3379 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
| 3380 |
|
---|
| 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
| 3382 | $as_echo_n "checking build system type... " >&6; }
|
---|
| 3383 | if ${ac_cv_build+:} false; then :
|
---|
| 3384 | $as_echo_n "(cached) " >&6
|
---|
| 3385 | else
|
---|
| 3386 | ac_build_alias=$build_alias
|
---|
| 3387 | test "x$ac_build_alias" = x &&
|
---|
| 3388 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 3389 | test "x$ac_build_alias" = x &&
|
---|
| 3390 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
| 3391 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
| 3392 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
| 3393 |
|
---|
| 3394 | fi
|
---|
| 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
| 3396 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 3397 | case $ac_cv_build in
|
---|
| 3398 | *-*-*) ;;
|
---|
| 3399 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
| 3400 | esac
|
---|
| 3401 | build=$ac_cv_build
|
---|
| 3402 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3403 | set x $ac_cv_build
|
---|
| 3404 | shift
|
---|
| 3405 | build_cpu=$1
|
---|
| 3406 | build_vendor=$2
|
---|
| 3407 | shift; shift
|
---|
| 3408 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3409 | # except with old shells:
|
---|
| 3410 | build_os=$*
|
---|
| 3411 | IFS=$ac_save_IFS
|
---|
| 3412 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
| 3413 |
|
---|
| 3414 |
|
---|
| 3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
| 3416 | $as_echo_n "checking host system type... " >&6; }
|
---|
| 3417 | if ${ac_cv_host+:} false; then :
|
---|
| 3418 | $as_echo_n "(cached) " >&6
|
---|
| 3419 | else
|
---|
| 3420 | if test "x$host_alias" = x; then
|
---|
| 3421 | ac_cv_host=$ac_cv_build
|
---|
| 3422 | else
|
---|
| 3423 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
| 3424 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
| 3425 | fi
|
---|
| 3426 |
|
---|
| 3427 | fi
|
---|
| 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
| 3429 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 3430 | case $ac_cv_host in
|
---|
| 3431 | *-*-*) ;;
|
---|
| 3432 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
| 3433 | esac
|
---|
| 3434 | host=$ac_cv_host
|
---|
| 3435 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3436 | set x $ac_cv_host
|
---|
| 3437 | shift
|
---|
| 3438 | host_cpu=$1
|
---|
| 3439 | host_vendor=$2
|
---|
| 3440 | shift; shift
|
---|
| 3441 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3442 | # except with old shells:
|
---|
| 3443 | host_os=$*
|
---|
| 3444 | IFS=$ac_save_IFS
|
---|
| 3445 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
| 3446 |
|
---|
| 3447 |
|
---|
| 3448 | MACHINE_TYPE=$host_cpu
|
---|
| 3449 |
|
---|
| 3450 |
|
---|
[3f414ef] | 3451 | if ! test "$host_cpu" = "$build_cpu"; then
|
---|
| 3452 | case $host_cpu in
|
---|
| 3453 | i386)
|
---|
[4ec769c] | 3454 | CFLAGS+=" -m32 "
|
---|
| 3455 | CXXFLAGS+=" -m32 "
|
---|
| 3456 | CFAFLAGS+=" -m32 "
|
---|
| 3457 | LDFLAGS+=" -m32 "
|
---|
[3f414ef] | 3458 | ;;
|
---|
| 3459 | i686)
|
---|
[4ec769c] | 3460 | CFLAGS+=" -m32 "
|
---|
| 3461 | CXXFLAGS+=" -m32 "
|
---|
| 3462 | CFAFLAGS+=" -m32 "
|
---|
| 3463 | LDFLAGS+=" -m32 "
|
---|
[3f414ef] | 3464 | ;;
|
---|
| 3465 | x86_64)
|
---|
[4ec769c] | 3466 | CFLAGS+=" -m64 "
|
---|
| 3467 | CXXFLAGS+=" -m64 "
|
---|
| 3468 | CFAFLAGS+=" -m64 "
|
---|
| 3469 | LDFLAGS+=" -m64 "
|
---|
[3f414ef] | 3470 | ;;
|
---|
| 3471 | esac
|
---|
| 3472 | fi
|
---|
| 3473 |
|
---|
| 3474 |
|
---|
| 3475 | cat >>confdefs.h <<_ACEOF
|
---|
| 3476 | #define CFA_FLAGS "${CFAFLAGS}"
|
---|
| 3477 | _ACEOF
|
---|
| 3478 |
|
---|
| 3479 | CFA_FLAGS=${CFAFLAGS}
|
---|
| 3480 |
|
---|
| 3481 |
|
---|
[5d6ce1f] | 3482 | # Checks for programs.
|
---|
[3b77289] | 3483 | ac_ext=cpp
|
---|
| 3484 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 3485 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3486 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3487 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 3488 | if test -z "$CXX"; then
|
---|
| 3489 | if test -n "$CCC"; then
|
---|
| 3490 | CXX=$CCC
|
---|
| 3491 | else
|
---|
| 3492 | if test -n "$ac_tool_prefix"; then
|
---|
| 3493 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
| 3494 | do
|
---|
| 3495 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3496 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3498 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3499 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
| 3500 | $as_echo_n "(cached) " >&6
|
---|
| 3501 | else
|
---|
| 3502 | if test -n "$CXX"; then
|
---|
| 3503 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 3504 | else
|
---|
| 3505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3506 | for as_dir in $PATH
|
---|
| 3507 | do
|
---|
| 3508 | IFS=$as_save_IFS
|
---|
| 3509 | test -z "$as_dir" && as_dir=.
|
---|
| 3510 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 3511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 3512 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 3513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3514 | break 2
|
---|
| 3515 | fi
|
---|
| 3516 | done
|
---|
| 3517 | done
|
---|
| 3518 | IFS=$as_save_IFS
|
---|
| 3519 |
|
---|
| 3520 | fi
|
---|
| 3521 | fi
|
---|
| 3522 | CXX=$ac_cv_prog_CXX
|
---|
| 3523 | if test -n "$CXX"; then
|
---|
| 3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
| 3525 | $as_echo "$CXX" >&6; }
|
---|
| 3526 | else
|
---|
| 3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3528 | $as_echo "no" >&6; }
|
---|
| 3529 | fi
|
---|
| 3530 |
|
---|
| 3531 |
|
---|
| 3532 | test -n "$CXX" && break
|
---|
| 3533 | done
|
---|
| 3534 | fi
|
---|
| 3535 | if test -z "$CXX"; then
|
---|
| 3536 | ac_ct_CXX=$CXX
|
---|
| 3537 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
| 3538 | do
|
---|
| 3539 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3540 | set dummy $ac_prog; ac_word=$2
|
---|
| 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3542 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3543 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
| 3544 | $as_echo_n "(cached) " >&6
|
---|
| 3545 | else
|
---|
| 3546 | if test -n "$ac_ct_CXX"; then
|
---|
| 3547 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 3548 | else
|
---|
| 3549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3550 | for as_dir in $PATH
|
---|
| 3551 | do
|
---|
| 3552 | IFS=$as_save_IFS
|
---|
| 3553 | test -z "$as_dir" && as_dir=.
|
---|
| 3554 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 3555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 3556 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 3557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3558 | break 2
|
---|
| 3559 | fi
|
---|
| 3560 | done
|
---|
| 3561 | done
|
---|
| 3562 | IFS=$as_save_IFS
|
---|
| 3563 |
|
---|
| 3564 | fi
|
---|
| 3565 | fi
|
---|
| 3566 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 3567 | if test -n "$ac_ct_CXX"; then
|
---|
| 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
| 3569 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
| 3570 | else
|
---|
| 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3572 | $as_echo "no" >&6; }
|
---|
| 3573 | fi
|
---|
| 3574 |
|
---|
| 3575 |
|
---|
| 3576 | test -n "$ac_ct_CXX" && break
|
---|
| 3577 | done
|
---|
| 3578 |
|
---|
| 3579 | if test "x$ac_ct_CXX" = x; then
|
---|
| 3580 | CXX="g++"
|
---|
| 3581 | else
|
---|
| 3582 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3583 | yes:)
|
---|
| 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3585 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3586 | ac_tool_warned=yes ;;
|
---|
| 3587 | esac
|
---|
| 3588 | CXX=$ac_ct_CXX
|
---|
| 3589 | fi
|
---|
| 3590 | fi
|
---|
| 3591 |
|
---|
| 3592 | fi
|
---|
| 3593 | fi
|
---|
| 3594 | # Provide some information about the compiler.
|
---|
| 3595 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
| 3596 | set X $ac_compile
|
---|
| 3597 | ac_compiler=$2
|
---|
| 3598 | for ac_option in --version -v -V -qversion; do
|
---|
| 3599 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 3600 | case "(($ac_try" in
|
---|
| 3601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3602 | *) ac_try_echo=$ac_try;;
|
---|
| 3603 | esac
|
---|
| 3604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3605 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3606 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
| 3607 | ac_status=$?
|
---|
| 3608 | if test -s conftest.err; then
|
---|
| 3609 | sed '10a\
|
---|
| 3610 | ... rest of stderr output deleted ...
|
---|
| 3611 | 10q' conftest.err >conftest.er1
|
---|
| 3612 | cat conftest.er1 >&5
|
---|
| 3613 | fi
|
---|
| 3614 | rm -f conftest.er1 conftest.err
|
---|
| 3615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3616 | test $ac_status = 0; }
|
---|
| 3617 | done
|
---|
| 3618 |
|
---|
| 3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3620 | /* end confdefs.h. */
|
---|
| 3621 |
|
---|
| 3622 | int
|
---|
| 3623 | main ()
|
---|
| 3624 | {
|
---|
| 3625 |
|
---|
| 3626 | ;
|
---|
| 3627 | return 0;
|
---|
| 3628 | }
|
---|
| 3629 | _ACEOF
|
---|
| 3630 | ac_clean_files_save=$ac_clean_files
|
---|
| 3631 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
| 3632 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 3633 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 3634 | # of exeext.
|
---|
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
| 3636 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
| 3637 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 3638 |
|
---|
| 3639 | # The possible output files:
|
---|
| 3640 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 3641 |
|
---|
| 3642 | ac_rmfiles=
|
---|
| 3643 | for ac_file in $ac_files
|
---|
| 3644 | do
|
---|
| 3645 | case $ac_file in
|
---|
| 3646 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 3647 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 3648 | esac
|
---|
| 3649 | done
|
---|
| 3650 | rm -f $ac_rmfiles
|
---|
| 3651 |
|
---|
| 3652 | if { { ac_try="$ac_link_default"
|
---|
| 3653 | case "(($ac_try" in
|
---|
| 3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3655 | *) ac_try_echo=$ac_try;;
|
---|
| 3656 | esac
|
---|
| 3657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3658 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3659 | (eval "$ac_link_default") 2>&5
|
---|
| 3660 | ac_status=$?
|
---|
| 3661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3662 | test $ac_status = 0; }; then :
|
---|
| 3663 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 3664 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 3665 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 3666 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 3667 | # Autoconf.
|
---|
| 3668 | for ac_file in $ac_files ''
|
---|
| 3669 | do
|
---|
| 3670 | test -f "$ac_file" || continue
|
---|
| 3671 | case $ac_file in
|
---|
| 3672 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
| 3673 | ;;
|
---|
| 3674 | [ab].out )
|
---|
| 3675 | # We found the default executable, but exeext='' is most
|
---|
| 3676 | # certainly right.
|
---|
| 3677 | break;;
|
---|
| 3678 | *.* )
|
---|
| 3679 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 3680 | then :; else
|
---|
| 3681 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 3682 | fi
|
---|
| 3683 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 3684 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 3685 | # argument, so we may need to know it at that point already.
|
---|
| 3686 | # Even if this section looks crufty: it has the advantage of
|
---|
| 3687 | # actually working.
|
---|
| 3688 | break;;
|
---|
| 3689 | * )
|
---|
| 3690 | break;;
|
---|
| 3691 | esac
|
---|
| 3692 | done
|
---|
| 3693 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 3694 |
|
---|
| 3695 | else
|
---|
| 3696 | ac_file=''
|
---|
| 3697 | fi
|
---|
| 3698 | if test -z "$ac_file"; then :
|
---|
| 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3700 | $as_echo "no" >&6; }
|
---|
| 3701 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 3702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3703 |
|
---|
| 3704 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3705 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3706 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
| 3707 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 3708 | else
|
---|
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3710 | $as_echo "yes" >&6; }
|
---|
| 3711 | fi
|
---|
| 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
| 3713 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
| 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 3715 | $as_echo "$ac_file" >&6; }
|
---|
| 3716 | ac_exeext=$ac_cv_exeext
|
---|
| 3717 |
|
---|
| 3718 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
| 3719 | ac_clean_files=$ac_clean_files_save
|
---|
| 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
| 3721 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
| 3722 | if { { ac_try="$ac_link"
|
---|
| 3723 | case "(($ac_try" in
|
---|
| 3724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3725 | *) ac_try_echo=$ac_try;;
|
---|
| 3726 | esac
|
---|
| 3727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3728 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3729 | (eval "$ac_link") 2>&5
|
---|
| 3730 | ac_status=$?
|
---|
| 3731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3732 | test $ac_status = 0; }; then :
|
---|
| 3733 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 3734 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 3735 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 3736 | # `rm'.
|
---|
| 3737 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 3738 | test -f "$ac_file" || continue
|
---|
| 3739 | case $ac_file in
|
---|
| 3740 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 3741 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 3742 | break;;
|
---|
| 3743 | * ) break;;
|
---|
| 3744 | esac
|
---|
| 3745 | done
|
---|
| 3746 | else
|
---|
| 3747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3749 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
| 3750 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 3751 | fi
|
---|
| 3752 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
| 3754 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
| 3755 |
|
---|
| 3756 | rm -f conftest.$ac_ext
|
---|
| 3757 | EXEEXT=$ac_cv_exeext
|
---|
| 3758 | ac_exeext=$EXEEXT
|
---|
| 3759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3760 | /* end confdefs.h. */
|
---|
| 3761 | #include <stdio.h>
|
---|
| 3762 | int
|
---|
| 3763 | main ()
|
---|
| 3764 | {
|
---|
| 3765 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 3766 | return ferror (f) || fclose (f) != 0;
|
---|
| 3767 |
|
---|
| 3768 | ;
|
---|
| 3769 | return 0;
|
---|
| 3770 | }
|
---|
| 3771 | _ACEOF
|
---|
| 3772 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 3773 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 3774 | # the compiler is broken, or we cross compile.
|
---|
| 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 3776 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 3777 | if test "$cross_compiling" != yes; then
|
---|
| 3778 | { { ac_try="$ac_link"
|
---|
| 3779 | case "(($ac_try" in
|
---|
| 3780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3781 | *) ac_try_echo=$ac_try;;
|
---|
| 3782 | esac
|
---|
| 3783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3784 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3785 | (eval "$ac_link") 2>&5
|
---|
| 3786 | ac_status=$?
|
---|
| 3787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3788 | test $ac_status = 0; }
|
---|
| 3789 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 3790 | { { case "(($ac_try" in
|
---|
| 3791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3792 | *) ac_try_echo=$ac_try;;
|
---|
| 3793 | esac
|
---|
| 3794 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3795 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3796 | (eval "$ac_try") 2>&5
|
---|
| 3797 | ac_status=$?
|
---|
| 3798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3799 | test $ac_status = 0; }; }; then
|
---|
| 3800 | cross_compiling=no
|
---|
| 3801 | else
|
---|
| 3802 | if test "$cross_compiling" = maybe; then
|
---|
| 3803 | cross_compiling=yes
|
---|
| 3804 | else
|
---|
| 3805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3807 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
| 3808 | If you meant to cross compile, use \`--host'.
|
---|
| 3809 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 3810 | fi
|
---|
| 3811 | fi
|
---|
| 3812 | fi
|
---|
| 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 3814 | $as_echo "$cross_compiling" >&6; }
|
---|
| 3815 |
|
---|
| 3816 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 3817 | ac_clean_files=$ac_clean_files_save
|
---|
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
| 3819 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
| 3820 | if ${ac_cv_objext+:} false; then :
|
---|
| 3821 | $as_echo_n "(cached) " >&6
|
---|
| 3822 | else
|
---|
| 3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3824 | /* end confdefs.h. */
|
---|
| 3825 |
|
---|
| 3826 | int
|
---|
| 3827 | main ()
|
---|
| 3828 | {
|
---|
| 3829 |
|
---|
| 3830 | ;
|
---|
| 3831 | return 0;
|
---|
| 3832 | }
|
---|
| 3833 | _ACEOF
|
---|
| 3834 | rm -f conftest.o conftest.obj
|
---|
| 3835 | if { { ac_try="$ac_compile"
|
---|
| 3836 | case "(($ac_try" in
|
---|
| 3837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3838 | *) ac_try_echo=$ac_try;;
|
---|
| 3839 | esac
|
---|
| 3840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3841 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3842 | (eval "$ac_compile") 2>&5
|
---|
| 3843 | ac_status=$?
|
---|
| 3844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3845 | test $ac_status = 0; }; then :
|
---|
| 3846 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 3847 | test -f "$ac_file" || continue;
|
---|
| 3848 | case $ac_file in
|
---|
| 3849 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
| 3850 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 3851 | break;;
|
---|
| 3852 | esac
|
---|
| 3853 | done
|
---|
| 3854 | else
|
---|
| 3855 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 3856 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3857 |
|
---|
| 3858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3860 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
| 3861 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 3862 | fi
|
---|
| 3863 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 3864 | fi
|
---|
| 3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
| 3866 | $as_echo "$ac_cv_objext" >&6; }
|
---|
| 3867 | OBJEXT=$ac_cv_objext
|
---|
| 3868 | ac_objext=$OBJEXT
|
---|
| 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 3870 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
| 3871 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
| 3872 | $as_echo_n "(cached) " >&6
|
---|
| 3873 | else
|
---|
| 3874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3875 | /* end confdefs.h. */
|
---|
| 3876 |
|
---|
| 3877 | int
|
---|
| 3878 | main ()
|
---|
| 3879 | {
|
---|
| 3880 | #ifndef __GNUC__
|
---|
| 3881 | choke me
|
---|
| 3882 | #endif
|
---|
| 3883 |
|
---|
| 3884 | ;
|
---|
| 3885 | return 0;
|
---|
| 3886 | }
|
---|
| 3887 | _ACEOF
|
---|
| 3888 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3889 | ac_compiler_gnu=yes
|
---|
| 3890 | else
|
---|
| 3891 | ac_compiler_gnu=no
|
---|
| 3892 | fi
|
---|
| 3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3894 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 3895 |
|
---|
| 3896 | fi
|
---|
| 3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 3898 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3899 | if test $ac_compiler_gnu = yes; then
|
---|
| 3900 | GXX=yes
|
---|
| 3901 | else
|
---|
| 3902 | GXX=
|
---|
| 3903 | fi
|
---|
| 3904 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3905 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
| 3907 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
| 3908 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
| 3909 | $as_echo_n "(cached) " >&6
|
---|
| 3910 | else
|
---|
| 3911 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3912 | ac_cxx_werror_flag=yes
|
---|
| 3913 | ac_cv_prog_cxx_g=no
|
---|
| 3914 | CXXFLAGS="-g"
|
---|
| 3915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3916 | /* end confdefs.h. */
|
---|
| 3917 |
|
---|
| 3918 | int
|
---|
| 3919 | main ()
|
---|
| 3920 | {
|
---|
| 3921 |
|
---|
| 3922 | ;
|
---|
| 3923 | return 0;
|
---|
| 3924 | }
|
---|
| 3925 | _ACEOF
|
---|
| 3926 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3927 | ac_cv_prog_cxx_g=yes
|
---|
| 3928 | else
|
---|
| 3929 | CXXFLAGS=""
|
---|
| 3930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3931 | /* end confdefs.h. */
|
---|
| 3932 |
|
---|
| 3933 | int
|
---|
| 3934 | main ()
|
---|
| 3935 | {
|
---|
| 3936 |
|
---|
| 3937 | ;
|
---|
| 3938 | return 0;
|
---|
| 3939 | }
|
---|
| 3940 | _ACEOF
|
---|
| 3941 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3942 |
|
---|
| 3943 | else
|
---|
| 3944 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3945 | CXXFLAGS="-g"
|
---|
| 3946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3947 | /* end confdefs.h. */
|
---|
| 3948 |
|
---|
| 3949 | int
|
---|
| 3950 | main ()
|
---|
| 3951 | {
|
---|
| 3952 |
|
---|
| 3953 | ;
|
---|
| 3954 | return 0;
|
---|
| 3955 | }
|
---|
| 3956 | _ACEOF
|
---|
| 3957 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3958 | ac_cv_prog_cxx_g=yes
|
---|
| 3959 | fi
|
---|
| 3960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3961 | fi
|
---|
| 3962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3963 | fi
|
---|
| 3964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3965 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3966 | fi
|
---|
| 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 3968 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3969 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3970 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3971 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3972 | if test "$GXX" = yes; then
|
---|
| 3973 | CXXFLAGS="-g -O2"
|
---|
| 3974 | else
|
---|
| 3975 | CXXFLAGS="-g"
|
---|
| 3976 | fi
|
---|
| 3977 | else
|
---|
| 3978 | if test "$GXX" = yes; then
|
---|
| 3979 | CXXFLAGS="-O2"
|
---|
| 3980 | else
|
---|
| 3981 | CXXFLAGS=
|
---|
| 3982 | fi
|
---|
| 3983 | fi
|
---|
| 3984 | ac_ext=c
|
---|
| 3985 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3988 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3989 | DEPDIR="${am__leading_dot}deps"
|
---|
| 3990 |
|
---|
| 3991 | ac_config_commands="$ac_config_commands depfiles"
|
---|
| 3992 |
|
---|
| 3993 |
|
---|
| 3994 | am_make=${MAKE-make}
|
---|
| 3995 | cat > confinc << 'END'
|
---|
| 3996 | am__doit:
|
---|
| 3997 | @echo this is the am__doit target
|
---|
| 3998 | .PHONY: am__doit
|
---|
| 3999 | END
|
---|
| 4000 | # If we don't find an include directive, just comment out the code.
|
---|
| 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
---|
| 4002 | $as_echo_n "checking for style of include used by $am_make... " >&6; }
|
---|
| 4003 | am__include="#"
|
---|
| 4004 | am__quote=
|
---|
| 4005 | _am_result=none
|
---|
| 4006 | # First try GNU make style include.
|
---|
| 4007 | echo "include confinc" > confmf
|
---|
[44f44617] | 4008 | # Ignore all kinds of additional output from 'make'.
|
---|
[3b77289] | 4009 | case `$am_make -s -f confmf 2> /dev/null` in #(
|
---|
| 4010 | *the\ am__doit\ target*)
|
---|
| 4011 | am__include=include
|
---|
| 4012 | am__quote=
|
---|
| 4013 | _am_result=GNU
|
---|
| 4014 | ;;
|
---|
| 4015 | esac
|
---|
| 4016 | # Now try BSD make style include.
|
---|
| 4017 | if test "$am__include" = "#"; then
|
---|
| 4018 | echo '.include "confinc"' > confmf
|
---|
| 4019 | case `$am_make -s -f confmf 2> /dev/null` in #(
|
---|
| 4020 | *the\ am__doit\ target*)
|
---|
| 4021 | am__include=.include
|
---|
| 4022 | am__quote="\""
|
---|
| 4023 | _am_result=BSD
|
---|
| 4024 | ;;
|
---|
| 4025 | esac
|
---|
| 4026 | fi
|
---|
| 4027 |
|
---|
| 4028 |
|
---|
| 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
---|
| 4030 | $as_echo "$_am_result" >&6; }
|
---|
| 4031 | rm -f confinc confmf
|
---|
| 4032 |
|
---|
| 4033 | # Check whether --enable-dependency-tracking was given.
|
---|
| 4034 | if test "${enable_dependency_tracking+set}" = set; then :
|
---|
| 4035 | enableval=$enable_dependency_tracking;
|
---|
| 4036 | fi
|
---|
| 4037 |
|
---|
| 4038 | if test "x$enable_dependency_tracking" != xno; then
|
---|
| 4039 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
| 4040 | AMDEPBACKSLASH='\'
|
---|
| 4041 | am__nodep='_no'
|
---|
| 4042 | fi
|
---|
| 4043 | if test "x$enable_dependency_tracking" != xno; then
|
---|
| 4044 | AMDEP_TRUE=
|
---|
| 4045 | AMDEP_FALSE='#'
|
---|
| 4046 | else
|
---|
| 4047 | AMDEP_TRUE='#'
|
---|
| 4048 | AMDEP_FALSE=
|
---|
| 4049 | fi
|
---|
| 4050 |
|
---|
| 4051 |
|
---|
| 4052 |
|
---|
| 4053 | depcc="$CXX" am_compiler_list=
|
---|
| 4054 |
|
---|
| 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
| 4056 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
| 4057 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
|
---|
| 4058 | $as_echo_n "(cached) " >&6
|
---|
| 4059 | else
|
---|
| 4060 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
| 4061 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
| 4062 | # making bogus files that we don't know about and never remove. For
|
---|
| 4063 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
[44f44617] | 4064 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
| 4065 | # in D".
|
---|
[3b77289] | 4066 | rm -rf conftest.dir
|
---|
| 4067 | mkdir conftest.dir
|
---|
| 4068 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
| 4069 | # using a relative directory.
|
---|
| 4070 | cp "$am_depcomp" conftest.dir
|
---|
| 4071 | cd conftest.dir
|
---|
| 4072 | # We will build objects and dependencies in a subdirectory because
|
---|
| 4073 | # it helps to detect inapplicable dependency modes. For instance
|
---|
| 4074 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
| 4075 | # side effect of compilation, but ICC will put the dependencies in
|
---|
| 4076 | # the current directory while Tru64 will put them in the object
|
---|
| 4077 | # directory.
|
---|
| 4078 | mkdir sub
|
---|
| 4079 |
|
---|
| 4080 | am_cv_CXX_dependencies_compiler_type=none
|
---|
| 4081 | if test "$am_compiler_list" = ""; then
|
---|
| 4082 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
| 4083 | fi
|
---|
| 4084 | am__universal=false
|
---|
| 4085 | case " $depcc " in #(
|
---|
| 4086 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
| 4087 | esac
|
---|
| 4088 |
|
---|
| 4089 | for depmode in $am_compiler_list; do
|
---|
| 4090 | # Setup a source with many dependencies, because some compilers
|
---|
| 4091 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
| 4092 | # we should not choose a depcomp mode which is confused by this.
|
---|
| 4093 | #
|
---|
| 4094 | # We need to recreate these files for each test, as the compiler may
|
---|
| 4095 | # overwrite some of them when testing with obscure command lines.
|
---|
| 4096 | # This happens at least with the AIX C compiler.
|
---|
| 4097 | : > sub/conftest.c
|
---|
| 4098 | for i in 1 2 3 4 5 6; do
|
---|
| 4099 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
[44f44617] | 4100 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
| 4101 | # Solaris 10 /bin/sh.
|
---|
| 4102 | echo '/* dummy */' > sub/conftst$i.h
|
---|
[3b77289] | 4103 | done
|
---|
| 4104 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
| 4105 |
|
---|
[44f44617] | 4106 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
[3b77289] | 4107 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
[44f44617] | 4108 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
| 4109 | # versions had trouble with output in subdirs.
|
---|
[3b77289] | 4110 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
| 4111 | am__minus_obj="-o $am__obj"
|
---|
| 4112 | case $depmode in
|
---|
| 4113 | gcc)
|
---|
| 4114 | # This depmode causes a compiler race in universal mode.
|
---|
| 4115 | test "$am__universal" = false || continue
|
---|
| 4116 | ;;
|
---|
| 4117 | nosideeffect)
|
---|
[44f44617] | 4118 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
| 4119 | # only be used when explicitly requested.
|
---|
[3b77289] | 4120 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
| 4121 | continue
|
---|
| 4122 | else
|
---|
| 4123 | break
|
---|
| 4124 | fi
|
---|
| 4125 | ;;
|
---|
| 4126 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
[44f44617] | 4127 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
[3b77289] | 4128 | # not run yet. These depmodes are late enough in the game, and
|
---|
| 4129 | # so weak that their functioning should not be impacted.
|
---|
| 4130 | am__obj=conftest.${OBJEXT-o}
|
---|
| 4131 | am__minus_obj=
|
---|
| 4132 | ;;
|
---|
| 4133 | none) break ;;
|
---|
| 4134 | esac
|
---|
| 4135 | if depmode=$depmode \
|
---|
| 4136 | source=sub/conftest.c object=$am__obj \
|
---|
| 4137 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
| 4138 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
| 4139 | >/dev/null 2>conftest.err &&
|
---|
| 4140 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4141 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4142 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4143 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
| 4144 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
| 4145 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
| 4146 | # that says an option was ignored or not supported.
|
---|
| 4147 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
| 4148 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
| 4149 | # The diagnosis changed in icc 8.0:
|
---|
| 4150 | # icc: Command line remark: option '-MP' not supported
|
---|
| 4151 | if (grep 'ignoring option' conftest.err ||
|
---|
| 4152 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
| 4153 | am_cv_CXX_dependencies_compiler_type=$depmode
|
---|
| 4154 | break
|
---|
| 4155 | fi
|
---|
| 4156 | fi
|
---|
| 4157 | done
|
---|
| 4158 |
|
---|
| 4159 | cd ..
|
---|
| 4160 | rm -rf conftest.dir
|
---|
| 4161 | else
|
---|
| 4162 | am_cv_CXX_dependencies_compiler_type=none
|
---|
| 4163 | fi
|
---|
| 4164 |
|
---|
| 4165 | fi
|
---|
| 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
---|
| 4167 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
|
---|
| 4168 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
---|
| 4169 |
|
---|
| 4170 | if
|
---|
| 4171 | test "x$enable_dependency_tracking" != xno \
|
---|
| 4172 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
---|
| 4173 | am__fastdepCXX_TRUE=
|
---|
| 4174 | am__fastdepCXX_FALSE='#'
|
---|
| 4175 | else
|
---|
| 4176 | am__fastdepCXX_TRUE='#'
|
---|
| 4177 | am__fastdepCXX_FALSE=
|
---|
| 4178 | fi
|
---|
| 4179 |
|
---|
| 4180 |
|
---|
| 4181 | ac_ext=c
|
---|
| 4182 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4186 | if test -n "$ac_tool_prefix"; then
|
---|
| 4187 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 4188 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4190 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4191 | if ${ac_cv_prog_CC+:} false; then :
|
---|
| 4192 | $as_echo_n "(cached) " >&6
|
---|
| 4193 | else
|
---|
| 4194 | if test -n "$CC"; then
|
---|
| 4195 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 4196 | else
|
---|
| 4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4198 | for as_dir in $PATH
|
---|
| 4199 | do
|
---|
| 4200 | IFS=$as_save_IFS
|
---|
| 4201 | test -z "$as_dir" && as_dir=.
|
---|
| 4202 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4204 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 4205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4206 | break 2
|
---|
| 4207 | fi
|
---|
| 4208 | done
|
---|
| 4209 | done
|
---|
| 4210 | IFS=$as_save_IFS
|
---|
| 4211 |
|
---|
| 4212 | fi
|
---|
| 4213 | fi
|
---|
| 4214 | CC=$ac_cv_prog_CC
|
---|
| 4215 | if test -n "$CC"; then
|
---|
| 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 4217 | $as_echo "$CC" >&6; }
|
---|
| 4218 | else
|
---|
| 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4220 | $as_echo "no" >&6; }
|
---|
| 4221 | fi
|
---|
| 4222 |
|
---|
| 4223 |
|
---|
| 4224 | fi
|
---|
| 4225 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 4226 | ac_ct_CC=$CC
|
---|
| 4227 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 4228 | set dummy gcc; ac_word=$2
|
---|
| 4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4230 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4231 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
| 4232 | $as_echo_n "(cached) " >&6
|
---|
| 4233 | else
|
---|
| 4234 | if test -n "$ac_ct_CC"; then
|
---|
| 4235 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 4236 | else
|
---|
| 4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4238 | for as_dir in $PATH
|
---|
| 4239 | do
|
---|
| 4240 | IFS=$as_save_IFS
|
---|
| 4241 | test -z "$as_dir" && as_dir=.
|
---|
| 4242 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4244 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 4245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4246 | break 2
|
---|
| 4247 | fi
|
---|
| 4248 | done
|
---|
| 4249 | done
|
---|
| 4250 | IFS=$as_save_IFS
|
---|
| 4251 |
|
---|
| 4252 | fi
|
---|
| 4253 | fi
|
---|
| 4254 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 4255 | if test -n "$ac_ct_CC"; then
|
---|
| 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 4257 | $as_echo "$ac_ct_CC" >&6; }
|
---|
| 4258 | else
|
---|
| 4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4260 | $as_echo "no" >&6; }
|
---|
| 4261 | fi
|
---|
| 4262 |
|
---|
| 4263 | if test "x$ac_ct_CC" = x; then
|
---|
| 4264 | CC=""
|
---|
| 4265 | else
|
---|
| 4266 | case $cross_compiling:$ac_tool_warned in
|
---|
| 4267 | yes:)
|
---|
| 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 4269 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 4270 | ac_tool_warned=yes ;;
|
---|
| 4271 | esac
|
---|
| 4272 | CC=$ac_ct_CC
|
---|
| 4273 | fi
|
---|
| 4274 | else
|
---|
| 4275 | CC="$ac_cv_prog_CC"
|
---|
| 4276 | fi
|
---|
| 4277 |
|
---|
| 4278 | if test -z "$CC"; then
|
---|
| 4279 | if test -n "$ac_tool_prefix"; then
|
---|
| 4280 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 4281 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4283 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4284 | if ${ac_cv_prog_CC+:} false; then :
|
---|
| 4285 | $as_echo_n "(cached) " >&6
|
---|
| 4286 | else
|
---|
| 4287 | if test -n "$CC"; then
|
---|
| 4288 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 4289 | else
|
---|
| 4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4291 | for as_dir in $PATH
|
---|
| 4292 | do
|
---|
| 4293 | IFS=$as_save_IFS
|
---|
| 4294 | test -z "$as_dir" && as_dir=.
|
---|
| 4295 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4297 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4299 | break 2
|
---|
| 4300 | fi
|
---|
| 4301 | done
|
---|
| 4302 | done
|
---|
| 4303 | IFS=$as_save_IFS
|
---|
| 4304 |
|
---|
| 4305 | fi
|
---|
| 4306 | fi
|
---|
| 4307 | CC=$ac_cv_prog_CC
|
---|
| 4308 | if test -n "$CC"; then
|
---|
| 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 4310 | $as_echo "$CC" >&6; }
|
---|
| 4311 | else
|
---|
| 4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4313 | $as_echo "no" >&6; }
|
---|
| 4314 | fi
|
---|
| 4315 |
|
---|
| 4316 |
|
---|
| 4317 | fi
|
---|
| 4318 | fi
|
---|
| 4319 | if test -z "$CC"; then
|
---|
| 4320 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 4321 | set dummy cc; ac_word=$2
|
---|
| 4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4323 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4324 | if ${ac_cv_prog_CC+:} false; then :
|
---|
| 4325 | $as_echo_n "(cached) " >&6
|
---|
| 4326 | else
|
---|
| 4327 | if test -n "$CC"; then
|
---|
| 4328 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 4329 | else
|
---|
| 4330 | ac_prog_rejected=no
|
---|
| 4331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4332 | for as_dir in $PATH
|
---|
| 4333 | do
|
---|
| 4334 | IFS=$as_save_IFS
|
---|
| 4335 | test -z "$as_dir" && as_dir=.
|
---|
| 4336 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4338 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 4339 | ac_prog_rejected=yes
|
---|
| 4340 | continue
|
---|
| 4341 | fi
|
---|
| 4342 | ac_cv_prog_CC="cc"
|
---|
| 4343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4344 | break 2
|
---|
| 4345 | fi
|
---|
| 4346 | done
|
---|
| 4347 | done
|
---|
| 4348 | IFS=$as_save_IFS
|
---|
| 4349 |
|
---|
| 4350 | if test $ac_prog_rejected = yes; then
|
---|
| 4351 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 4352 | set dummy $ac_cv_prog_CC
|
---|
| 4353 | shift
|
---|
| 4354 | if test $# != 0; then
|
---|
| 4355 | # We chose a different compiler from the bogus one.
|
---|
| 4356 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 4357 | # first if we set CC to just the basename; use the full file name.
|
---|
| 4358 | shift
|
---|
| 4359 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 4360 | fi
|
---|
| 4361 | fi
|
---|
| 4362 | fi
|
---|
| 4363 | fi
|
---|
| 4364 | CC=$ac_cv_prog_CC
|
---|
| 4365 | if test -n "$CC"; then
|
---|
| 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 4367 | $as_echo "$CC" >&6; }
|
---|
| 4368 | else
|
---|
| 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4370 | $as_echo "no" >&6; }
|
---|
| 4371 | fi
|
---|
| 4372 |
|
---|
| 4373 |
|
---|
| 4374 | fi
|
---|
| 4375 | if test -z "$CC"; then
|
---|
| 4376 | if test -n "$ac_tool_prefix"; then
|
---|
| 4377 | for ac_prog in cl.exe
|
---|
| 4378 | do
|
---|
| 4379 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 4380 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4382 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4383 | if ${ac_cv_prog_CC+:} false; then :
|
---|
| 4384 | $as_echo_n "(cached) " >&6
|
---|
| 4385 | else
|
---|
| 4386 | if test -n "$CC"; then
|
---|
| 4387 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 4388 | else
|
---|
| 4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4390 | for as_dir in $PATH
|
---|
| 4391 | do
|
---|
| 4392 | IFS=$as_save_IFS
|
---|
| 4393 | test -z "$as_dir" && as_dir=.
|
---|
| 4394 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4396 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 4397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4398 | break 2
|
---|
| 4399 | fi
|
---|
| 4400 | done
|
---|
| 4401 | done
|
---|
| 4402 | IFS=$as_save_IFS
|
---|
| 4403 |
|
---|
| 4404 | fi
|
---|
| 4405 | fi
|
---|
| 4406 | CC=$ac_cv_prog_CC
|
---|
| 4407 | if test -n "$CC"; then
|
---|
| 4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 4409 | $as_echo "$CC" >&6; }
|
---|
| 4410 | else
|
---|
| 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4412 | $as_echo "no" >&6; }
|
---|
| 4413 | fi
|
---|
| 4414 |
|
---|
| 4415 |
|
---|
| 4416 | test -n "$CC" && break
|
---|
| 4417 | done
|
---|
| 4418 | fi
|
---|
| 4419 | if test -z "$CC"; then
|
---|
| 4420 | ac_ct_CC=$CC
|
---|
| 4421 | for ac_prog in cl.exe
|
---|
| 4422 | do
|
---|
| 4423 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4424 | set dummy $ac_prog; ac_word=$2
|
---|
| 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4426 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4427 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
| 4428 | $as_echo_n "(cached) " >&6
|
---|
| 4429 | else
|
---|
| 4430 | if test -n "$ac_ct_CC"; then
|
---|
| 4431 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 4432 | else
|
---|
| 4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4434 | for as_dir in $PATH
|
---|
| 4435 | do
|
---|
| 4436 | IFS=$as_save_IFS
|
---|
| 4437 | test -z "$as_dir" && as_dir=.
|
---|
| 4438 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 4439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[3b77289] | 4440 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 4441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4442 | break 2
|
---|
| 4443 | fi
|
---|
| 4444 | done
|
---|
| 4445 | done
|
---|
| 4446 | IFS=$as_save_IFS
|
---|
| 4447 |
|
---|
| 4448 | fi
|
---|
| 4449 | fi
|
---|
| 4450 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 4451 | if test -n "$ac_ct_CC"; then
|
---|
| 4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 4453 | $as_echo "$ac_ct_CC" >&6; }
|
---|
| 4454 | else
|
---|
| 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4456 | $as_echo "no" >&6; }
|
---|
| 4457 | fi
|
---|
| 4458 |
|
---|
| 4459 |
|
---|
| 4460 | test -n "$ac_ct_CC" && break
|
---|
| 4461 | done
|
---|
| 4462 |
|
---|
| 4463 | if test "x$ac_ct_CC" = x; then
|
---|
| 4464 | CC=""
|
---|
| 4465 | else
|
---|
| 4466 | case $cross_compiling:$ac_tool_warned in
|
---|
| 4467 | yes:)
|
---|
| 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 4469 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 4470 | ac_tool_warned=yes ;;
|
---|
| 4471 | esac
|
---|
| 4472 | CC=$ac_ct_CC
|
---|
| 4473 | fi
|
---|
| 4474 | fi
|
---|
| 4475 |
|
---|
| 4476 | fi
|
---|
| 4477 |
|
---|
| 4478 |
|
---|
| 4479 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 4480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 4481 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
| 4482 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 4483 |
|
---|
| 4484 | # Provide some information about the compiler.
|
---|
| 4485 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
| 4486 | set X $ac_compile
|
---|
| 4487 | ac_compiler=$2
|
---|
| 4488 | for ac_option in --version -v -V -qversion; do
|
---|
| 4489 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 4490 | case "(($ac_try" in
|
---|
| 4491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4492 | *) ac_try_echo=$ac_try;;
|
---|
| 4493 | esac
|
---|
| 4494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 4495 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 4496 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
| 4497 | ac_status=$?
|
---|
| 4498 | if test -s conftest.err; then
|
---|
| 4499 | sed '10a\
|
---|
| 4500 | ... rest of stderr output deleted ...
|
---|
| 4501 | 10q' conftest.err >conftest.er1
|
---|
| 4502 | cat conftest.er1 >&5
|
---|
| 4503 | fi
|
---|
| 4504 | rm -f conftest.er1 conftest.err
|
---|
| 4505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4506 | test $ac_status = 0; }
|
---|
| 4507 | done
|
---|
| 4508 |
|
---|
| 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
| 4510 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
| 4511 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
| 4512 | $as_echo_n "(cached) " >&6
|
---|
| 4513 | else
|
---|
| 4514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4515 | /* end confdefs.h. */
|
---|
| 4516 |
|
---|
| 4517 | int
|
---|
| 4518 | main ()
|
---|
| 4519 | {
|
---|
| 4520 | #ifndef __GNUC__
|
---|
| 4521 | choke me
|
---|
| 4522 | #endif
|
---|
| 4523 |
|
---|
| 4524 | ;
|
---|
| 4525 | return 0;
|
---|
| 4526 | }
|
---|
| 4527 | _ACEOF
|
---|
| 4528 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4529 | ac_compiler_gnu=yes
|
---|
| 4530 | else
|
---|
| 4531 | ac_compiler_gnu=no
|
---|
| 4532 | fi
|
---|
| 4533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4534 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 4535 |
|
---|
| 4536 | fi
|
---|
| 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 4538 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 4539 | if test $ac_compiler_gnu = yes; then
|
---|
| 4540 | GCC=yes
|
---|
| 4541 | else
|
---|
| 4542 | GCC=
|
---|
| 4543 | fi
|
---|
| 4544 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 4545 | ac_save_CFLAGS=$CFLAGS
|
---|
| 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
| 4547 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
| 4548 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
| 4549 | $as_echo_n "(cached) " >&6
|
---|
| 4550 | else
|
---|
| 4551 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 4552 | ac_c_werror_flag=yes
|
---|
| 4553 | ac_cv_prog_cc_g=no
|
---|
| 4554 | CFLAGS="-g"
|
---|
| 4555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4556 | /* end confdefs.h. */
|
---|
| 4557 |
|
---|
| 4558 | int
|
---|
| 4559 | main ()
|
---|
| 4560 | {
|
---|
| 4561 |
|
---|
| 4562 | ;
|
---|
| 4563 | return 0;
|
---|
| 4564 | }
|
---|
| 4565 | _ACEOF
|
---|
| 4566 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4567 | ac_cv_prog_cc_g=yes
|
---|
| 4568 | else
|
---|
| 4569 | CFLAGS=""
|
---|
| 4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4571 | /* end confdefs.h. */
|
---|
| 4572 |
|
---|
| 4573 | int
|
---|
| 4574 | main ()
|
---|
| 4575 | {
|
---|
| 4576 |
|
---|
| 4577 | ;
|
---|
| 4578 | return 0;
|
---|
| 4579 | }
|
---|
| 4580 | _ACEOF
|
---|
| 4581 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4582 |
|
---|
| 4583 | else
|
---|
| 4584 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 4585 | CFLAGS="-g"
|
---|
| 4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4587 | /* end confdefs.h. */
|
---|
| 4588 |
|
---|
| 4589 | int
|
---|
| 4590 | main ()
|
---|
| 4591 | {
|
---|
| 4592 |
|
---|
| 4593 | ;
|
---|
| 4594 | return 0;
|
---|
| 4595 | }
|
---|
| 4596 | _ACEOF
|
---|
| 4597 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4598 | ac_cv_prog_cc_g=yes
|
---|
| 4599 | fi
|
---|
| 4600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4601 | fi
|
---|
| 4602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4603 | fi
|
---|
| 4604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4605 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 4606 | fi
|
---|
| 4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
| 4608 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
| 4609 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 4610 | CFLAGS=$ac_save_CFLAGS
|
---|
| 4611 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 4612 | if test "$GCC" = yes; then
|
---|
| 4613 | CFLAGS="-g -O2"
|
---|
| 4614 | else
|
---|
| 4615 | CFLAGS="-g"
|
---|
| 4616 | fi
|
---|
| 4617 | else
|
---|
| 4618 | if test "$GCC" = yes; then
|
---|
| 4619 | CFLAGS="-O2"
|
---|
| 4620 | else
|
---|
| 4621 | CFLAGS=
|
---|
| 4622 | fi
|
---|
| 4623 | fi
|
---|
| 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
| 4625 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
| 4626 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
| 4627 | $as_echo_n "(cached) " >&6
|
---|
| 4628 | else
|
---|
| 4629 | ac_cv_prog_cc_c89=no
|
---|
| 4630 | ac_save_CC=$CC
|
---|
| 4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4632 | /* end confdefs.h. */
|
---|
| 4633 | #include <stdarg.h>
|
---|
| 4634 | #include <stdio.h>
|
---|
[44f44617] | 4635 | struct stat;
|
---|
[3b77289] | 4636 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 4637 | struct buf { int x; };
|
---|
| 4638 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 4639 | static char *e (p, i)
|
---|
| 4640 | char **p;
|
---|
| 4641 | int i;
|
---|
| 4642 | {
|
---|
| 4643 | return p[i];
|
---|
| 4644 | }
|
---|
| 4645 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 4646 | {
|
---|
| 4647 | char *s;
|
---|
| 4648 | va_list v;
|
---|
| 4649 | va_start (v,p);
|
---|
| 4650 | s = g (p, va_arg (v,int));
|
---|
| 4651 | va_end (v);
|
---|
| 4652 | return s;
|
---|
| 4653 | }
|
---|
| 4654 |
|
---|
| 4655 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 4656 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 4657 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 4658 | as 'x'. The following induces an error, until -std is added to get
|
---|
| 4659 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 4660 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 4661 | that's true only with -std. */
|
---|
| 4662 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 4663 |
|
---|
| 4664 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 4665 | inside strings and character constants. */
|
---|
| 4666 | #define FOO(x) 'x'
|
---|
| 4667 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 4668 |
|
---|
| 4669 | int test (int i, double x);
|
---|
| 4670 | struct s1 {int (*f) (int a);};
|
---|
| 4671 | struct s2 {int (*f) (double a);};
|
---|
| 4672 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 4673 | int argc;
|
---|
| 4674 | char **argv;
|
---|
| 4675 | int
|
---|
| 4676 | main ()
|
---|
| 4677 | {
|
---|
| 4678 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 4679 | ;
|
---|
| 4680 | return 0;
|
---|
| 4681 | }
|
---|
| 4682 | _ACEOF
|
---|
| 4683 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 4684 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 4685 | do
|
---|
| 4686 | CC="$ac_save_CC $ac_arg"
|
---|
| 4687 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4688 | ac_cv_prog_cc_c89=$ac_arg
|
---|
| 4689 | fi
|
---|
| 4690 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 4691 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
| 4692 | done
|
---|
| 4693 | rm -f conftest.$ac_ext
|
---|
| 4694 | CC=$ac_save_CC
|
---|
| 4695 |
|
---|
| 4696 | fi
|
---|
| 4697 | # AC_CACHE_VAL
|
---|
| 4698 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 4699 | x)
|
---|
| 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
| 4701 | $as_echo "none needed" >&6; } ;;
|
---|
| 4702 | xno)
|
---|
| 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
| 4704 | $as_echo "unsupported" >&6; } ;;
|
---|
| 4705 | *)
|
---|
| 4706 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 4708 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
| 4709 | esac
|
---|
| 4710 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
| 4711 |
|
---|
| 4712 | fi
|
---|
| 4713 |
|
---|
| 4714 | ac_ext=c
|
---|
| 4715 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4719 |
|
---|
[44f44617] | 4720 | ac_ext=c
|
---|
| 4721 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
| 4726 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
---|
| 4727 | if ${am_cv_prog_cc_c_o+:} false; then :
|
---|
| 4728 | $as_echo_n "(cached) " >&6
|
---|
| 4729 | else
|
---|
| 4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 4731 | /* end confdefs.h. */
|
---|
| 4732 |
|
---|
| 4733 | int
|
---|
| 4734 | main ()
|
---|
| 4735 | {
|
---|
| 4736 |
|
---|
| 4737 | ;
|
---|
| 4738 | return 0;
|
---|
| 4739 | }
|
---|
| 4740 | _ACEOF
|
---|
| 4741 | # Make sure it works both with $CC and with simple cc.
|
---|
| 4742 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
| 4743 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
| 4744 | # though they will create one.
|
---|
| 4745 | am_cv_prog_cc_c_o=yes
|
---|
| 4746 | for am_i in 1 2; do
|
---|
| 4747 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
| 4748 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
| 4749 | ac_status=$?
|
---|
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4751 | (exit $ac_status); } \
|
---|
| 4752 | && test -f conftest2.$ac_objext; then
|
---|
| 4753 | : OK
|
---|
| 4754 | else
|
---|
| 4755 | am_cv_prog_cc_c_o=no
|
---|
| 4756 | break
|
---|
| 4757 | fi
|
---|
| 4758 | done
|
---|
| 4759 | rm -f core conftest*
|
---|
| 4760 | unset am_i
|
---|
| 4761 | fi
|
---|
| 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
| 4763 | $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
---|
| 4764 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
| 4765 | # Losing compiler, so override with the script.
|
---|
| 4766 | # FIXME: It is wrong to rewrite CC.
|
---|
| 4767 | # But if we don't then we get into trouble of one sort or another.
|
---|
| 4768 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
| 4769 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
| 4770 | CC="$am_aux_dir/compile $CC"
|
---|
| 4771 | fi
|
---|
| 4772 | ac_ext=c
|
---|
| 4773 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4777 |
|
---|
| 4778 |
|
---|
[3b77289] | 4779 | depcc="$CC" am_compiler_list=
|
---|
| 4780 |
|
---|
| 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
| 4782 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
| 4783 | if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
---|
| 4784 | $as_echo_n "(cached) " >&6
|
---|
| 4785 | else
|
---|
| 4786 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
| 4787 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
| 4788 | # making bogus files that we don't know about and never remove. For
|
---|
| 4789 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
[44f44617] | 4790 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
| 4791 | # in D".
|
---|
[3b77289] | 4792 | rm -rf conftest.dir
|
---|
| 4793 | mkdir conftest.dir
|
---|
| 4794 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
| 4795 | # using a relative directory.
|
---|
| 4796 | cp "$am_depcomp" conftest.dir
|
---|
| 4797 | cd conftest.dir
|
---|
| 4798 | # We will build objects and dependencies in a subdirectory because
|
---|
| 4799 | # it helps to detect inapplicable dependency modes. For instance
|
---|
| 4800 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
| 4801 | # side effect of compilation, but ICC will put the dependencies in
|
---|
| 4802 | # the current directory while Tru64 will put them in the object
|
---|
| 4803 | # directory.
|
---|
| 4804 | mkdir sub
|
---|
| 4805 |
|
---|
| 4806 | am_cv_CC_dependencies_compiler_type=none
|
---|
| 4807 | if test "$am_compiler_list" = ""; then
|
---|
| 4808 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
| 4809 | fi
|
---|
| 4810 | am__universal=false
|
---|
| 4811 | case " $depcc " in #(
|
---|
| 4812 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
| 4813 | esac
|
---|
| 4814 |
|
---|
| 4815 | for depmode in $am_compiler_list; do
|
---|
| 4816 | # Setup a source with many dependencies, because some compilers
|
---|
| 4817 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
| 4818 | # we should not choose a depcomp mode which is confused by this.
|
---|
| 4819 | #
|
---|
| 4820 | # We need to recreate these files for each test, as the compiler may
|
---|
| 4821 | # overwrite some of them when testing with obscure command lines.
|
---|
| 4822 | # This happens at least with the AIX C compiler.
|
---|
| 4823 | : > sub/conftest.c
|
---|
| 4824 | for i in 1 2 3 4 5 6; do
|
---|
| 4825 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
[44f44617] | 4826 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
| 4827 | # Solaris 10 /bin/sh.
|
---|
| 4828 | echo '/* dummy */' > sub/conftst$i.h
|
---|
[3b77289] | 4829 | done
|
---|
| 4830 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
| 4831 |
|
---|
[44f44617] | 4832 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
[3b77289] | 4833 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
[44f44617] | 4834 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
| 4835 | # versions had trouble with output in subdirs.
|
---|
[3b77289] | 4836 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
| 4837 | am__minus_obj="-o $am__obj"
|
---|
| 4838 | case $depmode in
|
---|
| 4839 | gcc)
|
---|
| 4840 | # This depmode causes a compiler race in universal mode.
|
---|
| 4841 | test "$am__universal" = false || continue
|
---|
| 4842 | ;;
|
---|
| 4843 | nosideeffect)
|
---|
[44f44617] | 4844 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
| 4845 | # only be used when explicitly requested.
|
---|
[3b77289] | 4846 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
| 4847 | continue
|
---|
| 4848 | else
|
---|
| 4849 | break
|
---|
| 4850 | fi
|
---|
| 4851 | ;;
|
---|
| 4852 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
[44f44617] | 4853 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
[3b77289] | 4854 | # not run yet. These depmodes are late enough in the game, and
|
---|
| 4855 | # so weak that their functioning should not be impacted.
|
---|
| 4856 | am__obj=conftest.${OBJEXT-o}
|
---|
| 4857 | am__minus_obj=
|
---|
| 4858 | ;;
|
---|
| 4859 | none) break ;;
|
---|
| 4860 | esac
|
---|
| 4861 | if depmode=$depmode \
|
---|
| 4862 | source=sub/conftest.c object=$am__obj \
|
---|
| 4863 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
| 4864 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
| 4865 | >/dev/null 2>conftest.err &&
|
---|
| 4866 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4867 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4868 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 4869 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
| 4870 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
| 4871 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
| 4872 | # that says an option was ignored or not supported.
|
---|
| 4873 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
| 4874 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
| 4875 | # The diagnosis changed in icc 8.0:
|
---|
| 4876 | # icc: Command line remark: option '-MP' not supported
|
---|
| 4877 | if (grep 'ignoring option' conftest.err ||
|
---|
| 4878 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
| 4879 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
| 4880 | break
|
---|
| 4881 | fi
|
---|
| 4882 | fi
|
---|
| 4883 | done
|
---|
| 4884 |
|
---|
| 4885 | cd ..
|
---|
| 4886 | rm -rf conftest.dir
|
---|
| 4887 | else
|
---|
| 4888 | am_cv_CC_dependencies_compiler_type=none
|
---|
| 4889 | fi
|
---|
| 4890 |
|
---|
| 4891 | fi
|
---|
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
| 4893 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
| 4894 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
| 4895 |
|
---|
| 4896 | if
|
---|
| 4897 | test "x$enable_dependency_tracking" != xno \
|
---|
| 4898 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
| 4899 | am__fastdepCC_TRUE=
|
---|
| 4900 | am__fastdepCC_FALSE='#'
|
---|
| 4901 | else
|
---|
| 4902 | am__fastdepCC_TRUE='#'
|
---|
| 4903 | am__fastdepCC_FALSE=
|
---|
| 4904 | fi
|
---|
| 4905 |
|
---|
| 4906 |
|
---|
[8e5724e] | 4907 | # By default we simply use the C compiler to build assembly code.
|
---|
| 4908 |
|
---|
| 4909 | test "${CCAS+set}" = set || CCAS=$CC
|
---|
| 4910 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
---|
| 4911 |
|
---|
| 4912 |
|
---|
| 4913 |
|
---|
| 4914 | depcc="$CCAS" am_compiler_list=
|
---|
| 4915 |
|
---|
| 4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
| 4917 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
| 4918 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
|
---|
| 4919 | $as_echo_n "(cached) " >&6
|
---|
| 4920 | else
|
---|
| 4921 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
| 4922 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
| 4923 | # making bogus files that we don't know about and never remove. For
|
---|
| 4924 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
[44f44617] | 4925 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
| 4926 | # in D".
|
---|
[8e5724e] | 4927 | rm -rf conftest.dir
|
---|
| 4928 | mkdir conftest.dir
|
---|
| 4929 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
| 4930 | # using a relative directory.
|
---|
| 4931 | cp "$am_depcomp" conftest.dir
|
---|
| 4932 | cd conftest.dir
|
---|
| 4933 | # We will build objects and dependencies in a subdirectory because
|
---|
| 4934 | # it helps to detect inapplicable dependency modes. For instance
|
---|
| 4935 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
| 4936 | # side effect of compilation, but ICC will put the dependencies in
|
---|
| 4937 | # the current directory while Tru64 will put them in the object
|
---|
| 4938 | # directory.
|
---|
| 4939 | mkdir sub
|
---|
| 4940 |
|
---|
| 4941 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
| 4942 | if test "$am_compiler_list" = ""; then
|
---|
| 4943 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
| 4944 | fi
|
---|
| 4945 | am__universal=false
|
---|
| 4946 |
|
---|
| 4947 |
|
---|
| 4948 | for depmode in $am_compiler_list; do
|
---|
| 4949 | # Setup a source with many dependencies, because some compilers
|
---|
| 4950 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
| 4951 | # we should not choose a depcomp mode which is confused by this.
|
---|
| 4952 | #
|
---|
| 4953 | # We need to recreate these files for each test, as the compiler may
|
---|
| 4954 | # overwrite some of them when testing with obscure command lines.
|
---|
| 4955 | # This happens at least with the AIX C compiler.
|
---|
| 4956 | : > sub/conftest.c
|
---|
| 4957 | for i in 1 2 3 4 5 6; do
|
---|
| 4958 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
[44f44617] | 4959 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
| 4960 | # Solaris 10 /bin/sh.
|
---|
| 4961 | echo '/* dummy */' > sub/conftst$i.h
|
---|
[8e5724e] | 4962 | done
|
---|
| 4963 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
| 4964 |
|
---|
[44f44617] | 4965 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
[8e5724e] | 4966 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
[44f44617] | 4967 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
| 4968 | # versions had trouble with output in subdirs.
|
---|
[8e5724e] | 4969 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
| 4970 | am__minus_obj="-o $am__obj"
|
---|
| 4971 | case $depmode in
|
---|
| 4972 | gcc)
|
---|
| 4973 | # This depmode causes a compiler race in universal mode.
|
---|
| 4974 | test "$am__universal" = false || continue
|
---|
| 4975 | ;;
|
---|
| 4976 | nosideeffect)
|
---|
[44f44617] | 4977 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
| 4978 | # only be used when explicitly requested.
|
---|
[8e5724e] | 4979 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
| 4980 | continue
|
---|
| 4981 | else
|
---|
| 4982 | break
|
---|
| 4983 | fi
|
---|
| 4984 | ;;
|
---|
| 4985 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
[44f44617] | 4986 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
[8e5724e] | 4987 | # not run yet. These depmodes are late enough in the game, and
|
---|
| 4988 | # so weak that their functioning should not be impacted.
|
---|
| 4989 | am__obj=conftest.${OBJEXT-o}
|
---|
| 4990 | am__minus_obj=
|
---|
| 4991 | ;;
|
---|
| 4992 | none) break ;;
|
---|
| 4993 | esac
|
---|
| 4994 | if depmode=$depmode \
|
---|
| 4995 | source=sub/conftest.c object=$am__obj \
|
---|
| 4996 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
| 4997 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
| 4998 | >/dev/null 2>conftest.err &&
|
---|
| 4999 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 5000 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 5001 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
| 5002 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
| 5003 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
| 5004 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
| 5005 | # that says an option was ignored or not supported.
|
---|
| 5006 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
| 5007 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
| 5008 | # The diagnosis changed in icc 8.0:
|
---|
| 5009 | # icc: Command line remark: option '-MP' not supported
|
---|
| 5010 | if (grep 'ignoring option' conftest.err ||
|
---|
| 5011 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
| 5012 | am_cv_CCAS_dependencies_compiler_type=$depmode
|
---|
| 5013 | break
|
---|
| 5014 | fi
|
---|
| 5015 | fi
|
---|
| 5016 | done
|
---|
| 5017 |
|
---|
| 5018 | cd ..
|
---|
| 5019 | rm -rf conftest.dir
|
---|
| 5020 | else
|
---|
| 5021 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
| 5022 | fi
|
---|
| 5023 |
|
---|
| 5024 | fi
|
---|
| 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
|
---|
| 5026 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
|
---|
| 5027 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
|
---|
| 5028 |
|
---|
| 5029 | if
|
---|
| 5030 | test "x$enable_dependency_tracking" != xno \
|
---|
| 5031 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
|
---|
| 5032 | am__fastdepCCAS_TRUE=
|
---|
| 5033 | am__fastdepCCAS_FALSE='#'
|
---|
| 5034 | else
|
---|
| 5035 | am__fastdepCCAS_TRUE='#'
|
---|
| 5036 | am__fastdepCCAS_FALSE=
|
---|
| 5037 | fi
|
---|
| 5038 |
|
---|
| 5039 |
|
---|
[00cc023] | 5040 | # deprecated
|
---|
[c3a4385] | 5041 | # These are often not installed and people miss seeing the "no", so stop the configure.
|
---|
[56c3935] | 5042 | for ac_prog in 'bison -y' byacc
|
---|
| 5043 | do
|
---|
| 5044 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 5045 | set dummy $ac_prog; ac_word=$2
|
---|
| 5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 5047 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 5048 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
| 5049 | $as_echo_n "(cached) " >&6
|
---|
| 5050 | else
|
---|
| 5051 | if test -n "$YACC"; then
|
---|
| 5052 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 5053 | else
|
---|
| 5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5055 | for as_dir in $PATH
|
---|
| 5056 | do
|
---|
| 5057 | IFS=$as_save_IFS
|
---|
| 5058 | test -z "$as_dir" && as_dir=.
|
---|
| 5059 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 5060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[56c3935] | 5061 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 5062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 5063 | break 2
|
---|
| 5064 | fi
|
---|
| 5065 | done
|
---|
| 5066 | done
|
---|
| 5067 | IFS=$as_save_IFS
|
---|
| 5068 |
|
---|
| 5069 | fi
|
---|
| 5070 | fi
|
---|
| 5071 | YACC=$ac_cv_prog_YACC
|
---|
| 5072 | if test -n "$YACC"; then
|
---|
| 5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
| 5074 | $as_echo "$YACC" >&6; }
|
---|
| 5075 | else
|
---|
| 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5077 | $as_echo "no" >&6; }
|
---|
| 5078 | fi
|
---|
| 5079 |
|
---|
| 5080 |
|
---|
| 5081 | test -n "$YACC" && break
|
---|
| 5082 | done
|
---|
| 5083 | test -n "$YACC" || YACC="yacc"
|
---|
| 5084 |
|
---|
[c3a4385] | 5085 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi
|
---|
[56c3935] | 5086 |
|
---|
| 5087 | for ac_prog in flex lex
|
---|
| 5088 | do
|
---|
| 5089 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 5090 | set dummy $ac_prog; ac_word=$2
|
---|
| 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 5092 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 5093 | if ${ac_cv_prog_LEX+:} false; then :
|
---|
| 5094 | $as_echo_n "(cached) " >&6
|
---|
| 5095 | else
|
---|
| 5096 | if test -n "$LEX"; then
|
---|
| 5097 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
---|
| 5098 | else
|
---|
| 5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5100 | for as_dir in $PATH
|
---|
| 5101 | do
|
---|
| 5102 | IFS=$as_save_IFS
|
---|
| 5103 | test -z "$as_dir" && as_dir=.
|
---|
| 5104 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 5105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[56c3935] | 5106 | ac_cv_prog_LEX="$ac_prog"
|
---|
| 5107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 5108 | break 2
|
---|
| 5109 | fi
|
---|
| 5110 | done
|
---|
| 5111 | done
|
---|
| 5112 | IFS=$as_save_IFS
|
---|
| 5113 |
|
---|
| 5114 | fi
|
---|
| 5115 | fi
|
---|
| 5116 | LEX=$ac_cv_prog_LEX
|
---|
| 5117 | if test -n "$LEX"; then
|
---|
| 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
|
---|
| 5119 | $as_echo "$LEX" >&6; }
|
---|
| 5120 | else
|
---|
| 5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5122 | $as_echo "no" >&6; }
|
---|
| 5123 | fi
|
---|
| 5124 |
|
---|
| 5125 |
|
---|
| 5126 | test -n "$LEX" && break
|
---|
| 5127 | done
|
---|
| 5128 | test -n "$LEX" || LEX=":"
|
---|
| 5129 |
|
---|
| 5130 | if test "x$LEX" != "x:"; then
|
---|
| 5131 | cat >conftest.l <<_ACEOF
|
---|
| 5132 | %%
|
---|
| 5133 | a { ECHO; }
|
---|
| 5134 | b { REJECT; }
|
---|
| 5135 | c { yymore (); }
|
---|
| 5136 | d { yyless (1); }
|
---|
[44f44617] | 5137 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
|
---|
| 5138 | yyless ((input () != 0)); }
|
---|
[56c3935] | 5139 | f { unput (yytext[0]); }
|
---|
| 5140 | . { BEGIN INITIAL; }
|
---|
| 5141 | %%
|
---|
| 5142 | #ifdef YYTEXT_POINTER
|
---|
| 5143 | extern char *yytext;
|
---|
| 5144 | #endif
|
---|
| 5145 | int
|
---|
| 5146 | main (void)
|
---|
| 5147 | {
|
---|
| 5148 | return ! yylex () + ! yywrap ();
|
---|
| 5149 | }
|
---|
| 5150 | _ACEOF
|
---|
| 5151 | { { ac_try="$LEX conftest.l"
|
---|
| 5152 | case "(($ac_try" in
|
---|
| 5153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5154 | *) ac_try_echo=$ac_try;;
|
---|
| 5155 | esac
|
---|
| 5156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 5157 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 5158 | (eval "$LEX conftest.l") 2>&5
|
---|
| 5159 | ac_status=$?
|
---|
| 5160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 5161 | test $ac_status = 0; }
|
---|
| 5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
|
---|
| 5163 | $as_echo_n "checking lex output file root... " >&6; }
|
---|
| 5164 | if ${ac_cv_prog_lex_root+:} false; then :
|
---|
| 5165 | $as_echo_n "(cached) " >&6
|
---|
| 5166 | else
|
---|
| 5167 |
|
---|
| 5168 | if test -f lex.yy.c; then
|
---|
| 5169 | ac_cv_prog_lex_root=lex.yy
|
---|
| 5170 | elif test -f lexyy.c; then
|
---|
| 5171 | ac_cv_prog_lex_root=lexyy
|
---|
| 5172 | else
|
---|
| 5173 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
|
---|
| 5174 | fi
|
---|
| 5175 | fi
|
---|
| 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
|
---|
| 5177 | $as_echo "$ac_cv_prog_lex_root" >&6; }
|
---|
| 5178 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
|
---|
| 5179 |
|
---|
| 5180 | if test -z "${LEXLIB+set}"; then
|
---|
| 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
|
---|
| 5182 | $as_echo_n "checking lex library... " >&6; }
|
---|
| 5183 | if ${ac_cv_lib_lex+:} false; then :
|
---|
| 5184 | $as_echo_n "(cached) " >&6
|
---|
| 5185 | else
|
---|
| 5186 |
|
---|
| 5187 | ac_save_LIBS=$LIBS
|
---|
| 5188 | ac_cv_lib_lex='none needed'
|
---|
| 5189 | for ac_lib in '' -lfl -ll; do
|
---|
| 5190 | LIBS="$ac_lib $ac_save_LIBS"
|
---|
| 5191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5192 | /* end confdefs.h. */
|
---|
| 5193 | `cat $LEX_OUTPUT_ROOT.c`
|
---|
| 5194 | _ACEOF
|
---|
| 5195 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5196 | ac_cv_lib_lex=$ac_lib
|
---|
| 5197 | fi
|
---|
| 5198 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5199 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5200 | test "$ac_cv_lib_lex" != 'none needed' && break
|
---|
| 5201 | done
|
---|
| 5202 | LIBS=$ac_save_LIBS
|
---|
| 5203 |
|
---|
| 5204 | fi
|
---|
| 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
|
---|
| 5206 | $as_echo "$ac_cv_lib_lex" >&6; }
|
---|
| 5207 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
|
---|
| 5208 | fi
|
---|
| 5209 |
|
---|
| 5210 |
|
---|
| 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
|
---|
| 5212 | $as_echo_n "checking whether yytext is a pointer... " >&6; }
|
---|
| 5213 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
|
---|
| 5214 | $as_echo_n "(cached) " >&6
|
---|
| 5215 | else
|
---|
| 5216 | # POSIX says lex can declare yytext either as a pointer or an array; the
|
---|
| 5217 | # default is implementation-dependent. Figure out which it is, since
|
---|
| 5218 | # not all implementations provide the %pointer and %array declarations.
|
---|
| 5219 | ac_cv_prog_lex_yytext_pointer=no
|
---|
| 5220 | ac_save_LIBS=$LIBS
|
---|
| 5221 | LIBS="$LEXLIB $ac_save_LIBS"
|
---|
| 5222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5223 | /* end confdefs.h. */
|
---|
| 5224 |
|
---|
| 5225 | #define YYTEXT_POINTER 1
|
---|
| 5226 | `cat $LEX_OUTPUT_ROOT.c`
|
---|
| 5227 | _ACEOF
|
---|
| 5228 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5229 | ac_cv_prog_lex_yytext_pointer=yes
|
---|
| 5230 | fi
|
---|
| 5231 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5232 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5233 | LIBS=$ac_save_LIBS
|
---|
| 5234 |
|
---|
| 5235 | fi
|
---|
| 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
|
---|
| 5237 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
|
---|
| 5238 | if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
---|
| 5239 |
|
---|
| 5240 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
|
---|
| 5241 |
|
---|
| 5242 | fi
|
---|
| 5243 | rm -f conftest.l $LEX_OUTPUT_ROOT.c
|
---|
| 5244 |
|
---|
| 5245 | fi
|
---|
[c3a4385] | 5246 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi
|
---|
[3b77289] | 5247 |
|
---|
| 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 5249 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 5250 | set x ${MAKE-make}
|
---|
| 5251 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
| 5252 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
| 5253 | $as_echo_n "(cached) " >&6
|
---|
| 5254 | else
|
---|
| 5255 | cat >conftest.make <<\_ACEOF
|
---|
| 5256 | SHELL = /bin/sh
|
---|
| 5257 | all:
|
---|
| 5258 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
| 5259 | _ACEOF
|
---|
| 5260 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
| 5261 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 5262 | *@@@%%%=?*=@@@%%%*)
|
---|
| 5263 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 5264 | *)
|
---|
| 5265 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 5266 | esac
|
---|
| 5267 | rm -f conftest.make
|
---|
| 5268 | fi
|
---|
| 5269 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5271 | $as_echo "yes" >&6; }
|
---|
| 5272 | SET_MAKE=
|
---|
| 5273 | else
|
---|
| 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5275 | $as_echo "no" >&6; }
|
---|
| 5276 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 5277 | fi
|
---|
| 5278 |
|
---|
[00cc023] | 5279 | if test -n "$ac_tool_prefix"; then
|
---|
| 5280 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 5281 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 5283 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 5284 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
| 5285 | $as_echo_n "(cached) " >&6
|
---|
| 5286 | else
|
---|
| 5287 | if test -n "$RANLIB"; then
|
---|
| 5288 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 5289 | else
|
---|
| 5290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5291 | for as_dir in $PATH
|
---|
| 5292 | do
|
---|
| 5293 | IFS=$as_save_IFS
|
---|
| 5294 | test -z "$as_dir" && as_dir=.
|
---|
| 5295 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 5296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[00cc023] | 5297 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 5298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 5299 | break 2
|
---|
| 5300 | fi
|
---|
| 5301 | done
|
---|
| 5302 | done
|
---|
| 5303 | IFS=$as_save_IFS
|
---|
| 5304 |
|
---|
| 5305 | fi
|
---|
| 5306 | fi
|
---|
| 5307 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 5308 | if test -n "$RANLIB"; then
|
---|
| 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
| 5310 | $as_echo "$RANLIB" >&6; }
|
---|
| 5311 | else
|
---|
| 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5313 | $as_echo "no" >&6; }
|
---|
| 5314 | fi
|
---|
| 5315 |
|
---|
| 5316 |
|
---|
| 5317 | fi
|
---|
| 5318 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 5319 | ac_ct_RANLIB=$RANLIB
|
---|
| 5320 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 5321 | set dummy ranlib; ac_word=$2
|
---|
| 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 5323 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 5324 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
| 5325 | $as_echo_n "(cached) " >&6
|
---|
| 5326 | else
|
---|
| 5327 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 5328 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 5329 | else
|
---|
| 5330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5331 | for as_dir in $PATH
|
---|
| 5332 | do
|
---|
| 5333 | IFS=$as_save_IFS
|
---|
| 5334 | test -z "$as_dir" && as_dir=.
|
---|
| 5335 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[44f44617] | 5336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[00cc023] | 5337 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 5338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 5339 | break 2
|
---|
| 5340 | fi
|
---|
| 5341 | done
|
---|
| 5342 | done
|
---|
| 5343 | IFS=$as_save_IFS
|
---|
| 5344 |
|
---|
| 5345 | fi
|
---|
| 5346 | fi
|
---|
| 5347 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 5348 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
| 5350 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
| 5351 | else
|
---|
| 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5353 | $as_echo "no" >&6; }
|
---|
| 5354 | fi
|
---|
| 5355 |
|
---|
| 5356 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 5357 | RANLIB=":"
|
---|
| 5358 | else
|
---|
| 5359 | case $cross_compiling:$ac_tool_warned in
|
---|
| 5360 | yes:)
|
---|
| 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 5362 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 5363 | ac_tool_warned=yes ;;
|
---|
| 5364 | esac
|
---|
| 5365 | RANLIB=$ac_ct_RANLIB
|
---|
| 5366 | fi
|
---|
| 5367 | else
|
---|
| 5368 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 5369 | fi
|
---|
| 5370 |
|
---|
[3b77289] | 5371 |
|
---|
[5d6ce1f] | 5372 | # Checks for libraries.
|
---|
[3b77289] | 5373 |
|
---|
[5d6ce1f] | 5374 | # Checks for header files.
|
---|
[3b77289] | 5375 | ac_ext=c
|
---|
| 5376 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 5377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 5378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 5379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
| 5381 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
| 5382 | # On Suns, sometimes $CPP names a directory.
|
---|
| 5383 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 5384 | CPP=
|
---|
| 5385 | fi
|
---|
| 5386 | if test -z "$CPP"; then
|
---|
| 5387 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
| 5388 | $as_echo_n "(cached) " >&6
|
---|
| 5389 | else
|
---|
| 5390 | # Double quotes because CPP needs to be expanded
|
---|
| 5391 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 5392 | do
|
---|
| 5393 | ac_preproc_ok=false
|
---|
| 5394 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 5395 | do
|
---|
| 5396 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 5397 | # with a fresh cross-compiler works.
|
---|
| 5398 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5399 | # <limits.h> exists even on freestanding compilers.
|
---|
| 5400 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 5401 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 5402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5403 | /* end confdefs.h. */
|
---|
| 5404 | #ifdef __STDC__
|
---|
| 5405 | # include <limits.h>
|
---|
| 5406 | #else
|
---|
| 5407 | # include <assert.h>
|
---|
| 5408 | #endif
|
---|
| 5409 | Syntax error
|
---|
| 5410 | _ACEOF
|
---|
| 5411 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 5412 |
|
---|
| 5413 | else
|
---|
| 5414 | # Broken: fails on valid input.
|
---|
| 5415 | continue
|
---|
| 5416 | fi
|
---|
| 5417 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 5418 |
|
---|
| 5419 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
| 5420 | # can be detected and how.
|
---|
| 5421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5422 | /* end confdefs.h. */
|
---|
| 5423 | #include <ac_nonexistent.h>
|
---|
| 5424 | _ACEOF
|
---|
| 5425 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 5426 | # Broken: success on invalid input.
|
---|
| 5427 | continue
|
---|
| 5428 | else
|
---|
| 5429 | # Passes both tests.
|
---|
| 5430 | ac_preproc_ok=:
|
---|
| 5431 | break
|
---|
| 5432 | fi
|
---|
| 5433 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 5434 |
|
---|
| 5435 | done
|
---|
| 5436 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 5437 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 5438 | if $ac_preproc_ok; then :
|
---|
| 5439 | break
|
---|
| 5440 | fi
|
---|
| 5441 |
|
---|
| 5442 | done
|
---|
| 5443 | ac_cv_prog_CPP=$CPP
|
---|
| 5444 |
|
---|
| 5445 | fi
|
---|
| 5446 | CPP=$ac_cv_prog_CPP
|
---|
| 5447 | else
|
---|
| 5448 | ac_cv_prog_CPP=$CPP
|
---|
| 5449 | fi
|
---|
| 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
| 5451 | $as_echo "$CPP" >&6; }
|
---|
| 5452 | ac_preproc_ok=false
|
---|
| 5453 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 5454 | do
|
---|
| 5455 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 5456 | # with a fresh cross-compiler works.
|
---|
| 5457 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5458 | # <limits.h> exists even on freestanding compilers.
|
---|
| 5459 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 5460 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 5461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5462 | /* end confdefs.h. */
|
---|
| 5463 | #ifdef __STDC__
|
---|
| 5464 | # include <limits.h>
|
---|
| 5465 | #else
|
---|
| 5466 | # include <assert.h>
|
---|
| 5467 | #endif
|
---|
| 5468 | Syntax error
|
---|
| 5469 | _ACEOF
|
---|
| 5470 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 5471 |
|
---|
| 5472 | else
|
---|
| 5473 | # Broken: fails on valid input.
|
---|
| 5474 | continue
|
---|
| 5475 | fi
|
---|
| 5476 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 5477 |
|
---|
| 5478 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
| 5479 | # can be detected and how.
|
---|
| 5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5481 | /* end confdefs.h. */
|
---|
| 5482 | #include <ac_nonexistent.h>
|
---|
| 5483 | _ACEOF
|
---|
| 5484 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 5485 | # Broken: success on invalid input.
|
---|
| 5486 | continue
|
---|
| 5487 | else
|
---|
| 5488 | # Passes both tests.
|
---|
| 5489 | ac_preproc_ok=:
|
---|
| 5490 | break
|
---|
| 5491 | fi
|
---|
| 5492 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 5493 |
|
---|
| 5494 | done
|
---|
| 5495 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 5496 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 5497 | if $ac_preproc_ok; then :
|
---|
| 5498 |
|
---|
| 5499 | else
|
---|
| 5500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 5501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 5502 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
| 5503 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 5504 | fi
|
---|
| 5505 |
|
---|
| 5506 | ac_ext=c
|
---|
| 5507 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 5508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 5509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 5510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 5511 |
|
---|
| 5512 |
|
---|
| 5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
| 5514 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
| 5515 | if ${ac_cv_path_GREP+:} false; then :
|
---|
| 5516 | $as_echo_n "(cached) " >&6
|
---|
| 5517 | else
|
---|
| 5518 | if test -z "$GREP"; then
|
---|
| 5519 | ac_path_GREP_found=false
|
---|
| 5520 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 5521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5522 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 5523 | do
|
---|
| 5524 | IFS=$as_save_IFS
|
---|
| 5525 | test -z "$as_dir" && as_dir=.
|
---|
| 5526 | for ac_prog in grep ggrep; do
|
---|
| 5527 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 5528 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
[44f44617] | 5529 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
[3b77289] | 5530 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 5531 | # Check for GNU $ac_path_GREP
|
---|
| 5532 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 5533 | *GNU*)
|
---|
| 5534 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 5535 | *)
|
---|
| 5536 | ac_count=0
|
---|
| 5537 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 5538 | while :
|
---|
| 5539 | do
|
---|
| 5540 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 5541 | mv "conftest.tmp" "conftest.in"
|
---|
| 5542 | cp "conftest.in" "conftest.nl"
|
---|
| 5543 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 5544 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 5545 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 5546 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 5547 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 5548 | # Best one so far, save it but keep looking for a better one
|
---|
| 5549 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 5550 | ac_path_GREP_max=$ac_count
|
---|
| 5551 | fi
|
---|
| 5552 | # 10*(2^10) chars as input seems more than enough
|
---|
| 5553 | test $ac_count -gt 10 && break
|
---|
| 5554 | done
|
---|
| 5555 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 5556 | esac
|
---|
| 5557 |
|
---|
| 5558 | $ac_path_GREP_found && break 3
|
---|
| 5559 | done
|
---|
| 5560 | done
|
---|
| 5561 | done
|
---|
| 5562 | IFS=$as_save_IFS
|
---|
| 5563 | if test -z "$ac_cv_path_GREP"; then
|
---|
| 5564 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
| 5565 | fi
|
---|
| 5566 | else
|
---|
| 5567 | ac_cv_path_GREP=$GREP
|
---|
| 5568 | fi
|
---|
| 5569 |
|
---|
| 5570 | fi
|
---|
| 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
| 5572 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 5573 | GREP="$ac_cv_path_GREP"
|
---|
| 5574 |
|
---|
| 5575 |
|
---|
| 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
| 5577 | $as_echo_n "checking for egrep... " >&6; }
|
---|
| 5578 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
| 5579 | $as_echo_n "(cached) " >&6
|
---|
| 5580 | else
|
---|
| 5581 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 5582 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 5583 | else
|
---|
| 5584 | if test -z "$EGREP"; then
|
---|
| 5585 | ac_path_EGREP_found=false
|
---|
| 5586 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 5587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5588 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 5589 | do
|
---|
| 5590 | IFS=$as_save_IFS
|
---|
| 5591 | test -z "$as_dir" && as_dir=.
|
---|
| 5592 | for ac_prog in egrep; do
|
---|
| 5593 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 5594 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
[44f44617] | 5595 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
[3b77289] | 5596 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 5597 | # Check for GNU $ac_path_EGREP
|
---|
| 5598 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 5599 | *GNU*)
|
---|
| 5600 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 5601 | *)
|
---|
| 5602 | ac_count=0
|
---|
| 5603 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 5604 | while :
|
---|
| 5605 | do
|
---|
| 5606 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 5607 | mv "conftest.tmp" "conftest.in"
|
---|
| 5608 | cp "conftest.in" "conftest.nl"
|
---|
| 5609 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 5610 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 5611 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 5612 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 5613 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 5614 | # Best one so far, save it but keep looking for a better one
|
---|
| 5615 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 5616 | ac_path_EGREP_max=$ac_count
|
---|
| 5617 | fi
|
---|
| 5618 | # 10*(2^10) chars as input seems more than enough
|
---|
| 5619 | test $ac_count -gt 10 && break
|
---|
| 5620 | done
|
---|
| 5621 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 5622 | esac
|
---|
| 5623 |
|
---|
| 5624 | $ac_path_EGREP_found && break 3
|
---|
| 5625 | done
|
---|
| 5626 | done
|
---|
| 5627 | done
|
---|
| 5628 | IFS=$as_save_IFS
|
---|
| 5629 | if test -z "$ac_cv_path_EGREP"; then
|
---|
| 5630 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
| 5631 | fi
|
---|
| 5632 | else
|
---|
| 5633 | ac_cv_path_EGREP=$EGREP
|
---|
| 5634 | fi
|
---|
| 5635 |
|
---|
| 5636 | fi
|
---|
| 5637 | fi
|
---|
| 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
| 5639 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 5640 | EGREP="$ac_cv_path_EGREP"
|
---|
| 5641 |
|
---|
| 5642 |
|
---|
| 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 5644 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 5645 | if ${ac_cv_header_stdc+:} false; then :
|
---|
| 5646 | $as_echo_n "(cached) " >&6
|
---|
| 5647 | else
|
---|
| 5648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5649 | /* end confdefs.h. */
|
---|
| 5650 | #include <stdlib.h>
|
---|
| 5651 | #include <stdarg.h>
|
---|
| 5652 | #include <string.h>
|
---|
| 5653 | #include <float.h>
|
---|
| 5654 |
|
---|
| 5655 | int
|
---|
| 5656 | main ()
|
---|
| 5657 | {
|
---|
| 5658 |
|
---|
| 5659 | ;
|
---|
| 5660 | return 0;
|
---|
| 5661 | }
|
---|
| 5662 | _ACEOF
|
---|
| 5663 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5664 | ac_cv_header_stdc=yes
|
---|
| 5665 | else
|
---|
| 5666 | ac_cv_header_stdc=no
|
---|
| 5667 | fi
|
---|
| 5668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5669 |
|
---|
| 5670 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5671 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 5672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5673 | /* end confdefs.h. */
|
---|
| 5674 | #include <string.h>
|
---|
| 5675 |
|
---|
| 5676 | _ACEOF
|
---|
| 5677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5678 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5679 |
|
---|
| 5680 | else
|
---|
| 5681 | ac_cv_header_stdc=no
|
---|
| 5682 | fi
|
---|
| 5683 | rm -f conftest*
|
---|
| 5684 |
|
---|
| 5685 | fi
|
---|
| 5686 |
|
---|
| 5687 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5688 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5690 | /* end confdefs.h. */
|
---|
| 5691 | #include <stdlib.h>
|
---|
| 5692 |
|
---|
| 5693 | _ACEOF
|
---|
| 5694 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5695 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5696 |
|
---|
| 5697 | else
|
---|
| 5698 | ac_cv_header_stdc=no
|
---|
| 5699 | fi
|
---|
| 5700 | rm -f conftest*
|
---|
| 5701 |
|
---|
| 5702 | fi
|
---|
| 5703 |
|
---|
| 5704 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5705 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5706 | if test "$cross_compiling" = yes; then :
|
---|
| 5707 | :
|
---|
| 5708 | else
|
---|
| 5709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5710 | /* end confdefs.h. */
|
---|
| 5711 | #include <ctype.h>
|
---|
| 5712 | #include <stdlib.h>
|
---|
| 5713 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5714 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5715 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5716 | #else
|
---|
| 5717 | # define ISLOWER(c) \
|
---|
| 5718 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5719 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5720 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5721 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5722 | #endif
|
---|
| 5723 |
|
---|
| 5724 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5725 | int
|
---|
| 5726 | main ()
|
---|
| 5727 | {
|
---|
| 5728 | int i;
|
---|
| 5729 | for (i = 0; i < 256; i++)
|
---|
| 5730 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5731 | || toupper (i) != TOUPPER (i))
|
---|
| 5732 | return 2;
|
---|
| 5733 | return 0;
|
---|
| 5734 | }
|
---|
| 5735 | _ACEOF
|
---|
| 5736 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5737 |
|
---|
| 5738 | else
|
---|
| 5739 | ac_cv_header_stdc=no
|
---|
| 5740 | fi
|
---|
| 5741 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5742 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
| 5743 | fi
|
---|
| 5744 |
|
---|
| 5745 | fi
|
---|
| 5746 | fi
|
---|
| 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 5748 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
| 5749 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5750 |
|
---|
| 5751 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
| 5752 |
|
---|
| 5753 | fi
|
---|
| 5754 |
|
---|
| 5755 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 5756 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 5757 | inttypes.h stdint.h unistd.h
|
---|
| 5758 | do :
|
---|
| 5759 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5760 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 5761 | "
|
---|
| 5762 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
| 5763 | cat >>confdefs.h <<_ACEOF
|
---|
| 5764 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5765 | _ACEOF
|
---|
| 5766 |
|
---|
| 5767 | fi
|
---|
| 5768 |
|
---|
[5d6ce1f] | 5769 | done
|
---|
| 5770 |
|
---|
| 5771 |
|
---|
| 5772 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 5773 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
| 5774 |
|
---|
| 5775 | else
|
---|
| 5776 |
|
---|
| 5777 | cat >>confdefs.h <<_ACEOF
|
---|
| 5778 | #define size_t unsigned int
|
---|
| 5779 | _ACEOF
|
---|
| 5780 |
|
---|
| 5781 | fi
|
---|
| 5782 |
|
---|
| 5783 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5784 | # for constant arguments. Useless!
|
---|
| 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
| 5786 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
| 5787 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
| 5788 | $as_echo_n "(cached) " >&6
|
---|
| 5789 | else
|
---|
| 5790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5791 | /* end confdefs.h. */
|
---|
| 5792 | #include <alloca.h>
|
---|
| 5793 | int
|
---|
| 5794 | main ()
|
---|
| 5795 | {
|
---|
| 5796 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5797 | if (p) return 0;
|
---|
| 5798 | ;
|
---|
| 5799 | return 0;
|
---|
| 5800 | }
|
---|
| 5801 | _ACEOF
|
---|
| 5802 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5803 | ac_cv_working_alloca_h=yes
|
---|
| 5804 | else
|
---|
| 5805 | ac_cv_working_alloca_h=no
|
---|
| 5806 | fi
|
---|
| 5807 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5808 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5809 | fi
|
---|
| 5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5811 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
| 5812 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5813 |
|
---|
| 5814 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
| 5815 |
|
---|
| 5816 | fi
|
---|
| 5817 |
|
---|
| 5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
| 5819 | $as_echo_n "checking for alloca... " >&6; }
|
---|
| 5820 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
| 5821 | $as_echo_n "(cached) " >&6
|
---|
| 5822 | else
|
---|
| 5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5824 | /* end confdefs.h. */
|
---|
| 5825 | #ifdef __GNUC__
|
---|
| 5826 | # define alloca __builtin_alloca
|
---|
| 5827 | #else
|
---|
| 5828 | # ifdef _MSC_VER
|
---|
| 5829 | # include <malloc.h>
|
---|
| 5830 | # define alloca _alloca
|
---|
| 5831 | # else
|
---|
| 5832 | # ifdef HAVE_ALLOCA_H
|
---|
| 5833 | # include <alloca.h>
|
---|
| 5834 | # else
|
---|
| 5835 | # ifdef _AIX
|
---|
| 5836 | #pragma alloca
|
---|
| 5837 | # else
|
---|
| 5838 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5839 | void *alloca (size_t);
|
---|
| 5840 | # endif
|
---|
| 5841 | # endif
|
---|
| 5842 | # endif
|
---|
| 5843 | # endif
|
---|
| 5844 | #endif
|
---|
| 5845 |
|
---|
| 5846 | int
|
---|
| 5847 | main ()
|
---|
| 5848 | {
|
---|
| 5849 | char *p = (char *) alloca (1);
|
---|
| 5850 | if (p) return 0;
|
---|
| 5851 | ;
|
---|
| 5852 | return 0;
|
---|
| 5853 | }
|
---|
| 5854 | _ACEOF
|
---|
| 5855 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5856 | ac_cv_func_alloca_works=yes
|
---|
| 5857 | else
|
---|
| 5858 | ac_cv_func_alloca_works=no
|
---|
| 5859 | fi
|
---|
| 5860 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5861 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5862 | fi
|
---|
| 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5864 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
| 5865 |
|
---|
| 5866 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5867 |
|
---|
| 5868 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
| 5869 |
|
---|
| 5870 | else
|
---|
| 5871 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5872 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5873 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5874 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5875 |
|
---|
| 5876 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
| 5877 |
|
---|
| 5878 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
| 5879 |
|
---|
| 5880 |
|
---|
| 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5882 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
| 5883 | if ${ac_cv_os_cray+:} false; then :
|
---|
| 5884 | $as_echo_n "(cached) " >&6
|
---|
| 5885 | else
|
---|
| 5886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5887 | /* end confdefs.h. */
|
---|
| 5888 | #if defined CRAY && ! defined CRAY2
|
---|
| 5889 | webecray
|
---|
| 5890 | #else
|
---|
| 5891 | wenotbecray
|
---|
| 5892 | #endif
|
---|
| 5893 |
|
---|
| 5894 | _ACEOF
|
---|
| 5895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5896 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
| 5897 | ac_cv_os_cray=yes
|
---|
| 5898 | else
|
---|
| 5899 | ac_cv_os_cray=no
|
---|
| 5900 | fi
|
---|
| 5901 | rm -f conftest*
|
---|
| 5902 |
|
---|
| 5903 | fi
|
---|
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
| 5905 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
| 5906 | if test $ac_cv_os_cray = yes; then
|
---|
| 5907 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5908 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5909 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5910 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
| 5911 |
|
---|
| 5912 | cat >>confdefs.h <<_ACEOF
|
---|
| 5913 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 5914 | _ACEOF
|
---|
| 5915 |
|
---|
| 5916 | break
|
---|
| 5917 | fi
|
---|
| 5918 |
|
---|
| 5919 | done
|
---|
| 5920 | fi
|
---|
| 5921 |
|
---|
| 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
| 5923 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
| 5924 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
| 5925 | $as_echo_n "(cached) " >&6
|
---|
| 5926 | else
|
---|
| 5927 | if test "$cross_compiling" = yes; then :
|
---|
| 5928 | ac_cv_c_stack_direction=0
|
---|
| 5929 | else
|
---|
| 5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5931 | /* end confdefs.h. */
|
---|
| 5932 | $ac_includes_default
|
---|
| 5933 | int
|
---|
[44f44617] | 5934 | find_stack_direction (int *addr, int depth)
|
---|
[5d6ce1f] | 5935 | {
|
---|
[44f44617] | 5936 | int dir, dummy = 0;
|
---|
| 5937 | if (! addr)
|
---|
| 5938 | addr = &dummy;
|
---|
| 5939 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
---|
| 5940 | dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
---|
| 5941 | return dir + dummy;
|
---|
[5d6ce1f] | 5942 | }
|
---|
| 5943 |
|
---|
| 5944 | int
|
---|
[44f44617] | 5945 | main (int argc, char **argv)
|
---|
[5d6ce1f] | 5946 | {
|
---|
[44f44617] | 5947 | return find_stack_direction (0, argc + !argv + 20) < 0;
|
---|
[5d6ce1f] | 5948 | }
|
---|
| 5949 | _ACEOF
|
---|
| 5950 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5951 | ac_cv_c_stack_direction=1
|
---|
| 5952 | else
|
---|
| 5953 | ac_cv_c_stack_direction=-1
|
---|
| 5954 | fi
|
---|
| 5955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5956 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
| 5957 | fi
|
---|
| 5958 |
|
---|
| 5959 | fi
|
---|
| 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5961 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
| 5962 | cat >>confdefs.h <<_ACEOF
|
---|
| 5963 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 5964 | _ACEOF
|
---|
| 5965 |
|
---|
[3b77289] | 5966 |
|
---|
[5d6ce1f] | 5967 | fi
|
---|
[3b77289] | 5968 |
|
---|
[5d6ce1f] | 5969 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h
|
---|
[3b77289] | 5970 | do :
|
---|
| 5971 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5972 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
| 5973 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
| 5974 | cat >>confdefs.h <<_ACEOF
|
---|
| 5975 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5976 | _ACEOF
|
---|
| 5977 |
|
---|
| 5978 | fi
|
---|
| 5979 |
|
---|
| 5980 | done
|
---|
| 5981 |
|
---|
| 5982 |
|
---|
[5d6ce1f] | 5983 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
| 5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
|
---|
| 5985 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
|
---|
| 5986 | if ${ac_cv_header_stdbool_h+:} false; then :
|
---|
[3b77289] | 5987 | $as_echo_n "(cached) " >&6
|
---|
| 5988 | else
|
---|
| 5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5990 | /* end confdefs.h. */
|
---|
| 5991 |
|
---|
[44f44617] | 5992 | #include <stdbool.h>
|
---|
| 5993 | #ifndef bool
|
---|
| 5994 | "error: bool is not defined"
|
---|
| 5995 | #endif
|
---|
| 5996 | #ifndef false
|
---|
| 5997 | "error: false is not defined"
|
---|
| 5998 | #endif
|
---|
| 5999 | #if false
|
---|
| 6000 | "error: false is not 0"
|
---|
| 6001 | #endif
|
---|
| 6002 | #ifndef true
|
---|
| 6003 | "error: true is not defined"
|
---|
| 6004 | #endif
|
---|
| 6005 | #if true != 1
|
---|
| 6006 | "error: true is not 1"
|
---|
| 6007 | #endif
|
---|
| 6008 | #ifndef __bool_true_false_are_defined
|
---|
| 6009 | "error: __bool_true_false_are_defined is not defined"
|
---|
| 6010 | #endif
|
---|
| 6011 |
|
---|
| 6012 | struct s { _Bool s: 1; _Bool t; } s;
|
---|
| 6013 |
|
---|
| 6014 | char a[true == 1 ? 1 : -1];
|
---|
| 6015 | char b[false == 0 ? 1 : -1];
|
---|
| 6016 | char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
---|
| 6017 | char d[(bool) 0.5 == true ? 1 : -1];
|
---|
| 6018 | /* See body of main program for 'e'. */
|
---|
| 6019 | char f[(_Bool) 0.0 == false ? 1 : -1];
|
---|
| 6020 | char g[true];
|
---|
| 6021 | char h[sizeof (_Bool)];
|
---|
| 6022 | char i[sizeof s.t];
|
---|
| 6023 | enum { j = false, k = true, l = false * true, m = true * 256 };
|
---|
| 6024 | /* The following fails for
|
---|
| 6025 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
|
---|
| 6026 | _Bool n[m];
|
---|
| 6027 | char o[sizeof n == m * sizeof n[0] ? 1 : -1];
|
---|
| 6028 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
|
---|
| 6029 | /* Catch a bug in an HP-UX C compiler. See
|
---|
| 6030 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
|
---|
| 6031 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
|
---|
| 6032 | */
|
---|
| 6033 | _Bool q = true;
|
---|
| 6034 | _Bool *pq = &q;
|
---|
[5d6ce1f] | 6035 |
|
---|
[3b77289] | 6036 | int
|
---|
| 6037 | main ()
|
---|
| 6038 | {
|
---|
[5d6ce1f] | 6039 |
|
---|
[44f44617] | 6040 | bool e = &s;
|
---|
| 6041 | *pq |= q;
|
---|
| 6042 | *pq |= ! q;
|
---|
| 6043 | /* Refer to every declared value, to avoid compiler optimizations. */
|
---|
| 6044 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
|
---|
| 6045 | + !m + !n + !o + !p + !q + !pq);
|
---|
[3b77289] | 6046 |
|
---|
| 6047 | ;
|
---|
| 6048 | return 0;
|
---|
| 6049 | }
|
---|
| 6050 | _ACEOF
|
---|
| 6051 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[5d6ce1f] | 6052 | ac_cv_header_stdbool_h=yes
|
---|
[3b77289] | 6053 | else
|
---|
[5d6ce1f] | 6054 | ac_cv_header_stdbool_h=no
|
---|
[3b77289] | 6055 | fi
|
---|
| 6056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6057 | fi
|
---|
[5d6ce1f] | 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
|
---|
| 6059 | $as_echo "$ac_cv_header_stdbool_h" >&6; }
|
---|
[44f44617] | 6060 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
|
---|
[5d6ce1f] | 6061 | if test "x$ac_cv_type__Bool" = xyes; then :
|
---|
| 6062 |
|
---|
| 6063 | cat >>confdefs.h <<_ACEOF
|
---|
| 6064 | #define HAVE__BOOL 1
|
---|
| 6065 | _ACEOF
|
---|
| 6066 |
|
---|
| 6067 |
|
---|
| 6068 | fi
|
---|
| 6069 |
|
---|
[44f44617] | 6070 |
|
---|
[5d6ce1f] | 6071 | if test $ac_cv_header_stdbool_h = yes; then
|
---|
[3b77289] | 6072 |
|
---|
[5d6ce1f] | 6073 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
|
---|
[3b77289] | 6074 |
|
---|
| 6075 | fi
|
---|
| 6076 |
|
---|
| 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
---|
| 6078 | $as_echo_n "checking for inline... " >&6; }
|
---|
| 6079 | if ${ac_cv_c_inline+:} false; then :
|
---|
| 6080 | $as_echo_n "(cached) " >&6
|
---|
| 6081 | else
|
---|
| 6082 | ac_cv_c_inline=no
|
---|
| 6083 | for ac_kw in inline __inline__ __inline; do
|
---|
| 6084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 6085 | /* end confdefs.h. */
|
---|
| 6086 | #ifndef __cplusplus
|
---|
| 6087 | typedef int foo_t;
|
---|
| 6088 | static $ac_kw foo_t static_foo () {return 0; }
|
---|
| 6089 | $ac_kw foo_t foo () {return 0; }
|
---|
| 6090 | #endif
|
---|
| 6091 |
|
---|
| 6092 | _ACEOF
|
---|
| 6093 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 6094 | ac_cv_c_inline=$ac_kw
|
---|
| 6095 | fi
|
---|
| 6096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6097 | test "$ac_cv_c_inline" != no && break
|
---|
| 6098 | done
|
---|
| 6099 |
|
---|
| 6100 | fi
|
---|
| 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
---|
| 6102 | $as_echo "$ac_cv_c_inline" >&6; }
|
---|
| 6103 |
|
---|
| 6104 | case $ac_cv_c_inline in
|
---|
| 6105 | inline | yes) ;;
|
---|
| 6106 | *)
|
---|
| 6107 | case $ac_cv_c_inline in
|
---|
| 6108 | no) ac_val=;;
|
---|
| 6109 | *) ac_val=$ac_cv_c_inline;;
|
---|
| 6110 | esac
|
---|
| 6111 | cat >>confdefs.h <<_ACEOF
|
---|
| 6112 | #ifndef __cplusplus
|
---|
| 6113 | #define inline $ac_val
|
---|
| 6114 | #endif
|
---|
| 6115 | _ACEOF
|
---|
| 6116 | ;;
|
---|
| 6117 | esac
|
---|
| 6118 |
|
---|
[5d6ce1f] | 6119 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
|
---|
| 6120 | case $ac_cv_c_int16_t in #(
|
---|
| 6121 | no|yes) ;; #(
|
---|
| 6122 | *)
|
---|
| 6123 |
|
---|
| 6124 | cat >>confdefs.h <<_ACEOF
|
---|
| 6125 | #define int16_t $ac_cv_c_int16_t
|
---|
| 6126 | _ACEOF
|
---|
| 6127 | ;;
|
---|
| 6128 | esac
|
---|
| 6129 |
|
---|
| 6130 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
|
---|
| 6131 | case $ac_cv_c_int32_t in #(
|
---|
| 6132 | no|yes) ;; #(
|
---|
| 6133 | *)
|
---|
| 6134 |
|
---|
| 6135 | cat >>confdefs.h <<_ACEOF
|
---|
| 6136 | #define int32_t $ac_cv_c_int32_t
|
---|
| 6137 | _ACEOF
|
---|
| 6138 | ;;
|
---|
| 6139 | esac
|
---|
| 6140 |
|
---|
| 6141 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
|
---|
| 6142 | case $ac_cv_c_int8_t in #(
|
---|
| 6143 | no|yes) ;; #(
|
---|
| 6144 | *)
|
---|
| 6145 |
|
---|
| 6146 | cat >>confdefs.h <<_ACEOF
|
---|
| 6147 | #define int8_t $ac_cv_c_int8_t
|
---|
| 6148 | _ACEOF
|
---|
| 6149 | ;;
|
---|
| 6150 | esac
|
---|
| 6151 |
|
---|
| 6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
---|
| 6153 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
|
---|
| 6154 | if ${ac_cv_c_restrict+:} false; then :
|
---|
[3b77289] | 6155 | $as_echo_n "(cached) " >&6
|
---|
| 6156 | else
|
---|
[5d6ce1f] | 6157 | ac_cv_c_restrict=no
|
---|
| 6158 | # The order here caters to the fact that C++ does not require restrict.
|
---|
| 6159 | for ac_kw in __restrict __restrict__ _Restrict restrict; do
|
---|
| 6160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[3b77289] | 6161 | /* end confdefs.h. */
|
---|
[5d6ce1f] | 6162 | typedef int * int_ptr;
|
---|
| 6163 | int foo (int_ptr $ac_kw ip) {
|
---|
| 6164 | return ip[0];
|
---|
| 6165 | }
|
---|
[3b77289] | 6166 | int
|
---|
| 6167 | main ()
|
---|
| 6168 | {
|
---|
[5d6ce1f] | 6169 | int s[1];
|
---|
| 6170 | int * $ac_kw t = s;
|
---|
| 6171 | t[0] = 0;
|
---|
| 6172 | return foo(t)
|
---|
[3b77289] | 6173 | ;
|
---|
| 6174 | return 0;
|
---|
| 6175 | }
|
---|
| 6176 | _ACEOF
|
---|
| 6177 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[5d6ce1f] | 6178 | ac_cv_c_restrict=$ac_kw
|
---|
[3b77289] | 6179 | fi
|
---|
| 6180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5d6ce1f] | 6181 | test "$ac_cv_c_restrict" != no && break
|
---|
| 6182 | done
|
---|
[3b77289] | 6183 |
|
---|
| 6184 | fi
|
---|
[5d6ce1f] | 6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
---|
| 6186 | $as_echo "$ac_cv_c_restrict" >&6; }
|
---|
| 6187 |
|
---|
| 6188 | case $ac_cv_c_restrict in
|
---|
| 6189 | restrict) ;;
|
---|
| 6190 | no) $as_echo "#define restrict /**/" >>confdefs.h
|
---|
| 6191 | ;;
|
---|
| 6192 | *) cat >>confdefs.h <<_ACEOF
|
---|
| 6193 | #define restrict $ac_cv_c_restrict
|
---|
| 6194 | _ACEOF
|
---|
| 6195 | ;;
|
---|
| 6196 | esac
|
---|
[3b77289] | 6197 |
|
---|
[5d6ce1f] | 6198 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 6199 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
[3b77289] | 6200 |
|
---|
[5d6ce1f] | 6201 | else
|
---|
[3b77289] | 6202 |
|
---|
[5d6ce1f] | 6203 | cat >>confdefs.h <<_ACEOF
|
---|
| 6204 | #define size_t unsigned int
|
---|
| 6205 | _ACEOF
|
---|
[3b77289] | 6206 |
|
---|
| 6207 | fi
|
---|
| 6208 |
|
---|
[5d6ce1f] | 6209 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
|
---|
| 6210 | case $ac_cv_c_uint16_t in #(
|
---|
| 6211 | no|yes) ;; #(
|
---|
| 6212 | *)
|
---|
[3b77289] | 6213 |
|
---|
| 6214 |
|
---|
[5d6ce1f] | 6215 | cat >>confdefs.h <<_ACEOF
|
---|
| 6216 | #define uint16_t $ac_cv_c_uint16_t
|
---|
| 6217 | _ACEOF
|
---|
| 6218 | ;;
|
---|
| 6219 | esac
|
---|
[3b77289] | 6220 |
|
---|
[5d6ce1f] | 6221 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
|
---|
| 6222 | case $ac_cv_c_uint32_t in #(
|
---|
| 6223 | no|yes) ;; #(
|
---|
| 6224 | *)
|
---|
[3b77289] | 6225 |
|
---|
[5d6ce1f] | 6226 | $as_echo "#define _UINT32_T 1" >>confdefs.h
|
---|
| 6227 |
|
---|
| 6228 |
|
---|
| 6229 | cat >>confdefs.h <<_ACEOF
|
---|
| 6230 | #define uint32_t $ac_cv_c_uint32_t
|
---|
[3b77289] | 6231 | _ACEOF
|
---|
[5d6ce1f] | 6232 | ;;
|
---|
| 6233 | esac
|
---|
[3b77289] | 6234 |
|
---|
[5d6ce1f] | 6235 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
|
---|
| 6236 | case $ac_cv_c_uint8_t in #(
|
---|
| 6237 | no|yes) ;; #(
|
---|
[3b77289] | 6238 | *)
|
---|
| 6239 |
|
---|
[5d6ce1f] | 6240 | $as_echo "#define _UINT8_T 1" >>confdefs.h
|
---|
[3b77289] | 6241 |
|
---|
| 6242 |
|
---|
| 6243 | cat >>confdefs.h <<_ACEOF
|
---|
[5d6ce1f] | 6244 | #define uint8_t $ac_cv_c_uint8_t
|
---|
[3b77289] | 6245 | _ACEOF
|
---|
[5d6ce1f] | 6246 | ;;
|
---|
| 6247 | esac
|
---|
[3b77289] | 6248 |
|
---|
| 6249 |
|
---|
[5d6ce1f] | 6250 | # Checks for library functions.
|
---|
| 6251 | for ac_func in memset putenv strchr strtol
|
---|
| 6252 | do :
|
---|
| 6253 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6254 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 6255 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
| 6256 | cat >>confdefs.h <<_ACEOF
|
---|
| 6257 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[3b77289] | 6258 | _ACEOF
|
---|
| 6259 |
|
---|
[5d6ce1f] | 6260 | fi
|
---|
| 6261 | done
|
---|
[3b77289] | 6262 |
|
---|
| 6263 |
|
---|
[4149d9d] | 6264 | ac_config_files="$ac_config_files Makefile src/driver/Makefile src/Makefile src/benchmark/Makefile src/examples/Makefile src/tests/Makefile src/tests/preempt_longrun/Makefile src/prelude/Makefile src/libcfa/Makefile tools/Makefile tools/prettyprinter/Makefile"
|
---|
[3b77289] | 6265 |
|
---|
[5d6ce1f] | 6266 |
|
---|
[56de5932] | 6267 | ac_config_links="$ac_config_links src/tests/test.py:src/tests/test.py"
|
---|
| 6268 |
|
---|
| 6269 |
|
---|
[3a8cc12] | 6270 | ac_config_files="$ac_config_files src/tests/config.py"
|
---|
| 6271 |
|
---|
[3b77289] | 6272 | cat >confcache <<\_ACEOF
|
---|
| 6273 | # This file is a shell script that caches the results of configure
|
---|
| 6274 | # tests run on this system so they can be shared between configure
|
---|
| 6275 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6276 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6277 | # want to keep, you may remove or edit it.
|
---|
| 6278 | #
|
---|
| 6279 | # config.status only pays attention to the cache file if you give it
|
---|
| 6280 | # the --recheck option to rerun configure.
|
---|
| 6281 | #
|
---|
| 6282 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 6283 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6284 | # following values.
|
---|
| 6285 |
|
---|
| 6286 | _ACEOF
|
---|
| 6287 |
|
---|
| 6288 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6289 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 6290 | # So, we kill variables containing newlines.
|
---|
| 6291 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6292 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 6293 | (
|
---|
| 6294 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6295 | eval ac_val=\$$ac_var
|
---|
| 6296 | case $ac_val in #(
|
---|
| 6297 | *${as_nl}*)
|
---|
| 6298 | case $ac_var in #(
|
---|
| 6299 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 6300 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6301 | esac
|
---|
| 6302 | case $ac_var in #(
|
---|
| 6303 | _ | IFS | as_nl) ;; #(
|
---|
| 6304 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 6305 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 6306 | esac ;;
|
---|
| 6307 | esac
|
---|
| 6308 | done
|
---|
| 6309 |
|
---|
| 6310 | (set) 2>&1 |
|
---|
| 6311 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6312 | *${as_nl}ac_space=\ *)
|
---|
| 6313 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6314 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
| 6315 | sed -n \
|
---|
| 6316 | "s/'/'\\\\''/g;
|
---|
| 6317 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 6318 | ;; #(
|
---|
| 6319 | *)
|
---|
| 6320 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 6321 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
| 6322 | ;;
|
---|
| 6323 | esac |
|
---|
| 6324 | sort
|
---|
| 6325 | ) |
|
---|
| 6326 | sed '
|
---|
| 6327 | /^ac_cv_env_/b end
|
---|
| 6328 | t clear
|
---|
| 6329 | :clear
|
---|
| 6330 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6331 | t end
|
---|
| 6332 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6333 | :end' >>confcache
|
---|
| 6334 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6335 | if test -w "$cache_file"; then
|
---|
| 6336 | if test "x$cache_file" != "x/dev/null"; then
|
---|
| 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
| 6338 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
| 6339 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
| 6340 | cat confcache >"$cache_file"
|
---|
| 6341 | else
|
---|
| 6342 | case $cache_file in #(
|
---|
| 6343 | */* | ?:*)
|
---|
| 6344 | mv -f confcache "$cache_file"$$ &&
|
---|
| 6345 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
| 6346 | *)
|
---|
| 6347 | mv -f confcache "$cache_file" ;;
|
---|
| 6348 | esac
|
---|
| 6349 | fi
|
---|
| 6350 | fi
|
---|
| 6351 | else
|
---|
| 6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
| 6353 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
| 6354 | fi
|
---|
| 6355 | fi
|
---|
| 6356 | rm -f confcache
|
---|
| 6357 |
|
---|
| 6358 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6359 | # Let make expand exec_prefix.
|
---|
| 6360 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6361 |
|
---|
| 6362 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6363 |
|
---|
| 6364 | ac_libobjs=
|
---|
| 6365 | ac_ltlibobjs=
|
---|
| 6366 | U=
|
---|
| 6367 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6368 | # 1. Remove the extension, and $U if already installed.
|
---|
| 6369 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6370 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6371 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6372 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 6373 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6374 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
| 6375 | done
|
---|
| 6376 | LIBOBJS=$ac_libobjs
|
---|
| 6377 |
|
---|
| 6378 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6379 |
|
---|
| 6380 |
|
---|
[44f44617] | 6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
---|
| 6382 | $as_echo_n "checking that generated files are newer than configure... " >&6; }
|
---|
| 6383 | if test -n "$am_sleep_pid"; then
|
---|
| 6384 | # Hide warnings about reused PIDs.
|
---|
| 6385 | wait $am_sleep_pid 2>/dev/null
|
---|
| 6386 | fi
|
---|
| 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
---|
| 6388 | $as_echo "done" >&6; }
|
---|
[3b77289] | 6389 | if test -n "$EXEEXT"; then
|
---|
| 6390 | am__EXEEXT_TRUE=
|
---|
| 6391 | am__EXEEXT_FALSE='#'
|
---|
| 6392 | else
|
---|
| 6393 | am__EXEEXT_TRUE='#'
|
---|
| 6394 | am__EXEEXT_FALSE=
|
---|
| 6395 | fi
|
---|
| 6396 |
|
---|
[9def87a] | 6397 | if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then
|
---|
| 6398 | as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined.
|
---|
| 6399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6400 | fi
|
---|
| 6401 | if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then
|
---|
| 6402 | as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined.
|
---|
| 6403 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6404 | fi
|
---|
[24f4671] | 6405 | if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then
|
---|
| 6406 | as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined.
|
---|
| 6407 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6408 | fi
|
---|
[facc44f] | 6409 | if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then
|
---|
| 6410 | as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined.
|
---|
| 6411 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6412 | fi
|
---|
[3b77289] | 6413 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
| 6414 | as_fn_error $? "conditional \"AMDEP\" was never defined.
|
---|
| 6415 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6416 | fi
|
---|
| 6417 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
---|
| 6418 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
|
---|
| 6419 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6420 | fi
|
---|
| 6421 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
| 6422 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
---|
| 6423 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6424 | fi
|
---|
[8e5724e] | 6425 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
|
---|
| 6426 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
|
---|
| 6427 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
| 6428 | fi
|
---|
[3b77289] | 6429 |
|
---|
| 6430 | : "${CONFIG_STATUS=./config.status}"
|
---|
| 6431 | ac_write_fail=0
|
---|
| 6432 | ac_clean_files_save=$ac_clean_files
|
---|
| 6433 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
| 6435 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6436 | as_write_fail=0
|
---|
| 6437 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
| 6438 | #! $SHELL
|
---|
| 6439 | # Generated by $as_me.
|
---|
| 6440 | # Run this file to recreate the current configuration.
|
---|
| 6441 | # Compiler output produced by configure, useful for debugging
|
---|
| 6442 | # configure, is in config.log if it exists.
|
---|
| 6443 |
|
---|
| 6444 | debug=false
|
---|
| 6445 | ac_cs_recheck=false
|
---|
| 6446 | ac_cs_silent=false
|
---|
| 6447 |
|
---|
| 6448 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 6449 | export SHELL
|
---|
| 6450 | _ASEOF
|
---|
| 6451 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6452 | ## -------------------- ##
|
---|
| 6453 | ## M4sh Initialization. ##
|
---|
| 6454 | ## -------------------- ##
|
---|
| 6455 |
|
---|
| 6456 | # Be more Bourne compatible
|
---|
| 6457 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 6458 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 6459 | emulate sh
|
---|
| 6460 | NULLCMD=:
|
---|
| 6461 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
| 6462 | # is contrary to our usage. Disable this feature.
|
---|
| 6463 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 6464 | setopt NO_GLOB_SUBST
|
---|
| 6465 | else
|
---|
| 6466 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6467 | *posix*) :
|
---|
| 6468 | set -o posix ;; #(
|
---|
| 6469 | *) :
|
---|
| 6470 | ;;
|
---|
| 6471 | esac
|
---|
| 6472 | fi
|
---|
| 6473 |
|
---|
| 6474 |
|
---|
| 6475 | as_nl='
|
---|
| 6476 | '
|
---|
| 6477 | export as_nl
|
---|
| 6478 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6479 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6480 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6481 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6482 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6483 | # but without wasting forks for bash or zsh.
|
---|
| 6484 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6485 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6486 | as_echo='print -r --'
|
---|
| 6487 | as_echo_n='print -rn --'
|
---|
| 6488 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6489 | as_echo='printf %s\n'
|
---|
| 6490 | as_echo_n='printf %s'
|
---|
| 6491 | else
|
---|
| 6492 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6493 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6494 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6495 | else
|
---|
| 6496 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6497 | as_echo_n_body='eval
|
---|
| 6498 | arg=$1;
|
---|
| 6499 | case $arg in #(
|
---|
| 6500 | *"$as_nl"*)
|
---|
| 6501 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6502 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6503 | esac;
|
---|
| 6504 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6505 | '
|
---|
| 6506 | export as_echo_n_body
|
---|
| 6507 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6508 | fi
|
---|
| 6509 | export as_echo_body
|
---|
| 6510 | as_echo='sh -c $as_echo_body as_echo'
|
---|
| 6511 | fi
|
---|
| 6512 |
|
---|
| 6513 | # The user is always right.
|
---|
| 6514 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6515 | PATH_SEPARATOR=:
|
---|
| 6516 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6517 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6518 | PATH_SEPARATOR=';'
|
---|
| 6519 | }
|
---|
| 6520 | fi
|
---|
| 6521 |
|
---|
| 6522 |
|
---|
| 6523 | # IFS
|
---|
| 6524 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6525 | # there to prevent editors from complaining about space-tab.
|
---|
| 6526 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6527 | # splitting by setting IFS to empty value.)
|
---|
| 6528 | IFS=" "" $as_nl"
|
---|
| 6529 |
|
---|
| 6530 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 6531 | as_myself=
|
---|
| 6532 | case $0 in #((
|
---|
| 6533 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6534 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6535 | for as_dir in $PATH
|
---|
| 6536 | do
|
---|
| 6537 | IFS=$as_save_IFS
|
---|
| 6538 | test -z "$as_dir" && as_dir=.
|
---|
| 6539 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6540 | done
|
---|
| 6541 | IFS=$as_save_IFS
|
---|
| 6542 |
|
---|
| 6543 | ;;
|
---|
| 6544 | esac
|
---|
| 6545 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6546 | # in which case we are not to be found in the path.
|
---|
| 6547 | if test "x$as_myself" = x; then
|
---|
| 6548 | as_myself=$0
|
---|
| 6549 | fi
|
---|
| 6550 | if test ! -f "$as_myself"; then
|
---|
| 6551 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 6552 | exit 1
|
---|
| 6553 | fi
|
---|
| 6554 |
|
---|
| 6555 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6556 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6557 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6558 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6559 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6560 | do eval test x\${$as_var+set} = xset \
|
---|
| 6561 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 6562 | done
|
---|
| 6563 | PS1='$ '
|
---|
| 6564 | PS2='> '
|
---|
| 6565 | PS4='+ '
|
---|
| 6566 |
|
---|
| 6567 | # NLS nuisances.
|
---|
| 6568 | LC_ALL=C
|
---|
| 6569 | export LC_ALL
|
---|
| 6570 | LANGUAGE=C
|
---|
| 6571 | export LANGUAGE
|
---|
| 6572 |
|
---|
| 6573 | # CDPATH.
|
---|
| 6574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6575 |
|
---|
| 6576 |
|
---|
| 6577 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 6578 | # ----------------------------------------
|
---|
| 6579 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6580 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 6581 | # script with STATUS, using 1 if that was 0.
|
---|
| 6582 | as_fn_error ()
|
---|
| 6583 | {
|
---|
| 6584 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 6585 | if test "$4"; then
|
---|
| 6586 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6587 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 6588 | fi
|
---|
| 6589 | $as_echo "$as_me: error: $2" >&2
|
---|
| 6590 | as_fn_exit $as_status
|
---|
| 6591 | } # as_fn_error
|
---|
| 6592 |
|
---|
| 6593 |
|
---|
| 6594 | # as_fn_set_status STATUS
|
---|
| 6595 | # -----------------------
|
---|
| 6596 | # Set $? to STATUS, without forking.
|
---|
| 6597 | as_fn_set_status ()
|
---|
| 6598 | {
|
---|
| 6599 | return $1
|
---|
| 6600 | } # as_fn_set_status
|
---|
| 6601 |
|
---|
| 6602 | # as_fn_exit STATUS
|
---|
| 6603 | # -----------------
|
---|
| 6604 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6605 | as_fn_exit ()
|
---|
| 6606 | {
|
---|
| 6607 | set +e
|
---|
| 6608 | as_fn_set_status $1
|
---|
| 6609 | exit $1
|
---|
| 6610 | } # as_fn_exit
|
---|
| 6611 |
|
---|
| 6612 | # as_fn_unset VAR
|
---|
| 6613 | # ---------------
|
---|
| 6614 | # Portably unset VAR.
|
---|
| 6615 | as_fn_unset ()
|
---|
| 6616 | {
|
---|
| 6617 | { eval $1=; unset $1;}
|
---|
| 6618 | }
|
---|
| 6619 | as_unset=as_fn_unset
|
---|
| 6620 | # as_fn_append VAR VALUE
|
---|
| 6621 | # ----------------------
|
---|
| 6622 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6623 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6624 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6625 | # implementations.
|
---|
| 6626 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6627 | eval 'as_fn_append ()
|
---|
| 6628 | {
|
---|
| 6629 | eval $1+=\$2
|
---|
| 6630 | }'
|
---|
| 6631 | else
|
---|
| 6632 | as_fn_append ()
|
---|
| 6633 | {
|
---|
| 6634 | eval $1=\$$1\$2
|
---|
| 6635 | }
|
---|
| 6636 | fi # as_fn_append
|
---|
| 6637 |
|
---|
| 6638 | # as_fn_arith ARG...
|
---|
| 6639 | # ------------------
|
---|
| 6640 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6641 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6642 | # must be portable across $(()) and expr.
|
---|
| 6643 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6644 | eval 'as_fn_arith ()
|
---|
| 6645 | {
|
---|
| 6646 | as_val=$(( $* ))
|
---|
| 6647 | }'
|
---|
| 6648 | else
|
---|
| 6649 | as_fn_arith ()
|
---|
| 6650 | {
|
---|
| 6651 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6652 | }
|
---|
| 6653 | fi # as_fn_arith
|
---|
| 6654 |
|
---|
| 6655 |
|
---|
| 6656 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6657 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 6658 | as_expr=expr
|
---|
| 6659 | else
|
---|
| 6660 | as_expr=false
|
---|
| 6661 | fi
|
---|
| 6662 |
|
---|
| 6663 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 6664 | as_basename=basename
|
---|
| 6665 | else
|
---|
| 6666 | as_basename=false
|
---|
| 6667 | fi
|
---|
| 6668 |
|
---|
| 6669 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6670 | as_dirname=dirname
|
---|
| 6671 | else
|
---|
| 6672 | as_dirname=false
|
---|
| 6673 | fi
|
---|
| 6674 |
|
---|
| 6675 | as_me=`$as_basename -- "$0" ||
|
---|
| 6676 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6677 | X"$0" : 'X\(//\)$' \| \
|
---|
| 6678 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6679 | $as_echo X/"$0" |
|
---|
| 6680 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 6681 | s//\1/
|
---|
| 6682 | q
|
---|
| 6683 | }
|
---|
| 6684 | /^X\/\(\/\/\)$/{
|
---|
| 6685 | s//\1/
|
---|
| 6686 | q
|
---|
| 6687 | }
|
---|
| 6688 | /^X\/\(\/\).*/{
|
---|
| 6689 | s//\1/
|
---|
| 6690 | q
|
---|
| 6691 | }
|
---|
| 6692 | s/.*/./; q'`
|
---|
| 6693 |
|
---|
| 6694 | # Avoid depending upon Character Ranges.
|
---|
| 6695 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6696 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6697 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6698 | as_cr_digits='0123456789'
|
---|
| 6699 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 6700 |
|
---|
| 6701 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 6702 | case `echo -n x` in #(((((
|
---|
| 6703 | -n*)
|
---|
| 6704 | case `echo 'xy\c'` in
|
---|
| 6705 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 6706 | xy) ECHO_C='\c';;
|
---|
| 6707 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 6708 | ECHO_T=' ';;
|
---|
| 6709 | esac;;
|
---|
| 6710 | *)
|
---|
| 6711 | ECHO_N='-n';;
|
---|
| 6712 | esac
|
---|
| 6713 |
|
---|
| 6714 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6715 | if test -d conf$$.dir; then
|
---|
| 6716 | rm -f conf$$.dir/conf$$.file
|
---|
| 6717 | else
|
---|
| 6718 | rm -f conf$$.dir
|
---|
| 6719 | mkdir conf$$.dir 2>/dev/null
|
---|
| 6720 | fi
|
---|
| 6721 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 6722 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6723 | as_ln_s='ln -s'
|
---|
| 6724 | # ... but there are two gotchas:
|
---|
| 6725 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 6726 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
[44f44617] | 6727 | # In both cases, we have to default to `cp -pR'.
|
---|
[3b77289] | 6728 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[44f44617] | 6729 | as_ln_s='cp -pR'
|
---|
[3b77289] | 6730 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6731 | as_ln_s=ln
|
---|
| 6732 | else
|
---|
[44f44617] | 6733 | as_ln_s='cp -pR'
|
---|
[3b77289] | 6734 | fi
|
---|
| 6735 | else
|
---|
[44f44617] | 6736 | as_ln_s='cp -pR'
|
---|
[3b77289] | 6737 | fi
|
---|
| 6738 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 6739 | rmdir conf$$.dir 2>/dev/null
|
---|
| 6740 |
|
---|
| 6741 |
|
---|
| 6742 | # as_fn_mkdir_p
|
---|
| 6743 | # -------------
|
---|
| 6744 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 6745 | as_fn_mkdir_p ()
|
---|
| 6746 | {
|
---|
| 6747 |
|
---|
| 6748 | case $as_dir in #(
|
---|
| 6749 | -*) as_dir=./$as_dir;;
|
---|
| 6750 | esac
|
---|
| 6751 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 6752 | as_dirs=
|
---|
| 6753 | while :; do
|
---|
| 6754 | case $as_dir in #(
|
---|
| 6755 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 6756 | *) as_qdir=$as_dir;;
|
---|
| 6757 | esac
|
---|
| 6758 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 6759 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 6760 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 6761 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 6762 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 6763 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6764 | $as_echo X"$as_dir" |
|
---|
| 6765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 6766 | s//\1/
|
---|
| 6767 | q
|
---|
| 6768 | }
|
---|
| 6769 | /^X\(\/\/\)[^/].*/{
|
---|
| 6770 | s//\1/
|
---|
| 6771 | q
|
---|
| 6772 | }
|
---|
| 6773 | /^X\(\/\/\)$/{
|
---|
| 6774 | s//\1/
|
---|
| 6775 | q
|
---|
| 6776 | }
|
---|
| 6777 | /^X\(\/\).*/{
|
---|
| 6778 | s//\1/
|
---|
| 6779 | q
|
---|
| 6780 | }
|
---|
| 6781 | s/.*/./; q'`
|
---|
| 6782 | test -d "$as_dir" && break
|
---|
| 6783 | done
|
---|
| 6784 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 6785 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
| 6786 |
|
---|
| 6787 |
|
---|
| 6788 | } # as_fn_mkdir_p
|
---|
| 6789 | if mkdir -p . 2>/dev/null; then
|
---|
| 6790 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
| 6791 | else
|
---|
| 6792 | test -d ./-p && rmdir ./-p
|
---|
| 6793 | as_mkdir_p=false
|
---|
| 6794 | fi
|
---|
| 6795 |
|
---|
[44f44617] | 6796 |
|
---|
| 6797 | # as_fn_executable_p FILE
|
---|
| 6798 | # -----------------------
|
---|
| 6799 | # Test if FILE is an executable regular file.
|
---|
| 6800 | as_fn_executable_p ()
|
---|
| 6801 | {
|
---|
| 6802 | test -f "$1" && test -x "$1"
|
---|
| 6803 | } # as_fn_executable_p
|
---|
| 6804 | as_test_x='test -x'
|
---|
| 6805 | as_executable_p=as_fn_executable_p
|
---|
[3b77289] | 6806 |
|
---|
| 6807 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6808 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6809 |
|
---|
| 6810 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6811 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6812 |
|
---|
| 6813 |
|
---|
| 6814 | exec 6>&1
|
---|
| 6815 | ## ----------------------------------- ##
|
---|
| 6816 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 6817 | ## ----------------------------------- ##
|
---|
| 6818 | _ASEOF
|
---|
| 6819 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
| 6820 |
|
---|
| 6821 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6822 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
| 6823 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 6824 | # values after options handling.
|
---|
| 6825 | ac_log="
|
---|
[4b1afb6] | 6826 | This file was extended by cfa-cc $as_me 1.0.0.0, which was
|
---|
[44f44617] | 6827 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
[3b77289] | 6828 |
|
---|
| 6829 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6830 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6831 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6832 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6833 | $ $0 $@
|
---|
| 6834 |
|
---|
| 6835 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 6836 | "
|
---|
| 6837 |
|
---|
| 6838 | _ACEOF
|
---|
| 6839 |
|
---|
| 6840 | case $ac_config_files in *"
|
---|
| 6841 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 6842 | esac
|
---|
| 6843 |
|
---|
| 6844 | case $ac_config_headers in *"
|
---|
| 6845 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 6846 | esac
|
---|
| 6847 |
|
---|
| 6848 |
|
---|
| 6849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6850 | # Files that config.status was made for.
|
---|
| 6851 | config_files="$ac_config_files"
|
---|
| 6852 | config_headers="$ac_config_headers"
|
---|
[56de5932] | 6853 | config_links="$ac_config_links"
|
---|
[3b77289] | 6854 | config_commands="$ac_config_commands"
|
---|
| 6855 |
|
---|
| 6856 | _ACEOF
|
---|
| 6857 |
|
---|
| 6858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6859 | ac_cs_usage="\
|
---|
| 6860 | \`$as_me' instantiates files and other configuration actions
|
---|
| 6861 | from templates according to the current configuration. Unless the files
|
---|
| 6862 | and actions are specified as TAGs, all are instantiated by default.
|
---|
| 6863 |
|
---|
| 6864 | Usage: $0 [OPTION]... [TAG]...
|
---|
| 6865 |
|
---|
| 6866 | -h, --help print this help, then exit
|
---|
| 6867 | -V, --version print version number and configuration settings, then exit
|
---|
| 6868 | --config print configuration, then exit
|
---|
| 6869 | -q, --quiet, --silent
|
---|
| 6870 | do not print progress messages
|
---|
| 6871 | -d, --debug don't remove temporary files
|
---|
| 6872 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 6873 | --file=FILE[:TEMPLATE]
|
---|
| 6874 | instantiate the configuration file FILE
|
---|
| 6875 | --header=FILE[:TEMPLATE]
|
---|
| 6876 | instantiate the configuration header FILE
|
---|
| 6877 |
|
---|
| 6878 | Configuration files:
|
---|
| 6879 | $config_files
|
---|
| 6880 |
|
---|
| 6881 | Configuration headers:
|
---|
| 6882 | $config_headers
|
---|
| 6883 |
|
---|
[56de5932] | 6884 | Configuration links:
|
---|
| 6885 | $config_links
|
---|
| 6886 |
|
---|
[3b77289] | 6887 | Configuration commands:
|
---|
| 6888 | $config_commands
|
---|
| 6889 |
|
---|
| 6890 | Report bugs to <cforall@plg.uwaterloo.ca>."
|
---|
| 6891 |
|
---|
| 6892 | _ACEOF
|
---|
| 6893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6894 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
| 6895 | ac_cs_version="\\
|
---|
[4b1afb6] | 6896 | cfa-cc config.status 1.0.0.0
|
---|
[44f44617] | 6897 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
[3b77289] | 6898 | with options \\"\$ac_cs_config\\"
|
---|
| 6899 |
|
---|
[44f44617] | 6900 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
[3b77289] | 6901 | This config.status script is free software; the Free Software Foundation
|
---|
| 6902 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 6903 |
|
---|
| 6904 | ac_pwd='$ac_pwd'
|
---|
| 6905 | srcdir='$srcdir'
|
---|
| 6906 | INSTALL='$INSTALL'
|
---|
| 6907 | MKDIR_P='$MKDIR_P'
|
---|
| 6908 | AWK='$AWK'
|
---|
| 6909 | test -n "\$AWK" || AWK=awk
|
---|
| 6910 | _ACEOF
|
---|
| 6911 |
|
---|
| 6912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6913 | # The default lists apply if the user does not specify any file.
|
---|
| 6914 | ac_need_defaults=:
|
---|
| 6915 | while test $# != 0
|
---|
| 6916 | do
|
---|
| 6917 | case $1 in
|
---|
| 6918 | --*=?*)
|
---|
| 6919 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6920 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
| 6921 | ac_shift=:
|
---|
| 6922 | ;;
|
---|
| 6923 | --*=)
|
---|
| 6924 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6925 | ac_optarg=
|
---|
| 6926 | ac_shift=:
|
---|
| 6927 | ;;
|
---|
| 6928 | *)
|
---|
| 6929 | ac_option=$1
|
---|
| 6930 | ac_optarg=$2
|
---|
| 6931 | ac_shift=shift
|
---|
| 6932 | ;;
|
---|
| 6933 | esac
|
---|
| 6934 |
|
---|
| 6935 | case $ac_option in
|
---|
| 6936 | # Handling of the options.
|
---|
| 6937 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 6938 | ac_cs_recheck=: ;;
|
---|
| 6939 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 6940 | $as_echo "$ac_cs_version"; exit ;;
|
---|
| 6941 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 6942 | $as_echo "$ac_cs_config"; exit ;;
|
---|
| 6943 | --debug | --debu | --deb | --de | --d | -d )
|
---|
| 6944 | debug=: ;;
|
---|
| 6945 | --file | --fil | --fi | --f )
|
---|
| 6946 | $ac_shift
|
---|
| 6947 | case $ac_optarg in
|
---|
| 6948 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6949 | '') as_fn_error $? "missing file argument" ;;
|
---|
| 6950 | esac
|
---|
| 6951 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
| 6952 | ac_need_defaults=false;;
|
---|
| 6953 | --header | --heade | --head | --hea )
|
---|
| 6954 | $ac_shift
|
---|
| 6955 | case $ac_optarg in
|
---|
| 6956 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6957 | esac
|
---|
| 6958 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
| 6959 | ac_need_defaults=false;;
|
---|
| 6960 | --he | --h)
|
---|
| 6961 | # Conflict between --help and --header
|
---|
| 6962 | as_fn_error $? "ambiguous option: \`$1'
|
---|
| 6963 | Try \`$0 --help' for more information.";;
|
---|
| 6964 | --help | --hel | -h )
|
---|
| 6965 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
| 6966 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6967 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6968 | ac_cs_silent=: ;;
|
---|
| 6969 |
|
---|
| 6970 | # This is an error.
|
---|
| 6971 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
| 6972 | Try \`$0 --help' for more information." ;;
|
---|
| 6973 |
|
---|
| 6974 | *) as_fn_append ac_config_targets " $1"
|
---|
| 6975 | ac_need_defaults=false ;;
|
---|
| 6976 |
|
---|
| 6977 | esac
|
---|
| 6978 | shift
|
---|
| 6979 | done
|
---|
| 6980 |
|
---|
| 6981 | ac_configure_extra_args=
|
---|
| 6982 |
|
---|
| 6983 | if $ac_cs_silent; then
|
---|
| 6984 | exec 6>/dev/null
|
---|
| 6985 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 6986 | fi
|
---|
| 6987 |
|
---|
| 6988 | _ACEOF
|
---|
| 6989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6990 | if \$ac_cs_recheck; then
|
---|
[44f44617] | 6991 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[3b77289] | 6992 | shift
|
---|
| 6993 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 6994 | CONFIG_SHELL='$SHELL'
|
---|
| 6995 | export CONFIG_SHELL
|
---|
| 6996 | exec "\$@"
|
---|
| 6997 | fi
|
---|
| 6998 |
|
---|
| 6999 | _ACEOF
|
---|
| 7000 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7001 | exec 5>>config.log
|
---|
| 7002 | {
|
---|
| 7003 | echo
|
---|
| 7004 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7005 | ## Running $as_me. ##
|
---|
| 7006 | _ASBOX
|
---|
| 7007 | $as_echo "$ac_log"
|
---|
| 7008 | } >&5
|
---|
| 7009 |
|
---|
| 7010 | _ACEOF
|
---|
| 7011 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7012 | #
|
---|
| 7013 | # INIT-COMMANDS
|
---|
| 7014 | #
|
---|
| 7015 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
---|
| 7016 |
|
---|
| 7017 | _ACEOF
|
---|
| 7018 |
|
---|
| 7019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7020 |
|
---|
| 7021 | # Handling of arguments.
|
---|
| 7022 | for ac_config_target in $ac_config_targets
|
---|
| 7023 | do
|
---|
| 7024 | case $ac_config_target in
|
---|
[a5c722b] | 7025 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:src/config.h.in" ;;
|
---|
[3b77289] | 7026 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
| 7027 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
[6e7e2b36] | 7028 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;;
|
---|
[00cc023] | 7029 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
---|
[ac93b228] | 7030 | "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;;
|
---|
[76f2e97f] | 7031 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
|
---|
[ef7d253] | 7032 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
|
---|
[cc3e4d0] | 7033 | "src/tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/preempt_longrun/Makefile" ;;
|
---|
[375a068] | 7034 | "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;;
|
---|
[6e7e2b36] | 7035 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;;
|
---|
[4149d9d] | 7036 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
|
---|
[2b7afbd] | 7037 | "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;;
|
---|
[56de5932] | 7038 | "src/tests/test.py") CONFIG_LINKS="$CONFIG_LINKS src/tests/test.py:src/tests/test.py" ;;
|
---|
[3a8cc12] | 7039 | "src/tests/config.py") CONFIG_FILES="$CONFIG_FILES src/tests/config.py" ;;
|
---|
[3b77289] | 7040 |
|
---|
| 7041 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
| 7042 | esac
|
---|
| 7043 | done
|
---|
| 7044 |
|
---|
| 7045 |
|
---|
| 7046 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7047 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7048 | # We use the long form for the default assignment because of an extremely
|
---|
| 7049 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7050 | if $ac_need_defaults; then
|
---|
| 7051 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7052 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
[56de5932] | 7053 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
|
---|
[3b77289] | 7054 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 7055 | fi
|
---|
| 7056 |
|
---|
| 7057 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7058 | # simply because there is no reason against having it here, and in addition,
|
---|
| 7059 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7060 | # Hook for its removal unless debugging.
|
---|
| 7061 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 7062 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
| 7063 | $debug ||
|
---|
| 7064 | {
|
---|
| 7065 | tmp= ac_tmp=
|
---|
| 7066 | trap 'exit_status=$?
|
---|
| 7067 | : "${ac_tmp:=$tmp}"
|
---|
| 7068 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
| 7069 | ' 0
|
---|
| 7070 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
| 7071 | }
|
---|
| 7072 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7073 |
|
---|
| 7074 | {
|
---|
| 7075 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
| 7076 | test -d "$tmp"
|
---|
| 7077 | } ||
|
---|
| 7078 | {
|
---|
| 7079 | tmp=./conf$$-$RANDOM
|
---|
| 7080 | (umask 077 && mkdir "$tmp")
|
---|
| 7081 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
| 7082 | ac_tmp=$tmp
|
---|
| 7083 |
|
---|
| 7084 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 7085 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 7086 | # This happens for instance with `./config.status config.h'.
|
---|
| 7087 | if test -n "$CONFIG_FILES"; then
|
---|
| 7088 |
|
---|
| 7089 |
|
---|
| 7090 | ac_cr=`echo X | tr X '\015'`
|
---|
| 7091 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 7092 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 7093 | # point, so we can use a bashism as a fallback.
|
---|
| 7094 | if test "x$ac_cr" = x; then
|
---|
| 7095 | eval ac_cr=\$\'\\r\'
|
---|
| 7096 | fi
|
---|
| 7097 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 7098 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
| 7099 | ac_cs_awk_cr='\\r'
|
---|
| 7100 | else
|
---|
| 7101 | ac_cs_awk_cr=$ac_cr
|
---|
| 7102 | fi
|
---|
| 7103 |
|
---|
| 7104 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
| 7105 | _ACEOF
|
---|
| 7106 |
|
---|
| 7107 |
|
---|
| 7108 | {
|
---|
| 7109 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 7110 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 7111 | echo "_ACEOF"
|
---|
| 7112 | } >conf$$subs.sh ||
|
---|
| 7113 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7114 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
| 7115 | ac_delim='%!_!# '
|
---|
| 7116 | for ac_last_try in false false false false false :; do
|
---|
| 7117 | . ./conf$$subs.sh ||
|
---|
| 7118 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7119 |
|
---|
| 7120 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 7121 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 7122 | break
|
---|
| 7123 | elif $ac_last_try; then
|
---|
| 7124 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7125 | else
|
---|
| 7126 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 7127 | fi
|
---|
| 7128 | done
|
---|
| 7129 | rm -f conf$$subs.sh
|
---|
| 7130 |
|
---|
| 7131 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7132 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
| 7133 | _ACEOF
|
---|
| 7134 | sed -n '
|
---|
| 7135 | h
|
---|
| 7136 | s/^/S["/; s/!.*/"]=/
|
---|
| 7137 | p
|
---|
| 7138 | g
|
---|
| 7139 | s/^[^!]*!//
|
---|
| 7140 | :repl
|
---|
| 7141 | t repl
|
---|
| 7142 | s/'"$ac_delim"'$//
|
---|
| 7143 | t delim
|
---|
| 7144 | :nl
|
---|
| 7145 | h
|
---|
| 7146 | s/\(.\{148\}\)..*/\1/
|
---|
| 7147 | t more1
|
---|
| 7148 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 7149 | p
|
---|
| 7150 | n
|
---|
| 7151 | b repl
|
---|
| 7152 | :more1
|
---|
| 7153 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7154 | p
|
---|
| 7155 | g
|
---|
| 7156 | s/.\{148\}//
|
---|
| 7157 | t nl
|
---|
| 7158 | :delim
|
---|
| 7159 | h
|
---|
| 7160 | s/\(.\{148\}\)..*/\1/
|
---|
| 7161 | t more2
|
---|
| 7162 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 7163 | p
|
---|
| 7164 | b
|
---|
| 7165 | :more2
|
---|
| 7166 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7167 | p
|
---|
| 7168 | g
|
---|
| 7169 | s/.\{148\}//
|
---|
| 7170 | t delim
|
---|
| 7171 | ' <conf$$subs.awk | sed '
|
---|
| 7172 | /^[^""]/{
|
---|
| 7173 | N
|
---|
| 7174 | s/\n//
|
---|
| 7175 | }
|
---|
| 7176 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7177 | rm -f conf$$subs.awk
|
---|
| 7178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7179 | _ACAWK
|
---|
| 7180 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
| 7181 | for (key in S) S_is_set[key] = 1
|
---|
| 7182 | FS = ""
|
---|
| 7183 |
|
---|
| 7184 | }
|
---|
| 7185 | {
|
---|
| 7186 | line = $ 0
|
---|
| 7187 | nfields = split(line, field, "@")
|
---|
| 7188 | substed = 0
|
---|
| 7189 | len = length(field[1])
|
---|
| 7190 | for (i = 2; i < nfields; i++) {
|
---|
| 7191 | key = field[i]
|
---|
| 7192 | keylen = length(key)
|
---|
| 7193 | if (S_is_set[key]) {
|
---|
| 7194 | value = S[key]
|
---|
| 7195 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 7196 | len += length(value) + length(field[++i])
|
---|
| 7197 | substed = 1
|
---|
| 7198 | } else
|
---|
| 7199 | len += 1 + keylen
|
---|
| 7200 | }
|
---|
| 7201 |
|
---|
| 7202 | print line
|
---|
| 7203 | }
|
---|
| 7204 |
|
---|
| 7205 | _ACAWK
|
---|
| 7206 | _ACEOF
|
---|
| 7207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7208 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 7209 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7210 | else
|
---|
| 7211 | cat
|
---|
| 7212 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
| 7213 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
| 7214 | _ACEOF
|
---|
| 7215 |
|
---|
| 7216 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
| 7217 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
| 7218 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7219 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7220 | if test "x$srcdir" = x.; then
|
---|
| 7221 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
| 7222 | h
|
---|
| 7223 | s///
|
---|
| 7224 | s/^/:/
|
---|
| 7225 | s/[ ]*$/:/
|
---|
| 7226 | s/:\$(srcdir):/:/g
|
---|
| 7227 | s/:\${srcdir}:/:/g
|
---|
| 7228 | s/:@srcdir@:/:/g
|
---|
| 7229 | s/^:*//
|
---|
| 7230 | s/:*$//
|
---|
| 7231 | x
|
---|
| 7232 | s/\(=[ ]*\).*/\1/
|
---|
| 7233 | G
|
---|
| 7234 | s/\n//
|
---|
| 7235 | s/^[^=]*=[ ]*$//
|
---|
| 7236 | }'
|
---|
| 7237 | fi
|
---|
| 7238 |
|
---|
| 7239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7240 | fi # test -n "$CONFIG_FILES"
|
---|
| 7241 |
|
---|
| 7242 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7243 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7244 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7245 | if test -n "$CONFIG_HEADERS"; then
|
---|
| 7246 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
| 7247 | BEGIN {
|
---|
| 7248 | _ACEOF
|
---|
| 7249 |
|
---|
| 7250 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7251 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7252 | # config.h.in to produce config.h.
|
---|
| 7253 |
|
---|
| 7254 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7255 | # handling of long lines.
|
---|
| 7256 | ac_delim='%!_!# '
|
---|
| 7257 | for ac_last_try in false false :; do
|
---|
| 7258 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7259 | if test -z "$ac_tt"; then
|
---|
| 7260 | break
|
---|
| 7261 | elif $ac_last_try; then
|
---|
| 7262 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
| 7263 | else
|
---|
| 7264 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 7265 | fi
|
---|
| 7266 | done
|
---|
| 7267 |
|
---|
| 7268 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7269 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7270 | # newline sequences.
|
---|
| 7271 |
|
---|
| 7272 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7273 | sed -n '
|
---|
| 7274 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7275 | t rset
|
---|
| 7276 | :rset
|
---|
| 7277 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7278 | t def
|
---|
| 7279 | d
|
---|
| 7280 | :def
|
---|
| 7281 | s/\\$//
|
---|
| 7282 | t bsnl
|
---|
| 7283 | s/["\\]/\\&/g
|
---|
| 7284 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7285 | D["\1"]=" \3"/p
|
---|
| 7286 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7287 | d
|
---|
| 7288 | :bsnl
|
---|
| 7289 | s/["\\]/\\&/g
|
---|
| 7290 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7291 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7292 | t cont
|
---|
| 7293 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7294 | t cont
|
---|
| 7295 | d
|
---|
| 7296 | :cont
|
---|
| 7297 | n
|
---|
| 7298 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7299 | t clear
|
---|
| 7300 | :clear
|
---|
| 7301 | s/\\$//
|
---|
| 7302 | t bsnlc
|
---|
| 7303 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7304 | d
|
---|
| 7305 | :bsnlc
|
---|
| 7306 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7307 | b cont
|
---|
| 7308 | ' <confdefs.h | sed '
|
---|
| 7309 | s/'"$ac_delim"'/"\\\
|
---|
| 7310 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7311 |
|
---|
| 7312 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7313 | for (key in D) D_is_set[key] = 1
|
---|
| 7314 | FS = ""
|
---|
| 7315 | }
|
---|
| 7316 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7317 | line = \$ 0
|
---|
| 7318 | split(line, arg, " ")
|
---|
| 7319 | if (arg[1] == "#") {
|
---|
| 7320 | defundef = arg[2]
|
---|
| 7321 | mac1 = arg[3]
|
---|
| 7322 | } else {
|
---|
| 7323 | defundef = substr(arg[1], 2)
|
---|
| 7324 | mac1 = arg[2]
|
---|
| 7325 | }
|
---|
| 7326 | split(mac1, mac2, "(") #)
|
---|
| 7327 | macro = mac2[1]
|
---|
| 7328 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7329 | if (D_is_set[macro]) {
|
---|
| 7330 | # Preserve the white space surrounding the "#".
|
---|
| 7331 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7332 | next
|
---|
| 7333 | } else {
|
---|
| 7334 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7335 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7336 | # on some systems where configure will not decide to define it.
|
---|
| 7337 | if (defundef == "undef") {
|
---|
| 7338 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7339 | next
|
---|
| 7340 | }
|
---|
| 7341 | }
|
---|
| 7342 | }
|
---|
| 7343 | { print }
|
---|
| 7344 | _ACAWK
|
---|
| 7345 | _ACEOF
|
---|
| 7346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7347 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
| 7348 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7349 |
|
---|
| 7350 |
|
---|
[56de5932] | 7351 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
|
---|
[3b77289] | 7352 | shift
|
---|
| 7353 | for ac_tag
|
---|
| 7354 | do
|
---|
| 7355 | case $ac_tag in
|
---|
| 7356 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
| 7357 | esac
|
---|
| 7358 | case $ac_mode$ac_tag in
|
---|
| 7359 | :[FHL]*:*);;
|
---|
| 7360 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
| 7361 | :[FH]-) ac_tag=-:-;;
|
---|
| 7362 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7363 | esac
|
---|
| 7364 | ac_save_IFS=$IFS
|
---|
| 7365 | IFS=:
|
---|
| 7366 | set x $ac_tag
|
---|
| 7367 | IFS=$ac_save_IFS
|
---|
| 7368 | shift
|
---|
| 7369 | ac_file=$1
|
---|
| 7370 | shift
|
---|
| 7371 |
|
---|
| 7372 | case $ac_mode in
|
---|
| 7373 | :L) ac_source=$1;;
|
---|
| 7374 | :[FH])
|
---|
| 7375 | ac_file_inputs=
|
---|
| 7376 | for ac_f
|
---|
| 7377 | do
|
---|
| 7378 | case $ac_f in
|
---|
| 7379 | -) ac_f="$ac_tmp/stdin";;
|
---|
| 7380 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7381 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7382 | # because $ac_f cannot contain `:'.
|
---|
| 7383 | test -f "$ac_f" ||
|
---|
| 7384 | case $ac_f in
|
---|
| 7385 | [\\/$]*) false;;
|
---|
| 7386 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7387 | esac ||
|
---|
| 7388 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
| 7389 | esac
|
---|
| 7390 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
| 7391 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
| 7392 | done
|
---|
| 7393 |
|
---|
| 7394 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7395 | # use $as_me), people would be surprised to read:
|
---|
| 7396 | # /* config.h. Generated by config.status. */
|
---|
| 7397 | configure_input='Generated from '`
|
---|
| 7398 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7399 | `' by configure.'
|
---|
| 7400 | if test x"$ac_file" != x-; then
|
---|
| 7401 | configure_input="$ac_file. $configure_input"
|
---|
| 7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
| 7403 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7404 | fi
|
---|
| 7405 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7406 | case $configure_input in #(
|
---|
| 7407 | *\&* | *\|* | *\\* )
|
---|
| 7408 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7409 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7410 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7411 | esac
|
---|
| 7412 |
|
---|
| 7413 | case $ac_tag in
|
---|
| 7414 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
| 7415 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
| 7416 | esac
|
---|
| 7417 | ;;
|
---|
| 7418 | esac
|
---|
| 7419 |
|
---|
| 7420 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
| 7421 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7422 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7423 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7424 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7425 | $as_echo X"$ac_file" |
|
---|
| 7426 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7427 | s//\1/
|
---|
| 7428 | q
|
---|
| 7429 | }
|
---|
| 7430 | /^X\(\/\/\)[^/].*/{
|
---|
| 7431 | s//\1/
|
---|
| 7432 | q
|
---|
| 7433 | }
|
---|
| 7434 | /^X\(\/\/\)$/{
|
---|
| 7435 | s//\1/
|
---|
| 7436 | q
|
---|
| 7437 | }
|
---|
| 7438 | /^X\(\/\).*/{
|
---|
| 7439 | s//\1/
|
---|
| 7440 | q
|
---|
| 7441 | }
|
---|
| 7442 | s/.*/./; q'`
|
---|
| 7443 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
| 7444 | ac_builddir=.
|
---|
| 7445 |
|
---|
| 7446 | case "$ac_dir" in
|
---|
| 7447 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7448 | *)
|
---|
| 7449 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7450 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7451 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7452 | case $ac_top_builddir_sub in
|
---|
| 7453 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7454 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7455 | esac ;;
|
---|
| 7456 | esac
|
---|
| 7457 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7458 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7459 | # for backward compatibility:
|
---|
| 7460 | ac_top_builddir=$ac_top_build_prefix
|
---|
| 7461 |
|
---|
| 7462 | case $srcdir in
|
---|
| 7463 | .) # We are building in place.
|
---|
| 7464 | ac_srcdir=.
|
---|
| 7465 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7466 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7467 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
| 7468 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7469 | ac_top_srcdir=$srcdir
|
---|
| 7470 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7471 | *) # Relative name.
|
---|
| 7472 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7473 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7474 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
| 7475 | esac
|
---|
| 7476 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
| 7477 |
|
---|
| 7478 |
|
---|
| 7479 | case $ac_mode in
|
---|
| 7480 | :F)
|
---|
| 7481 | #
|
---|
| 7482 | # CONFIG_FILE
|
---|
| 7483 | #
|
---|
| 7484 |
|
---|
| 7485 | case $INSTALL in
|
---|
| 7486 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 7487 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
| 7488 | esac
|
---|
| 7489 | ac_MKDIR_P=$MKDIR_P
|
---|
| 7490 | case $MKDIR_P in
|
---|
| 7491 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 7492 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
---|
| 7493 | esac
|
---|
| 7494 | _ACEOF
|
---|
| 7495 |
|
---|
| 7496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7497 | # If the template does not know about datarootdir, expand it.
|
---|
| 7498 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7499 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7500 | ac_sed_dataroot='
|
---|
| 7501 | /datarootdir/ {
|
---|
| 7502 | p
|
---|
| 7503 | q
|
---|
| 7504 | }
|
---|
| 7505 | /@datadir@/p
|
---|
| 7506 | /@docdir@/p
|
---|
| 7507 | /@infodir@/p
|
---|
| 7508 | /@localedir@/p
|
---|
| 7509 | /@mandir@/p'
|
---|
| 7510 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7511 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7512 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 7514 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7515 | _ACEOF
|
---|
| 7516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7517 | ac_datarootdir_hack='
|
---|
| 7518 | s&@datadir@&$datadir&g
|
---|
| 7519 | s&@docdir@&$docdir&g
|
---|
| 7520 | s&@infodir@&$infodir&g
|
---|
| 7521 | s&@localedir@&$localedir&g
|
---|
| 7522 | s&@mandir@&$mandir&g
|
---|
| 7523 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 7524 | esac
|
---|
| 7525 | _ACEOF
|
---|
| 7526 |
|
---|
| 7527 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7528 | # Shell code in configure.ac might set extrasub.
|
---|
| 7529 | # FIXME: do we really want to maintain this feature?
|
---|
| 7530 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7531 | ac_sed_extra="$ac_vpsub
|
---|
| 7532 | $extrasub
|
---|
| 7533 | _ACEOF
|
---|
| 7534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7535 | :t
|
---|
| 7536 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 7537 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7538 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7539 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7540 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7541 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7542 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7543 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7544 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7545 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7546 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7547 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7548 | s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
---|
| 7549 | $ac_datarootdir_hack
|
---|
| 7550 | "
|
---|
| 7551 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
| 7552 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7553 |
|
---|
| 7554 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 7555 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7556 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
| 7557 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7559 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
| 7560 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7561 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
| 7562 |
|
---|
| 7563 | rm -f "$ac_tmp/stdin"
|
---|
| 7564 | case $ac_file in
|
---|
| 7565 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
| 7566 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
| 7567 | esac \
|
---|
| 7568 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7569 | ;;
|
---|
| 7570 | :H)
|
---|
| 7571 | #
|
---|
| 7572 | # CONFIG_HEADER
|
---|
| 7573 | #
|
---|
| 7574 | if test x"$ac_file" != x-; then
|
---|
| 7575 | {
|
---|
| 7576 | $as_echo "/* $configure_input */" \
|
---|
| 7577 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7578 | } >"$ac_tmp/config.h" \
|
---|
| 7579 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7580 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
| 7582 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 7583 | else
|
---|
| 7584 | rm -f "$ac_file"
|
---|
| 7585 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
| 7586 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7587 | fi
|
---|
| 7588 | else
|
---|
| 7589 | $as_echo "/* $configure_input */" \
|
---|
| 7590 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
| 7591 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
| 7592 | fi
|
---|
| 7593 | # Compute "$ac_file"'s index in $config_headers.
|
---|
| 7594 | _am_arg="$ac_file"
|
---|
| 7595 | _am_stamp_count=1
|
---|
| 7596 | for _am_header in $config_headers :; do
|
---|
| 7597 | case $_am_header in
|
---|
| 7598 | $_am_arg | $_am_arg:* )
|
---|
| 7599 | break ;;
|
---|
| 7600 | * )
|
---|
| 7601 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
| 7602 | esac
|
---|
| 7603 | done
|
---|
| 7604 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
---|
| 7605 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7606 | X"$_am_arg" : 'X\(//\)[^/]' \| \
|
---|
| 7607 | X"$_am_arg" : 'X\(//\)$' \| \
|
---|
| 7608 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7609 | $as_echo X"$_am_arg" |
|
---|
| 7610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7611 | s//\1/
|
---|
| 7612 | q
|
---|
| 7613 | }
|
---|
| 7614 | /^X\(\/\/\)[^/].*/{
|
---|
| 7615 | s//\1/
|
---|
| 7616 | q
|
---|
| 7617 | }
|
---|
| 7618 | /^X\(\/\/\)$/{
|
---|
| 7619 | s//\1/
|
---|
| 7620 | q
|
---|
| 7621 | }
|
---|
| 7622 | /^X\(\/\).*/{
|
---|
| 7623 | s//\1/
|
---|
| 7624 | q
|
---|
| 7625 | }
|
---|
| 7626 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
| 7627 | ;;
|
---|
[56de5932] | 7628 | :L)
|
---|
| 7629 | #
|
---|
| 7630 | # CONFIG_LINK
|
---|
| 7631 | #
|
---|
| 7632 |
|
---|
| 7633 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
|
---|
| 7634 | :
|
---|
| 7635 | else
|
---|
| 7636 | # Prefer the file from the source tree if names are identical.
|
---|
| 7637 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
|
---|
| 7638 | ac_source=$srcdir/$ac_source
|
---|
| 7639 | fi
|
---|
| 7640 |
|
---|
| 7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
|
---|
| 7642 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
|
---|
| 7643 |
|
---|
| 7644 | if test ! -r "$ac_source"; then
|
---|
| 7645 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5
|
---|
| 7646 | fi
|
---|
| 7647 | rm -f "$ac_file"
|
---|
[3b77289] | 7648 |
|
---|
[56de5932] | 7649 | # Try a relative symlink, then a hard link, then a copy.
|
---|
| 7650 | case $ac_source in
|
---|
| 7651 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
|
---|
| 7652 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
|
---|
| 7653 | esac
|
---|
| 7654 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
|
---|
| 7655 | ln "$ac_source" "$ac_file" 2>/dev/null ||
|
---|
| 7656 | cp -p "$ac_source" "$ac_file" ||
|
---|
| 7657 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
|
---|
| 7658 | fi
|
---|
| 7659 | ;;
|
---|
[3b77289] | 7660 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
| 7661 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
| 7662 | ;;
|
---|
| 7663 | esac
|
---|
| 7664 |
|
---|
| 7665 |
|
---|
| 7666 | case $ac_file$ac_mode in
|
---|
| 7667 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
---|
[44f44617] | 7668 | # Older Autoconf quotes --file arguments for eval, but not when files
|
---|
[3b77289] | 7669 | # are listed without --file. Let's play safe and only enable the eval
|
---|
| 7670 | # if we detect the quoting.
|
---|
| 7671 | case $CONFIG_FILES in
|
---|
| 7672 | *\'*) eval set x "$CONFIG_FILES" ;;
|
---|
| 7673 | *) set x $CONFIG_FILES ;;
|
---|
| 7674 | esac
|
---|
| 7675 | shift
|
---|
| 7676 | for mf
|
---|
| 7677 | do
|
---|
| 7678 | # Strip MF so we end up with the name of the file.
|
---|
| 7679 | mf=`echo "$mf" | sed -e 's/:.*$//'`
|
---|
| 7680 | # Check whether this is an Automake generated Makefile or not.
|
---|
[44f44617] | 7681 | # We used to match only the files named 'Makefile.in', but
|
---|
[3b77289] | 7682 | # some people rename them; so instead we look at the file content.
|
---|
| 7683 | # Grep'ing the first line is not enough: some people post-process
|
---|
| 7684 | # each Makefile.in and add a new line on top of each file to say so.
|
---|
| 7685 | # Grep'ing the whole file is not good either: AIX grep has a line
|
---|
| 7686 | # limit of 2048, but all sed's we know have understand at least 4000.
|
---|
| 7687 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
---|
| 7688 | dirpart=`$as_dirname -- "$mf" ||
|
---|
| 7689 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7690 | X"$mf" : 'X\(//\)[^/]' \| \
|
---|
| 7691 | X"$mf" : 'X\(//\)$' \| \
|
---|
| 7692 | X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7693 | $as_echo X"$mf" |
|
---|
| 7694 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7695 | s//\1/
|
---|
| 7696 | q
|
---|
| 7697 | }
|
---|
| 7698 | /^X\(\/\/\)[^/].*/{
|
---|
| 7699 | s//\1/
|
---|
| 7700 | q
|
---|
| 7701 | }
|
---|
| 7702 | /^X\(\/\/\)$/{
|
---|
| 7703 | s//\1/
|
---|
| 7704 | q
|
---|
| 7705 | }
|
---|
| 7706 | /^X\(\/\).*/{
|
---|
| 7707 | s//\1/
|
---|
| 7708 | q
|
---|
| 7709 | }
|
---|
| 7710 | s/.*/./; q'`
|
---|
| 7711 | else
|
---|
| 7712 | continue
|
---|
| 7713 | fi
|
---|
| 7714 | # Extract the definition of DEPDIR, am__include, and am__quote
|
---|
[44f44617] | 7715 | # from the Makefile without running 'make'.
|
---|
[3b77289] | 7716 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
---|
| 7717 | test -z "$DEPDIR" && continue
|
---|
| 7718 | am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
---|
[44f44617] | 7719 | test -z "$am__include" && continue
|
---|
[3b77289] | 7720 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
---|
| 7721 | # Find all dependency output files, they are included files with
|
---|
| 7722 | # $(DEPDIR) in their names. We invoke sed twice because it is the
|
---|
| 7723 | # simplest approach to changing $(DEPDIR) to its actual value in the
|
---|
| 7724 | # expansion.
|
---|
| 7725 | for file in `sed -n "
|
---|
| 7726 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
---|
[44f44617] | 7727 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
---|
[3b77289] | 7728 | # Make sure the directory exists.
|
---|
| 7729 | test -f "$dirpart/$file" && continue
|
---|
| 7730 | fdir=`$as_dirname -- "$file" ||
|
---|
| 7731 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7732 | X"$file" : 'X\(//\)[^/]' \| \
|
---|
| 7733 | X"$file" : 'X\(//\)$' \| \
|
---|
| 7734 | X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7735 | $as_echo X"$file" |
|
---|
| 7736 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7737 | s//\1/
|
---|
| 7738 | q
|
---|
| 7739 | }
|
---|
| 7740 | /^X\(\/\/\)[^/].*/{
|
---|
| 7741 | s//\1/
|
---|
| 7742 | q
|
---|
| 7743 | }
|
---|
| 7744 | /^X\(\/\/\)$/{
|
---|
| 7745 | s//\1/
|
---|
| 7746 | q
|
---|
| 7747 | }
|
---|
| 7748 | /^X\(\/\).*/{
|
---|
| 7749 | s//\1/
|
---|
| 7750 | q
|
---|
| 7751 | }
|
---|
| 7752 | s/.*/./; q'`
|
---|
| 7753 | as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
---|
| 7754 | # echo "creating $dirpart/$file"
|
---|
| 7755 | echo '# dummy' > "$dirpart/$file"
|
---|
| 7756 | done
|
---|
| 7757 | done
|
---|
| 7758 | }
|
---|
| 7759 | ;;
|
---|
| 7760 |
|
---|
| 7761 | esac
|
---|
| 7762 | done # for ac_tag
|
---|
| 7763 |
|
---|
| 7764 |
|
---|
| 7765 | as_fn_exit 0
|
---|
| 7766 | _ACEOF
|
---|
| 7767 | ac_clean_files=$ac_clean_files_save
|
---|
| 7768 |
|
---|
| 7769 | test $ac_write_fail = 0 ||
|
---|
| 7770 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7771 |
|
---|
| 7772 |
|
---|
| 7773 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7774 | # config.status does its own redirection, appending to config.log.
|
---|
| 7775 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7776 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7777 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7778 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7779 | # appended to by config.status. When coming back to configure, we
|
---|
| 7780 | # need to make the FD available again.
|
---|
| 7781 | if test "$no_create" != yes; then
|
---|
| 7782 | ac_cs_success=:
|
---|
| 7783 | ac_config_status_args=
|
---|
| 7784 | test "$silent" = yes &&
|
---|
| 7785 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 7786 | exec 5>/dev/null
|
---|
| 7787 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 7788 | exec 5>>config.log
|
---|
| 7789 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7790 | # would make configure fail if this is the last instruction.
|
---|
| 7791 | $ac_cs_success || as_fn_exit 1
|
---|
| 7792 | fi
|
---|
| 7793 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
| 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
| 7795 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7796 | fi
|
---|
| 7797 |
|
---|
[7e91d4f] | 7798 |
|
---|
[9def87a] | 7799 | if test -z "$BUILD_RELEASE_TRUE"; then :
|
---|
| 7800 | if test -z "$BUILD_DEBUG_TRUE"; then :
|
---|
| 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5
|
---|
| 7802 | $as_echo "$as_me: Building libcfa for target: release & debug" >&6;}
|
---|
| 7803 | else
|
---|
| 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5
|
---|
| 7805 | $as_echo "$as_me: Building libcfa for target: release" >&6;}
|
---|
| 7806 | fi
|
---|
| 7807 | else
|
---|
[24f4671] | 7808 | if test -z "$BUILD_DEBUG_TRUE"; then :
|
---|
[9def87a] | 7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5
|
---|
| 7810 | $as_echo "$as_me: Building libcfa for target: debug" >&6;}
|
---|
[24f4671] | 7811 | else
|
---|
| 7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5
|
---|
| 7813 | $as_echo "$as_me: Running cfa without libcfa" >&6;}
|
---|
| 7814 | fi
|
---|
[9def87a] | 7815 | fi
|
---|
| 7816 |
|
---|
[5d6ce1f] | 7817 | # Final text
|
---|
| 7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5
|
---|
| 7819 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; }
|
---|