[a7de7182] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
| 3 | # Generated by GNU Autoconf 2.61 for pcc 1.0.0.RELEASE.
|
---|
| 4 | #
|
---|
| 5 | # Report bugs to <<pcc-list@ludd.ltu.se>>.
|
---|
| 6 | #
|
---|
| 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
| 9 | # This configure script is free software; the Free Software Foundation
|
---|
| 10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 11 | ## --------------------- ##
|
---|
| 12 | ## M4sh Initialization. ##
|
---|
| 13 | ## --------------------- ##
|
---|
| 14 |
|
---|
| 15 | # Be more Bourne compatible
|
---|
| 16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 18 | emulate sh
|
---|
| 19 | NULLCMD=:
|
---|
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 21 | # is contrary to our usage. Disable this feature.
|
---|
| 22 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 23 | setopt NO_GLOB_SUBST
|
---|
| 24 | else
|
---|
| 25 | case `(set -o) 2>/dev/null` in
|
---|
| 26 | *posix*) set -o posix ;;
|
---|
| 27 | esac
|
---|
| 28 |
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | # PATH needs CR
|
---|
| 35 | # Avoid depending upon Character Ranges.
|
---|
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 39 | as_cr_digits='0123456789'
|
---|
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 41 |
|
---|
| 42 | # The user is always right.
|
---|
| 43 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 44 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 45 | echo "exit 0" >>conf$$.sh
|
---|
| 46 | chmod +x conf$$.sh
|
---|
| 47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 48 | PATH_SEPARATOR=';'
|
---|
| 49 | else
|
---|
| 50 | PATH_SEPARATOR=:
|
---|
| 51 | fi
|
---|
| 52 | rm -f conf$$.sh
|
---|
| 53 | fi
|
---|
| 54 |
|
---|
| 55 | # Support unset when possible.
|
---|
| 56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 57 | as_unset=unset
|
---|
| 58 | else
|
---|
| 59 | as_unset=false
|
---|
| 60 | fi
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | # IFS
|
---|
| 64 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 65 | # there to prevent editors from complaining about space-tab.
|
---|
| 66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 67 | # splitting by setting IFS to empty value.)
|
---|
| 68 | as_nl='
|
---|
| 69 | '
|
---|
| 70 | IFS=" "" $as_nl"
|
---|
| 71 |
|
---|
| 72 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 73 | case $0 in
|
---|
| 74 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 76 | for as_dir in $PATH
|
---|
| 77 | do
|
---|
| 78 | IFS=$as_save_IFS
|
---|
| 79 | test -z "$as_dir" && as_dir=.
|
---|
| 80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 81 | done
|
---|
| 82 | IFS=$as_save_IFS
|
---|
| 83 |
|
---|
| 84 | ;;
|
---|
| 85 | esac
|
---|
| 86 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 87 | # in which case we are not to be found in the path.
|
---|
| 88 | if test "x$as_myself" = x; then
|
---|
| 89 | as_myself=$0
|
---|
| 90 | fi
|
---|
| 91 | if test ! -f "$as_myself"; then
|
---|
| 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 93 | { (exit 1); exit 1; }
|
---|
| 94 | fi
|
---|
| 95 |
|
---|
| 96 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 97 | for as_var in ENV MAIL MAILPATH
|
---|
| 98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 99 | done
|
---|
| 100 | PS1='$ '
|
---|
| 101 | PS2='> '
|
---|
| 102 | PS4='+ '
|
---|
| 103 |
|
---|
| 104 | # NLS nuisances.
|
---|
| 105 | for as_var in \
|
---|
| 106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 108 | LC_TELEPHONE LC_TIME
|
---|
| 109 | do
|
---|
| 110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 111 | eval $as_var=C; export $as_var
|
---|
| 112 | else
|
---|
| 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 114 | fi
|
---|
| 115 | done
|
---|
| 116 |
|
---|
| 117 | # Required to use basename.
|
---|
| 118 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 120 | as_expr=expr
|
---|
| 121 | else
|
---|
| 122 | as_expr=false
|
---|
| 123 | fi
|
---|
| 124 |
|
---|
| 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 126 | as_basename=basename
|
---|
| 127 | else
|
---|
| 128 | as_basename=false
|
---|
| 129 | fi
|
---|
| 130 |
|
---|
| 131 |
|
---|
| 132 | # Name of the executable.
|
---|
| 133 | as_me=`$as_basename -- "$0" ||
|
---|
| 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 135 | X"$0" : 'X\(//\)$' \| \
|
---|
| 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 137 | echo X/"$0" |
|
---|
| 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 139 | s//\1/
|
---|
| 140 | q
|
---|
| 141 | }
|
---|
| 142 | /^X\/\(\/\/\)$/{
|
---|
| 143 | s//\1/
|
---|
| 144 | q
|
---|
| 145 | }
|
---|
| 146 | /^X\/\(\/\).*/{
|
---|
| 147 | s//\1/
|
---|
| 148 | q
|
---|
| 149 | }
|
---|
| 150 | s/.*/./; q'`
|
---|
| 151 |
|
---|
| 152 | # CDPATH.
|
---|
| 153 | $as_unset CDPATH
|
---|
| 154 |
|
---|
| 155 |
|
---|
| 156 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 157 | if (eval ":") 2>/dev/null; then
|
---|
| 158 | as_have_required=yes
|
---|
| 159 | else
|
---|
| 160 | as_have_required=no
|
---|
| 161 | fi
|
---|
| 162 |
|
---|
| 163 | if test $as_have_required = yes && (eval ":
|
---|
| 164 | (as_func_return () {
|
---|
| 165 | (exit \$1)
|
---|
| 166 | }
|
---|
| 167 | as_func_success () {
|
---|
| 168 | as_func_return 0
|
---|
| 169 | }
|
---|
| 170 | as_func_failure () {
|
---|
| 171 | as_func_return 1
|
---|
| 172 | }
|
---|
| 173 | as_func_ret_success () {
|
---|
| 174 | return 0
|
---|
| 175 | }
|
---|
| 176 | as_func_ret_failure () {
|
---|
| 177 | return 1
|
---|
| 178 | }
|
---|
| 179 |
|
---|
| 180 | exitcode=0
|
---|
| 181 | if as_func_success; then
|
---|
| 182 | :
|
---|
| 183 | else
|
---|
| 184 | exitcode=1
|
---|
| 185 | echo as_func_success failed.
|
---|
| 186 | fi
|
---|
| 187 |
|
---|
| 188 | if as_func_failure; then
|
---|
| 189 | exitcode=1
|
---|
| 190 | echo as_func_failure succeeded.
|
---|
| 191 | fi
|
---|
| 192 |
|
---|
| 193 | if as_func_ret_success; then
|
---|
| 194 | :
|
---|
| 195 | else
|
---|
| 196 | exitcode=1
|
---|
| 197 | echo as_func_ret_success failed.
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | if as_func_ret_failure; then
|
---|
| 201 | exitcode=1
|
---|
| 202 | echo as_func_ret_failure succeeded.
|
---|
| 203 | fi
|
---|
| 204 |
|
---|
| 205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 206 | :
|
---|
| 207 | else
|
---|
| 208 | exitcode=1
|
---|
| 209 | echo positional parameters were not saved.
|
---|
| 210 | fi
|
---|
| 211 |
|
---|
| 212 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 213 |
|
---|
| 214 | (
|
---|
| 215 | as_lineno_1=\$LINENO
|
---|
| 216 | as_lineno_2=\$LINENO
|
---|
| 217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
---|
| 218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
---|
| 219 | ") 2> /dev/null; then
|
---|
| 220 | :
|
---|
| 221 | else
|
---|
| 222 | as_candidate_shells=
|
---|
| 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 225 | do
|
---|
| 226 | IFS=$as_save_IFS
|
---|
| 227 | test -z "$as_dir" && as_dir=.
|
---|
| 228 | case $as_dir in
|
---|
| 229 | /*)
|
---|
| 230 | for as_base in sh bash ksh sh5; do
|
---|
| 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
---|
| 232 | done;;
|
---|
| 233 | esac
|
---|
| 234 | done
|
---|
| 235 | IFS=$as_save_IFS
|
---|
| 236 |
|
---|
| 237 |
|
---|
| 238 | for as_shell in $as_candidate_shells $SHELL; do
|
---|
| 239 | # Try only shells that exist, to save several forks.
|
---|
| 240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 241 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
---|
| 242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 243 | emulate sh
|
---|
| 244 | NULLCMD=:
|
---|
| 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 246 | # is contrary to our usage. Disable this feature.
|
---|
| 247 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 248 | setopt NO_GLOB_SUBST
|
---|
| 249 | else
|
---|
| 250 | case `(set -o) 2>/dev/null` in
|
---|
| 251 | *posix*) set -o posix ;;
|
---|
| 252 | esac
|
---|
| 253 |
|
---|
| 254 | fi
|
---|
| 255 |
|
---|
| 256 |
|
---|
| 257 | :
|
---|
| 258 | _ASEOF
|
---|
| 259 | }; then
|
---|
| 260 | CONFIG_SHELL=$as_shell
|
---|
| 261 | as_have_required=yes
|
---|
| 262 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
---|
| 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 264 | emulate sh
|
---|
| 265 | NULLCMD=:
|
---|
| 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 267 | # is contrary to our usage. Disable this feature.
|
---|
| 268 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 269 | setopt NO_GLOB_SUBST
|
---|
| 270 | else
|
---|
| 271 | case `(set -o) 2>/dev/null` in
|
---|
| 272 | *posix*) set -o posix ;;
|
---|
| 273 | esac
|
---|
| 274 |
|
---|
| 275 | fi
|
---|
| 276 |
|
---|
| 277 |
|
---|
| 278 | :
|
---|
| 279 | (as_func_return () {
|
---|
| 280 | (exit $1)
|
---|
| 281 | }
|
---|
| 282 | as_func_success () {
|
---|
| 283 | as_func_return 0
|
---|
| 284 | }
|
---|
| 285 | as_func_failure () {
|
---|
| 286 | as_func_return 1
|
---|
| 287 | }
|
---|
| 288 | as_func_ret_success () {
|
---|
| 289 | return 0
|
---|
| 290 | }
|
---|
| 291 | as_func_ret_failure () {
|
---|
| 292 | return 1
|
---|
| 293 | }
|
---|
| 294 |
|
---|
| 295 | exitcode=0
|
---|
| 296 | if as_func_success; then
|
---|
| 297 | :
|
---|
| 298 | else
|
---|
| 299 | exitcode=1
|
---|
| 300 | echo as_func_success failed.
|
---|
| 301 | fi
|
---|
| 302 |
|
---|
| 303 | if as_func_failure; then
|
---|
| 304 | exitcode=1
|
---|
| 305 | echo as_func_failure succeeded.
|
---|
| 306 | fi
|
---|
| 307 |
|
---|
| 308 | if as_func_ret_success; then
|
---|
| 309 | :
|
---|
| 310 | else
|
---|
| 311 | exitcode=1
|
---|
| 312 | echo as_func_ret_success failed.
|
---|
| 313 | fi
|
---|
| 314 |
|
---|
| 315 | if as_func_ret_failure; then
|
---|
| 316 | exitcode=1
|
---|
| 317 | echo as_func_ret_failure succeeded.
|
---|
| 318 | fi
|
---|
| 319 |
|
---|
| 320 | if ( set x; as_func_ret_success y && test x = "$1" ); then
|
---|
| 321 | :
|
---|
| 322 | else
|
---|
| 323 | exitcode=1
|
---|
| 324 | echo positional parameters were not saved.
|
---|
| 325 | fi
|
---|
| 326 |
|
---|
| 327 | test $exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 328 |
|
---|
| 329 | (
|
---|
| 330 | as_lineno_1=$LINENO
|
---|
| 331 | as_lineno_2=$LINENO
|
---|
| 332 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
---|
| 334 |
|
---|
| 335 | _ASEOF
|
---|
| 336 | }; then
|
---|
| 337 | break
|
---|
| 338 | fi
|
---|
| 339 |
|
---|
| 340 | fi
|
---|
| 341 |
|
---|
| 342 | done
|
---|
| 343 |
|
---|
| 344 | if test "x$CONFIG_SHELL" != x; then
|
---|
| 345 | for as_var in BASH_ENV ENV
|
---|
| 346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 347 | done
|
---|
| 348 | export CONFIG_SHELL
|
---|
| 349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
| 350 | fi
|
---|
| 351 |
|
---|
| 352 |
|
---|
| 353 | if test $as_have_required = no; then
|
---|
| 354 | echo This script requires a shell more modern than all the
|
---|
| 355 | echo shells that I found on your system. Please install a
|
---|
| 356 | echo modern shell, or manually run the script under such a
|
---|
| 357 | echo shell if you do have one.
|
---|
| 358 | { (exit 1); exit 1; }
|
---|
| 359 | fi
|
---|
| 360 |
|
---|
| 361 |
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
| 364 | fi
|
---|
| 365 |
|
---|
| 366 |
|
---|
| 367 |
|
---|
| 368 | (eval "as_func_return () {
|
---|
| 369 | (exit \$1)
|
---|
| 370 | }
|
---|
| 371 | as_func_success () {
|
---|
| 372 | as_func_return 0
|
---|
| 373 | }
|
---|
| 374 | as_func_failure () {
|
---|
| 375 | as_func_return 1
|
---|
| 376 | }
|
---|
| 377 | as_func_ret_success () {
|
---|
| 378 | return 0
|
---|
| 379 | }
|
---|
| 380 | as_func_ret_failure () {
|
---|
| 381 | return 1
|
---|
| 382 | }
|
---|
| 383 |
|
---|
| 384 | exitcode=0
|
---|
| 385 | if as_func_success; then
|
---|
| 386 | :
|
---|
| 387 | else
|
---|
| 388 | exitcode=1
|
---|
| 389 | echo as_func_success failed.
|
---|
| 390 | fi
|
---|
| 391 |
|
---|
| 392 | if as_func_failure; then
|
---|
| 393 | exitcode=1
|
---|
| 394 | echo as_func_failure succeeded.
|
---|
| 395 | fi
|
---|
| 396 |
|
---|
| 397 | if as_func_ret_success; then
|
---|
| 398 | :
|
---|
| 399 | else
|
---|
| 400 | exitcode=1
|
---|
| 401 | echo as_func_ret_success failed.
|
---|
| 402 | fi
|
---|
| 403 |
|
---|
| 404 | if as_func_ret_failure; then
|
---|
| 405 | exitcode=1
|
---|
| 406 | echo as_func_ret_failure succeeded.
|
---|
| 407 | fi
|
---|
| 408 |
|
---|
| 409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 410 | :
|
---|
| 411 | else
|
---|
| 412 | exitcode=1
|
---|
| 413 | echo positional parameters were not saved.
|
---|
| 414 | fi
|
---|
| 415 |
|
---|
| 416 | test \$exitcode = 0") || {
|
---|
| 417 | echo No shell found that supports shell functions.
|
---|
| 418 | echo Please tell autoconf@gnu.org about your system,
|
---|
| 419 | echo including any error possibly output before this
|
---|
| 420 | echo message
|
---|
| 421 | }
|
---|
| 422 |
|
---|
| 423 |
|
---|
| 424 |
|
---|
| 425 | as_lineno_1=$LINENO
|
---|
| 426 | as_lineno_2=$LINENO
|
---|
| 427 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
| 429 |
|
---|
| 430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 431 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 432 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 433 | # does the real work. The second script uses 'N' to pair each
|
---|
| 434 | # line-number line with the line containing $LINENO, and appends
|
---|
| 435 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 436 | # case at line end.
|
---|
| 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 439 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 440 | sed -n '
|
---|
| 441 | p
|
---|
| 442 | /[$]LINENO/=
|
---|
| 443 | ' <$as_myself |
|
---|
| 444 | sed '
|
---|
| 445 | s/[$]LINENO.*/&-/
|
---|
| 446 | t lineno
|
---|
| 447 | b
|
---|
| 448 | :lineno
|
---|
| 449 | N
|
---|
| 450 | :loop
|
---|
| 451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
| 452 | t loop
|
---|
| 453 | s/-\n.*//
|
---|
| 454 | ' >$as_me.lineno &&
|
---|
| 455 | chmod +x "$as_me.lineno" ||
|
---|
| 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 457 | { (exit 1); exit 1; }; }
|
---|
| 458 |
|
---|
| 459 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 460 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 461 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 462 | . "./$as_me.lineno"
|
---|
| 463 | # Exit status is that of the last command.
|
---|
| 464 | exit
|
---|
| 465 | }
|
---|
| 466 |
|
---|
| 467 |
|
---|
| 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 469 | as_dirname=dirname
|
---|
| 470 | else
|
---|
| 471 | as_dirname=false
|
---|
| 472 | fi
|
---|
| 473 |
|
---|
| 474 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 475 | case `echo -n x` in
|
---|
| 476 | -n*)
|
---|
| 477 | case `echo 'x\c'` in
|
---|
| 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 479 | *) ECHO_C='\c';;
|
---|
| 480 | esac;;
|
---|
| 481 | *)
|
---|
| 482 | ECHO_N='-n';;
|
---|
| 483 | esac
|
---|
| 484 |
|
---|
| 485 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 487 | as_expr=expr
|
---|
| 488 | else
|
---|
| 489 | as_expr=false
|
---|
| 490 | fi
|
---|
| 491 |
|
---|
| 492 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 493 | if test -d conf$$.dir; then
|
---|
| 494 | rm -f conf$$.dir/conf$$.file
|
---|
| 495 | else
|
---|
| 496 | rm -f conf$$.dir
|
---|
| 497 | mkdir conf$$.dir
|
---|
| 498 | fi
|
---|
| 499 | echo >conf$$.file
|
---|
| 500 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 501 | as_ln_s='ln -s'
|
---|
| 502 | # ... but there are two gotchas:
|
---|
| 503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 505 | # In both cases, we have to default to `cp -p'.
|
---|
| 506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 507 | as_ln_s='cp -p'
|
---|
| 508 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 509 | as_ln_s=ln
|
---|
| 510 | else
|
---|
| 511 | as_ln_s='cp -p'
|
---|
| 512 | fi
|
---|
| 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 514 | rmdir conf$$.dir 2>/dev/null
|
---|
| 515 |
|
---|
| 516 | if mkdir -p . 2>/dev/null; then
|
---|
| 517 | as_mkdir_p=:
|
---|
| 518 | else
|
---|
| 519 | test -d ./-p && rmdir ./-p
|
---|
| 520 | as_mkdir_p=false
|
---|
| 521 | fi
|
---|
| 522 |
|
---|
| 523 | if test -x / >/dev/null 2>&1; then
|
---|
| 524 | as_test_x='test -x'
|
---|
| 525 | else
|
---|
| 526 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 527 | as_ls_L_option=L
|
---|
| 528 | else
|
---|
| 529 | as_ls_L_option=
|
---|
| 530 | fi
|
---|
| 531 | as_test_x='
|
---|
| 532 | eval sh -c '\''
|
---|
| 533 | if test -d "$1"; then
|
---|
| 534 | test -d "$1/.";
|
---|
| 535 | else
|
---|
| 536 | case $1 in
|
---|
| 537 | -*)set "./$1";;
|
---|
| 538 | esac;
|
---|
| 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 540 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 541 | '\'' sh
|
---|
| 542 | '
|
---|
| 543 | fi
|
---|
| 544 | as_executable_p=$as_test_x
|
---|
| 545 |
|
---|
| 546 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 548 |
|
---|
| 549 | # Sed expression to map a string onto a valid variable name.
|
---|
| 550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 551 |
|
---|
| 552 |
|
---|
| 553 |
|
---|
| 554 | exec 7<&0 </dev/null 6>&1
|
---|
| 555 |
|
---|
| 556 | # Name of the host.
|
---|
| 557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 558 | # so uname gets run too.
|
---|
| 559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 560 |
|
---|
| 561 | #
|
---|
| 562 | # Initializations.
|
---|
| 563 | #
|
---|
| 564 | ac_default_prefix=/usr/local
|
---|
| 565 | ac_clean_files=
|
---|
| 566 | ac_config_libobj_dir=.
|
---|
| 567 | LIBOBJS=
|
---|
| 568 | cross_compiling=no
|
---|
| 569 | subdirs=
|
---|
| 570 | MFLAGS=
|
---|
| 571 | MAKEFLAGS=
|
---|
| 572 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 573 |
|
---|
| 574 | # Identity of this package.
|
---|
| 575 | PACKAGE_NAME='pcc'
|
---|
| 576 | PACKAGE_TARNAME='pcc'
|
---|
| 577 | PACKAGE_VERSION='1.0.0.RELEASE'
|
---|
| 578 | PACKAGE_STRING='pcc 1.0.0.RELEASE'
|
---|
| 579 | PACKAGE_BUGREPORT='<pcc-list@ludd.ltu.se>'
|
---|
| 580 |
|
---|
| 581 | # Factoring default headers for most tests.
|
---|
| 582 | ac_includes_default="\
|
---|
| 583 | #include <stdio.h>
|
---|
| 584 | #ifdef HAVE_SYS_TYPES_H
|
---|
| 585 | # include <sys/types.h>
|
---|
| 586 | #endif
|
---|
| 587 | #ifdef HAVE_SYS_STAT_H
|
---|
| 588 | # include <sys/stat.h>
|
---|
| 589 | #endif
|
---|
| 590 | #ifdef STDC_HEADERS
|
---|
| 591 | # include <stdlib.h>
|
---|
| 592 | # include <stddef.h>
|
---|
| 593 | #else
|
---|
| 594 | # ifdef HAVE_STDLIB_H
|
---|
| 595 | # include <stdlib.h>
|
---|
| 596 | # endif
|
---|
| 597 | #endif
|
---|
| 598 | #ifdef HAVE_STRING_H
|
---|
| 599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
| 600 | # include <memory.h>
|
---|
| 601 | # endif
|
---|
| 602 | # include <string.h>
|
---|
| 603 | #endif
|
---|
| 604 | #ifdef HAVE_STRINGS_H
|
---|
| 605 | # include <strings.h>
|
---|
| 606 | #endif
|
---|
| 607 | #ifdef HAVE_INTTYPES_H
|
---|
| 608 | # include <inttypes.h>
|
---|
| 609 | #endif
|
---|
| 610 | #ifdef HAVE_STDINT_H
|
---|
| 611 | # include <stdint.h>
|
---|
| 612 | #endif
|
---|
| 613 | #ifdef HAVE_UNISTD_H
|
---|
| 614 | # include <unistd.h>
|
---|
| 615 | #endif"
|
---|
| 616 |
|
---|
| 617 | ac_subst_vars='SHELL
|
---|
| 618 | PATH_SEPARATOR
|
---|
| 619 | PACKAGE_NAME
|
---|
| 620 | PACKAGE_TARNAME
|
---|
| 621 | PACKAGE_VERSION
|
---|
| 622 | PACKAGE_STRING
|
---|
| 623 | PACKAGE_BUGREPORT
|
---|
| 624 | exec_prefix
|
---|
| 625 | prefix
|
---|
| 626 | program_transform_name
|
---|
| 627 | bindir
|
---|
| 628 | sbindir
|
---|
| 629 | libexecdir
|
---|
| 630 | datarootdir
|
---|
| 631 | datadir
|
---|
| 632 | sysconfdir
|
---|
| 633 | sharedstatedir
|
---|
| 634 | localstatedir
|
---|
| 635 | includedir
|
---|
| 636 | oldincludedir
|
---|
| 637 | docdir
|
---|
| 638 | infodir
|
---|
| 639 | htmldir
|
---|
| 640 | dvidir
|
---|
| 641 | pdfdir
|
---|
| 642 | psdir
|
---|
| 643 | libdir
|
---|
| 644 | localedir
|
---|
| 645 | mandir
|
---|
| 646 | DEFS
|
---|
| 647 | ECHO_C
|
---|
| 648 | ECHO_N
|
---|
| 649 | ECHO_T
|
---|
| 650 | LIBS
|
---|
| 651 | build_alias
|
---|
| 652 | host_alias
|
---|
| 653 | target_alias
|
---|
| 654 | build
|
---|
| 655 | build_cpu
|
---|
| 656 | build_vendor
|
---|
| 657 | build_os
|
---|
| 658 | host
|
---|
| 659 | host_cpu
|
---|
| 660 | host_vendor
|
---|
| 661 | host_os
|
---|
| 662 | target
|
---|
| 663 | target_cpu
|
---|
| 664 | target_vendor
|
---|
| 665 | target_os
|
---|
| 666 | BINPREFIX
|
---|
| 667 | CC
|
---|
| 668 | CFLAGS
|
---|
| 669 | LDFLAGS
|
---|
| 670 | CPPFLAGS
|
---|
| 671 | ac_ct_CC
|
---|
| 672 | EXEEXT
|
---|
| 673 | OBJEXT
|
---|
| 674 | CC_FOR_BUILD
|
---|
| 675 | CPP
|
---|
| 676 | GREP
|
---|
| 677 | EGREP
|
---|
| 678 | SET_MAKE
|
---|
| 679 | INSTALL_PROGRAM
|
---|
| 680 | INSTALL_SCRIPT
|
---|
| 681 | INSTALL_DATA
|
---|
| 682 | YACC
|
---|
| 683 | YFLAGS
|
---|
| 684 | strip
|
---|
| 685 | LEX
|
---|
| 686 | LEX_OUTPUT_ROOT
|
---|
| 687 | LEXLIB
|
---|
| 688 | targos
|
---|
| 689 | targosver
|
---|
| 690 | targmach
|
---|
| 691 | ADD_CFLAGS
|
---|
| 692 | ADD_CPPFLAGS
|
---|
| 693 | LIBOBJS
|
---|
| 694 | LTLIBOBJS'
|
---|
| 695 | ac_subst_files=''
|
---|
| 696 | ac_precious_vars='build_alias
|
---|
| 697 | host_alias
|
---|
| 698 | target_alias
|
---|
| 699 | CC
|
---|
| 700 | CFLAGS
|
---|
| 701 | LDFLAGS
|
---|
| 702 | LIBS
|
---|
| 703 | CPPFLAGS
|
---|
| 704 | CPP
|
---|
| 705 | YACC
|
---|
| 706 | YFLAGS'
|
---|
| 707 |
|
---|
| 708 |
|
---|
| 709 | # Initialize some variables set by options.
|
---|
| 710 | ac_init_help=
|
---|
| 711 | ac_init_version=false
|
---|
| 712 | # The variables have the same names as the options, with
|
---|
| 713 | # dashes changed to underlines.
|
---|
| 714 | cache_file=/dev/null
|
---|
| 715 | exec_prefix=NONE
|
---|
| 716 | no_create=
|
---|
| 717 | no_recursion=
|
---|
| 718 | prefix=NONE
|
---|
| 719 | program_prefix=NONE
|
---|
| 720 | program_suffix=NONE
|
---|
| 721 | program_transform_name=s,x,x,
|
---|
| 722 | silent=
|
---|
| 723 | site=
|
---|
| 724 | srcdir=
|
---|
| 725 | verbose=
|
---|
| 726 | x_includes=NONE
|
---|
| 727 | x_libraries=NONE
|
---|
| 728 |
|
---|
| 729 | # Installation directory options.
|
---|
| 730 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 731 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 732 | # by default will actually change.
|
---|
| 733 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 734 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
| 735 | bindir='${exec_prefix}/bin'
|
---|
| 736 | sbindir='${exec_prefix}/sbin'
|
---|
| 737 | libexecdir='${exec_prefix}/libexec'
|
---|
| 738 | datarootdir='${prefix}/share'
|
---|
| 739 | datadir='${datarootdir}'
|
---|
| 740 | sysconfdir='${prefix}/etc'
|
---|
| 741 | sharedstatedir='${prefix}/com'
|
---|
| 742 | localstatedir='${prefix}/var'
|
---|
| 743 | includedir='${prefix}/include'
|
---|
| 744 | oldincludedir='/usr/include'
|
---|
| 745 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
| 746 | infodir='${datarootdir}/info'
|
---|
| 747 | htmldir='${docdir}'
|
---|
| 748 | dvidir='${docdir}'
|
---|
| 749 | pdfdir='${docdir}'
|
---|
| 750 | psdir='${docdir}'
|
---|
| 751 | libdir='${exec_prefix}/lib'
|
---|
| 752 | localedir='${datarootdir}/locale'
|
---|
| 753 | mandir='${datarootdir}/man'
|
---|
| 754 |
|
---|
| 755 | ac_prev=
|
---|
| 756 | ac_dashdash=
|
---|
| 757 | for ac_option
|
---|
| 758 | do
|
---|
| 759 | # If the previous option needs an argument, assign it.
|
---|
| 760 | if test -n "$ac_prev"; then
|
---|
| 761 | eval $ac_prev=\$ac_option
|
---|
| 762 | ac_prev=
|
---|
| 763 | continue
|
---|
| 764 | fi
|
---|
| 765 |
|
---|
| 766 | case $ac_option in
|
---|
| 767 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 768 | *) ac_optarg=yes ;;
|
---|
| 769 | esac
|
---|
| 770 |
|
---|
| 771 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 772 |
|
---|
| 773 | case $ac_dashdash$ac_option in
|
---|
| 774 | --)
|
---|
| 775 | ac_dashdash=yes ;;
|
---|
| 776 |
|
---|
| 777 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 778 | ac_prev=bindir ;;
|
---|
| 779 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 780 | bindir=$ac_optarg ;;
|
---|
| 781 |
|
---|
| 782 | -build | --build | --buil | --bui | --bu)
|
---|
| 783 | ac_prev=build_alias ;;
|
---|
| 784 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 785 | build_alias=$ac_optarg ;;
|
---|
| 786 |
|
---|
| 787 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 788 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 789 | ac_prev=cache_file ;;
|
---|
| 790 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 791 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 792 | cache_file=$ac_optarg ;;
|
---|
| 793 |
|
---|
| 794 | --config-cache | -C)
|
---|
| 795 | cache_file=config.cache ;;
|
---|
| 796 |
|
---|
| 797 | -datadir | --datadir | --datadi | --datad)
|
---|
| 798 | ac_prev=datadir ;;
|
---|
| 799 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
| 800 | datadir=$ac_optarg ;;
|
---|
| 801 |
|
---|
| 802 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 803 | | --dataroo | --dataro | --datar)
|
---|
| 804 | ac_prev=datarootdir ;;
|
---|
| 805 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 806 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 807 | datarootdir=$ac_optarg ;;
|
---|
| 808 |
|
---|
| 809 | -disable-* | --disable-*)
|
---|
| 810 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 811 | # Reject names that are not valid shell variable names.
|
---|
| 812 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 813 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 814 | { (exit 1); exit 1; }; }
|
---|
| 815 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 816 | eval enable_$ac_feature=no ;;
|
---|
| 817 |
|
---|
| 818 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 819 | ac_prev=docdir ;;
|
---|
| 820 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 821 | docdir=$ac_optarg ;;
|
---|
| 822 |
|
---|
| 823 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 824 | ac_prev=dvidir ;;
|
---|
| 825 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 826 | dvidir=$ac_optarg ;;
|
---|
| 827 |
|
---|
| 828 | -enable-* | --enable-*)
|
---|
| 829 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 830 | # Reject names that are not valid shell variable names.
|
---|
| 831 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 832 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 833 | { (exit 1); exit 1; }; }
|
---|
| 834 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 835 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
| 836 |
|
---|
| 837 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 838 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 839 | | --exec | --exe | --ex)
|
---|
| 840 | ac_prev=exec_prefix ;;
|
---|
| 841 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 842 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 843 | | --exec=* | --exe=* | --ex=*)
|
---|
| 844 | exec_prefix=$ac_optarg ;;
|
---|
| 845 |
|
---|
| 846 | -gas | --gas | --ga | --g)
|
---|
| 847 | # Obsolete; use --with-gas.
|
---|
| 848 | with_gas=yes ;;
|
---|
| 849 |
|
---|
| 850 | -help | --help | --hel | --he | -h)
|
---|
| 851 | ac_init_help=long ;;
|
---|
| 852 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 853 | ac_init_help=recursive ;;
|
---|
| 854 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 855 | ac_init_help=short ;;
|
---|
| 856 |
|
---|
| 857 | -host | --host | --hos | --ho)
|
---|
| 858 | ac_prev=host_alias ;;
|
---|
| 859 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 860 | host_alias=$ac_optarg ;;
|
---|
| 861 |
|
---|
| 862 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 863 | ac_prev=htmldir ;;
|
---|
| 864 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 865 | | --ht=*)
|
---|
| 866 | htmldir=$ac_optarg ;;
|
---|
| 867 |
|
---|
| 868 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 869 | | --includ | --inclu | --incl | --inc)
|
---|
| 870 | ac_prev=includedir ;;
|
---|
| 871 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 872 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 873 | includedir=$ac_optarg ;;
|
---|
| 874 |
|
---|
| 875 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 876 | ac_prev=infodir ;;
|
---|
| 877 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 878 | infodir=$ac_optarg ;;
|
---|
| 879 |
|
---|
| 880 | -libdir | --libdir | --libdi | --libd)
|
---|
| 881 | ac_prev=libdir ;;
|
---|
| 882 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 883 | libdir=$ac_optarg ;;
|
---|
| 884 |
|
---|
| 885 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 886 | | --libexe | --libex | --libe)
|
---|
| 887 | ac_prev=libexecdir ;;
|
---|
| 888 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 889 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 890 | libexecdir=$ac_optarg ;;
|
---|
| 891 |
|
---|
| 892 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 893 | ac_prev=localedir ;;
|
---|
| 894 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 895 | localedir=$ac_optarg ;;
|
---|
| 896 |
|
---|
| 897 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 898 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
| 899 | ac_prev=localstatedir ;;
|
---|
| 900 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 901 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
| 902 | localstatedir=$ac_optarg ;;
|
---|
| 903 |
|
---|
| 904 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 905 | ac_prev=mandir ;;
|
---|
| 906 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 907 | mandir=$ac_optarg ;;
|
---|
| 908 |
|
---|
| 909 | -nfp | --nfp | --nf)
|
---|
| 910 | # Obsolete; use --without-fp.
|
---|
| 911 | with_fp=no ;;
|
---|
| 912 |
|
---|
| 913 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 914 | | --no-cr | --no-c | -n)
|
---|
| 915 | no_create=yes ;;
|
---|
| 916 |
|
---|
| 917 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 918 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 919 | no_recursion=yes ;;
|
---|
| 920 |
|
---|
| 921 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 922 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 923 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 924 | ac_prev=oldincludedir ;;
|
---|
| 925 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 926 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 927 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 928 | oldincludedir=$ac_optarg ;;
|
---|
| 929 |
|
---|
| 930 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 931 | ac_prev=prefix ;;
|
---|
| 932 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 933 | prefix=$ac_optarg ;;
|
---|
| 934 |
|
---|
| 935 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 936 | | --program-pre | --program-pr | --program-p)
|
---|
| 937 | ac_prev=program_prefix ;;
|
---|
| 938 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 939 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 940 | program_prefix=$ac_optarg ;;
|
---|
| 941 |
|
---|
| 942 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 943 | | --program-suf | --program-su | --program-s)
|
---|
| 944 | ac_prev=program_suffix ;;
|
---|
| 945 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 946 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 947 | program_suffix=$ac_optarg ;;
|
---|
| 948 |
|
---|
| 949 | -program-transform-name | --program-transform-name \
|
---|
| 950 | | --program-transform-nam | --program-transform-na \
|
---|
| 951 | | --program-transform-n | --program-transform- \
|
---|
| 952 | | --program-transform | --program-transfor \
|
---|
| 953 | | --program-transfo | --program-transf \
|
---|
| 954 | | --program-trans | --program-tran \
|
---|
| 955 | | --progr-tra | --program-tr | --program-t)
|
---|
| 956 | ac_prev=program_transform_name ;;
|
---|
| 957 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 958 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 959 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 960 | | --program-transform=* | --program-transfor=* \
|
---|
| 961 | | --program-transfo=* | --program-transf=* \
|
---|
| 962 | | --program-trans=* | --program-tran=* \
|
---|
| 963 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 964 | program_transform_name=$ac_optarg ;;
|
---|
| 965 |
|
---|
| 966 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 967 | ac_prev=pdfdir ;;
|
---|
| 968 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 969 | pdfdir=$ac_optarg ;;
|
---|
| 970 |
|
---|
| 971 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 972 | ac_prev=psdir ;;
|
---|
| 973 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 974 | psdir=$ac_optarg ;;
|
---|
| 975 |
|
---|
| 976 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 977 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 978 | silent=yes ;;
|
---|
| 979 |
|
---|
| 980 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 981 | ac_prev=sbindir ;;
|
---|
| 982 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 983 | | --sbi=* | --sb=*)
|
---|
| 984 | sbindir=$ac_optarg ;;
|
---|
| 985 |
|
---|
| 986 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 987 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 988 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 989 | | --sha | --sh)
|
---|
| 990 | ac_prev=sharedstatedir ;;
|
---|
| 991 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 992 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 993 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 994 | | --sha=* | --sh=*)
|
---|
| 995 | sharedstatedir=$ac_optarg ;;
|
---|
| 996 |
|
---|
| 997 | -site | --site | --sit)
|
---|
| 998 | ac_prev=site ;;
|
---|
| 999 | -site=* | --site=* | --sit=*)
|
---|
| 1000 | site=$ac_optarg ;;
|
---|
| 1001 |
|
---|
| 1002 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1003 | ac_prev=srcdir ;;
|
---|
| 1004 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 1005 | srcdir=$ac_optarg ;;
|
---|
| 1006 |
|
---|
| 1007 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1008 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1009 | ac_prev=sysconfdir ;;
|
---|
| 1010 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1011 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 1012 | sysconfdir=$ac_optarg ;;
|
---|
| 1013 |
|
---|
| 1014 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 1015 | ac_prev=target_alias ;;
|
---|
| 1016 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 1017 | target_alias=$ac_optarg ;;
|
---|
| 1018 |
|
---|
| 1019 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1020 | verbose=yes ;;
|
---|
| 1021 |
|
---|
| 1022 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1023 | ac_init_version=: ;;
|
---|
| 1024 |
|
---|
| 1025 | -with-* | --with-*)
|
---|
| 1026 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 1027 | # Reject names that are not valid shell variable names.
|
---|
| 1028 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1029 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 1030 | { (exit 1); exit 1; }; }
|
---|
| 1031 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1032 | eval with_$ac_package=\$ac_optarg ;;
|
---|
| 1033 |
|
---|
| 1034 | -without-* | --without-*)
|
---|
| 1035 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 1036 | # Reject names that are not valid shell variable names.
|
---|
| 1037 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1038 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 1039 | { (exit 1); exit 1; }; }
|
---|
| 1040 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1041 | eval with_$ac_package=no ;;
|
---|
| 1042 |
|
---|
| 1043 | --x)
|
---|
| 1044 | # Obsolete; use --with-x.
|
---|
| 1045 | with_x=yes ;;
|
---|
| 1046 |
|
---|
| 1047 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1048 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1049 | ac_prev=x_includes ;;
|
---|
| 1050 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1051 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 1052 | x_includes=$ac_optarg ;;
|
---|
| 1053 |
|
---|
| 1054 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1055 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1056 | ac_prev=x_libraries ;;
|
---|
| 1057 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1058 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 1059 | x_libraries=$ac_optarg ;;
|
---|
| 1060 |
|
---|
| 1061 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 1062 | Try \`$0 --help' for more information." >&2
|
---|
| 1063 | { (exit 1); exit 1; }; }
|
---|
| 1064 | ;;
|
---|
| 1065 |
|
---|
| 1066 | *=*)
|
---|
| 1067 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1068 | # Reject names that are not valid shell variable names.
|
---|
| 1069 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 1070 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 1071 | { (exit 1); exit 1; }; }
|
---|
| 1072 | eval $ac_envvar=\$ac_optarg
|
---|
| 1073 | export $ac_envvar ;;
|
---|
| 1074 |
|
---|
| 1075 | *)
|
---|
| 1076 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 1077 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 1078 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1079 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 1080 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 1081 | ;;
|
---|
| 1082 |
|
---|
| 1083 | esac
|
---|
| 1084 | done
|
---|
| 1085 |
|
---|
| 1086 | if test -n "$ac_prev"; then
|
---|
| 1087 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 1088 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 1089 | { (exit 1); exit 1; }; }
|
---|
| 1090 | fi
|
---|
| 1091 |
|
---|
| 1092 | # Be sure to have absolute directory names.
|
---|
| 1093 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1094 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1095 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1096 | libdir localedir mandir
|
---|
| 1097 | do
|
---|
| 1098 | eval ac_val=\$$ac_var
|
---|
| 1099 | case $ac_val in
|
---|
| 1100 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1101 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1102 | esac
|
---|
| 1103 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 1104 | { (exit 1); exit 1; }; }
|
---|
| 1105 | done
|
---|
| 1106 |
|
---|
| 1107 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1108 | # used to hold the argument of --host etc.
|
---|
| 1109 | # FIXME: To remove some day.
|
---|
| 1110 | build=$build_alias
|
---|
| 1111 | host=$host_alias
|
---|
| 1112 | target=$target_alias
|
---|
| 1113 |
|
---|
| 1114 | # FIXME: To remove some day.
|
---|
| 1115 | if test "x$host_alias" != x; then
|
---|
| 1116 | if test "x$build_alias" = x; then
|
---|
| 1117 | cross_compiling=maybe
|
---|
| 1118 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 1119 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 1120 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1121 | cross_compiling=yes
|
---|
| 1122 | fi
|
---|
| 1123 | fi
|
---|
| 1124 |
|
---|
| 1125 | ac_tool_prefix=
|
---|
| 1126 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 1127 |
|
---|
| 1128 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1129 |
|
---|
| 1130 |
|
---|
| 1131 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1132 | ac_ls_di=`ls -di .` &&
|
---|
| 1133 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
| 1134 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
| 1135 | { (exit 1); exit 1; }; }
|
---|
| 1136 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
| 1137 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
| 1138 | { (exit 1); exit 1; }; }
|
---|
| 1139 |
|
---|
| 1140 |
|
---|
| 1141 | # Find the source files, if location was not specified.
|
---|
| 1142 | if test -z "$srcdir"; then
|
---|
| 1143 | ac_srcdir_defaulted=yes
|
---|
| 1144 | # Try the directory containing this script, then the parent directory.
|
---|
| 1145 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
| 1146 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1147 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 1148 | X"$0" : 'X\(//\)$' \| \
|
---|
| 1149 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1150 | echo X"$0" |
|
---|
| 1151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1152 | s//\1/
|
---|
| 1153 | q
|
---|
| 1154 | }
|
---|
| 1155 | /^X\(\/\/\)[^/].*/{
|
---|
| 1156 | s//\1/
|
---|
| 1157 | q
|
---|
| 1158 | }
|
---|
| 1159 | /^X\(\/\/\)$/{
|
---|
| 1160 | s//\1/
|
---|
| 1161 | q
|
---|
| 1162 | }
|
---|
| 1163 | /^X\(\/\).*/{
|
---|
| 1164 | s//\1/
|
---|
| 1165 | q
|
---|
| 1166 | }
|
---|
| 1167 | s/.*/./; q'`
|
---|
| 1168 | srcdir=$ac_confdir
|
---|
| 1169 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1170 | srcdir=..
|
---|
| 1171 | fi
|
---|
| 1172 | else
|
---|
| 1173 | ac_srcdir_defaulted=no
|
---|
| 1174 | fi
|
---|
| 1175 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1176 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
| 1177 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 1178 | { (exit 1); exit 1; }; }
|
---|
| 1179 | fi
|
---|
| 1180 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1181 | ac_abs_confdir=`(
|
---|
| 1182 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
| 1183 | { (exit 1); exit 1; }; }
|
---|
| 1184 | pwd)`
|
---|
| 1185 | # When building in place, set srcdir=.
|
---|
| 1186 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1187 | srcdir=.
|
---|
| 1188 | fi
|
---|
| 1189 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1190 | # Double slashes in file names in object file debugging info
|
---|
| 1191 | # mess up M-x gdb in Emacs.
|
---|
| 1192 | case $srcdir in
|
---|
| 1193 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1194 | esac
|
---|
| 1195 | for ac_var in $ac_precious_vars; do
|
---|
| 1196 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1197 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1198 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1199 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1200 | done
|
---|
| 1201 |
|
---|
| 1202 | #
|
---|
| 1203 | # Report the --help message.
|
---|
| 1204 | #
|
---|
| 1205 | if test "$ac_init_help" = "long"; then
|
---|
| 1206 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1207 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1208 | cat <<_ACEOF
|
---|
| 1209 | \`configure' configures pcc 1.0.0.RELEASE to adapt to many kinds of systems.
|
---|
| 1210 |
|
---|
| 1211 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1212 |
|
---|
| 1213 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1214 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1215 |
|
---|
| 1216 | Defaults for the options are specified in brackets.
|
---|
| 1217 |
|
---|
| 1218 | Configuration:
|
---|
| 1219 | -h, --help display this help and exit
|
---|
| 1220 | --help=short display options specific to this package
|
---|
| 1221 | --help=recursive display the short help of all the included packages
|
---|
| 1222 | -V, --version display version information and exit
|
---|
| 1223 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 1224 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1225 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1226 | -n, --no-create do not create output files
|
---|
| 1227 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1228 |
|
---|
| 1229 | Installation directories:
|
---|
| 1230 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 1231 | [$ac_default_prefix]
|
---|
| 1232 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 1233 | [PREFIX]
|
---|
| 1234 |
|
---|
| 1235 | By default, \`make install' will install all the files in
|
---|
| 1236 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1237 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1238 | for instance \`--prefix=\$HOME'.
|
---|
| 1239 |
|
---|
| 1240 | For better control, use the options below.
|
---|
| 1241 |
|
---|
| 1242 | Fine tuning of the installation directories:
|
---|
| 1243 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1244 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1245 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1246 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1247 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1248 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1249 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1250 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1251 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1252 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1253 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1254 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1255 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1256 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1257 | --docdir=DIR documentation root [DATAROOTDIR/doc/pcc]
|
---|
| 1258 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1259 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1260 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1261 | --psdir=DIR ps documentation [DOCDIR]
|
---|
| 1262 | _ACEOF
|
---|
| 1263 |
|
---|
| 1264 | cat <<\_ACEOF
|
---|
| 1265 |
|
---|
| 1266 | System types:
|
---|
| 1267 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1268 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1269 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 1270 | _ACEOF
|
---|
| 1271 | fi
|
---|
| 1272 |
|
---|
| 1273 | if test -n "$ac_init_help"; then
|
---|
| 1274 | case $ac_init_help in
|
---|
| 1275 | short | recursive ) echo "Configuration of pcc 1.0.0.RELEASE:";;
|
---|
| 1276 | esac
|
---|
| 1277 | cat <<\_ACEOF
|
---|
| 1278 |
|
---|
| 1279 | Optional Features:
|
---|
| 1280 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1281 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1282 | --enable-tls Enable Thread-local storage (TLS).
|
---|
| 1283 | --disable-gcc-compat Disable GCC compatibility
|
---|
| 1284 |
|
---|
| 1285 | Optional Packages:
|
---|
| 1286 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1287 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1288 | --with-incdir=<path> Specify the default include path.
|
---|
| 1289 | --with-libdir=<path> Specify the default library path.
|
---|
| 1290 | --with-assembler=<path> Specify alternate assember.
|
---|
| 1291 | --with-linker=<path> Specify alternate linker.
|
---|
| 1292 |
|
---|
| 1293 | Some influential environment variables:
|
---|
| 1294 | CC C compiler command
|
---|
| 1295 | CFLAGS C compiler flags
|
---|
| 1296 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1297 | nonstandard directory <lib dir>
|
---|
| 1298 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1299 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
| 1300 | you have headers in a nonstandard directory <include dir>
|
---|
| 1301 | CPP C preprocessor
|
---|
| 1302 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1303 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1304 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1305 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1306 | default value of `-d' given by some make applications.
|
---|
| 1307 |
|
---|
| 1308 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1309 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1310 |
|
---|
| 1311 | Report bugs to <<pcc-list@ludd.ltu.se>>.
|
---|
| 1312 | _ACEOF
|
---|
| 1313 | ac_status=$?
|
---|
| 1314 | fi
|
---|
| 1315 |
|
---|
| 1316 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1317 | # If there are subdirs, report their specific --help.
|
---|
| 1318 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 1319 | test -d "$ac_dir" || continue
|
---|
| 1320 | ac_builddir=.
|
---|
| 1321 |
|
---|
| 1322 | case "$ac_dir" in
|
---|
| 1323 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1324 | *)
|
---|
| 1325 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 1326 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1327 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
| 1328 | case $ac_top_builddir_sub in
|
---|
| 1329 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1330 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1331 | esac ;;
|
---|
| 1332 | esac
|
---|
| 1333 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1334 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1335 | # for backward compatibility:
|
---|
| 1336 | ac_top_builddir=$ac_top_build_prefix
|
---|
| 1337 |
|
---|
| 1338 | case $srcdir in
|
---|
| 1339 | .) # We are building in place.
|
---|
| 1340 | ac_srcdir=.
|
---|
| 1341 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1342 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1343 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
| 1344 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 1345 | ac_top_srcdir=$srcdir
|
---|
| 1346 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1347 | *) # Relative name.
|
---|
| 1348 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1349 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1350 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
| 1351 | esac
|
---|
| 1352 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
| 1353 |
|
---|
| 1354 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1355 | # Check for guested configure.
|
---|
| 1356 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1357 | echo &&
|
---|
| 1358 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1359 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1360 | echo &&
|
---|
| 1361 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
| 1362 | else
|
---|
| 1363 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1364 | fi || ac_status=$?
|
---|
| 1365 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
| 1366 | done
|
---|
| 1367 | fi
|
---|
| 1368 |
|
---|
| 1369 | test -n "$ac_init_help" && exit $ac_status
|
---|
| 1370 | if $ac_init_version; then
|
---|
| 1371 | cat <<\_ACEOF
|
---|
| 1372 | pcc configure 1.0.0.RELEASE
|
---|
| 1373 | generated by GNU Autoconf 2.61
|
---|
| 1374 |
|
---|
| 1375 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
| 1376 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
| 1377 | This configure script is free software; the Free Software Foundation
|
---|
| 1378 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1379 | _ACEOF
|
---|
| 1380 | exit
|
---|
| 1381 | fi
|
---|
| 1382 | cat >config.log <<_ACEOF
|
---|
| 1383 | This file contains any messages produced by compilers while
|
---|
| 1384 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1385 |
|
---|
| 1386 | It was created by pcc $as_me 1.0.0.RELEASE, which was
|
---|
| 1387 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
| 1388 |
|
---|
| 1389 | $ $0 $@
|
---|
| 1390 |
|
---|
| 1391 | _ACEOF
|
---|
| 1392 | exec 5>>config.log
|
---|
| 1393 | {
|
---|
| 1394 | cat <<_ASUNAME
|
---|
| 1395 | ## --------- ##
|
---|
| 1396 | ## Platform. ##
|
---|
| 1397 | ## --------- ##
|
---|
| 1398 |
|
---|
| 1399 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1400 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1401 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1402 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1403 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1404 |
|
---|
| 1405 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1406 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1407 |
|
---|
| 1408 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1409 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1410 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1411 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1412 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1413 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1414 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1415 |
|
---|
| 1416 | _ASUNAME
|
---|
| 1417 |
|
---|
| 1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1419 | for as_dir in $PATH
|
---|
| 1420 | do
|
---|
| 1421 | IFS=$as_save_IFS
|
---|
| 1422 | test -z "$as_dir" && as_dir=.
|
---|
| 1423 | echo "PATH: $as_dir"
|
---|
| 1424 | done
|
---|
| 1425 | IFS=$as_save_IFS
|
---|
| 1426 |
|
---|
| 1427 | } >&5
|
---|
| 1428 |
|
---|
| 1429 | cat >&5 <<_ACEOF
|
---|
| 1430 |
|
---|
| 1431 |
|
---|
| 1432 | ## ----------- ##
|
---|
| 1433 | ## Core tests. ##
|
---|
| 1434 | ## ----------- ##
|
---|
| 1435 |
|
---|
| 1436 | _ACEOF
|
---|
| 1437 |
|
---|
| 1438 |
|
---|
| 1439 | # Keep a trace of the command line.
|
---|
| 1440 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1441 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1442 | # Also quote any args containing shell meta-characters.
|
---|
| 1443 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1444 | ac_configure_args=
|
---|
| 1445 | ac_configure_args0=
|
---|
| 1446 | ac_configure_args1=
|
---|
| 1447 | ac_must_keep_next=false
|
---|
| 1448 | for ac_pass in 1 2
|
---|
| 1449 | do
|
---|
| 1450 | for ac_arg
|
---|
| 1451 | do
|
---|
| 1452 | case $ac_arg in
|
---|
| 1453 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1455 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1456 | continue ;;
|
---|
| 1457 | *\'*)
|
---|
| 1458 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1459 | esac
|
---|
| 1460 | case $ac_pass in
|
---|
| 1461 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1462 | 2)
|
---|
| 1463 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1464 | if test $ac_must_keep_next = true; then
|
---|
| 1465 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1466 | else
|
---|
| 1467 | case $ac_arg in
|
---|
| 1468 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1469 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1470 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1471 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1472 | case "$ac_configure_args0 " in
|
---|
| 1473 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1474 | esac
|
---|
| 1475 | ;;
|
---|
| 1476 | -* ) ac_must_keep_next=true ;;
|
---|
| 1477 | esac
|
---|
| 1478 | fi
|
---|
| 1479 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
| 1480 | ;;
|
---|
| 1481 | esac
|
---|
| 1482 | done
|
---|
| 1483 | done
|
---|
| 1484 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1485 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1486 |
|
---|
| 1487 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1488 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1489 | # would cause problems or look ugly.
|
---|
| 1490 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 1491 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
| 1492 | trap 'exit_status=$?
|
---|
| 1493 | # Save into config.log some information that might help in debugging.
|
---|
| 1494 | {
|
---|
| 1495 | echo
|
---|
| 1496 |
|
---|
| 1497 | cat <<\_ASBOX
|
---|
| 1498 | ## ---------------- ##
|
---|
| 1499 | ## Cache variables. ##
|
---|
| 1500 | ## ---------------- ##
|
---|
| 1501 | _ASBOX
|
---|
| 1502 | echo
|
---|
| 1503 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1504 | (
|
---|
| 1505 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 1506 | eval ac_val=\$$ac_var
|
---|
| 1507 | case $ac_val in #(
|
---|
| 1508 | *${as_nl}*)
|
---|
| 1509 | case $ac_var in #(
|
---|
| 1510 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 1511 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
| 1512 | esac
|
---|
| 1513 | case $ac_var in #(
|
---|
| 1514 | _ | IFS | as_nl) ;; #(
|
---|
| 1515 | *) $as_unset $ac_var ;;
|
---|
| 1516 | esac ;;
|
---|
| 1517 | esac
|
---|
| 1518 | done
|
---|
| 1519 | (set) 2>&1 |
|
---|
| 1520 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 1521 | *${as_nl}ac_space=\ *)
|
---|
| 1522 | sed -n \
|
---|
| 1523 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 1524 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 1525 | ;; #(
|
---|
| 1526 | *)
|
---|
| 1527 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
| 1528 | ;;
|
---|
| 1529 | esac |
|
---|
| 1530 | sort
|
---|
| 1531 | )
|
---|
| 1532 | echo
|
---|
| 1533 |
|
---|
| 1534 | cat <<\_ASBOX
|
---|
| 1535 | ## ----------------- ##
|
---|
| 1536 | ## Output variables. ##
|
---|
| 1537 | ## ----------------- ##
|
---|
| 1538 | _ASBOX
|
---|
| 1539 | echo
|
---|
| 1540 | for ac_var in $ac_subst_vars
|
---|
| 1541 | do
|
---|
| 1542 | eval ac_val=\$$ac_var
|
---|
| 1543 | case $ac_val in
|
---|
| 1544 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 1545 | esac
|
---|
| 1546 | echo "$ac_var='\''$ac_val'\''"
|
---|
| 1547 | done | sort
|
---|
| 1548 | echo
|
---|
| 1549 |
|
---|
| 1550 | if test -n "$ac_subst_files"; then
|
---|
| 1551 | cat <<\_ASBOX
|
---|
| 1552 | ## ------------------- ##
|
---|
| 1553 | ## File substitutions. ##
|
---|
| 1554 | ## ------------------- ##
|
---|
| 1555 | _ASBOX
|
---|
| 1556 | echo
|
---|
| 1557 | for ac_var in $ac_subst_files
|
---|
| 1558 | do
|
---|
| 1559 | eval ac_val=\$$ac_var
|
---|
| 1560 | case $ac_val in
|
---|
| 1561 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 1562 | esac
|
---|
| 1563 | echo "$ac_var='\''$ac_val'\''"
|
---|
| 1564 | done | sort
|
---|
| 1565 | echo
|
---|
| 1566 | fi
|
---|
| 1567 |
|
---|
| 1568 | if test -s confdefs.h; then
|
---|
| 1569 | cat <<\_ASBOX
|
---|
| 1570 | ## ----------- ##
|
---|
| 1571 | ## confdefs.h. ##
|
---|
| 1572 | ## ----------- ##
|
---|
| 1573 | _ASBOX
|
---|
| 1574 | echo
|
---|
| 1575 | cat confdefs.h
|
---|
| 1576 | echo
|
---|
| 1577 | fi
|
---|
| 1578 | test "$ac_signal" != 0 &&
|
---|
| 1579 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1580 | echo "$as_me: exit $exit_status"
|
---|
| 1581 | } >&5
|
---|
| 1582 | rm -f core *.core core.conftest.* &&
|
---|
| 1583 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1584 | exit $exit_status
|
---|
| 1585 | ' 0
|
---|
| 1586 | for ac_signal in 1 2 13 15; do
|
---|
| 1587 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1588 | done
|
---|
| 1589 | ac_signal=0
|
---|
| 1590 |
|
---|
| 1591 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1592 | rm -f -r conftest* confdefs.h
|
---|
| 1593 |
|
---|
| 1594 | # Predefined preprocessor variables.
|
---|
| 1595 |
|
---|
| 1596 | cat >>confdefs.h <<_ACEOF
|
---|
| 1597 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1598 | _ACEOF
|
---|
| 1599 |
|
---|
| 1600 |
|
---|
| 1601 | cat >>confdefs.h <<_ACEOF
|
---|
| 1602 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1603 | _ACEOF
|
---|
| 1604 |
|
---|
| 1605 |
|
---|
| 1606 | cat >>confdefs.h <<_ACEOF
|
---|
| 1607 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1608 | _ACEOF
|
---|
| 1609 |
|
---|
| 1610 |
|
---|
| 1611 | cat >>confdefs.h <<_ACEOF
|
---|
| 1612 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1613 | _ACEOF
|
---|
| 1614 |
|
---|
| 1615 |
|
---|
| 1616 | cat >>confdefs.h <<_ACEOF
|
---|
| 1617 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1618 | _ACEOF
|
---|
| 1619 |
|
---|
| 1620 |
|
---|
| 1621 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1622 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1623 | if test -n "$CONFIG_SITE"; then
|
---|
| 1624 | set x "$CONFIG_SITE"
|
---|
| 1625 | elif test "x$prefix" != xNONE; then
|
---|
| 1626 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
| 1627 | else
|
---|
| 1628 | set x "$ac_default_prefix/share/config.site" \
|
---|
| 1629 | "$ac_default_prefix/etc/config.site"
|
---|
| 1630 | fi
|
---|
| 1631 | shift
|
---|
| 1632 | for ac_site_file
|
---|
| 1633 | do
|
---|
| 1634 | if test -r "$ac_site_file"; then
|
---|
| 1635 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1636 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1637 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
| 1638 | . "$ac_site_file"
|
---|
| 1639 | fi
|
---|
| 1640 | done
|
---|
| 1641 |
|
---|
| 1642 | if test -r "$cache_file"; then
|
---|
| 1643 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1644 | # files actually), so we avoid doing that.
|
---|
| 1645 | if test -f "$cache_file"; then
|
---|
| 1646 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1647 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1648 | case $cache_file in
|
---|
| 1649 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 1650 | *) . "./$cache_file";;
|
---|
| 1651 | esac
|
---|
| 1652 | fi
|
---|
| 1653 | else
|
---|
| 1654 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1655 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1656 | >$cache_file
|
---|
| 1657 | fi
|
---|
| 1658 |
|
---|
| 1659 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1660 | # value.
|
---|
| 1661 | ac_cache_corrupted=false
|
---|
| 1662 | for ac_var in $ac_precious_vars; do
|
---|
| 1663 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1664 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1665 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 1666 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
| 1667 | case $ac_old_set,$ac_new_set in
|
---|
| 1668 | set,)
|
---|
| 1669 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1670 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1671 | ac_cache_corrupted=: ;;
|
---|
| 1672 | ,set)
|
---|
| 1673 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1674 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1675 | ac_cache_corrupted=: ;;
|
---|
| 1676 | ,);;
|
---|
| 1677 | *)
|
---|
| 1678 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1679 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1680 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1681 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1682 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1683 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1684 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1685 | ac_cache_corrupted=:
|
---|
| 1686 | fi;;
|
---|
| 1687 | esac
|
---|
| 1688 | # Pass precious variables to config.status.
|
---|
| 1689 | if test "$ac_new_set" = set; then
|
---|
| 1690 | case $ac_new_val in
|
---|
| 1691 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1692 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1693 | esac
|
---|
| 1694 | case " $ac_configure_args " in
|
---|
| 1695 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1696 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1697 | esac
|
---|
| 1698 | fi
|
---|
| 1699 | done
|
---|
| 1700 | if $ac_cache_corrupted; then
|
---|
| 1701 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1702 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1703 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1704 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1705 | { (exit 1); exit 1; }; }
|
---|
| 1706 | fi
|
---|
| 1707 |
|
---|
| 1708 |
|
---|
| 1709 |
|
---|
| 1710 |
|
---|
| 1711 |
|
---|
| 1712 |
|
---|
| 1713 |
|
---|
| 1714 |
|
---|
| 1715 |
|
---|
| 1716 |
|
---|
| 1717 |
|
---|
| 1718 |
|
---|
| 1719 |
|
---|
| 1720 |
|
---|
| 1721 |
|
---|
| 1722 |
|
---|
| 1723 |
|
---|
| 1724 |
|
---|
| 1725 |
|
---|
| 1726 |
|
---|
| 1727 |
|
---|
| 1728 |
|
---|
| 1729 |
|
---|
| 1730 |
|
---|
| 1731 |
|
---|
| 1732 | ac_ext=c
|
---|
| 1733 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1737 |
|
---|
| 1738 |
|
---|
| 1739 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1740 |
|
---|
| 1741 |
|
---|
| 1742 | ac_aux_dir=
|
---|
| 1743 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
| 1744 | if test -f "$ac_dir/install-sh"; then
|
---|
| 1745 | ac_aux_dir=$ac_dir
|
---|
| 1746 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 1747 | break
|
---|
| 1748 | elif test -f "$ac_dir/install.sh"; then
|
---|
| 1749 | ac_aux_dir=$ac_dir
|
---|
| 1750 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 1751 | break
|
---|
| 1752 | elif test -f "$ac_dir/shtool"; then
|
---|
| 1753 | ac_aux_dir=$ac_dir
|
---|
| 1754 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 1755 | break
|
---|
| 1756 | fi
|
---|
| 1757 | done
|
---|
| 1758 | if test -z "$ac_aux_dir"; then
|
---|
| 1759 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
| 1760 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
| 1761 | { (exit 1); exit 1; }; }
|
---|
| 1762 | fi
|
---|
| 1763 |
|
---|
| 1764 | # These three variables are undocumented and unsupported,
|
---|
| 1765 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 1766 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 1767 | # whose full name contains unusual characters.
|
---|
| 1768 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 1769 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 1770 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 1771 |
|
---|
| 1772 |
|
---|
| 1773 | # Make sure we can run config.sub.
|
---|
| 1774 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
| 1775 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
| 1776 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
| 1777 | { (exit 1); exit 1; }; }
|
---|
| 1778 |
|
---|
| 1779 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 1780 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
| 1781 | if test "${ac_cv_build+set}" = set; then
|
---|
| 1782 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1783 | else
|
---|
| 1784 | ac_build_alias=$build_alias
|
---|
| 1785 | test "x$ac_build_alias" = x &&
|
---|
| 1786 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 1787 | test "x$ac_build_alias" = x &&
|
---|
| 1788 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 1789 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 1790 | { (exit 1); exit 1; }; }
|
---|
| 1791 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
| 1792 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
| 1793 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
| 1794 | { (exit 1); exit 1; }; }
|
---|
| 1795 |
|
---|
| 1796 | fi
|
---|
| 1797 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 1798 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
| 1799 | case $ac_cv_build in
|
---|
| 1800 | *-*-*) ;;
|
---|
| 1801 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
| 1802 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
| 1803 | { (exit 1); exit 1; }; };;
|
---|
| 1804 | esac
|
---|
| 1805 | build=$ac_cv_build
|
---|
| 1806 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 1807 | set x $ac_cv_build
|
---|
| 1808 | shift
|
---|
| 1809 | build_cpu=$1
|
---|
| 1810 | build_vendor=$2
|
---|
| 1811 | shift; shift
|
---|
| 1812 | # Remember, the first character of IFS is used to create $*,
|
---|
| 1813 | # except with old shells:
|
---|
| 1814 | build_os=$*
|
---|
| 1815 | IFS=$ac_save_IFS
|
---|
| 1816 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
| 1817 |
|
---|
| 1818 |
|
---|
| 1819 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 1820 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
| 1821 | if test "${ac_cv_host+set}" = set; then
|
---|
| 1822 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1823 | else
|
---|
| 1824 | if test "x$host_alias" = x; then
|
---|
| 1825 | ac_cv_host=$ac_cv_build
|
---|
| 1826 | else
|
---|
| 1827 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
| 1828 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
| 1829 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
| 1830 | { (exit 1); exit 1; }; }
|
---|
| 1831 | fi
|
---|
| 1832 |
|
---|
| 1833 | fi
|
---|
| 1834 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 1835 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
| 1836 | case $ac_cv_host in
|
---|
| 1837 | *-*-*) ;;
|
---|
| 1838 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
| 1839 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
| 1840 | { (exit 1); exit 1; }; };;
|
---|
| 1841 | esac
|
---|
| 1842 | host=$ac_cv_host
|
---|
| 1843 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 1844 | set x $ac_cv_host
|
---|
| 1845 | shift
|
---|
| 1846 | host_cpu=$1
|
---|
| 1847 | host_vendor=$2
|
---|
| 1848 | shift; shift
|
---|
| 1849 | # Remember, the first character of IFS is used to create $*,
|
---|
| 1850 | # except with old shells:
|
---|
| 1851 | host_os=$*
|
---|
| 1852 | IFS=$ac_save_IFS
|
---|
| 1853 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
| 1854 |
|
---|
| 1855 |
|
---|
| 1856 | { echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 1857 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
---|
| 1858 | if test "${ac_cv_target+set}" = set; then
|
---|
| 1859 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1860 | else
|
---|
| 1861 | if test "x$target_alias" = x; then
|
---|
| 1862 | ac_cv_target=$ac_cv_host
|
---|
| 1863 | else
|
---|
| 1864 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
| 1865 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
---|
| 1866 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
---|
| 1867 | { (exit 1); exit 1; }; }
|
---|
| 1868 | fi
|
---|
| 1869 |
|
---|
| 1870 | fi
|
---|
| 1871 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 1872 | echo "${ECHO_T}$ac_cv_target" >&6; }
|
---|
| 1873 | case $ac_cv_target in
|
---|
| 1874 | *-*-*) ;;
|
---|
| 1875 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
---|
| 1876 | echo "$as_me: error: invalid value of canonical target" >&2;}
|
---|
| 1877 | { (exit 1); exit 1; }; };;
|
---|
| 1878 | esac
|
---|
| 1879 | target=$ac_cv_target
|
---|
| 1880 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 1881 | set x $ac_cv_target
|
---|
| 1882 | shift
|
---|
| 1883 | target_cpu=$1
|
---|
| 1884 | target_vendor=$2
|
---|
| 1885 | shift; shift
|
---|
| 1886 | # Remember, the first character of IFS is used to create $*,
|
---|
| 1887 | # except with old shells:
|
---|
| 1888 | target_os=$*
|
---|
| 1889 | IFS=$ac_save_IFS
|
---|
| 1890 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
| 1891 |
|
---|
| 1892 |
|
---|
| 1893 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 1894 | # will get canonicalized.
|
---|
| 1895 | test -n "$target_alias" &&
|
---|
| 1896 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 1897 | NONENONEs,x,x, &&
|
---|
| 1898 | program_prefix=${target_alias}-
|
---|
| 1899 |
|
---|
| 1900 | abi=unknown
|
---|
| 1901 | endian=little
|
---|
| 1902 | targosver=0
|
---|
| 1903 | tls=no
|
---|
| 1904 | gcccompat=yes
|
---|
| 1905 | # allowed: UNSIGNED (4-char u_int), INT (4-char int), SHORT (2-char u_short)
|
---|
| 1906 | wchar_type=INT
|
---|
| 1907 |
|
---|
| 1908 | case "$target_os" in
|
---|
| 1909 |
|
---|
| 1910 | apple)
|
---|
| 1911 | targos=apple
|
---|
| 1912 | abi=classic68k
|
---|
| 1913 | case "$target_cpu" in
|
---|
| 1914 | m68k) targmach=m68k endian=big ;;
|
---|
| 1915 | esac
|
---|
| 1916 | ;;
|
---|
| 1917 |
|
---|
| 1918 | bsd)
|
---|
| 1919 | targos=bsd
|
---|
| 1920 | abi=aout
|
---|
| 1921 | targmach=pdp11
|
---|
| 1922 | wchar_type=USHORT
|
---|
| 1923 | ;;
|
---|
| 1924 |
|
---|
| 1925 | darwin*)
|
---|
| 1926 | targos=darwin
|
---|
| 1927 | abi=macho
|
---|
| 1928 | case "$target_os" in
|
---|
| 1929 | *10.*) targosver=10 ;;
|
---|
| 1930 | *9.*) targosver=9 ;;
|
---|
| 1931 | *8.*) targosver=8 ;;
|
---|
| 1932 | *7.*) targosver=7 ;;
|
---|
| 1933 | esac
|
---|
| 1934 | case "$target_cpu" in
|
---|
| 1935 | i?86) targmach=i386 ;;
|
---|
| 1936 | powerpc) targmach=powerpc endian=big ;;
|
---|
| 1937 | x86_64) targmach=amd64 ;;
|
---|
| 1938 | esac
|
---|
| 1939 | ;;
|
---|
| 1940 |
|
---|
| 1941 | dragonfly*)
|
---|
| 1942 | targos=dragonfly
|
---|
| 1943 | abi=elf
|
---|
| 1944 | tls=yes
|
---|
| 1945 | case "$target_cpu" in
|
---|
| 1946 | i?86) targmach=i386 ;;
|
---|
| 1947 | x86_64) targmach=amd64 ;;
|
---|
| 1948 | esac
|
---|
| 1949 | ;;
|
---|
| 1950 |
|
---|
| 1951 | freebsd*)
|
---|
| 1952 | targos=freebsd
|
---|
| 1953 | abi=elf
|
---|
| 1954 | case "$target_os" in
|
---|
| 1955 | *9.*) targosver=9 ;;
|
---|
| 1956 | *8.*) targosver=8 ;;
|
---|
| 1957 | *7.*) targosver=7 ;;
|
---|
| 1958 | *6.*) targosver=6 ;;
|
---|
| 1959 | *5.*) targosver=5 ;;
|
---|
| 1960 | *4.*) targosver=4 ;;
|
---|
| 1961 | esac
|
---|
| 1962 | case "$target_cpu" in
|
---|
| 1963 | i386) targmach=i386 ;;
|
---|
| 1964 | x86_64) targmach=amd64 ;;
|
---|
| 1965 | esac
|
---|
| 1966 | ;;
|
---|
| 1967 |
|
---|
| 1968 | linux*)
|
---|
| 1969 | targos=linux
|
---|
| 1970 | abi=elf
|
---|
| 1971 | case "$target_cpu" in
|
---|
| 1972 | i?86) targmach=i386 ;;
|
---|
| 1973 | powerpc*) targmach=powerpc endian=big ;;
|
---|
| 1974 | x86_64) targmach=amd64 ;;
|
---|
| 1975 | mipseb) targmach=mips endian=big ;;
|
---|
| 1976 | mips*) targmach=mips ;;
|
---|
| 1977 | esac
|
---|
| 1978 | ;;
|
---|
| 1979 |
|
---|
| 1980 | midnightbsd*)
|
---|
| 1981 | targos=midnightbsd
|
---|
| 1982 | abi=elf
|
---|
| 1983 | case "$target_cpu" in
|
---|
| 1984 | i?86) targmach=i386 ;;
|
---|
| 1985 | sparc64) targmach=sparc64 endian=big ;;
|
---|
| 1986 | esac
|
---|
| 1987 | ;;
|
---|
| 1988 |
|
---|
| 1989 | mingw*)
|
---|
| 1990 | targos=win32
|
---|
| 1991 | abi=pecoff
|
---|
| 1992 | wchar_type=USHORT
|
---|
| 1993 | targmach=i386
|
---|
| 1994 | altincdir="c:/mingw/include"
|
---|
| 1995 | altlibdir="c:/mingw/lib"
|
---|
| 1996 | ;;
|
---|
| 1997 |
|
---|
| 1998 | minix)
|
---|
| 1999 | targos=minix
|
---|
| 2000 | abi=coff
|
---|
| 2001 | case "$target_cpu" in
|
---|
| 2002 | m68k) targmach=m68k endian=big ;;
|
---|
| 2003 | esac
|
---|
| 2004 | ;;
|
---|
| 2005 |
|
---|
| 2006 | mirbsd*)
|
---|
| 2007 | targos=mirbsd
|
---|
| 2008 | abi=elf
|
---|
| 2009 | wchar_type=USHORT
|
---|
| 2010 | case "$target_cpu" in
|
---|
| 2011 | i?86) targmach=i386 ;;
|
---|
| 2012 | esac
|
---|
| 2013 | ;;
|
---|
| 2014 |
|
---|
| 2015 | netbsd*)
|
---|
| 2016 | targos=netbsd
|
---|
| 2017 | abi=elf
|
---|
| 2018 | case "$target_os" in
|
---|
| 2019 | *5.*) targosver=5 ;;
|
---|
| 2020 | *4.*) targosver=4 ;;
|
---|
| 2021 | *3.*) targosver=3 ;;
|
---|
| 2022 | *2.*) targosver=2 ;;
|
---|
| 2023 | *1.*) targosver=1 ;;
|
---|
| 2024 | esac
|
---|
| 2025 | case "$target_cpu" in
|
---|
| 2026 | armeb) targmach=arm endian=big ;;
|
---|
| 2027 | arm*) targmach=arm ;;
|
---|
| 2028 | i?86) targmach=i386 ;;
|
---|
| 2029 | m68k*) targmach=m68k endian=big ;;
|
---|
| 2030 | mipseb) targmach=mips endian=big ;;
|
---|
| 2031 | mips*) targmach=mips ;;
|
---|
| 2032 | pdp10) targmach=pdp10 ;;
|
---|
| 2033 | powerpc) targmach=powerpc endian=big ;;
|
---|
| 2034 | sparc64) targmach=sparc64 endian=big ;;
|
---|
| 2035 | vax) targmach=vax ;;
|
---|
| 2036 | x86_64) targmach=amd64 ;;
|
---|
| 2037 | esac
|
---|
| 2038 | ;;
|
---|
| 2039 |
|
---|
| 2040 | nextstep*)
|
---|
| 2041 | targos=nextstep
|
---|
| 2042 | abi=macho
|
---|
| 2043 | case "$target_cpu" in
|
---|
| 2044 | i?86) targmach=i386 ;;
|
---|
| 2045 | sparc) targmach=sparc endian=big ;;
|
---|
| 2046 | hppa) targmach=hppa endian=big ;;
|
---|
| 2047 | esac
|
---|
| 2048 | ;;
|
---|
| 2049 |
|
---|
| 2050 | openbsd*)
|
---|
| 2051 | targos=openbsd
|
---|
| 2052 | abi=elf
|
---|
| 2053 | case "$target_cpu" in
|
---|
| 2054 | i?86) targmach=i386 ;;
|
---|
| 2055 | vax) targmach=vax ;;
|
---|
| 2056 | powerpc) targmach=powerpc endian=big ;;
|
---|
| 2057 | sparc64) targmach=sparc64 endian=big ;;
|
---|
| 2058 | x86_64) targmach=amd64 ;;
|
---|
| 2059 | esac
|
---|
| 2060 | ;;
|
---|
| 2061 |
|
---|
| 2062 | sunos*|solaris*)
|
---|
| 2063 | targos=sunos
|
---|
| 2064 | abi=elf
|
---|
| 2065 | case "$target_cpu" in
|
---|
| 2066 | i?86) targmach=i386 ;;
|
---|
| 2067 | sparc*) targmach=sparc64 endian=big ;;
|
---|
| 2068 | esac
|
---|
| 2069 | ;;
|
---|
| 2070 |
|
---|
| 2071 | windows*|pe*)
|
---|
| 2072 | target_alias=i386-pe
|
---|
| 2073 | targos=win32
|
---|
| 2074 | abi=pecoff
|
---|
| 2075 | wchar_type=USHORT
|
---|
| 2076 | targmach=i386
|
---|
| 2077 | ;;
|
---|
| 2078 |
|
---|
| 2079 | *)
|
---|
| 2080 | targos="$target_os"
|
---|
| 2081 | case "$target_cpu" in
|
---|
| 2082 | m16c) targmach=m16c ;;
|
---|
| 2083 | nova) targmach=nova ;;
|
---|
| 2084 | esac
|
---|
| 2085 | ;;
|
---|
| 2086 | esac
|
---|
| 2087 |
|
---|
| 2088 | if test "X$targos" = X -o "X$targmach" = X ; then
|
---|
| 2089 | { { echo "$as_me:$LINENO: error: '$target' is not (yet) supported by pcc." >&5
|
---|
| 2090 | echo "$as_me: error: '$target' is not (yet) supported by pcc." >&2;}
|
---|
| 2091 | { (exit 1); exit 1; }; }
|
---|
| 2092 | fi
|
---|
| 2093 |
|
---|
| 2094 | case "$host_os" in
|
---|
| 2095 |
|
---|
| 2096 | pe*)
|
---|
| 2097 | # quick hack for cross-build to win32 host
|
---|
| 2098 | if "$prefix" = NONE; then
|
---|
| 2099 | prefix="c:/pcc"
|
---|
| 2100 | assembler="yasm.exe -p gnu -f win32"
|
---|
| 2101 | linker="link.exe /nologo"
|
---|
| 2102 | ADD_CFLAGS=-DMSLINKER
|
---|
| 2103 | fi
|
---|
| 2104 | ;;
|
---|
| 2105 |
|
---|
| 2106 | sunos*|solaris*)
|
---|
| 2107 | ADD_CPPFLAGS="$ADD_CPPFLAGS -D_XOPEN_SOURCE=600"
|
---|
| 2108 | ;;
|
---|
| 2109 |
|
---|
| 2110 | darwin*)
|
---|
| 2111 | if test "$targosver" -ge 10 ; then
|
---|
| 2112 | targmach=amd64
|
---|
| 2113 | fi
|
---|
| 2114 | ;;
|
---|
| 2115 |
|
---|
| 2116 | esac
|
---|
| 2117 |
|
---|
| 2118 | if test "X$endian" = "Xbig" ; then
|
---|
| 2119 |
|
---|
| 2120 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2121 | #define TARGET_BIG_ENDIAN 1
|
---|
| 2122 | _ACEOF
|
---|
| 2123 |
|
---|
| 2124 | else
|
---|
| 2125 |
|
---|
| 2126 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2127 | #define TARGET_LITTLE_ENDIAN 1
|
---|
| 2128 | _ACEOF
|
---|
| 2129 |
|
---|
| 2130 | fi
|
---|
| 2131 |
|
---|
| 2132 | case "$abi" in
|
---|
| 2133 | elf*)
|
---|
| 2134 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2135 | #define ELFABI
|
---|
| 2136 | _ACEOF
|
---|
| 2137 | ;;
|
---|
| 2138 | aout)
|
---|
| 2139 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2140 | #define AOUTABI
|
---|
| 2141 | _ACEOF
|
---|
| 2142 | ;;
|
---|
| 2143 | macho)
|
---|
| 2144 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2145 | #define MACHOABI
|
---|
| 2146 | _ACEOF
|
---|
| 2147 | ;;
|
---|
| 2148 | coff)
|
---|
| 2149 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2150 | #define COFFABI
|
---|
| 2151 | _ACEOF
|
---|
| 2152 | ;;
|
---|
| 2153 | ecoff)
|
---|
| 2154 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2155 | #define ECOFFABI
|
---|
| 2156 | _ACEOF
|
---|
| 2157 | ;;
|
---|
| 2158 | pecoff)
|
---|
| 2159 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2160 | #define PECOFFABI
|
---|
| 2161 | _ACEOF
|
---|
| 2162 | ;;
|
---|
| 2163 | classic68k)
|
---|
| 2164 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2165 | #define CLASSIC68K
|
---|
| 2166 | _ACEOF
|
---|
| 2167 | ;;
|
---|
| 2168 | esac
|
---|
| 2169 |
|
---|
| 2170 | # Specify alternate assembler, linker, include and lib paths
|
---|
| 2171 |
|
---|
| 2172 | # Check whether --with-incdir was given.
|
---|
| 2173 | if test "${with_incdir+set}" = set; then
|
---|
| 2174 | withval=$with_incdir; altincdir=$withval
|
---|
| 2175 | fi
|
---|
| 2176 |
|
---|
| 2177 |
|
---|
| 2178 | # Check whether --with-libdir was given.
|
---|
| 2179 | if test "${with_libdir+set}" = set; then
|
---|
| 2180 | withval=$with_libdir; altlibdir=$withval
|
---|
| 2181 | fi
|
---|
| 2182 |
|
---|
| 2183 |
|
---|
| 2184 | # Check whether --with-assembler was given.
|
---|
| 2185 | if test "${with_assembler+set}" = set; then
|
---|
| 2186 | withval=$with_assembler; assembler=$withval
|
---|
| 2187 | fi
|
---|
| 2188 |
|
---|
| 2189 |
|
---|
| 2190 | # Check whether --with-linker was given.
|
---|
| 2191 | if test "${with_linker+set}" = set; then
|
---|
| 2192 | withval=$with_linker; linker=$withval
|
---|
| 2193 | fi
|
---|
| 2194 |
|
---|
| 2195 | # Check whether --enable-tls was given.
|
---|
| 2196 | if test "${enable_tls+set}" = set; then
|
---|
| 2197 | enableval=$enable_tls; tls=$enableval
|
---|
| 2198 | fi
|
---|
| 2199 |
|
---|
| 2200 | if test "$tls" = "yes"; then
|
---|
| 2201 |
|
---|
| 2202 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2203 | #define TLS 1
|
---|
| 2204 | _ACEOF
|
---|
| 2205 |
|
---|
| 2206 | fi
|
---|
| 2207 | # Check whether --enable-gcc-compat was given.
|
---|
| 2208 | if test "${enable_gcc_compat+set}" = set; then
|
---|
| 2209 | enableval=$enable_gcc_compat; gcccompat=$enableval
|
---|
| 2210 | fi
|
---|
| 2211 |
|
---|
| 2212 | if test "$gcccompat" = "yes"; then
|
---|
| 2213 | ADD_CPPFLAGS="$ADD_CPPFLAGS -DGCC_COMPAT";
|
---|
| 2214 | fi
|
---|
| 2215 |
|
---|
| 2216 | # setup for building a cross-compiler
|
---|
| 2217 | if test "X$target_alias" = "X$host_alias" -o "X$target_alias" = "X"; then
|
---|
| 2218 | BINPREFIX=""
|
---|
| 2219 | else
|
---|
| 2220 | BINPREFIX="${target_alias}-"
|
---|
| 2221 | test "X$prefix" = XNONE && prefix="$ac_default_prefix"
|
---|
| 2222 | test "X$exec_prefix" = XNONE && exec_prefix="${prefix}"
|
---|
| 2223 | if test -z "$altincdir"; then
|
---|
| 2224 | altincdir=${exec_prefix}/${target_alias}/include
|
---|
| 2225 | fi
|
---|
| 2226 | if test -z "$altlibdir"; then
|
---|
| 2227 | altlibdir=${exec_prefix}/${target_alias}/lib
|
---|
| 2228 | fi
|
---|
| 2229 | if test -z "$assembler"; then
|
---|
| 2230 | assembler=${BINPREFIX}as
|
---|
| 2231 | fi
|
---|
| 2232 | if test -z "$linker"; then
|
---|
| 2233 | linker=${BINPREFIX}ld
|
---|
| 2234 | fi
|
---|
| 2235 | preprocessor="${BINPREFIX}cpp"
|
---|
| 2236 | compiler="${BINPREFIX}ccom"
|
---|
| 2237 | fi
|
---|
| 2238 |
|
---|
| 2239 |
|
---|
| 2240 | if test -n "$altincdir"; then
|
---|
| 2241 |
|
---|
| 2242 | cat >>confdefs.h <<_ACEOF
|
---|
| 2243 | #define STDINC "$altincdir"
|
---|
| 2244 | _ACEOF
|
---|
| 2245 |
|
---|
| 2246 | fi
|
---|
| 2247 | if test -n "$altlibdir"; then
|
---|
| 2248 |
|
---|
| 2249 | cat >>confdefs.h <<_ACEOF
|
---|
| 2250 | #define LIBDIR "${altlibdir}/"
|
---|
| 2251 | _ACEOF
|
---|
| 2252 |
|
---|
| 2253 | fi
|
---|
| 2254 | if test -n "$assembler"; then
|
---|
| 2255 |
|
---|
| 2256 | cat >>confdefs.h <<_ACEOF
|
---|
| 2257 | #define ASSEMBLER "$assembler"
|
---|
| 2258 | _ACEOF
|
---|
| 2259 |
|
---|
| 2260 | fi
|
---|
| 2261 | if test -n "$linker"; then
|
---|
| 2262 |
|
---|
| 2263 | cat >>confdefs.h <<_ACEOF
|
---|
| 2264 | #define LINKER "$linker"
|
---|
| 2265 | _ACEOF
|
---|
| 2266 |
|
---|
| 2267 | fi
|
---|
| 2268 | if test -n "$preprocessor"; then
|
---|
| 2269 |
|
---|
| 2270 | cat >>confdefs.h <<_ACEOF
|
---|
| 2271 | #define PREPROCESSOR "${BINPREFIX}cpp"
|
---|
| 2272 | _ACEOF
|
---|
| 2273 |
|
---|
| 2274 | fi
|
---|
| 2275 | if test -n "$compiler"; then
|
---|
| 2276 |
|
---|
| 2277 | cat >>confdefs.h <<_ACEOF
|
---|
| 2278 | #define COMPILER "${BINPREFIX}ccom"
|
---|
| 2279 | _ACEOF
|
---|
| 2280 |
|
---|
| 2281 | fi
|
---|
| 2282 |
|
---|
| 2283 | case $wchar_type in
|
---|
| 2284 | USHORT) wchar_size=2 ;;
|
---|
| 2285 | UNSIGNED|INT) wchar_size=4 ;;
|
---|
| 2286 | *) { { echo "$as_me:$LINENO: error: Unknown wchar_t '$wchar_type'." >&5
|
---|
| 2287 | echo "$as_me: error: Unknown wchar_t '$wchar_type'." >&2;}
|
---|
| 2288 | { (exit 1); exit 1; }; } ;;
|
---|
| 2289 | esac
|
---|
| 2290 |
|
---|
| 2291 |
|
---|
| 2292 | cat >>confdefs.h <<_ACEOF
|
---|
| 2293 | #define WCHAR_TYPE $wchar_type
|
---|
| 2294 | _ACEOF
|
---|
| 2295 |
|
---|
| 2296 |
|
---|
| 2297 | cat >>confdefs.h <<_ACEOF
|
---|
| 2298 | #define WCHAR_SIZE $wchar_size
|
---|
| 2299 | _ACEOF
|
---|
| 2300 |
|
---|
| 2301 |
|
---|
| 2302 | # check for additional compiler flags
|
---|
| 2303 | ac_ext=c
|
---|
| 2304 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2308 | if test -n "$ac_tool_prefix"; then
|
---|
| 2309 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2310 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 2311 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2313 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2314 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2315 | else
|
---|
| 2316 | if test -n "$CC"; then
|
---|
| 2317 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2318 | else
|
---|
| 2319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2320 | for as_dir in $PATH
|
---|
| 2321 | do
|
---|
| 2322 | IFS=$as_save_IFS
|
---|
| 2323 | test -z "$as_dir" && as_dir=.
|
---|
| 2324 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2326 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2328 | break 2
|
---|
| 2329 | fi
|
---|
| 2330 | done
|
---|
| 2331 | done
|
---|
| 2332 | IFS=$as_save_IFS
|
---|
| 2333 |
|
---|
| 2334 | fi
|
---|
| 2335 | fi
|
---|
| 2336 | CC=$ac_cv_prog_CC
|
---|
| 2337 | if test -n "$CC"; then
|
---|
| 2338 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2339 | echo "${ECHO_T}$CC" >&6; }
|
---|
| 2340 | else
|
---|
| 2341 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2342 | echo "${ECHO_T}no" >&6; }
|
---|
| 2343 | fi
|
---|
| 2344 |
|
---|
| 2345 |
|
---|
| 2346 | fi
|
---|
| 2347 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2348 | ac_ct_CC=$CC
|
---|
| 2349 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 2350 | set dummy gcc; ac_word=$2
|
---|
| 2351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2353 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2354 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2355 | else
|
---|
| 2356 | if test -n "$ac_ct_CC"; then
|
---|
| 2357 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2358 | else
|
---|
| 2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2360 | for as_dir in $PATH
|
---|
| 2361 | do
|
---|
| 2362 | IFS=$as_save_IFS
|
---|
| 2363 | test -z "$as_dir" && as_dir=.
|
---|
| 2364 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2366 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2368 | break 2
|
---|
| 2369 | fi
|
---|
| 2370 | done
|
---|
| 2371 | done
|
---|
| 2372 | IFS=$as_save_IFS
|
---|
| 2373 |
|
---|
| 2374 | fi
|
---|
| 2375 | fi
|
---|
| 2376 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2377 | if test -n "$ac_ct_CC"; then
|
---|
| 2378 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2379 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
| 2380 | else
|
---|
| 2381 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2382 | echo "${ECHO_T}no" >&6; }
|
---|
| 2383 | fi
|
---|
| 2384 |
|
---|
| 2385 | if test "x$ac_ct_CC" = x; then
|
---|
| 2386 | CC=""
|
---|
| 2387 | else
|
---|
| 2388 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2389 | yes:)
|
---|
| 2390 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2391 | whose name does not start with the host triplet. If you think this
|
---|
| 2392 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
| 2393 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2394 | whose name does not start with the host triplet. If you think this
|
---|
| 2395 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
| 2396 | ac_tool_warned=yes ;;
|
---|
| 2397 | esac
|
---|
| 2398 | CC=$ac_ct_CC
|
---|
| 2399 | fi
|
---|
| 2400 | else
|
---|
| 2401 | CC="$ac_cv_prog_CC"
|
---|
| 2402 | fi
|
---|
| 2403 |
|
---|
| 2404 | if test -z "$CC"; then
|
---|
| 2405 | if test -n "$ac_tool_prefix"; then
|
---|
| 2406 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2407 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 2408 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2410 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2411 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2412 | else
|
---|
| 2413 | if test -n "$CC"; then
|
---|
| 2414 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2415 | else
|
---|
| 2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2417 | for as_dir in $PATH
|
---|
| 2418 | do
|
---|
| 2419 | IFS=$as_save_IFS
|
---|
| 2420 | test -z "$as_dir" && as_dir=.
|
---|
| 2421 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2423 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2425 | break 2
|
---|
| 2426 | fi
|
---|
| 2427 | done
|
---|
| 2428 | done
|
---|
| 2429 | IFS=$as_save_IFS
|
---|
| 2430 |
|
---|
| 2431 | fi
|
---|
| 2432 | fi
|
---|
| 2433 | CC=$ac_cv_prog_CC
|
---|
| 2434 | if test -n "$CC"; then
|
---|
| 2435 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2436 | echo "${ECHO_T}$CC" >&6; }
|
---|
| 2437 | else
|
---|
| 2438 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2439 | echo "${ECHO_T}no" >&6; }
|
---|
| 2440 | fi
|
---|
| 2441 |
|
---|
| 2442 |
|
---|
| 2443 | fi
|
---|
| 2444 | fi
|
---|
| 2445 | if test -z "$CC"; then
|
---|
| 2446 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2447 | set dummy cc; ac_word=$2
|
---|
| 2448 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2450 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2451 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2452 | else
|
---|
| 2453 | if test -n "$CC"; then
|
---|
| 2454 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2455 | else
|
---|
| 2456 | ac_prog_rejected=no
|
---|
| 2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2458 | for as_dir in $PATH
|
---|
| 2459 | do
|
---|
| 2460 | IFS=$as_save_IFS
|
---|
| 2461 | test -z "$as_dir" && as_dir=.
|
---|
| 2462 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2464 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2465 | ac_prog_rejected=yes
|
---|
| 2466 | continue
|
---|
| 2467 | fi
|
---|
| 2468 | ac_cv_prog_CC="cc"
|
---|
| 2469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2470 | break 2
|
---|
| 2471 | fi
|
---|
| 2472 | done
|
---|
| 2473 | done
|
---|
| 2474 | IFS=$as_save_IFS
|
---|
| 2475 |
|
---|
| 2476 | if test $ac_prog_rejected = yes; then
|
---|
| 2477 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2478 | set dummy $ac_cv_prog_CC
|
---|
| 2479 | shift
|
---|
| 2480 | if test $# != 0; then
|
---|
| 2481 | # We chose a different compiler from the bogus one.
|
---|
| 2482 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2483 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2484 | shift
|
---|
| 2485 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 2486 | fi
|
---|
| 2487 | fi
|
---|
| 2488 | fi
|
---|
| 2489 | fi
|
---|
| 2490 | CC=$ac_cv_prog_CC
|
---|
| 2491 | if test -n "$CC"; then
|
---|
| 2492 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2493 | echo "${ECHO_T}$CC" >&6; }
|
---|
| 2494 | else
|
---|
| 2495 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2496 | echo "${ECHO_T}no" >&6; }
|
---|
| 2497 | fi
|
---|
| 2498 |
|
---|
| 2499 |
|
---|
| 2500 | fi
|
---|
| 2501 | if test -z "$CC"; then
|
---|
| 2502 | if test -n "$ac_tool_prefix"; then
|
---|
| 2503 | for ac_prog in cl.exe
|
---|
| 2504 | do
|
---|
| 2505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2507 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2509 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2510 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2511 | else
|
---|
| 2512 | if test -n "$CC"; then
|
---|
| 2513 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2514 | else
|
---|
| 2515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2516 | for as_dir in $PATH
|
---|
| 2517 | do
|
---|
| 2518 | IFS=$as_save_IFS
|
---|
| 2519 | test -z "$as_dir" && as_dir=.
|
---|
| 2520 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2522 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2524 | break 2
|
---|
| 2525 | fi
|
---|
| 2526 | done
|
---|
| 2527 | done
|
---|
| 2528 | IFS=$as_save_IFS
|
---|
| 2529 |
|
---|
| 2530 | fi
|
---|
| 2531 | fi
|
---|
| 2532 | CC=$ac_cv_prog_CC
|
---|
| 2533 | if test -n "$CC"; then
|
---|
| 2534 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2535 | echo "${ECHO_T}$CC" >&6; }
|
---|
| 2536 | else
|
---|
| 2537 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2538 | echo "${ECHO_T}no" >&6; }
|
---|
| 2539 | fi
|
---|
| 2540 |
|
---|
| 2541 |
|
---|
| 2542 | test -n "$CC" && break
|
---|
| 2543 | done
|
---|
| 2544 | fi
|
---|
| 2545 | if test -z "$CC"; then
|
---|
| 2546 | ac_ct_CC=$CC
|
---|
| 2547 | for ac_prog in cl.exe
|
---|
| 2548 | do
|
---|
| 2549 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2550 | set dummy $ac_prog; ac_word=$2
|
---|
| 2551 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 2553 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2555 | else
|
---|
| 2556 | if test -n "$ac_ct_CC"; then
|
---|
| 2557 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2558 | else
|
---|
| 2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2560 | for as_dir in $PATH
|
---|
| 2561 | do
|
---|
| 2562 | IFS=$as_save_IFS
|
---|
| 2563 | test -z "$as_dir" && as_dir=.
|
---|
| 2564 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 2566 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2568 | break 2
|
---|
| 2569 | fi
|
---|
| 2570 | done
|
---|
| 2571 | done
|
---|
| 2572 | IFS=$as_save_IFS
|
---|
| 2573 |
|
---|
| 2574 | fi
|
---|
| 2575 | fi
|
---|
| 2576 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2577 | if test -n "$ac_ct_CC"; then
|
---|
| 2578 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2579 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
| 2580 | else
|
---|
| 2581 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2582 | echo "${ECHO_T}no" >&6; }
|
---|
| 2583 | fi
|
---|
| 2584 |
|
---|
| 2585 |
|
---|
| 2586 | test -n "$ac_ct_CC" && break
|
---|
| 2587 | done
|
---|
| 2588 |
|
---|
| 2589 | if test "x$ac_ct_CC" = x; then
|
---|
| 2590 | CC=""
|
---|
| 2591 | else
|
---|
| 2592 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2593 | yes:)
|
---|
| 2594 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2595 | whose name does not start with the host triplet. If you think this
|
---|
| 2596 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
| 2597 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2598 | whose name does not start with the host triplet. If you think this
|
---|
| 2599 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
| 2600 | ac_tool_warned=yes ;;
|
---|
| 2601 | esac
|
---|
| 2602 | CC=$ac_ct_CC
|
---|
| 2603 | fi
|
---|
| 2604 | fi
|
---|
| 2605 |
|
---|
| 2606 | fi
|
---|
| 2607 |
|
---|
| 2608 |
|
---|
| 2609 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2610 | See \`config.log' for more details." >&5
|
---|
| 2611 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2612 | See \`config.log' for more details." >&2;}
|
---|
| 2613 | { (exit 1); exit 1; }; }
|
---|
| 2614 |
|
---|
| 2615 | # Provide some information about the compiler.
|
---|
| 2616 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
| 2617 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2618 | { (ac_try="$ac_compiler --version >&5"
|
---|
| 2619 | case "(($ac_try" in
|
---|
| 2620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2621 | *) ac_try_echo=$ac_try;;
|
---|
| 2622 | esac
|
---|
| 2623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2624 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
| 2625 | ac_status=$?
|
---|
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2627 | (exit $ac_status); }
|
---|
| 2628 | { (ac_try="$ac_compiler -v >&5"
|
---|
| 2629 | case "(($ac_try" in
|
---|
| 2630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2631 | *) ac_try_echo=$ac_try;;
|
---|
| 2632 | esac
|
---|
| 2633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2634 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
| 2635 | ac_status=$?
|
---|
| 2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2637 | (exit $ac_status); }
|
---|
| 2638 | { (ac_try="$ac_compiler -V >&5"
|
---|
| 2639 | case "(($ac_try" in
|
---|
| 2640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2641 | *) ac_try_echo=$ac_try;;
|
---|
| 2642 | esac
|
---|
| 2643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2644 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
| 2645 | ac_status=$?
|
---|
| 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2647 | (exit $ac_status); }
|
---|
| 2648 |
|
---|
| 2649 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2650 | /* confdefs.h. */
|
---|
| 2651 | _ACEOF
|
---|
| 2652 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2653 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2654 | /* end confdefs.h. */
|
---|
| 2655 |
|
---|
| 2656 | int
|
---|
| 2657 | main ()
|
---|
| 2658 | {
|
---|
| 2659 |
|
---|
| 2660 | ;
|
---|
| 2661 | return 0;
|
---|
| 2662 | }
|
---|
| 2663 | _ACEOF
|
---|
| 2664 | ac_clean_files_save=$ac_clean_files
|
---|
| 2665 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 2666 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2667 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2668 | # of exeext.
|
---|
| 2669 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 2670 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
| 2671 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 2672 | #
|
---|
| 2673 | # List of possible output files, starting from the most likely.
|
---|
| 2674 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
| 2675 | # only as a last resort. b.out is created by i960 compilers.
|
---|
| 2676 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
| 2677 | #
|
---|
| 2678 | # The IRIX 6 linker writes into existing files which may not be
|
---|
| 2679 | # executable, retaining their permissions. Remove them first so a
|
---|
| 2680 | # subsequent execution test works.
|
---|
| 2681 | ac_rmfiles=
|
---|
| 2682 | for ac_file in $ac_files
|
---|
| 2683 | do
|
---|
| 2684 | case $ac_file in
|
---|
| 2685 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
| 2686 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2687 | esac
|
---|
| 2688 | done
|
---|
| 2689 | rm -f $ac_rmfiles
|
---|
| 2690 |
|
---|
| 2691 | if { (ac_try="$ac_link_default"
|
---|
| 2692 | case "(($ac_try" in
|
---|
| 2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2694 | *) ac_try_echo=$ac_try;;
|
---|
| 2695 | esac
|
---|
| 2696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2697 | (eval "$ac_link_default") 2>&5
|
---|
| 2698 | ac_status=$?
|
---|
| 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2700 | (exit $ac_status); }; then
|
---|
| 2701 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2702 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2703 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2704 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2705 | # Autoconf.
|
---|
| 2706 | for ac_file in $ac_files ''
|
---|
| 2707 | do
|
---|
| 2708 | test -f "$ac_file" || continue
|
---|
| 2709 | case $ac_file in
|
---|
| 2710 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
| 2711 | ;;
|
---|
| 2712 | [ab].out )
|
---|
| 2713 | # We found the default executable, but exeext='' is most
|
---|
| 2714 | # certainly right.
|
---|
| 2715 | break;;
|
---|
| 2716 | *.* )
|
---|
| 2717 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2718 | then :; else
|
---|
| 2719 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2720 | fi
|
---|
| 2721 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2722 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2723 | # argument, so we may need to know it at that point already.
|
---|
| 2724 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2725 | # actually working.
|
---|
| 2726 | break;;
|
---|
| 2727 | * )
|
---|
| 2728 | break;;
|
---|
| 2729 | esac
|
---|
| 2730 | done
|
---|
| 2731 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2732 |
|
---|
| 2733 | else
|
---|
| 2734 | ac_file=''
|
---|
| 2735 | fi
|
---|
| 2736 |
|
---|
| 2737 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2738 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
| 2739 | if test -z "$ac_file"; then
|
---|
| 2740 | echo "$as_me: failed program was:" >&5
|
---|
| 2741 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2742 |
|
---|
| 2743 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 2744 | See \`config.log' for more details." >&5
|
---|
| 2745 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 2746 | See \`config.log' for more details." >&2;}
|
---|
| 2747 | { (exit 77); exit 77; }; }
|
---|
| 2748 | fi
|
---|
| 2749 |
|
---|
| 2750 | ac_exeext=$ac_cv_exeext
|
---|
| 2751 |
|
---|
| 2752 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2753 | # the compiler is broken, or we cross compile.
|
---|
| 2754 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2755 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
| 2756 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2757 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2758 | if test "$cross_compiling" != yes; then
|
---|
| 2759 | if { ac_try='./$ac_file'
|
---|
| 2760 | { (case "(($ac_try" in
|
---|
| 2761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2762 | *) ac_try_echo=$ac_try;;
|
---|
| 2763 | esac
|
---|
| 2764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2765 | (eval "$ac_try") 2>&5
|
---|
| 2766 | ac_status=$?
|
---|
| 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2768 | (exit $ac_status); }; }; then
|
---|
| 2769 | cross_compiling=no
|
---|
| 2770 | else
|
---|
| 2771 | if test "$cross_compiling" = maybe; then
|
---|
| 2772 | cross_compiling=yes
|
---|
| 2773 | else
|
---|
| 2774 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 2775 | If you meant to cross compile, use \`--host'.
|
---|
| 2776 | See \`config.log' for more details." >&5
|
---|
| 2777 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 2778 | If you meant to cross compile, use \`--host'.
|
---|
| 2779 | See \`config.log' for more details." >&2;}
|
---|
| 2780 | { (exit 1); exit 1; }; }
|
---|
| 2781 | fi
|
---|
| 2782 | fi
|
---|
| 2783 | fi
|
---|
| 2784 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2785 | echo "${ECHO_T}yes" >&6; }
|
---|
| 2786 |
|
---|
| 2787 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 2788 | ac_clean_files=$ac_clean_files_save
|
---|
| 2789 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2790 | # the compiler is broken, or we cross compile.
|
---|
| 2791 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2792 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
| 2793 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2794 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
| 2795 |
|
---|
| 2796 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2797 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
| 2798 | if { (ac_try="$ac_link"
|
---|
| 2799 | case "(($ac_try" in
|
---|
| 2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2801 | *) ac_try_echo=$ac_try;;
|
---|
| 2802 | esac
|
---|
| 2803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2804 | (eval "$ac_link") 2>&5
|
---|
| 2805 | ac_status=$?
|
---|
| 2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2807 | (exit $ac_status); }; then
|
---|
| 2808 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2809 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2810 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2811 | # `rm'.
|
---|
| 2812 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2813 | test -f "$ac_file" || continue
|
---|
| 2814 | case $ac_file in
|
---|
| 2815 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
| 2816 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2817 | break;;
|
---|
| 2818 | * ) break;;
|
---|
| 2819 | esac
|
---|
| 2820 | done
|
---|
| 2821 | else
|
---|
| 2822 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2823 | See \`config.log' for more details." >&5
|
---|
| 2824 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2825 | See \`config.log' for more details." >&2;}
|
---|
| 2826 | { (exit 1); exit 1; }; }
|
---|
| 2827 | fi
|
---|
| 2828 |
|
---|
| 2829 | rm -f conftest$ac_cv_exeext
|
---|
| 2830 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2831 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
| 2832 |
|
---|
| 2833 | rm -f conftest.$ac_ext
|
---|
| 2834 | EXEEXT=$ac_cv_exeext
|
---|
| 2835 | ac_exeext=$EXEEXT
|
---|
| 2836 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2837 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
| 2838 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2840 | else
|
---|
| 2841 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2842 | /* confdefs.h. */
|
---|
| 2843 | _ACEOF
|
---|
| 2844 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2845 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2846 | /* end confdefs.h. */
|
---|
| 2847 |
|
---|
| 2848 | int
|
---|
| 2849 | main ()
|
---|
| 2850 | {
|
---|
| 2851 |
|
---|
| 2852 | ;
|
---|
| 2853 | return 0;
|
---|
| 2854 | }
|
---|
| 2855 | _ACEOF
|
---|
| 2856 | rm -f conftest.o conftest.obj
|
---|
| 2857 | if { (ac_try="$ac_compile"
|
---|
| 2858 | case "(($ac_try" in
|
---|
| 2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2860 | *) ac_try_echo=$ac_try;;
|
---|
| 2861 | esac
|
---|
| 2862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2863 | (eval "$ac_compile") 2>&5
|
---|
| 2864 | ac_status=$?
|
---|
| 2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2866 | (exit $ac_status); }; then
|
---|
| 2867 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2868 | test -f "$ac_file" || continue;
|
---|
| 2869 | case $ac_file in
|
---|
| 2870 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
| 2871 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2872 | break;;
|
---|
| 2873 | esac
|
---|
| 2874 | done
|
---|
| 2875 | else
|
---|
| 2876 | echo "$as_me: failed program was:" >&5
|
---|
| 2877 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2878 |
|
---|
| 2879 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2880 | See \`config.log' for more details." >&5
|
---|
| 2881 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2882 | See \`config.log' for more details." >&2;}
|
---|
| 2883 | { (exit 1); exit 1; }; }
|
---|
| 2884 | fi
|
---|
| 2885 |
|
---|
| 2886 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2887 | fi
|
---|
| 2888 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2889 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
| 2890 | OBJEXT=$ac_cv_objext
|
---|
| 2891 | ac_objext=$OBJEXT
|
---|
| 2892 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2893 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
| 2894 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2895 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2896 | else
|
---|
| 2897 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2898 | /* confdefs.h. */
|
---|
| 2899 | _ACEOF
|
---|
| 2900 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2901 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2902 | /* end confdefs.h. */
|
---|
| 2903 |
|
---|
| 2904 | int
|
---|
| 2905 | main ()
|
---|
| 2906 | {
|
---|
| 2907 | #ifndef __GNUC__
|
---|
| 2908 | choke me
|
---|
| 2909 | #endif
|
---|
| 2910 |
|
---|
| 2911 | ;
|
---|
| 2912 | return 0;
|
---|
| 2913 | }
|
---|
| 2914 | _ACEOF
|
---|
| 2915 | rm -f conftest.$ac_objext
|
---|
| 2916 | if { (ac_try="$ac_compile"
|
---|
| 2917 | case "(($ac_try" in
|
---|
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2919 | *) ac_try_echo=$ac_try;;
|
---|
| 2920 | esac
|
---|
| 2921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2922 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 2923 | ac_status=$?
|
---|
| 2924 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2925 | rm -f conftest.er1
|
---|
| 2926 | cat conftest.err >&5
|
---|
| 2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2928 | (exit $ac_status); } && {
|
---|
| 2929 | test -z "$ac_c_werror_flag" ||
|
---|
| 2930 | test ! -s conftest.err
|
---|
| 2931 | } && test -s conftest.$ac_objext; then
|
---|
| 2932 | ac_compiler_gnu=yes
|
---|
| 2933 | else
|
---|
| 2934 | echo "$as_me: failed program was:" >&5
|
---|
| 2935 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2936 |
|
---|
| 2937 | ac_compiler_gnu=no
|
---|
| 2938 | fi
|
---|
| 2939 |
|
---|
| 2940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2941 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2942 |
|
---|
| 2943 | fi
|
---|
| 2944 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2945 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 2946 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2947 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2948 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2949 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2950 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
| 2951 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2952 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2953 | else
|
---|
| 2954 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 2955 | ac_c_werror_flag=yes
|
---|
| 2956 | ac_cv_prog_cc_g=no
|
---|
| 2957 | CFLAGS="-g"
|
---|
| 2958 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2959 | /* confdefs.h. */
|
---|
| 2960 | _ACEOF
|
---|
| 2961 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2962 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2963 | /* end confdefs.h. */
|
---|
| 2964 |
|
---|
| 2965 | int
|
---|
| 2966 | main ()
|
---|
| 2967 | {
|
---|
| 2968 |
|
---|
| 2969 | ;
|
---|
| 2970 | return 0;
|
---|
| 2971 | }
|
---|
| 2972 | _ACEOF
|
---|
| 2973 | rm -f conftest.$ac_objext
|
---|
| 2974 | if { (ac_try="$ac_compile"
|
---|
| 2975 | case "(($ac_try" in
|
---|
| 2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2977 | *) ac_try_echo=$ac_try;;
|
---|
| 2978 | esac
|
---|
| 2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2980 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 2981 | ac_status=$?
|
---|
| 2982 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2983 | rm -f conftest.er1
|
---|
| 2984 | cat conftest.err >&5
|
---|
| 2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2986 | (exit $ac_status); } && {
|
---|
| 2987 | test -z "$ac_c_werror_flag" ||
|
---|
| 2988 | test ! -s conftest.err
|
---|
| 2989 | } && test -s conftest.$ac_objext; then
|
---|
| 2990 | ac_cv_prog_cc_g=yes
|
---|
| 2991 | else
|
---|
| 2992 | echo "$as_me: failed program was:" >&5
|
---|
| 2993 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2994 |
|
---|
| 2995 | CFLAGS=""
|
---|
| 2996 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2997 | /* confdefs.h. */
|
---|
| 2998 | _ACEOF
|
---|
| 2999 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3000 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3001 | /* end confdefs.h. */
|
---|
| 3002 |
|
---|
| 3003 | int
|
---|
| 3004 | main ()
|
---|
| 3005 | {
|
---|
| 3006 |
|
---|
| 3007 | ;
|
---|
| 3008 | return 0;
|
---|
| 3009 | }
|
---|
| 3010 | _ACEOF
|
---|
| 3011 | rm -f conftest.$ac_objext
|
---|
| 3012 | if { (ac_try="$ac_compile"
|
---|
| 3013 | case "(($ac_try" in
|
---|
| 3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3015 | *) ac_try_echo=$ac_try;;
|
---|
| 3016 | esac
|
---|
| 3017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3018 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 3019 | ac_status=$?
|
---|
| 3020 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3021 | rm -f conftest.er1
|
---|
| 3022 | cat conftest.err >&5
|
---|
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3024 | (exit $ac_status); } && {
|
---|
| 3025 | test -z "$ac_c_werror_flag" ||
|
---|
| 3026 | test ! -s conftest.err
|
---|
| 3027 | } && test -s conftest.$ac_objext; then
|
---|
| 3028 | :
|
---|
| 3029 | else
|
---|
| 3030 | echo "$as_me: failed program was:" >&5
|
---|
| 3031 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3032 |
|
---|
| 3033 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3034 | CFLAGS="-g"
|
---|
| 3035 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3036 | /* confdefs.h. */
|
---|
| 3037 | _ACEOF
|
---|
| 3038 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3039 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3040 | /* end confdefs.h. */
|
---|
| 3041 |
|
---|
| 3042 | int
|
---|
| 3043 | main ()
|
---|
| 3044 | {
|
---|
| 3045 |
|
---|
| 3046 | ;
|
---|
| 3047 | return 0;
|
---|
| 3048 | }
|
---|
| 3049 | _ACEOF
|
---|
| 3050 | rm -f conftest.$ac_objext
|
---|
| 3051 | if { (ac_try="$ac_compile"
|
---|
| 3052 | case "(($ac_try" in
|
---|
| 3053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3054 | *) ac_try_echo=$ac_try;;
|
---|
| 3055 | esac
|
---|
| 3056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3057 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 3058 | ac_status=$?
|
---|
| 3059 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3060 | rm -f conftest.er1
|
---|
| 3061 | cat conftest.err >&5
|
---|
| 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3063 | (exit $ac_status); } && {
|
---|
| 3064 | test -z "$ac_c_werror_flag" ||
|
---|
| 3065 | test ! -s conftest.err
|
---|
| 3066 | } && test -s conftest.$ac_objext; then
|
---|
| 3067 | ac_cv_prog_cc_g=yes
|
---|
| 3068 | else
|
---|
| 3069 | echo "$as_me: failed program was:" >&5
|
---|
| 3070 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3071 |
|
---|
| 3072 |
|
---|
| 3073 | fi
|
---|
| 3074 |
|
---|
| 3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3076 | fi
|
---|
| 3077 |
|
---|
| 3078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3079 | fi
|
---|
| 3080 |
|
---|
| 3081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3082 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3083 | fi
|
---|
| 3084 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 3085 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
| 3086 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 3087 | CFLAGS=$ac_save_CFLAGS
|
---|
| 3088 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3089 | if test "$GCC" = yes; then
|
---|
| 3090 | CFLAGS="-g -O2"
|
---|
| 3091 | else
|
---|
| 3092 | CFLAGS="-g"
|
---|
| 3093 | fi
|
---|
| 3094 | else
|
---|
| 3095 | if test "$GCC" = yes; then
|
---|
| 3096 | CFLAGS="-O2"
|
---|
| 3097 | else
|
---|
| 3098 | CFLAGS=
|
---|
| 3099 | fi
|
---|
| 3100 | fi
|
---|
| 3101 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
| 3102 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
| 3103 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
| 3104 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3105 | else
|
---|
| 3106 | ac_cv_prog_cc_c89=no
|
---|
| 3107 | ac_save_CC=$CC
|
---|
| 3108 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3109 | /* confdefs.h. */
|
---|
| 3110 | _ACEOF
|
---|
| 3111 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3112 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3113 | /* end confdefs.h. */
|
---|
| 3114 | #include <stdarg.h>
|
---|
| 3115 | #include <stdio.h>
|
---|
| 3116 | #include <sys/types.h>
|
---|
| 3117 | #include <sys/stat.h>
|
---|
| 3118 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3119 | struct buf { int x; };
|
---|
| 3120 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3121 | static char *e (p, i)
|
---|
| 3122 | char **p;
|
---|
| 3123 | int i;
|
---|
| 3124 | {
|
---|
| 3125 | return p[i];
|
---|
| 3126 | }
|
---|
| 3127 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3128 | {
|
---|
| 3129 | char *s;
|
---|
| 3130 | va_list v;
|
---|
| 3131 | va_start (v,p);
|
---|
| 3132 | s = g (p, va_arg (v,int));
|
---|
| 3133 | va_end (v);
|
---|
| 3134 | return s;
|
---|
| 3135 | }
|
---|
| 3136 |
|
---|
| 3137 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3138 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3139 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 3140 | as 'x'. The following induces an error, until -std is added to get
|
---|
| 3141 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3142 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 3143 | that's true only with -std. */
|
---|
| 3144 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3145 |
|
---|
| 3146 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3147 | inside strings and character constants. */
|
---|
| 3148 | #define FOO(x) 'x'
|
---|
| 3149 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3150 |
|
---|
| 3151 | int test (int i, double x);
|
---|
| 3152 | struct s1 {int (*f) (int a);};
|
---|
| 3153 | struct s2 {int (*f) (double a);};
|
---|
| 3154 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3155 | int argc;
|
---|
| 3156 | char **argv;
|
---|
| 3157 | int
|
---|
| 3158 | main ()
|
---|
| 3159 | {
|
---|
| 3160 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3161 | ;
|
---|
| 3162 | return 0;
|
---|
| 3163 | }
|
---|
| 3164 | _ACEOF
|
---|
| 3165 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3166 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 3167 | do
|
---|
| 3168 | CC="$ac_save_CC $ac_arg"
|
---|
| 3169 | rm -f conftest.$ac_objext
|
---|
| 3170 | if { (ac_try="$ac_compile"
|
---|
| 3171 | case "(($ac_try" in
|
---|
| 3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3173 | *) ac_try_echo=$ac_try;;
|
---|
| 3174 | esac
|
---|
| 3175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3176 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 3177 | ac_status=$?
|
---|
| 3178 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3179 | rm -f conftest.er1
|
---|
| 3180 | cat conftest.err >&5
|
---|
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3182 | (exit $ac_status); } && {
|
---|
| 3183 | test -z "$ac_c_werror_flag" ||
|
---|
| 3184 | test ! -s conftest.err
|
---|
| 3185 | } && test -s conftest.$ac_objext; then
|
---|
| 3186 | ac_cv_prog_cc_c89=$ac_arg
|
---|
| 3187 | else
|
---|
| 3188 | echo "$as_me: failed program was:" >&5
|
---|
| 3189 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3190 |
|
---|
| 3191 |
|
---|
| 3192 | fi
|
---|
| 3193 |
|
---|
| 3194 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3195 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
| 3196 | done
|
---|
| 3197 | rm -f conftest.$ac_ext
|
---|
| 3198 | CC=$ac_save_CC
|
---|
| 3199 |
|
---|
| 3200 | fi
|
---|
| 3201 | # AC_CACHE_VAL
|
---|
| 3202 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3203 | x)
|
---|
| 3204 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 3205 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
| 3206 | xno)
|
---|
| 3207 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
| 3208 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
| 3209 | *)
|
---|
| 3210 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 3211 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 3212 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
| 3213 | esac
|
---|
| 3214 |
|
---|
| 3215 |
|
---|
| 3216 | ac_ext=c
|
---|
| 3217 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3221 |
|
---|
| 3222 | DESIRED_FLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate"
|
---|
| 3223 | for flag in $DESIRED_FLAGS
|
---|
| 3224 | do
|
---|
| 3225 | { echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
|
---|
| 3226 | echo $ECHO_N "checking whether $CC accepts $flag... $ECHO_C" >&6; }
|
---|
| 3227 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3228 | int main() { return 0; }
|
---|
| 3229 | _ACEOF
|
---|
| 3230 | $CC $CFLAGS $flag -c conftest.c > /dev/null 2> /dev/null
|
---|
| 3231 | if test $? = 0 ; then
|
---|
| 3232 | ADD_CFLAGS="$ADD_CFLAGS $flag"
|
---|
| 3233 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3234 | echo "${ECHO_T}yes" >&6; };
|
---|
| 3235 | else
|
---|
| 3236 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3237 | echo "${ECHO_T}no" >&6; };
|
---|
| 3238 | fi
|
---|
| 3239 | rm -f conftest.o
|
---|
| 3240 | done
|
---|
| 3241 |
|
---|
| 3242 | # setup for cross-compiling mkext
|
---|
| 3243 | { echo "$as_me:$LINENO: checking for a C compiler for mkext" >&5
|
---|
| 3244 | echo $ECHO_N "checking for a C compiler for mkext... $ECHO_C" >&6; }
|
---|
| 3245 | if test $cross_compiling = yes; then
|
---|
| 3246 | { echo "$as_me:$LINENO: result: cross compiling" >&5
|
---|
| 3247 | echo "${ECHO_T}cross compiling" >&6; }
|
---|
| 3248 | for ac_prog in pcc gcc cc
|
---|
| 3249 | do
|
---|
| 3250 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3251 | set dummy $ac_prog; ac_word=$2
|
---|
| 3252 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 3254 | if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
|
---|
| 3255 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3256 | else
|
---|
| 3257 | if test -n "$CC_FOR_BUILD"; then
|
---|
| 3258 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
|
---|
| 3259 | else
|
---|
| 3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3261 | for as_dir in $PATH
|
---|
| 3262 | do
|
---|
| 3263 | IFS=$as_save_IFS
|
---|
| 3264 | test -z "$as_dir" && as_dir=.
|
---|
| 3265 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3267 | ac_cv_prog_CC_FOR_BUILD="$ac_prog"
|
---|
| 3268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3269 | break 2
|
---|
| 3270 | fi
|
---|
| 3271 | done
|
---|
| 3272 | done
|
---|
| 3273 | IFS=$as_save_IFS
|
---|
| 3274 |
|
---|
| 3275 | fi
|
---|
| 3276 | fi
|
---|
| 3277 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
|
---|
| 3278 | if test -n "$CC_FOR_BUILD"; then
|
---|
| 3279 | { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
|
---|
| 3280 | echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
|
---|
| 3281 | else
|
---|
| 3282 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3283 | echo "${ECHO_T}no" >&6; }
|
---|
| 3284 | fi
|
---|
| 3285 |
|
---|
| 3286 |
|
---|
| 3287 | test -n "$CC_FOR_BUILD" && break
|
---|
| 3288 | done
|
---|
| 3289 |
|
---|
| 3290 | else
|
---|
| 3291 | { echo "$as_me:$LINENO: result: not cross compiling" >&5
|
---|
| 3292 | echo "${ECHO_T}not cross compiling" >&6; }
|
---|
| 3293 | CC_FOR_BUILD=${CC-cc}
|
---|
| 3294 |
|
---|
| 3295 | fi
|
---|
| 3296 |
|
---|
| 3297 |
|
---|
| 3298 | ac_ext=c
|
---|
| 3299 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3303 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3304 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
| 3305 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3306 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3307 | CPP=
|
---|
| 3308 | fi
|
---|
| 3309 | if test -z "$CPP"; then
|
---|
| 3310 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3311 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3312 | else
|
---|
| 3313 | # Double quotes because CPP needs to be expanded
|
---|
| 3314 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3315 | do
|
---|
| 3316 | ac_preproc_ok=false
|
---|
| 3317 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3318 | do
|
---|
| 3319 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3320 | # with a fresh cross-compiler works.
|
---|
| 3321 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3322 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3323 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3324 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3325 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3326 | /* confdefs.h. */
|
---|
| 3327 | _ACEOF
|
---|
| 3328 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3329 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3330 | /* end confdefs.h. */
|
---|
| 3331 | #ifdef __STDC__
|
---|
| 3332 | # include <limits.h>
|
---|
| 3333 | #else
|
---|
| 3334 | # include <assert.h>
|
---|
| 3335 | #endif
|
---|
| 3336 | Syntax error
|
---|
| 3337 | _ACEOF
|
---|
| 3338 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3339 | case "(($ac_try" in
|
---|
| 3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3341 | *) ac_try_echo=$ac_try;;
|
---|
| 3342 | esac
|
---|
| 3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 3345 | ac_status=$?
|
---|
| 3346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3347 | rm -f conftest.er1
|
---|
| 3348 | cat conftest.err >&5
|
---|
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3350 | (exit $ac_status); } >/dev/null && {
|
---|
| 3351 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3352 | test ! -s conftest.err
|
---|
| 3353 | }; then
|
---|
| 3354 | :
|
---|
| 3355 | else
|
---|
| 3356 | echo "$as_me: failed program was:" >&5
|
---|
| 3357 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3358 |
|
---|
| 3359 | # Broken: fails on valid input.
|
---|
| 3360 | continue
|
---|
| 3361 | fi
|
---|
| 3362 |
|
---|
| 3363 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3364 |
|
---|
| 3365 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
| 3366 | # can be detected and how.
|
---|
| 3367 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3368 | /* confdefs.h. */
|
---|
| 3369 | _ACEOF
|
---|
| 3370 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3371 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3372 | /* end confdefs.h. */
|
---|
| 3373 | #include <ac_nonexistent.h>
|
---|
| 3374 | _ACEOF
|
---|
| 3375 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3376 | case "(($ac_try" in
|
---|
| 3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3378 | *) ac_try_echo=$ac_try;;
|
---|
| 3379 | esac
|
---|
| 3380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3381 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 3382 | ac_status=$?
|
---|
| 3383 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3384 | rm -f conftest.er1
|
---|
| 3385 | cat conftest.err >&5
|
---|
| 3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3387 | (exit $ac_status); } >/dev/null && {
|
---|
| 3388 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3389 | test ! -s conftest.err
|
---|
| 3390 | }; then
|
---|
| 3391 | # Broken: success on invalid input.
|
---|
| 3392 | continue
|
---|
| 3393 | else
|
---|
| 3394 | echo "$as_me: failed program was:" >&5
|
---|
| 3395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3396 |
|
---|
| 3397 | # Passes both tests.
|
---|
| 3398 | ac_preproc_ok=:
|
---|
| 3399 | break
|
---|
| 3400 | fi
|
---|
| 3401 |
|
---|
| 3402 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3403 |
|
---|
| 3404 | done
|
---|
| 3405 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3406 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3407 | if $ac_preproc_ok; then
|
---|
| 3408 | break
|
---|
| 3409 | fi
|
---|
| 3410 |
|
---|
| 3411 | done
|
---|
| 3412 | ac_cv_prog_CPP=$CPP
|
---|
| 3413 |
|
---|
| 3414 | fi
|
---|
| 3415 | CPP=$ac_cv_prog_CPP
|
---|
| 3416 | else
|
---|
| 3417 | ac_cv_prog_CPP=$CPP
|
---|
| 3418 | fi
|
---|
| 3419 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3420 | echo "${ECHO_T}$CPP" >&6; }
|
---|
| 3421 | ac_preproc_ok=false
|
---|
| 3422 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3423 | do
|
---|
| 3424 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3425 | # with a fresh cross-compiler works.
|
---|
| 3426 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3427 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3428 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3429 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3431 | /* confdefs.h. */
|
---|
| 3432 | _ACEOF
|
---|
| 3433 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3435 | /* end confdefs.h. */
|
---|
| 3436 | #ifdef __STDC__
|
---|
| 3437 | # include <limits.h>
|
---|
| 3438 | #else
|
---|
| 3439 | # include <assert.h>
|
---|
| 3440 | #endif
|
---|
| 3441 | Syntax error
|
---|
| 3442 | _ACEOF
|
---|
| 3443 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3444 | case "(($ac_try" in
|
---|
| 3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3446 | *) ac_try_echo=$ac_try;;
|
---|
| 3447 | esac
|
---|
| 3448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 3450 | ac_status=$?
|
---|
| 3451 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3452 | rm -f conftest.er1
|
---|
| 3453 | cat conftest.err >&5
|
---|
| 3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3455 | (exit $ac_status); } >/dev/null && {
|
---|
| 3456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3457 | test ! -s conftest.err
|
---|
| 3458 | }; then
|
---|
| 3459 | :
|
---|
| 3460 | else
|
---|
| 3461 | echo "$as_me: failed program was:" >&5
|
---|
| 3462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3463 |
|
---|
| 3464 | # Broken: fails on valid input.
|
---|
| 3465 | continue
|
---|
| 3466 | fi
|
---|
| 3467 |
|
---|
| 3468 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3469 |
|
---|
| 3470 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
| 3471 | # can be detected and how.
|
---|
| 3472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3473 | /* confdefs.h. */
|
---|
| 3474 | _ACEOF
|
---|
| 3475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3477 | /* end confdefs.h. */
|
---|
| 3478 | #include <ac_nonexistent.h>
|
---|
| 3479 | _ACEOF
|
---|
| 3480 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3481 | case "(($ac_try" in
|
---|
| 3482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3483 | *) ac_try_echo=$ac_try;;
|
---|
| 3484 | esac
|
---|
| 3485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 3487 | ac_status=$?
|
---|
| 3488 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3489 | rm -f conftest.er1
|
---|
| 3490 | cat conftest.err >&5
|
---|
| 3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3492 | (exit $ac_status); } >/dev/null && {
|
---|
| 3493 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3494 | test ! -s conftest.err
|
---|
| 3495 | }; then
|
---|
| 3496 | # Broken: success on invalid input.
|
---|
| 3497 | continue
|
---|
| 3498 | else
|
---|
| 3499 | echo "$as_me: failed program was:" >&5
|
---|
| 3500 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3501 |
|
---|
| 3502 | # Passes both tests.
|
---|
| 3503 | ac_preproc_ok=:
|
---|
| 3504 | break
|
---|
| 3505 | fi
|
---|
| 3506 |
|
---|
| 3507 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3508 |
|
---|
| 3509 | done
|
---|
| 3510 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3511 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3512 | if $ac_preproc_ok; then
|
---|
| 3513 | :
|
---|
| 3514 | else
|
---|
| 3515 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3516 | See \`config.log' for more details." >&5
|
---|
| 3517 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3518 | See \`config.log' for more details." >&2;}
|
---|
| 3519 | { (exit 1); exit 1; }; }
|
---|
| 3520 | fi
|
---|
| 3521 |
|
---|
| 3522 | ac_ext=c
|
---|
| 3523 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3527 |
|
---|
| 3528 |
|
---|
| 3529 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
| 3530 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
| 3531 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
| 3532 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3533 | else
|
---|
| 3534 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
| 3535 | if test -z "$GREP"; then
|
---|
| 3536 | set dummy grep ggrep; ac_prog_name=$2
|
---|
| 3537 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
| 3538 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3539 | else
|
---|
| 3540 | ac_path_GREP_found=false
|
---|
| 3541 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3543 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 3544 | do
|
---|
| 3545 | IFS=$as_save_IFS
|
---|
| 3546 | test -z "$as_dir" && as_dir=.
|
---|
| 3547 | for ac_prog in grep ggrep; do
|
---|
| 3548 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3549 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 3550 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 3551 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 3552 | # Check for GNU $ac_path_GREP
|
---|
| 3553 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 3554 | *GNU*)
|
---|
| 3555 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 3556 | *)
|
---|
| 3557 | ac_count=0
|
---|
| 3558 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
| 3559 | while :
|
---|
| 3560 | do
|
---|
| 3561 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 3562 | mv "conftest.tmp" "conftest.in"
|
---|
| 3563 | cp "conftest.in" "conftest.nl"
|
---|
| 3564 | echo 'GREP' >> "conftest.nl"
|
---|
| 3565 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 3566 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 3567 | ac_count=`expr $ac_count + 1`
|
---|
| 3568 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 3569 | # Best one so far, save it but keep looking for a better one
|
---|
| 3570 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 3571 | ac_path_GREP_max=$ac_count
|
---|
| 3572 | fi
|
---|
| 3573 | # 10*(2^10) chars as input seems more than enough
|
---|
| 3574 | test $ac_count -gt 10 && break
|
---|
| 3575 | done
|
---|
| 3576 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 3577 | esac
|
---|
| 3578 |
|
---|
| 3579 |
|
---|
| 3580 | $ac_path_GREP_found && break 3
|
---|
| 3581 | done
|
---|
| 3582 | done
|
---|
| 3583 |
|
---|
| 3584 | done
|
---|
| 3585 | IFS=$as_save_IFS
|
---|
| 3586 |
|
---|
| 3587 |
|
---|
| 3588 | fi
|
---|
| 3589 |
|
---|
| 3590 | GREP="$ac_cv_path_GREP"
|
---|
| 3591 | if test -z "$GREP"; then
|
---|
| 3592 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 3593 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
| 3594 | { (exit 1); exit 1; }; }
|
---|
| 3595 | fi
|
---|
| 3596 |
|
---|
| 3597 | else
|
---|
| 3598 | ac_cv_path_GREP=$GREP
|
---|
| 3599 | fi
|
---|
| 3600 |
|
---|
| 3601 |
|
---|
| 3602 | fi
|
---|
| 3603 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
| 3604 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
| 3605 | GREP="$ac_cv_path_GREP"
|
---|
| 3606 |
|
---|
| 3607 |
|
---|
| 3608 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3609 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
| 3610 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
| 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3612 | else
|
---|
| 3613 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 3614 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 3615 | else
|
---|
| 3616 | # Extract the first word of "egrep" to use in msg output
|
---|
| 3617 | if test -z "$EGREP"; then
|
---|
| 3618 | set dummy egrep; ac_prog_name=$2
|
---|
| 3619 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
| 3620 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3621 | else
|
---|
| 3622 | ac_path_EGREP_found=false
|
---|
| 3623 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3625 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 3626 | do
|
---|
| 3627 | IFS=$as_save_IFS
|
---|
| 3628 | test -z "$as_dir" && as_dir=.
|
---|
| 3629 | for ac_prog in egrep; do
|
---|
| 3630 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3631 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 3632 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 3633 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 3634 | # Check for GNU $ac_path_EGREP
|
---|
| 3635 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 3636 | *GNU*)
|
---|
| 3637 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 3638 | *)
|
---|
| 3639 | ac_count=0
|
---|
| 3640 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
| 3641 | while :
|
---|
| 3642 | do
|
---|
| 3643 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 3644 | mv "conftest.tmp" "conftest.in"
|
---|
| 3645 | cp "conftest.in" "conftest.nl"
|
---|
| 3646 | echo 'EGREP' >> "conftest.nl"
|
---|
| 3647 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 3648 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 3649 | ac_count=`expr $ac_count + 1`
|
---|
| 3650 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 3651 | # Best one so far, save it but keep looking for a better one
|
---|
| 3652 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 3653 | ac_path_EGREP_max=$ac_count
|
---|
| 3654 | fi
|
---|
| 3655 | # 10*(2^10) chars as input seems more than enough
|
---|
| 3656 | test $ac_count -gt 10 && break
|
---|
| 3657 | done
|
---|
| 3658 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 3659 | esac
|
---|
| 3660 |
|
---|
| 3661 |
|
---|
| 3662 | $ac_path_EGREP_found && break 3
|
---|
| 3663 | done
|
---|
| 3664 | done
|
---|
| 3665 |
|
---|
| 3666 | done
|
---|
| 3667 | IFS=$as_save_IFS
|
---|
| 3668 |
|
---|
| 3669 |
|
---|
| 3670 | fi
|
---|
| 3671 |
|
---|
| 3672 | EGREP="$ac_cv_path_EGREP"
|
---|
| 3673 | if test -z "$EGREP"; then
|
---|
| 3674 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 3675 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
| 3676 | { (exit 1); exit 1; }; }
|
---|
| 3677 | fi
|
---|
| 3678 |
|
---|
| 3679 | else
|
---|
| 3680 | ac_cv_path_EGREP=$EGREP
|
---|
| 3681 | fi
|
---|
| 3682 |
|
---|
| 3683 |
|
---|
| 3684 | fi
|
---|
| 3685 | fi
|
---|
| 3686 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
| 3687 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
| 3688 | EGREP="$ac_cv_path_EGREP"
|
---|
| 3689 |
|
---|
| 3690 |
|
---|
| 3691 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3692 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
| 3693 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3695 | else
|
---|
| 3696 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3697 | /* confdefs.h. */
|
---|
| 3698 | _ACEOF
|
---|
| 3699 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3700 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3701 | /* end confdefs.h. */
|
---|
| 3702 | #include <stdlib.h>
|
---|
| 3703 | #include <stdarg.h>
|
---|
| 3704 | #include <string.h>
|
---|
| 3705 | #include <float.h>
|
---|
| 3706 |
|
---|
| 3707 | int
|
---|
| 3708 | main ()
|
---|
| 3709 | {
|
---|
| 3710 |
|
---|
| 3711 | ;
|
---|
| 3712 | return 0;
|
---|
| 3713 | }
|
---|
| 3714 | _ACEOF
|
---|
| 3715 | rm -f conftest.$ac_objext
|
---|
| 3716 | if { (ac_try="$ac_compile"
|
---|
| 3717 | case "(($ac_try" in
|
---|
| 3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3719 | *) ac_try_echo=$ac_try;;
|
---|
| 3720 | esac
|
---|
| 3721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3722 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 3723 | ac_status=$?
|
---|
| 3724 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3725 | rm -f conftest.er1
|
---|
| 3726 | cat conftest.err >&5
|
---|
| 3727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3728 | (exit $ac_status); } && {
|
---|
| 3729 | test -z "$ac_c_werror_flag" ||
|
---|
| 3730 | test ! -s conftest.err
|
---|
| 3731 | } && test -s conftest.$ac_objext; then
|
---|
| 3732 | ac_cv_header_stdc=yes
|
---|
| 3733 | else
|
---|
| 3734 | echo "$as_me: failed program was:" >&5
|
---|
| 3735 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3736 |
|
---|
| 3737 | ac_cv_header_stdc=no
|
---|
| 3738 | fi
|
---|
| 3739 |
|
---|
| 3740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3741 |
|
---|
| 3742 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3743 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3745 | /* confdefs.h. */
|
---|
| 3746 | _ACEOF
|
---|
| 3747 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3748 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3749 | /* end confdefs.h. */
|
---|
| 3750 | #include <string.h>
|
---|
| 3751 |
|
---|
| 3752 | _ACEOF
|
---|
| 3753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3754 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3755 | :
|
---|
| 3756 | else
|
---|
| 3757 | ac_cv_header_stdc=no
|
---|
| 3758 | fi
|
---|
| 3759 | rm -f conftest*
|
---|
| 3760 |
|
---|
| 3761 | fi
|
---|
| 3762 |
|
---|
| 3763 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3764 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3765 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3766 | /* confdefs.h. */
|
---|
| 3767 | _ACEOF
|
---|
| 3768 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3769 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3770 | /* end confdefs.h. */
|
---|
| 3771 | #include <stdlib.h>
|
---|
| 3772 |
|
---|
| 3773 | _ACEOF
|
---|
| 3774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3775 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3776 | :
|
---|
| 3777 | else
|
---|
| 3778 | ac_cv_header_stdc=no
|
---|
| 3779 | fi
|
---|
| 3780 | rm -f conftest*
|
---|
| 3781 |
|
---|
| 3782 | fi
|
---|
| 3783 |
|
---|
| 3784 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3785 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3786 | if test "$cross_compiling" = yes; then
|
---|
| 3787 | :
|
---|
| 3788 | else
|
---|
| 3789 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3790 | /* confdefs.h. */
|
---|
| 3791 | _ACEOF
|
---|
| 3792 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3793 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3794 | /* end confdefs.h. */
|
---|
| 3795 | #include <ctype.h>
|
---|
| 3796 | #include <stdlib.h>
|
---|
| 3797 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3800 | #else
|
---|
| 3801 | # define ISLOWER(c) \
|
---|
| 3802 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3803 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3804 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3805 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3806 | #endif
|
---|
| 3807 |
|
---|
| 3808 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3809 | int
|
---|
| 3810 | main ()
|
---|
| 3811 | {
|
---|
| 3812 | int i;
|
---|
| 3813 | for (i = 0; i < 256; i++)
|
---|
| 3814 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3815 | || toupper (i) != TOUPPER (i))
|
---|
| 3816 | return 2;
|
---|
| 3817 | return 0;
|
---|
| 3818 | }
|
---|
| 3819 | _ACEOF
|
---|
| 3820 | rm -f conftest$ac_exeext
|
---|
| 3821 | if { (ac_try="$ac_link"
|
---|
| 3822 | case "(($ac_try" in
|
---|
| 3823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3824 | *) ac_try_echo=$ac_try;;
|
---|
| 3825 | esac
|
---|
| 3826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3827 | (eval "$ac_link") 2>&5
|
---|
| 3828 | ac_status=$?
|
---|
| 3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3830 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3831 | { (case "(($ac_try" in
|
---|
| 3832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3833 | *) ac_try_echo=$ac_try;;
|
---|
| 3834 | esac
|
---|
| 3835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3836 | (eval "$ac_try") 2>&5
|
---|
| 3837 | ac_status=$?
|
---|
| 3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3839 | (exit $ac_status); }; }; then
|
---|
| 3840 | :
|
---|
| 3841 | else
|
---|
| 3842 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3843 | echo "$as_me: failed program was:" >&5
|
---|
| 3844 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3845 |
|
---|
| 3846 | ( exit $ac_status )
|
---|
| 3847 | ac_cv_header_stdc=no
|
---|
| 3848 | fi
|
---|
| 3849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3850 | fi
|
---|
| 3851 |
|
---|
| 3852 |
|
---|
| 3853 | fi
|
---|
| 3854 | fi
|
---|
| 3855 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3856 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
| 3857 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3858 |
|
---|
| 3859 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3860 | #define STDC_HEADERS 1
|
---|
| 3861 | _ACEOF
|
---|
| 3862 |
|
---|
| 3863 | fi
|
---|
| 3864 |
|
---|
| 3865 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3866 |
|
---|
| 3867 |
|
---|
| 3868 |
|
---|
| 3869 |
|
---|
| 3870 |
|
---|
| 3871 |
|
---|
| 3872 |
|
---|
| 3873 |
|
---|
| 3874 |
|
---|
| 3875 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3876 | inttypes.h stdint.h unistd.h
|
---|
| 3877 | do
|
---|
| 3878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3879 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 3881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3883 | else
|
---|
| 3884 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3885 | /* confdefs.h. */
|
---|
| 3886 | _ACEOF
|
---|
| 3887 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3888 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3889 | /* end confdefs.h. */
|
---|
| 3890 | $ac_includes_default
|
---|
| 3891 |
|
---|
| 3892 | #include <$ac_header>
|
---|
| 3893 | _ACEOF
|
---|
| 3894 | rm -f conftest.$ac_objext
|
---|
| 3895 | if { (ac_try="$ac_compile"
|
---|
| 3896 | case "(($ac_try" in
|
---|
| 3897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3898 | *) ac_try_echo=$ac_try;;
|
---|
| 3899 | esac
|
---|
| 3900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3901 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 3902 | ac_status=$?
|
---|
| 3903 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3904 | rm -f conftest.er1
|
---|
| 3905 | cat conftest.err >&5
|
---|
| 3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3907 | (exit $ac_status); } && {
|
---|
| 3908 | test -z "$ac_c_werror_flag" ||
|
---|
| 3909 | test ! -s conftest.err
|
---|
| 3910 | } && test -s conftest.$ac_objext; then
|
---|
| 3911 | eval "$as_ac_Header=yes"
|
---|
| 3912 | else
|
---|
| 3913 | echo "$as_me: failed program was:" >&5
|
---|
| 3914 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3915 |
|
---|
| 3916 | eval "$as_ac_Header=no"
|
---|
| 3917 | fi
|
---|
| 3918 |
|
---|
| 3919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3920 | fi
|
---|
| 3921 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 3922 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 3923 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 3924 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3925 | cat >>confdefs.h <<_ACEOF
|
---|
| 3926 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3927 | _ACEOF
|
---|
| 3928 |
|
---|
| 3929 | fi
|
---|
| 3930 |
|
---|
| 3931 | done
|
---|
| 3932 |
|
---|
| 3933 |
|
---|
| 3934 | { echo "$as_me:$LINENO: checking for C99 printf size specifiers" >&5
|
---|
| 3935 | echo $ECHO_N "checking for C99 printf size specifiers... $ECHO_C" >&6; }
|
---|
| 3936 | if test "${ac_have_c99_format+set}" = set; then
|
---|
| 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3938 | else
|
---|
| 3939 |
|
---|
| 3940 | if test "$cross_compiling" = yes; then
|
---|
| 3941 | ac_have_c99_format=yes
|
---|
| 3942 | else
|
---|
| 3943 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3944 |
|
---|
| 3945 | /* confdefs.h. */
|
---|
| 3946 | _ACEOF
|
---|
| 3947 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3948 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3949 | /* end confdefs.h. */
|
---|
| 3950 | $ac_includes_default
|
---|
| 3951 | int
|
---|
| 3952 | main ()
|
---|
| 3953 | {
|
---|
| 3954 |
|
---|
| 3955 | char buf[64];
|
---|
| 3956 | if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
|
---|
| 3957 | exit(1);
|
---|
| 3958 | else if (strcmp(buf, "12345"))
|
---|
| 3959 | exit(2);
|
---|
| 3960 |
|
---|
| 3961 | ;
|
---|
| 3962 | return 0;
|
---|
| 3963 | }
|
---|
| 3964 | _ACEOF
|
---|
| 3965 | rm -f conftest$ac_exeext
|
---|
| 3966 | if { (ac_try="$ac_link"
|
---|
| 3967 | case "(($ac_try" in
|
---|
| 3968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3969 | *) ac_try_echo=$ac_try;;
|
---|
| 3970 | esac
|
---|
| 3971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3972 | (eval "$ac_link") 2>&5
|
---|
| 3973 | ac_status=$?
|
---|
| 3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3976 | { (case "(($ac_try" in
|
---|
| 3977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3978 | *) ac_try_echo=$ac_try;;
|
---|
| 3979 | esac
|
---|
| 3980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3981 | (eval "$ac_try") 2>&5
|
---|
| 3982 | ac_status=$?
|
---|
| 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3984 | (exit $ac_status); }; }; then
|
---|
| 3985 | ac_have_c99_format=yes
|
---|
| 3986 | else
|
---|
| 3987 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3988 | echo "$as_me: failed program was:" >&5
|
---|
| 3989 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3990 |
|
---|
| 3991 | ( exit $ac_status )
|
---|
| 3992 | ac_have_c99_format=no
|
---|
| 3993 | fi
|
---|
| 3994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3995 | fi
|
---|
| 3996 |
|
---|
| 3997 |
|
---|
| 3998 |
|
---|
| 3999 | fi
|
---|
| 4000 | { echo "$as_me:$LINENO: result: $ac_have_c99_format" >&5
|
---|
| 4001 | echo "${ECHO_T}$ac_have_c99_format" >&6; }
|
---|
| 4002 | if test $ac_have_c99_format = yes; then
|
---|
| 4003 |
|
---|
| 4004 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4005 | #define HAVE_C99_FORMAT 1
|
---|
| 4006 | _ACEOF
|
---|
| 4007 |
|
---|
| 4008 | fi
|
---|
| 4009 |
|
---|
| 4010 | { echo "$as_me:$LINENO: checking for C99 variadic macro support" >&5
|
---|
| 4011 | echo $ECHO_N "checking for C99 variadic macro support... $ECHO_C" >&6; }
|
---|
| 4012 | if test "${ac_have_variadic+set}" = set; then
|
---|
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4014 | else
|
---|
| 4015 |
|
---|
| 4016 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4017 |
|
---|
| 4018 | #define macro(...) func(__VA_ARGS__)
|
---|
| 4019 | int func(int a, ...);
|
---|
| 4020 | int test() { return macro(1, 2, 3); }
|
---|
| 4021 |
|
---|
| 4022 | _ACEOF
|
---|
| 4023 | rm -f conftest.$ac_objext
|
---|
| 4024 | if { (ac_try="$ac_compile"
|
---|
| 4025 | case "(($ac_try" in
|
---|
| 4026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4027 | *) ac_try_echo=$ac_try;;
|
---|
| 4028 | esac
|
---|
| 4029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4030 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4031 | ac_status=$?
|
---|
| 4032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4033 | rm -f conftest.er1
|
---|
| 4034 | cat conftest.err >&5
|
---|
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4036 | (exit $ac_status); } && {
|
---|
| 4037 | test -z "$ac_c_werror_flag" ||
|
---|
| 4038 | test ! -s conftest.err
|
---|
| 4039 | } && test -s conftest.$ac_objext; then
|
---|
| 4040 | ac_have_variadic=yes
|
---|
| 4041 | else
|
---|
| 4042 | echo "$as_me: failed program was:" >&5
|
---|
| 4043 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4044 |
|
---|
| 4045 | ac_have_variadic=no
|
---|
| 4046 | fi
|
---|
| 4047 |
|
---|
| 4048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4049 | fi
|
---|
| 4050 | { echo "$as_me:$LINENO: result: $ac_have_variadic" >&5
|
---|
| 4051 | echo "${ECHO_T}$ac_have_variadic" >&6; }
|
---|
| 4052 | if test $ac_have_variadic = yes ; then
|
---|
| 4053 |
|
---|
| 4054 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4055 | #define HAVE_CPP_VARARG_MACRO_GCC 1
|
---|
| 4056 | _ACEOF
|
---|
| 4057 |
|
---|
| 4058 | fi
|
---|
| 4059 |
|
---|
| 4060 | # Byteorder of host
|
---|
| 4061 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 4062 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
| 4063 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 4064 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4065 | else
|
---|
| 4066 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 4067 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4068 | /* confdefs.h. */
|
---|
| 4069 | _ACEOF
|
---|
| 4070 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4071 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4072 | /* end confdefs.h. */
|
---|
| 4073 | #include <sys/types.h>
|
---|
| 4074 | #include <sys/param.h>
|
---|
| 4075 |
|
---|
| 4076 | int
|
---|
| 4077 | main ()
|
---|
| 4078 | {
|
---|
| 4079 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
| 4080 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
| 4081 | bogus endian macros
|
---|
| 4082 | #endif
|
---|
| 4083 |
|
---|
| 4084 | ;
|
---|
| 4085 | return 0;
|
---|
| 4086 | }
|
---|
| 4087 | _ACEOF
|
---|
| 4088 | rm -f conftest.$ac_objext
|
---|
| 4089 | if { (ac_try="$ac_compile"
|
---|
| 4090 | case "(($ac_try" in
|
---|
| 4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4092 | *) ac_try_echo=$ac_try;;
|
---|
| 4093 | esac
|
---|
| 4094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4095 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4096 | ac_status=$?
|
---|
| 4097 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4098 | rm -f conftest.er1
|
---|
| 4099 | cat conftest.err >&5
|
---|
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4101 | (exit $ac_status); } && {
|
---|
| 4102 | test -z "$ac_c_werror_flag" ||
|
---|
| 4103 | test ! -s conftest.err
|
---|
| 4104 | } && test -s conftest.$ac_objext; then
|
---|
| 4105 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 4106 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4107 | /* confdefs.h. */
|
---|
| 4108 | _ACEOF
|
---|
| 4109 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4110 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4111 | /* end confdefs.h. */
|
---|
| 4112 | #include <sys/types.h>
|
---|
| 4113 | #include <sys/param.h>
|
---|
| 4114 |
|
---|
| 4115 | int
|
---|
| 4116 | main ()
|
---|
| 4117 | {
|
---|
| 4118 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 4119 | not big endian
|
---|
| 4120 | #endif
|
---|
| 4121 |
|
---|
| 4122 | ;
|
---|
| 4123 | return 0;
|
---|
| 4124 | }
|
---|
| 4125 | _ACEOF
|
---|
| 4126 | rm -f conftest.$ac_objext
|
---|
| 4127 | if { (ac_try="$ac_compile"
|
---|
| 4128 | case "(($ac_try" in
|
---|
| 4129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4130 | *) ac_try_echo=$ac_try;;
|
---|
| 4131 | esac
|
---|
| 4132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4133 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4134 | ac_status=$?
|
---|
| 4135 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4136 | rm -f conftest.er1
|
---|
| 4137 | cat conftest.err >&5
|
---|
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4139 | (exit $ac_status); } && {
|
---|
| 4140 | test -z "$ac_c_werror_flag" ||
|
---|
| 4141 | test ! -s conftest.err
|
---|
| 4142 | } && test -s conftest.$ac_objext; then
|
---|
| 4143 | ac_cv_c_bigendian=yes
|
---|
| 4144 | else
|
---|
| 4145 | echo "$as_me: failed program was:" >&5
|
---|
| 4146 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4147 |
|
---|
| 4148 | ac_cv_c_bigendian=no
|
---|
| 4149 | fi
|
---|
| 4150 |
|
---|
| 4151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4152 | else
|
---|
| 4153 | echo "$as_me: failed program was:" >&5
|
---|
| 4154 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4155 |
|
---|
| 4156 | # It does not; compile a test program.
|
---|
| 4157 | if test "$cross_compiling" = yes; then
|
---|
| 4158 | # try to guess the endianness by grepping values into an object file
|
---|
| 4159 | ac_cv_c_bigendian=unknown
|
---|
| 4160 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4161 | /* confdefs.h. */
|
---|
| 4162 | _ACEOF
|
---|
| 4163 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4164 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4165 | /* end confdefs.h. */
|
---|
| 4166 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 4167 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 4168 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 4169 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 4170 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 4171 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 4172 | int
|
---|
| 4173 | main ()
|
---|
| 4174 | {
|
---|
| 4175 | _ascii (); _ebcdic ();
|
---|
| 4176 | ;
|
---|
| 4177 | return 0;
|
---|
| 4178 | }
|
---|
| 4179 | _ACEOF
|
---|
| 4180 | rm -f conftest.$ac_objext
|
---|
| 4181 | if { (ac_try="$ac_compile"
|
---|
| 4182 | case "(($ac_try" in
|
---|
| 4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4184 | *) ac_try_echo=$ac_try;;
|
---|
| 4185 | esac
|
---|
| 4186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4187 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4188 | ac_status=$?
|
---|
| 4189 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4190 | rm -f conftest.er1
|
---|
| 4191 | cat conftest.err >&5
|
---|
| 4192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4193 | (exit $ac_status); } && {
|
---|
| 4194 | test -z "$ac_c_werror_flag" ||
|
---|
| 4195 | test ! -s conftest.err
|
---|
| 4196 | } && test -s conftest.$ac_objext; then
|
---|
| 4197 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 4198 | ac_cv_c_bigendian=yes
|
---|
| 4199 | fi
|
---|
| 4200 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 4201 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 4202 | ac_cv_c_bigendian=no
|
---|
| 4203 | else
|
---|
| 4204 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 4205 | ac_cv_c_bigendian=unknown
|
---|
| 4206 | fi
|
---|
| 4207 | fi
|
---|
| 4208 | else
|
---|
| 4209 | echo "$as_me: failed program was:" >&5
|
---|
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4211 |
|
---|
| 4212 |
|
---|
| 4213 | fi
|
---|
| 4214 |
|
---|
| 4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4216 | else
|
---|
| 4217 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4218 | /* confdefs.h. */
|
---|
| 4219 | _ACEOF
|
---|
| 4220 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4221 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4222 | /* end confdefs.h. */
|
---|
| 4223 | $ac_includes_default
|
---|
| 4224 | int
|
---|
| 4225 | main ()
|
---|
| 4226 | {
|
---|
| 4227 |
|
---|
| 4228 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 4229 | union
|
---|
| 4230 | {
|
---|
| 4231 | long int l;
|
---|
| 4232 | char c[sizeof (long int)];
|
---|
| 4233 | } u;
|
---|
| 4234 | u.l = 1;
|
---|
| 4235 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 4236 |
|
---|
| 4237 | ;
|
---|
| 4238 | return 0;
|
---|
| 4239 | }
|
---|
| 4240 | _ACEOF
|
---|
| 4241 | rm -f conftest$ac_exeext
|
---|
| 4242 | if { (ac_try="$ac_link"
|
---|
| 4243 | case "(($ac_try" in
|
---|
| 4244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4245 | *) ac_try_echo=$ac_try;;
|
---|
| 4246 | esac
|
---|
| 4247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4248 | (eval "$ac_link") 2>&5
|
---|
| 4249 | ac_status=$?
|
---|
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 4252 | { (case "(($ac_try" in
|
---|
| 4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4254 | *) ac_try_echo=$ac_try;;
|
---|
| 4255 | esac
|
---|
| 4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4257 | (eval "$ac_try") 2>&5
|
---|
| 4258 | ac_status=$?
|
---|
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4260 | (exit $ac_status); }; }; then
|
---|
| 4261 | ac_cv_c_bigendian=no
|
---|
| 4262 | else
|
---|
| 4263 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4264 | echo "$as_me: failed program was:" >&5
|
---|
| 4265 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4266 |
|
---|
| 4267 | ( exit $ac_status )
|
---|
| 4268 | ac_cv_c_bigendian=yes
|
---|
| 4269 | fi
|
---|
| 4270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 4271 | fi
|
---|
| 4272 |
|
---|
| 4273 |
|
---|
| 4274 | fi
|
---|
| 4275 |
|
---|
| 4276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4277 | fi
|
---|
| 4278 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 4279 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
| 4280 | case $ac_cv_c_bigendian in
|
---|
| 4281 | yes)
|
---|
| 4282 |
|
---|
| 4283 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4284 | #define HOST_BIG_ENDIAN
|
---|
| 4285 | _ACEOF
|
---|
| 4286 | ;;
|
---|
| 4287 | no)
|
---|
| 4288 |
|
---|
| 4289 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4290 | #define HOST_LITTLE_ENDIAN
|
---|
| 4291 | _ACEOF
|
---|
| 4292 | ;;
|
---|
| 4293 | *)
|
---|
| 4294 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 4295 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 4296 | echo "$as_me: error: unknown endianness
|
---|
| 4297 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 4298 | { (exit 1); exit 1; }; } ;;
|
---|
| 4299 | esac
|
---|
| 4300 |
|
---|
| 4301 |
|
---|
| 4302 |
|
---|
| 4303 | # Checks for programs.
|
---|
| 4304 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 4305 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
---|
| 4306 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
| 4307 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 4308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4309 | else
|
---|
| 4310 | cat >conftest.make <<\_ACEOF
|
---|
| 4311 | SHELL = /bin/sh
|
---|
| 4312 | all:
|
---|
| 4313 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
| 4314 | _ACEOF
|
---|
| 4315 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 4316 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 4317 | *@@@%%%=?*=@@@%%%*)
|
---|
| 4318 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 4319 | *)
|
---|
| 4320 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 4321 | esac
|
---|
| 4322 | rm -f conftest.make
|
---|
| 4323 | fi
|
---|
| 4324 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 4325 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4326 | echo "${ECHO_T}yes" >&6; }
|
---|
| 4327 | SET_MAKE=
|
---|
| 4328 | else
|
---|
| 4329 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4330 | echo "${ECHO_T}no" >&6; }
|
---|
| 4331 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 4332 | fi
|
---|
| 4333 |
|
---|
| 4334 | # Find a good install program. We prefer a C program (faster),
|
---|
| 4335 | # so one script is as good as another. But avoid the broken or
|
---|
| 4336 | # incompatible versions:
|
---|
| 4337 | # SysV /etc/install, /usr/sbin/install
|
---|
| 4338 | # SunOS /usr/etc/install
|
---|
| 4339 | # IRIX /sbin/install
|
---|
| 4340 | # AIX /bin/install
|
---|
| 4341 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 4342 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 4343 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 4344 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 4345 | # OS/2's system install, which has a completely different semantic
|
---|
| 4346 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
| 4347 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 4348 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
| 4349 | if test -z "$INSTALL"; then
|
---|
| 4350 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4352 | else
|
---|
| 4353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4354 | for as_dir in $PATH
|
---|
| 4355 | do
|
---|
| 4356 | IFS=$as_save_IFS
|
---|
| 4357 | test -z "$as_dir" && as_dir=.
|
---|
| 4358 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 4359 | case $as_dir/ in
|
---|
| 4360 | ./ | .// | /cC/* | \
|
---|
| 4361 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 4362 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 4363 | /usr/ucb/* ) ;;
|
---|
| 4364 | *)
|
---|
| 4365 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 4366 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 4367 | # by default.
|
---|
| 4368 | for ac_prog in ginstall scoinst install; do
|
---|
| 4369 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4370 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
| 4371 | if test $ac_prog = install &&
|
---|
| 4372 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 4373 | # AIX install. It has an incompatible calling convention.
|
---|
| 4374 | :
|
---|
| 4375 | elif test $ac_prog = install &&
|
---|
| 4376 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 4377 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 4378 | :
|
---|
| 4379 | else
|
---|
| 4380 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 4381 | break 3
|
---|
| 4382 | fi
|
---|
| 4383 | fi
|
---|
| 4384 | done
|
---|
| 4385 | done
|
---|
| 4386 | ;;
|
---|
| 4387 | esac
|
---|
| 4388 | done
|
---|
| 4389 | IFS=$as_save_IFS
|
---|
| 4390 |
|
---|
| 4391 |
|
---|
| 4392 | fi
|
---|
| 4393 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 4394 | INSTALL=$ac_cv_path_install
|
---|
| 4395 | else
|
---|
| 4396 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 4397 | # value for INSTALL within a source directory, because that will
|
---|
| 4398 | # break other packages using the cache if that directory is
|
---|
| 4399 | # removed, or if the value is a relative name.
|
---|
| 4400 | INSTALL=$ac_install_sh
|
---|
| 4401 | fi
|
---|
| 4402 | fi
|
---|
| 4403 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 4404 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
| 4405 |
|
---|
| 4406 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 4407 | # It thinks the first close brace ends the variable substitution.
|
---|
| 4408 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 4409 |
|
---|
| 4410 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 4411 |
|
---|
| 4412 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 4413 |
|
---|
| 4414 | for ac_prog in 'bison -y' byacc
|
---|
| 4415 | do
|
---|
| 4416 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4417 | set dummy $ac_prog; ac_word=$2
|
---|
| 4418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 4419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 4420 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4422 | else
|
---|
| 4423 | if test -n "$YACC"; then
|
---|
| 4424 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 4425 | else
|
---|
| 4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4427 | for as_dir in $PATH
|
---|
| 4428 | do
|
---|
| 4429 | IFS=$as_save_IFS
|
---|
| 4430 | test -z "$as_dir" && as_dir=.
|
---|
| 4431 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4433 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 4434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4435 | break 2
|
---|
| 4436 | fi
|
---|
| 4437 | done
|
---|
| 4438 | done
|
---|
| 4439 | IFS=$as_save_IFS
|
---|
| 4440 |
|
---|
| 4441 | fi
|
---|
| 4442 | fi
|
---|
| 4443 | YACC=$ac_cv_prog_YACC
|
---|
| 4444 | if test -n "$YACC"; then
|
---|
| 4445 | { echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 4446 | echo "${ECHO_T}$YACC" >&6; }
|
---|
| 4447 | else
|
---|
| 4448 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4449 | echo "${ECHO_T}no" >&6; }
|
---|
| 4450 | fi
|
---|
| 4451 |
|
---|
| 4452 |
|
---|
| 4453 | test -n "$YACC" && break
|
---|
| 4454 | done
|
---|
| 4455 | test -n "$YACC" || YACC="yacc"
|
---|
| 4456 |
|
---|
| 4457 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
| 4458 | set dummy strip; ac_word=$2
|
---|
| 4459 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 4460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 4461 | if test "${ac_cv_prog_strip+set}" = set; then
|
---|
| 4462 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4463 | else
|
---|
| 4464 | if test -n "$strip"; then
|
---|
| 4465 | ac_cv_prog_strip="$strip" # Let the user override the test.
|
---|
| 4466 | else
|
---|
| 4467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4468 | for as_dir in $PATH
|
---|
| 4469 | do
|
---|
| 4470 | IFS=$as_save_IFS
|
---|
| 4471 | test -z "$as_dir" && as_dir=.
|
---|
| 4472 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4474 | ac_cv_prog_strip="yes"
|
---|
| 4475 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4476 | break 2
|
---|
| 4477 | fi
|
---|
| 4478 | done
|
---|
| 4479 | done
|
---|
| 4480 | IFS=$as_save_IFS
|
---|
| 4481 |
|
---|
| 4482 | test -z "$ac_cv_prog_strip" && ac_cv_prog_strip="no"
|
---|
| 4483 | fi
|
---|
| 4484 | fi
|
---|
| 4485 | strip=$ac_cv_prog_strip
|
---|
| 4486 | if test -n "$strip"; then
|
---|
| 4487 | { echo "$as_me:$LINENO: result: $strip" >&5
|
---|
| 4488 | echo "${ECHO_T}$strip" >&6; }
|
---|
| 4489 | else
|
---|
| 4490 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4491 | echo "${ECHO_T}no" >&6; }
|
---|
| 4492 | fi
|
---|
| 4493 |
|
---|
| 4494 |
|
---|
| 4495 |
|
---|
| 4496 | for ac_prog in flex lex
|
---|
| 4497 | do
|
---|
| 4498 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4499 | set dummy $ac_prog; ac_word=$2
|
---|
| 4500 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 4501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
| 4502 | if test "${ac_cv_prog_LEX+set}" = set; then
|
---|
| 4503 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4504 | else
|
---|
| 4505 | if test -n "$LEX"; then
|
---|
| 4506 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
---|
| 4507 | else
|
---|
| 4508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4509 | for as_dir in $PATH
|
---|
| 4510 | do
|
---|
| 4511 | IFS=$as_save_IFS
|
---|
| 4512 | test -z "$as_dir" && as_dir=.
|
---|
| 4513 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4515 | ac_cv_prog_LEX="$ac_prog"
|
---|
| 4516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4517 | break 2
|
---|
| 4518 | fi
|
---|
| 4519 | done
|
---|
| 4520 | done
|
---|
| 4521 | IFS=$as_save_IFS
|
---|
| 4522 |
|
---|
| 4523 | fi
|
---|
| 4524 | fi
|
---|
| 4525 | LEX=$ac_cv_prog_LEX
|
---|
| 4526 | if test -n "$LEX"; then
|
---|
| 4527 | { echo "$as_me:$LINENO: result: $LEX" >&5
|
---|
| 4528 | echo "${ECHO_T}$LEX" >&6; }
|
---|
| 4529 | else
|
---|
| 4530 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4531 | echo "${ECHO_T}no" >&6; }
|
---|
| 4532 | fi
|
---|
| 4533 |
|
---|
| 4534 |
|
---|
| 4535 | test -n "$LEX" && break
|
---|
| 4536 | done
|
---|
| 4537 | test -n "$LEX" || LEX=":"
|
---|
| 4538 |
|
---|
| 4539 | if test "x$LEX" != "x:"; then
|
---|
| 4540 | cat >conftest.l <<_ACEOF
|
---|
| 4541 | %%
|
---|
| 4542 | a { ECHO; }
|
---|
| 4543 | b { REJECT; }
|
---|
| 4544 | c { yymore (); }
|
---|
| 4545 | d { yyless (1); }
|
---|
| 4546 | e { yyless (input () != 0); }
|
---|
| 4547 | f { unput (yytext[0]); }
|
---|
| 4548 | . { BEGIN INITIAL; }
|
---|
| 4549 | %%
|
---|
| 4550 | #ifdef YYTEXT_POINTER
|
---|
| 4551 | extern char *yytext;
|
---|
| 4552 | #endif
|
---|
| 4553 | int
|
---|
| 4554 | main (void)
|
---|
| 4555 | {
|
---|
| 4556 | return ! yylex () + ! yywrap ();
|
---|
| 4557 | }
|
---|
| 4558 | _ACEOF
|
---|
| 4559 | { (ac_try="$LEX conftest.l"
|
---|
| 4560 | case "(($ac_try" in
|
---|
| 4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4562 | *) ac_try_echo=$ac_try;;
|
---|
| 4563 | esac
|
---|
| 4564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4565 | (eval "$LEX conftest.l") 2>&5
|
---|
| 4566 | ac_status=$?
|
---|
| 4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4568 | (exit $ac_status); }
|
---|
| 4569 | { echo "$as_me:$LINENO: checking lex output file root" >&5
|
---|
| 4570 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
|
---|
| 4571 | if test "${ac_cv_prog_lex_root+set}" = set; then
|
---|
| 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4573 | else
|
---|
| 4574 |
|
---|
| 4575 | if test -f lex.yy.c; then
|
---|
| 4576 | ac_cv_prog_lex_root=lex.yy
|
---|
| 4577 | elif test -f lexyy.c; then
|
---|
| 4578 | ac_cv_prog_lex_root=lexyy
|
---|
| 4579 | else
|
---|
| 4580 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
|
---|
| 4581 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
|
---|
| 4582 | { (exit 1); exit 1; }; }
|
---|
| 4583 | fi
|
---|
| 4584 | fi
|
---|
| 4585 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
|
---|
| 4586 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
|
---|
| 4587 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
|
---|
| 4588 |
|
---|
| 4589 | if test -z "${LEXLIB+set}"; then
|
---|
| 4590 | { echo "$as_me:$LINENO: checking lex library" >&5
|
---|
| 4591 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
|
---|
| 4592 | if test "${ac_cv_lib_lex+set}" = set; then
|
---|
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4594 | else
|
---|
| 4595 |
|
---|
| 4596 | ac_save_LIBS=$LIBS
|
---|
| 4597 | ac_cv_lib_lex='none needed'
|
---|
| 4598 | for ac_lib in '' -lfl -ll; do
|
---|
| 4599 | LIBS="$ac_lib $ac_save_LIBS"
|
---|
| 4600 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4601 | `cat $LEX_OUTPUT_ROOT.c`
|
---|
| 4602 | _ACEOF
|
---|
| 4603 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4604 | if { (ac_try="$ac_link"
|
---|
| 4605 | case "(($ac_try" in
|
---|
| 4606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4607 | *) ac_try_echo=$ac_try;;
|
---|
| 4608 | esac
|
---|
| 4609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4610 | (eval "$ac_link") 2>conftest.er1
|
---|
| 4611 | ac_status=$?
|
---|
| 4612 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4613 | rm -f conftest.er1
|
---|
| 4614 | cat conftest.err >&5
|
---|
| 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4616 | (exit $ac_status); } && {
|
---|
| 4617 | test -z "$ac_c_werror_flag" ||
|
---|
| 4618 | test ! -s conftest.err
|
---|
| 4619 | } && test -s conftest$ac_exeext &&
|
---|
| 4620 | $as_test_x conftest$ac_exeext; then
|
---|
| 4621 | ac_cv_lib_lex=$ac_lib
|
---|
| 4622 | else
|
---|
| 4623 | echo "$as_me: failed program was:" >&5
|
---|
| 4624 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4625 |
|
---|
| 4626 |
|
---|
| 4627 | fi
|
---|
| 4628 |
|
---|
| 4629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 4630 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4631 | test "$ac_cv_lib_lex" != 'none needed' && break
|
---|
| 4632 | done
|
---|
| 4633 | LIBS=$ac_save_LIBS
|
---|
| 4634 |
|
---|
| 4635 | fi
|
---|
| 4636 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
|
---|
| 4637 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
|
---|
| 4638 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
|
---|
| 4639 | fi
|
---|
| 4640 |
|
---|
| 4641 |
|
---|
| 4642 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
|
---|
| 4643 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
|
---|
| 4644 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
|
---|
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4646 | else
|
---|
| 4647 | # POSIX says lex can declare yytext either as a pointer or an array; the
|
---|
| 4648 | # default is implementation-dependent. Figure out which it is, since
|
---|
| 4649 | # not all implementations provide the %pointer and %array declarations.
|
---|
| 4650 | ac_cv_prog_lex_yytext_pointer=no
|
---|
| 4651 | ac_save_LIBS=$LIBS
|
---|
| 4652 | LIBS="$LEXLIB $ac_save_LIBS"
|
---|
| 4653 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4654 | #define YYTEXT_POINTER 1
|
---|
| 4655 | `cat $LEX_OUTPUT_ROOT.c`
|
---|
| 4656 | _ACEOF
|
---|
| 4657 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4658 | if { (ac_try="$ac_link"
|
---|
| 4659 | case "(($ac_try" in
|
---|
| 4660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4661 | *) ac_try_echo=$ac_try;;
|
---|
| 4662 | esac
|
---|
| 4663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4664 | (eval "$ac_link") 2>conftest.er1
|
---|
| 4665 | ac_status=$?
|
---|
| 4666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4667 | rm -f conftest.er1
|
---|
| 4668 | cat conftest.err >&5
|
---|
| 4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4670 | (exit $ac_status); } && {
|
---|
| 4671 | test -z "$ac_c_werror_flag" ||
|
---|
| 4672 | test ! -s conftest.err
|
---|
| 4673 | } && test -s conftest$ac_exeext &&
|
---|
| 4674 | $as_test_x conftest$ac_exeext; then
|
---|
| 4675 | ac_cv_prog_lex_yytext_pointer=yes
|
---|
| 4676 | else
|
---|
| 4677 | echo "$as_me: failed program was:" >&5
|
---|
| 4678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4679 |
|
---|
| 4680 |
|
---|
| 4681 | fi
|
---|
| 4682 |
|
---|
| 4683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 4684 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4685 | LIBS=$ac_save_LIBS
|
---|
| 4686 |
|
---|
| 4687 | fi
|
---|
| 4688 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
|
---|
| 4689 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
|
---|
| 4690 | if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
---|
| 4691 |
|
---|
| 4692 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4693 | #define YYTEXT_POINTER 1
|
---|
| 4694 | _ACEOF
|
---|
| 4695 |
|
---|
| 4696 | fi
|
---|
| 4697 | rm -f conftest.l $LEX_OUTPUT_ROOT.c
|
---|
| 4698 |
|
---|
| 4699 | fi
|
---|
| 4700 | if test "$LEX" = flex ; then
|
---|
| 4701 |
|
---|
| 4702 | cat >>confdefs.h <<_ACEOF
|
---|
| 4703 | #define ISFLEX 1
|
---|
| 4704 | _ACEOF
|
---|
| 4705 |
|
---|
| 4706 | fi
|
---|
| 4707 |
|
---|
| 4708 | # Checks for libraries.
|
---|
| 4709 |
|
---|
| 4710 | # Checks for header files.
|
---|
| 4711 | # AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
|
---|
| 4712 |
|
---|
| 4713 |
|
---|
| 4714 |
|
---|
| 4715 | for ac_header in string.h malloc.h libgen.h
|
---|
| 4716 | do
|
---|
| 4717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 4719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 4721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 4722 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4723 | fi
|
---|
| 4724 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 4725 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 4726 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 4727 | else
|
---|
| 4728 | # Is the header compilable?
|
---|
| 4729 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 4730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
| 4731 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4732 | /* confdefs.h. */
|
---|
| 4733 | _ACEOF
|
---|
| 4734 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4735 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4736 | /* end confdefs.h. */
|
---|
| 4737 | $ac_includes_default
|
---|
| 4738 | #include <$ac_header>
|
---|
| 4739 | _ACEOF
|
---|
| 4740 | rm -f conftest.$ac_objext
|
---|
| 4741 | if { (ac_try="$ac_compile"
|
---|
| 4742 | case "(($ac_try" in
|
---|
| 4743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4744 | *) ac_try_echo=$ac_try;;
|
---|
| 4745 | esac
|
---|
| 4746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4747 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4748 | ac_status=$?
|
---|
| 4749 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4750 | rm -f conftest.er1
|
---|
| 4751 | cat conftest.err >&5
|
---|
| 4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4753 | (exit $ac_status); } && {
|
---|
| 4754 | test -z "$ac_c_werror_flag" ||
|
---|
| 4755 | test ! -s conftest.err
|
---|
| 4756 | } && test -s conftest.$ac_objext; then
|
---|
| 4757 | ac_header_compiler=yes
|
---|
| 4758 | else
|
---|
| 4759 | echo "$as_me: failed program was:" >&5
|
---|
| 4760 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4761 |
|
---|
| 4762 | ac_header_compiler=no
|
---|
| 4763 | fi
|
---|
| 4764 |
|
---|
| 4765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4766 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4767 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
| 4768 |
|
---|
| 4769 | # Is the header present?
|
---|
| 4770 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 4771 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
| 4772 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4773 | /* confdefs.h. */
|
---|
| 4774 | _ACEOF
|
---|
| 4775 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4776 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4777 | /* end confdefs.h. */
|
---|
| 4778 | #include <$ac_header>
|
---|
| 4779 | _ACEOF
|
---|
| 4780 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4781 | case "(($ac_try" in
|
---|
| 4782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4783 | *) ac_try_echo=$ac_try;;
|
---|
| 4784 | esac
|
---|
| 4785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4786 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 4787 | ac_status=$?
|
---|
| 4788 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4789 | rm -f conftest.er1
|
---|
| 4790 | cat conftest.err >&5
|
---|
| 4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4792 | (exit $ac_status); } >/dev/null && {
|
---|
| 4793 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4794 | test ! -s conftest.err
|
---|
| 4795 | }; then
|
---|
| 4796 | ac_header_preproc=yes
|
---|
| 4797 | else
|
---|
| 4798 | echo "$as_me: failed program was:" >&5
|
---|
| 4799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4800 |
|
---|
| 4801 | ac_header_preproc=no
|
---|
| 4802 | fi
|
---|
| 4803 |
|
---|
| 4804 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4805 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4806 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
| 4807 |
|
---|
| 4808 | # So? What about this header?
|
---|
| 4809 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4810 | yes:no: )
|
---|
| 4811 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4812 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 4814 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 4815 | ac_header_preproc=yes
|
---|
| 4816 | ;;
|
---|
| 4817 | no:yes:* )
|
---|
| 4818 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 4819 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 4820 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 4821 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 4822 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 4823 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 4824 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4825 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 4827 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 4828 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 4829 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 4830 | ( cat <<\_ASBOX
|
---|
| 4831 | ## ------------------------------------- ##
|
---|
| 4832 | ## Report this to <pcc-list@ludd.ltu.se> ##
|
---|
| 4833 | ## ------------------------------------- ##
|
---|
| 4834 | _ASBOX
|
---|
| 4835 | ) | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 4836 | ;;
|
---|
| 4837 | esac
|
---|
| 4838 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 4840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 4841 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4842 | else
|
---|
| 4843 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 4844 | fi
|
---|
| 4845 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 4846 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 4847 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 4848 |
|
---|
| 4849 | fi
|
---|
| 4850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4851 | cat >>confdefs.h <<_ACEOF
|
---|
| 4852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4853 | _ACEOF
|
---|
| 4854 |
|
---|
| 4855 | fi
|
---|
| 4856 |
|
---|
| 4857 | done
|
---|
| 4858 |
|
---|
| 4859 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
---|
| 4860 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
|
---|
| 4861 | if test "${ac_cv_header_sys_wait_h+set}" = set; then
|
---|
| 4862 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4863 | else
|
---|
| 4864 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4865 | /* confdefs.h. */
|
---|
| 4866 | _ACEOF
|
---|
| 4867 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4868 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4869 | /* end confdefs.h. */
|
---|
| 4870 | #include <sys/types.h>
|
---|
| 4871 | #include <sys/wait.h>
|
---|
| 4872 | #ifndef WEXITSTATUS
|
---|
| 4873 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
|
---|
| 4874 | #endif
|
---|
| 4875 | #ifndef WIFEXITED
|
---|
| 4876 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
---|
| 4877 | #endif
|
---|
| 4878 |
|
---|
| 4879 | int
|
---|
| 4880 | main ()
|
---|
| 4881 | {
|
---|
| 4882 | int s;
|
---|
| 4883 | wait (&s);
|
---|
| 4884 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
---|
| 4885 | ;
|
---|
| 4886 | return 0;
|
---|
| 4887 | }
|
---|
| 4888 | _ACEOF
|
---|
| 4889 | rm -f conftest.$ac_objext
|
---|
| 4890 | if { (ac_try="$ac_compile"
|
---|
| 4891 | case "(($ac_try" in
|
---|
| 4892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4893 | *) ac_try_echo=$ac_try;;
|
---|
| 4894 | esac
|
---|
| 4895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4896 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4897 | ac_status=$?
|
---|
| 4898 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4899 | rm -f conftest.er1
|
---|
| 4900 | cat conftest.err >&5
|
---|
| 4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4902 | (exit $ac_status); } && {
|
---|
| 4903 | test -z "$ac_c_werror_flag" ||
|
---|
| 4904 | test ! -s conftest.err
|
---|
| 4905 | } && test -s conftest.$ac_objext; then
|
---|
| 4906 | ac_cv_header_sys_wait_h=yes
|
---|
| 4907 | else
|
---|
| 4908 | echo "$as_me: failed program was:" >&5
|
---|
| 4909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4910 |
|
---|
| 4911 | ac_cv_header_sys_wait_h=no
|
---|
| 4912 | fi
|
---|
| 4913 |
|
---|
| 4914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4915 | fi
|
---|
| 4916 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
|
---|
| 4917 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
|
---|
| 4918 | if test $ac_cv_header_sys_wait_h = yes; then
|
---|
| 4919 |
|
---|
| 4920 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4921 | #define HAVE_SYS_WAIT_H 1
|
---|
| 4922 | _ACEOF
|
---|
| 4923 |
|
---|
| 4924 | fi
|
---|
| 4925 |
|
---|
| 4926 |
|
---|
| 4927 | # Checks for library functions.
|
---|
| 4928 | ## AC_FUNC_STRTOD
|
---|
| 4929 | # AC_FUNC_VPRINTF
|
---|
| 4930 | # AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
|
---|
| 4931 |
|
---|
| 4932 |
|
---|
| 4933 |
|
---|
| 4934 |
|
---|
| 4935 |
|
---|
| 4936 |
|
---|
| 4937 |
|
---|
| 4938 |
|
---|
| 4939 |
|
---|
| 4940 |
|
---|
| 4941 | for ac_func in strtold vsnprintf snprintf mkstemp strlcat strlcpy basename getopt ffs vfork
|
---|
| 4942 | do
|
---|
| 4943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 4944 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 4945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 4946 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 4947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4948 | else
|
---|
| 4949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4950 | /* confdefs.h. */
|
---|
| 4951 | _ACEOF
|
---|
| 4952 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4954 | /* end confdefs.h. */
|
---|
| 4955 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 4956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 4957 | #define $ac_func innocuous_$ac_func
|
---|
| 4958 |
|
---|
| 4959 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 4960 | which can conflict with char $ac_func (); below.
|
---|
| 4961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4962 | <limits.h> exists even on freestanding compilers. */
|
---|
| 4963 |
|
---|
| 4964 | #ifdef __STDC__
|
---|
| 4965 | # include <limits.h>
|
---|
| 4966 | #else
|
---|
| 4967 | # include <assert.h>
|
---|
| 4968 | #endif
|
---|
| 4969 |
|
---|
| 4970 | #undef $ac_func
|
---|
| 4971 |
|
---|
| 4972 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4973 | Use char because int might match the return type of a GCC
|
---|
| 4974 | builtin and then its argument prototype would still apply. */
|
---|
| 4975 | #ifdef __cplusplus
|
---|
| 4976 | extern "C"
|
---|
| 4977 | #endif
|
---|
| 4978 | char $ac_func ();
|
---|
| 4979 | /* The GNU C library defines this for functions which it implements
|
---|
| 4980 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 4981 | something starting with __ and the normal name is an alias. */
|
---|
| 4982 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
| 4983 | choke me
|
---|
| 4984 | #endif
|
---|
| 4985 |
|
---|
| 4986 | int
|
---|
| 4987 | main ()
|
---|
| 4988 | {
|
---|
| 4989 | return $ac_func ();
|
---|
| 4990 | ;
|
---|
| 4991 | return 0;
|
---|
| 4992 | }
|
---|
| 4993 | _ACEOF
|
---|
| 4994 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4995 | if { (ac_try="$ac_link"
|
---|
| 4996 | case "(($ac_try" in
|
---|
| 4997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4998 | *) ac_try_echo=$ac_try;;
|
---|
| 4999 | esac
|
---|
| 5000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5001 | (eval "$ac_link") 2>conftest.er1
|
---|
| 5002 | ac_status=$?
|
---|
| 5003 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5004 | rm -f conftest.er1
|
---|
| 5005 | cat conftest.err >&5
|
---|
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5007 | (exit $ac_status); } && {
|
---|
| 5008 | test -z "$ac_c_werror_flag" ||
|
---|
| 5009 | test ! -s conftest.err
|
---|
| 5010 | } && test -s conftest$ac_exeext &&
|
---|
| 5011 | $as_test_x conftest$ac_exeext; then
|
---|
| 5012 | eval "$as_ac_var=yes"
|
---|
| 5013 | else
|
---|
| 5014 | echo "$as_me: failed program was:" >&5
|
---|
| 5015 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5016 |
|
---|
| 5017 | eval "$as_ac_var=no"
|
---|
| 5018 | fi
|
---|
| 5019 |
|
---|
| 5020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 5021 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5022 | fi
|
---|
| 5023 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 5024 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5025 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 5026 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5027 | cat >>confdefs.h <<_ACEOF
|
---|
| 5028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5029 | _ACEOF
|
---|
| 5030 |
|
---|
| 5031 | fi
|
---|
| 5032 | done
|
---|
| 5033 |
|
---|
| 5034 |
|
---|
| 5035 |
|
---|
| 5036 |
|
---|
| 5037 |
|
---|
| 5038 |
|
---|
| 5039 |
|
---|
| 5040 |
|
---|
| 5041 |
|
---|
| 5042 |
|
---|
| 5043 |
|
---|
| 5044 |
|
---|
| 5045 |
|
---|
| 5046 |
|
---|
| 5047 |
|
---|
| 5048 |
|
---|
| 5049 | pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'`
|
---|
| 5050 | pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'`
|
---|
| 5051 | pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'`
|
---|
| 5052 | versstr="\"$PACKAGE_STRING `cat $srcdir/DATESTAMP` for $target, $USER@`hostname`\""
|
---|
| 5053 |
|
---|
| 5054 |
|
---|
| 5055 | cat >>confdefs.h <<_ACEOF
|
---|
| 5056 | #define TARGOS $targos
|
---|
| 5057 | _ACEOF
|
---|
| 5058 |
|
---|
| 5059 |
|
---|
| 5060 | cat >>confdefs.h <<_ACEOF
|
---|
| 5061 | #define TARGOSVER $targosver
|
---|
| 5062 | _ACEOF
|
---|
| 5063 |
|
---|
| 5064 |
|
---|
| 5065 | cat >>confdefs.h <<_ACEOF
|
---|
| 5066 | #define PCC_MAJOR $pcc_major
|
---|
| 5067 | _ACEOF
|
---|
| 5068 |
|
---|
| 5069 |
|
---|
| 5070 | cat >>confdefs.h <<_ACEOF
|
---|
| 5071 | #define PCC_MINOR $pcc_minor
|
---|
| 5072 | _ACEOF
|
---|
| 5073 |
|
---|
| 5074 |
|
---|
| 5075 | cat >>confdefs.h <<_ACEOF
|
---|
| 5076 | #define PCC_MINORMINOR $pcc_minorminor
|
---|
| 5077 | _ACEOF
|
---|
| 5078 |
|
---|
| 5079 |
|
---|
| 5080 | cat >>confdefs.h <<_ACEOF
|
---|
| 5081 | #define VERSSTR $versstr
|
---|
| 5082 | _ACEOF
|
---|
| 5083 |
|
---|
| 5084 |
|
---|
| 5085 | ac_config_files="$ac_config_files Makefile cc/Makefile cc/cc/Makefile cc/cpp/Makefile cc/ccom/Makefile f77/Makefile f77/f77/Makefile f77/fcom/Makefile"
|
---|
| 5086 |
|
---|
| 5087 | cat >confcache <<\_ACEOF
|
---|
| 5088 | # This file is a shell script that caches the results of configure
|
---|
| 5089 | # tests run on this system so they can be shared between configure
|
---|
| 5090 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 5091 | # It is not useful on other systems. If it contains results you don't
|
---|
| 5092 | # want to keep, you may remove or edit it.
|
---|
| 5093 | #
|
---|
| 5094 | # config.status only pays attention to the cache file if you give it
|
---|
| 5095 | # the --recheck option to rerun configure.
|
---|
| 5096 | #
|
---|
| 5097 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 5098 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 5099 | # following values.
|
---|
| 5100 |
|
---|
| 5101 | _ACEOF
|
---|
| 5102 |
|
---|
| 5103 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 5104 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 5105 | # So, we kill variables containing newlines.
|
---|
| 5106 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 5107 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 5108 | (
|
---|
| 5109 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 5110 | eval ac_val=\$$ac_var
|
---|
| 5111 | case $ac_val in #(
|
---|
| 5112 | *${as_nl}*)
|
---|
| 5113 | case $ac_var in #(
|
---|
| 5114 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 5115 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
| 5116 | esac
|
---|
| 5117 | case $ac_var in #(
|
---|
| 5118 | _ | IFS | as_nl) ;; #(
|
---|
| 5119 | *) $as_unset $ac_var ;;
|
---|
| 5120 | esac ;;
|
---|
| 5121 | esac
|
---|
| 5122 | done
|
---|
| 5123 |
|
---|
| 5124 | (set) 2>&1 |
|
---|
| 5125 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 5126 | *${as_nl}ac_space=\ *)
|
---|
| 5127 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 5128 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 5129 | sed -n \
|
---|
| 5130 | "s/'/'\\\\''/g;
|
---|
| 5131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 5132 | ;; #(
|
---|
| 5133 | *)
|
---|
| 5134 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 5135 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
| 5136 | ;;
|
---|
| 5137 | esac |
|
---|
| 5138 | sort
|
---|
| 5139 | ) |
|
---|
| 5140 | sed '
|
---|
| 5141 | /^ac_cv_env_/b end
|
---|
| 5142 | t clear
|
---|
| 5143 | :clear
|
---|
| 5144 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 5145 | t end
|
---|
| 5146 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 5147 | :end' >>confcache
|
---|
| 5148 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 5149 | if test -w "$cache_file"; then
|
---|
| 5150 | test "x$cache_file" != "x/dev/null" &&
|
---|
| 5151 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
| 5152 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
| 5153 | cat confcache >$cache_file
|
---|
| 5154 | else
|
---|
| 5155 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
| 5156 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
| 5157 | fi
|
---|
| 5158 | fi
|
---|
| 5159 | rm -f confcache
|
---|
| 5160 |
|
---|
| 5161 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 5162 | # Let make expand exec_prefix.
|
---|
| 5163 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 5164 |
|
---|
| 5165 | DEFS=-DHAVE_CONFIG_H
|
---|
| 5166 |
|
---|
| 5167 | ac_libobjs=
|
---|
| 5168 | ac_ltlibobjs=
|
---|
| 5169 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 5170 | # 1. Remove the extension, and $U if already installed.
|
---|
| 5171 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 5172 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
| 5173 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 5174 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 5175 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 5176 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
| 5177 | done
|
---|
| 5178 | LIBOBJS=$ac_libobjs
|
---|
| 5179 |
|
---|
| 5180 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 5181 |
|
---|
| 5182 |
|
---|
| 5183 |
|
---|
| 5184 | : ${CONFIG_STATUS=./config.status}
|
---|
| 5185 | ac_clean_files_save=$ac_clean_files
|
---|
| 5186 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 5187 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 5188 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 5189 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 5190 | #! $SHELL
|
---|
| 5191 | # Generated by $as_me.
|
---|
| 5192 | # Run this file to recreate the current configuration.
|
---|
| 5193 | # Compiler output produced by configure, useful for debugging
|
---|
| 5194 | # configure, is in config.log if it exists.
|
---|
| 5195 |
|
---|
| 5196 | debug=false
|
---|
| 5197 | ac_cs_recheck=false
|
---|
| 5198 | ac_cs_silent=false
|
---|
| 5199 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 5200 | _ACEOF
|
---|
| 5201 |
|
---|
| 5202 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5203 | ## --------------------- ##
|
---|
| 5204 | ## M4sh Initialization. ##
|
---|
| 5205 | ## --------------------- ##
|
---|
| 5206 |
|
---|
| 5207 | # Be more Bourne compatible
|
---|
| 5208 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 5209 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 5210 | emulate sh
|
---|
| 5211 | NULLCMD=:
|
---|
| 5212 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 5213 | # is contrary to our usage. Disable this feature.
|
---|
| 5214 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 5215 | setopt NO_GLOB_SUBST
|
---|
| 5216 | else
|
---|
| 5217 | case `(set -o) 2>/dev/null` in
|
---|
| 5218 | *posix*) set -o posix ;;
|
---|
| 5219 | esac
|
---|
| 5220 |
|
---|
| 5221 | fi
|
---|
| 5222 |
|
---|
| 5223 |
|
---|
| 5224 |
|
---|
| 5225 |
|
---|
| 5226 | # PATH needs CR
|
---|
| 5227 | # Avoid depending upon Character Ranges.
|
---|
| 5228 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 5229 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 5230 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 5231 | as_cr_digits='0123456789'
|
---|
| 5232 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 5233 |
|
---|
| 5234 | # The user is always right.
|
---|
| 5235 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 5236 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 5237 | echo "exit 0" >>conf$$.sh
|
---|
| 5238 | chmod +x conf$$.sh
|
---|
| 5239 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 5240 | PATH_SEPARATOR=';'
|
---|
| 5241 | else
|
---|
| 5242 | PATH_SEPARATOR=:
|
---|
| 5243 | fi
|
---|
| 5244 | rm -f conf$$.sh
|
---|
| 5245 | fi
|
---|
| 5246 |
|
---|
| 5247 | # Support unset when possible.
|
---|
| 5248 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 5249 | as_unset=unset
|
---|
| 5250 | else
|
---|
| 5251 | as_unset=false
|
---|
| 5252 | fi
|
---|
| 5253 |
|
---|
| 5254 |
|
---|
| 5255 | # IFS
|
---|
| 5256 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 5257 | # there to prevent editors from complaining about space-tab.
|
---|
| 5258 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 5259 | # splitting by setting IFS to empty value.)
|
---|
| 5260 | as_nl='
|
---|
| 5261 | '
|
---|
| 5262 | IFS=" "" $as_nl"
|
---|
| 5263 |
|
---|
| 5264 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 5265 | case $0 in
|
---|
| 5266 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 5267 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 5268 | for as_dir in $PATH
|
---|
| 5269 | do
|
---|
| 5270 | IFS=$as_save_IFS
|
---|
| 5271 | test -z "$as_dir" && as_dir=.
|
---|
| 5272 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 5273 | done
|
---|
| 5274 | IFS=$as_save_IFS
|
---|
| 5275 |
|
---|
| 5276 | ;;
|
---|
| 5277 | esac
|
---|
| 5278 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 5279 | # in which case we are not to be found in the path.
|
---|
| 5280 | if test "x$as_myself" = x; then
|
---|
| 5281 | as_myself=$0
|
---|
| 5282 | fi
|
---|
| 5283 | if test ! -f "$as_myself"; then
|
---|
| 5284 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 5285 | { (exit 1); exit 1; }
|
---|
| 5286 | fi
|
---|
| 5287 |
|
---|
| 5288 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 5289 | for as_var in ENV MAIL MAILPATH
|
---|
| 5290 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 5291 | done
|
---|
| 5292 | PS1='$ '
|
---|
| 5293 | PS2='> '
|
---|
| 5294 | PS4='+ '
|
---|
| 5295 |
|
---|
| 5296 | # NLS nuisances.
|
---|
| 5297 | for as_var in \
|
---|
| 5298 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 5299 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 5300 | LC_TELEPHONE LC_TIME
|
---|
| 5301 | do
|
---|
| 5302 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 5303 | eval $as_var=C; export $as_var
|
---|
| 5304 | else
|
---|
| 5305 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 5306 | fi
|
---|
| 5307 | done
|
---|
| 5308 |
|
---|
| 5309 | # Required to use basename.
|
---|
| 5310 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 5311 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 5312 | as_expr=expr
|
---|
| 5313 | else
|
---|
| 5314 | as_expr=false
|
---|
| 5315 | fi
|
---|
| 5316 |
|
---|
| 5317 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 5318 | as_basename=basename
|
---|
| 5319 | else
|
---|
| 5320 | as_basename=false
|
---|
| 5321 | fi
|
---|
| 5322 |
|
---|
| 5323 |
|
---|
| 5324 | # Name of the executable.
|
---|
| 5325 | as_me=`$as_basename -- "$0" ||
|
---|
| 5326 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 5327 | X"$0" : 'X\(//\)$' \| \
|
---|
| 5328 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 5329 | echo X/"$0" |
|
---|
| 5330 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 5331 | s//\1/
|
---|
| 5332 | q
|
---|
| 5333 | }
|
---|
| 5334 | /^X\/\(\/\/\)$/{
|
---|
| 5335 | s//\1/
|
---|
| 5336 | q
|
---|
| 5337 | }
|
---|
| 5338 | /^X\/\(\/\).*/{
|
---|
| 5339 | s//\1/
|
---|
| 5340 | q
|
---|
| 5341 | }
|
---|
| 5342 | s/.*/./; q'`
|
---|
| 5343 |
|
---|
| 5344 | # CDPATH.
|
---|
| 5345 | $as_unset CDPATH
|
---|
| 5346 |
|
---|
| 5347 |
|
---|
| 5348 |
|
---|
| 5349 | as_lineno_1=$LINENO
|
---|
| 5350 | as_lineno_2=$LINENO
|
---|
| 5351 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 5352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
| 5353 |
|
---|
| 5354 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 5355 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 5356 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 5357 | # does the real work. The second script uses 'N' to pair each
|
---|
| 5358 | # line-number line with the line containing $LINENO, and appends
|
---|
| 5359 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 5360 | # case at line end.
|
---|
| 5361 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 5362 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 5363 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 5364 | sed -n '
|
---|
| 5365 | p
|
---|
| 5366 | /[$]LINENO/=
|
---|
| 5367 | ' <$as_myself |
|
---|
| 5368 | sed '
|
---|
| 5369 | s/[$]LINENO.*/&-/
|
---|
| 5370 | t lineno
|
---|
| 5371 | b
|
---|
| 5372 | :lineno
|
---|
| 5373 | N
|
---|
| 5374 | :loop
|
---|
| 5375 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
| 5376 | t loop
|
---|
| 5377 | s/-\n.*//
|
---|
| 5378 | ' >$as_me.lineno &&
|
---|
| 5379 | chmod +x "$as_me.lineno" ||
|
---|
| 5380 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 5381 | { (exit 1); exit 1; }; }
|
---|
| 5382 |
|
---|
| 5383 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 5384 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 5385 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 5386 | . "./$as_me.lineno"
|
---|
| 5387 | # Exit status is that of the last command.
|
---|
| 5388 | exit
|
---|
| 5389 | }
|
---|
| 5390 |
|
---|
| 5391 |
|
---|
| 5392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 5393 | as_dirname=dirname
|
---|
| 5394 | else
|
---|
| 5395 | as_dirname=false
|
---|
| 5396 | fi
|
---|
| 5397 |
|
---|
| 5398 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 5399 | case `echo -n x` in
|
---|
| 5400 | -n*)
|
---|
| 5401 | case `echo 'x\c'` in
|
---|
| 5402 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 5403 | *) ECHO_C='\c';;
|
---|
| 5404 | esac;;
|
---|
| 5405 | *)
|
---|
| 5406 | ECHO_N='-n';;
|
---|
| 5407 | esac
|
---|
| 5408 |
|
---|
| 5409 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 5410 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 5411 | as_expr=expr
|
---|
| 5412 | else
|
---|
| 5413 | as_expr=false
|
---|
| 5414 | fi
|
---|
| 5415 |
|
---|
| 5416 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 5417 | if test -d conf$$.dir; then
|
---|
| 5418 | rm -f conf$$.dir/conf$$.file
|
---|
| 5419 | else
|
---|
| 5420 | rm -f conf$$.dir
|
---|
| 5421 | mkdir conf$$.dir
|
---|
| 5422 | fi
|
---|
| 5423 | echo >conf$$.file
|
---|
| 5424 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 5425 | as_ln_s='ln -s'
|
---|
| 5426 | # ... but there are two gotchas:
|
---|
| 5427 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 5428 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 5429 | # In both cases, we have to default to `cp -p'.
|
---|
| 5430 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 5431 | as_ln_s='cp -p'
|
---|
| 5432 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 5433 | as_ln_s=ln
|
---|
| 5434 | else
|
---|
| 5435 | as_ln_s='cp -p'
|
---|
| 5436 | fi
|
---|
| 5437 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 5438 | rmdir conf$$.dir 2>/dev/null
|
---|
| 5439 |
|
---|
| 5440 | if mkdir -p . 2>/dev/null; then
|
---|
| 5441 | as_mkdir_p=:
|
---|
| 5442 | else
|
---|
| 5443 | test -d ./-p && rmdir ./-p
|
---|
| 5444 | as_mkdir_p=false
|
---|
| 5445 | fi
|
---|
| 5446 |
|
---|
| 5447 | if test -x / >/dev/null 2>&1; then
|
---|
| 5448 | as_test_x='test -x'
|
---|
| 5449 | else
|
---|
| 5450 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 5451 | as_ls_L_option=L
|
---|
| 5452 | else
|
---|
| 5453 | as_ls_L_option=
|
---|
| 5454 | fi
|
---|
| 5455 | as_test_x='
|
---|
| 5456 | eval sh -c '\''
|
---|
| 5457 | if test -d "$1"; then
|
---|
| 5458 | test -d "$1/.";
|
---|
| 5459 | else
|
---|
| 5460 | case $1 in
|
---|
| 5461 | -*)set "./$1";;
|
---|
| 5462 | esac;
|
---|
| 5463 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 5464 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 5465 | '\'' sh
|
---|
| 5466 | '
|
---|
| 5467 | fi
|
---|
| 5468 | as_executable_p=$as_test_x
|
---|
| 5469 |
|
---|
| 5470 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 5471 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 5472 |
|
---|
| 5473 | # Sed expression to map a string onto a valid variable name.
|
---|
| 5474 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 5475 |
|
---|
| 5476 |
|
---|
| 5477 | exec 6>&1
|
---|
| 5478 |
|
---|
| 5479 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
| 5480 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 5481 | # values after options handling.
|
---|
| 5482 | ac_log="
|
---|
| 5483 | This file was extended by pcc $as_me 1.0.0.RELEASE, which was
|
---|
| 5484 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
| 5485 |
|
---|
| 5486 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 5487 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 5488 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 5489 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 5490 | $ $0 $@
|
---|
| 5491 |
|
---|
| 5492 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 5493 | "
|
---|
| 5494 |
|
---|
| 5495 | _ACEOF
|
---|
| 5496 |
|
---|
| 5497 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5498 | # Files that config.status was made for.
|
---|
| 5499 | config_files="$ac_config_files"
|
---|
| 5500 | config_headers="$ac_config_headers"
|
---|
| 5501 |
|
---|
| 5502 | _ACEOF
|
---|
| 5503 |
|
---|
| 5504 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5505 | ac_cs_usage="\
|
---|
| 5506 | \`$as_me' instantiates files from templates according to the
|
---|
| 5507 | current configuration.
|
---|
| 5508 |
|
---|
| 5509 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 5510 |
|
---|
| 5511 | -h, --help print this help, then exit
|
---|
| 5512 | -V, --version print version number and configuration settings, then exit
|
---|
| 5513 | -q, --quiet do not print progress messages
|
---|
| 5514 | -d, --debug don't remove temporary files
|
---|
| 5515 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 5516 | --file=FILE[:TEMPLATE]
|
---|
| 5517 | instantiate the configuration file FILE
|
---|
| 5518 | --header=FILE[:TEMPLATE]
|
---|
| 5519 | instantiate the configuration header FILE
|
---|
| 5520 |
|
---|
| 5521 | Configuration files:
|
---|
| 5522 | $config_files
|
---|
| 5523 |
|
---|
| 5524 | Configuration headers:
|
---|
| 5525 | $config_headers
|
---|
| 5526 |
|
---|
| 5527 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
| 5528 |
|
---|
| 5529 | _ACEOF
|
---|
| 5530 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5531 | ac_cs_version="\\
|
---|
| 5532 | pcc config.status 1.0.0.RELEASE
|
---|
| 5533 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
| 5534 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 5535 |
|
---|
| 5536 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
| 5537 | This config.status script is free software; the Free Software Foundation
|
---|
| 5538 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 5539 |
|
---|
| 5540 | ac_pwd='$ac_pwd'
|
---|
| 5541 | srcdir='$srcdir'
|
---|
| 5542 | INSTALL='$INSTALL'
|
---|
| 5543 | _ACEOF
|
---|
| 5544 |
|
---|
| 5545 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5546 | # If no file are specified by the user, then we need to provide default
|
---|
| 5547 | # value. By we need to know if files were specified by the user.
|
---|
| 5548 | ac_need_defaults=:
|
---|
| 5549 | while test $# != 0
|
---|
| 5550 | do
|
---|
| 5551 | case $1 in
|
---|
| 5552 | --*=*)
|
---|
| 5553 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 5554 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
| 5555 | ac_shift=:
|
---|
| 5556 | ;;
|
---|
| 5557 | *)
|
---|
| 5558 | ac_option=$1
|
---|
| 5559 | ac_optarg=$2
|
---|
| 5560 | ac_shift=shift
|
---|
| 5561 | ;;
|
---|
| 5562 | esac
|
---|
| 5563 |
|
---|
| 5564 | case $ac_option in
|
---|
| 5565 | # Handling of the options.
|
---|
| 5566 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 5567 | ac_cs_recheck=: ;;
|
---|
| 5568 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 5569 | echo "$ac_cs_version"; exit ;;
|
---|
| 5570 | --debug | --debu | --deb | --de | --d | -d )
|
---|
| 5571 | debug=: ;;
|
---|
| 5572 | --file | --fil | --fi | --f )
|
---|
| 5573 | $ac_shift
|
---|
| 5574 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 5575 | ac_need_defaults=false;;
|
---|
| 5576 | --header | --heade | --head | --hea )
|
---|
| 5577 | $ac_shift
|
---|
| 5578 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 5579 | ac_need_defaults=false;;
|
---|
| 5580 | --he | --h)
|
---|
| 5581 | # Conflict between --help and --header
|
---|
| 5582 | { echo "$as_me: error: ambiguous option: $1
|
---|
| 5583 | Try \`$0 --help' for more information." >&2
|
---|
| 5584 | { (exit 1); exit 1; }; };;
|
---|
| 5585 | --help | --hel | -h )
|
---|
| 5586 | echo "$ac_cs_usage"; exit ;;
|
---|
| 5587 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 5588 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 5589 | ac_cs_silent=: ;;
|
---|
| 5590 |
|
---|
| 5591 | # This is an error.
|
---|
| 5592 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
| 5593 | Try \`$0 --help' for more information." >&2
|
---|
| 5594 | { (exit 1); exit 1; }; } ;;
|
---|
| 5595 |
|
---|
| 5596 | *) ac_config_targets="$ac_config_targets $1"
|
---|
| 5597 | ac_need_defaults=false ;;
|
---|
| 5598 |
|
---|
| 5599 | esac
|
---|
| 5600 | shift
|
---|
| 5601 | done
|
---|
| 5602 |
|
---|
| 5603 | ac_configure_extra_args=
|
---|
| 5604 |
|
---|
| 5605 | if $ac_cs_silent; then
|
---|
| 5606 | exec 6>/dev/null
|
---|
| 5607 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 5608 | fi
|
---|
| 5609 |
|
---|
| 5610 | _ACEOF
|
---|
| 5611 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5612 | if \$ac_cs_recheck; then
|
---|
| 5613 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 5614 | CONFIG_SHELL=$SHELL
|
---|
| 5615 | export CONFIG_SHELL
|
---|
| 5616 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 5617 | fi
|
---|
| 5618 |
|
---|
| 5619 | _ACEOF
|
---|
| 5620 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5621 | exec 5>>config.log
|
---|
| 5622 | {
|
---|
| 5623 | echo
|
---|
| 5624 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 5625 | ## Running $as_me. ##
|
---|
| 5626 | _ASBOX
|
---|
| 5627 | echo "$ac_log"
|
---|
| 5628 | } >&5
|
---|
| 5629 |
|
---|
| 5630 | _ACEOF
|
---|
| 5631 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5632 | _ACEOF
|
---|
| 5633 |
|
---|
| 5634 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5635 |
|
---|
| 5636 | # Handling of arguments.
|
---|
| 5637 | for ac_config_target in $ac_config_targets
|
---|
| 5638 | do
|
---|
| 5639 | case $ac_config_target in
|
---|
| 5640 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 5641 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 5642 | "cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/Makefile" ;;
|
---|
| 5643 | "cc/cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cc/Makefile" ;;
|
---|
| 5644 | "cc/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cpp/Makefile" ;;
|
---|
| 5645 | "cc/ccom/Makefile") CONFIG_FILES="$CONFIG_FILES cc/ccom/Makefile" ;;
|
---|
| 5646 | "f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/Makefile" ;;
|
---|
| 5647 | "f77/f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/f77/Makefile" ;;
|
---|
| 5648 | "f77/fcom/Makefile") CONFIG_FILES="$CONFIG_FILES f77/fcom/Makefile" ;;
|
---|
| 5649 |
|
---|
| 5650 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 5651 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 5652 | { (exit 1); exit 1; }; };;
|
---|
| 5653 | esac
|
---|
| 5654 | done
|
---|
| 5655 |
|
---|
| 5656 |
|
---|
| 5657 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 5658 | # then the envvar interface is used. Set only those that are not.
|
---|
| 5659 | # We use the long form for the default assignment because of an extremely
|
---|
| 5660 | # bizarre bug on SunOS 4.1.3.
|
---|
| 5661 | if $ac_need_defaults; then
|
---|
| 5662 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 5663 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 5664 | fi
|
---|
| 5665 |
|
---|
| 5666 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 5667 | # simply because there is no reason against having it here, and in addition,
|
---|
| 5668 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 5669 | # Hook for its removal unless debugging.
|
---|
| 5670 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 5671 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
| 5672 | $debug ||
|
---|
| 5673 | {
|
---|
| 5674 | tmp=
|
---|
| 5675 | trap 'exit_status=$?
|
---|
| 5676 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 5677 | ' 0
|
---|
| 5678 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 5679 | }
|
---|
| 5680 | # Create a (secure) tmp directory for tmp files.
|
---|
| 5681 |
|
---|
| 5682 | {
|
---|
| 5683 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
| 5684 | test -n "$tmp" && test -d "$tmp"
|
---|
| 5685 | } ||
|
---|
| 5686 | {
|
---|
| 5687 | tmp=./conf$$-$RANDOM
|
---|
| 5688 | (umask 077 && mkdir "$tmp")
|
---|
| 5689 | } ||
|
---|
| 5690 | {
|
---|
| 5691 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 5692 | { (exit 1); exit 1; }
|
---|
| 5693 | }
|
---|
| 5694 |
|
---|
| 5695 | #
|
---|
| 5696 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
| 5697 | #
|
---|
| 5698 |
|
---|
| 5699 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 5700 | # This happens for instance when ./config.status config.h
|
---|
| 5701 | if test -n "$CONFIG_FILES"; then
|
---|
| 5702 |
|
---|
| 5703 | _ACEOF
|
---|
| 5704 |
|
---|
| 5705 |
|
---|
| 5706 |
|
---|
| 5707 | ac_delim='%!_!# '
|
---|
| 5708 | for ac_last_try in false false false false false :; do
|
---|
| 5709 | cat >conf$$subs.sed <<_ACEOF
|
---|
| 5710 | SHELL!$SHELL$ac_delim
|
---|
| 5711 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
| 5712 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
| 5713 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
| 5714 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
| 5715 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
| 5716 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
| 5717 | exec_prefix!$exec_prefix$ac_delim
|
---|
| 5718 | prefix!$prefix$ac_delim
|
---|
| 5719 | program_transform_name!$program_transform_name$ac_delim
|
---|
| 5720 | bindir!$bindir$ac_delim
|
---|
| 5721 | sbindir!$sbindir$ac_delim
|
---|
| 5722 | libexecdir!$libexecdir$ac_delim
|
---|
| 5723 | datarootdir!$datarootdir$ac_delim
|
---|
| 5724 | datadir!$datadir$ac_delim
|
---|
| 5725 | sysconfdir!$sysconfdir$ac_delim
|
---|
| 5726 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
| 5727 | localstatedir!$localstatedir$ac_delim
|
---|
| 5728 | includedir!$includedir$ac_delim
|
---|
| 5729 | oldincludedir!$oldincludedir$ac_delim
|
---|
| 5730 | docdir!$docdir$ac_delim
|
---|
| 5731 | infodir!$infodir$ac_delim
|
---|
| 5732 | htmldir!$htmldir$ac_delim
|
---|
| 5733 | dvidir!$dvidir$ac_delim
|
---|
| 5734 | pdfdir!$pdfdir$ac_delim
|
---|
| 5735 | psdir!$psdir$ac_delim
|
---|
| 5736 | libdir!$libdir$ac_delim
|
---|
| 5737 | localedir!$localedir$ac_delim
|
---|
| 5738 | mandir!$mandir$ac_delim
|
---|
| 5739 | DEFS!$DEFS$ac_delim
|
---|
| 5740 | ECHO_C!$ECHO_C$ac_delim
|
---|
| 5741 | ECHO_N!$ECHO_N$ac_delim
|
---|
| 5742 | ECHO_T!$ECHO_T$ac_delim
|
---|
| 5743 | LIBS!$LIBS$ac_delim
|
---|
| 5744 | build_alias!$build_alias$ac_delim
|
---|
| 5745 | host_alias!$host_alias$ac_delim
|
---|
| 5746 | target_alias!$target_alias$ac_delim
|
---|
| 5747 | build!$build$ac_delim
|
---|
| 5748 | build_cpu!$build_cpu$ac_delim
|
---|
| 5749 | build_vendor!$build_vendor$ac_delim
|
---|
| 5750 | build_os!$build_os$ac_delim
|
---|
| 5751 | host!$host$ac_delim
|
---|
| 5752 | host_cpu!$host_cpu$ac_delim
|
---|
| 5753 | host_vendor!$host_vendor$ac_delim
|
---|
| 5754 | host_os!$host_os$ac_delim
|
---|
| 5755 | target!$target$ac_delim
|
---|
| 5756 | target_cpu!$target_cpu$ac_delim
|
---|
| 5757 | target_vendor!$target_vendor$ac_delim
|
---|
| 5758 | target_os!$target_os$ac_delim
|
---|
| 5759 | BINPREFIX!$BINPREFIX$ac_delim
|
---|
| 5760 | CC!$CC$ac_delim
|
---|
| 5761 | CFLAGS!$CFLAGS$ac_delim
|
---|
| 5762 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
| 5763 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
| 5764 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
| 5765 | EXEEXT!$EXEEXT$ac_delim
|
---|
| 5766 | OBJEXT!$OBJEXT$ac_delim
|
---|
| 5767 | CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
|
---|
| 5768 | CPP!$CPP$ac_delim
|
---|
| 5769 | GREP!$GREP$ac_delim
|
---|
| 5770 | EGREP!$EGREP$ac_delim
|
---|
| 5771 | SET_MAKE!$SET_MAKE$ac_delim
|
---|
| 5772 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
| 5773 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
| 5774 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
| 5775 | YACC!$YACC$ac_delim
|
---|
| 5776 | YFLAGS!$YFLAGS$ac_delim
|
---|
| 5777 | strip!$strip$ac_delim
|
---|
| 5778 | LEX!$LEX$ac_delim
|
---|
| 5779 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
|
---|
| 5780 | LEXLIB!$LEXLIB$ac_delim
|
---|
| 5781 | targos!$targos$ac_delim
|
---|
| 5782 | targosver!$targosver$ac_delim
|
---|
| 5783 | targmach!$targmach$ac_delim
|
---|
| 5784 | ADD_CFLAGS!$ADD_CFLAGS$ac_delim
|
---|
| 5785 | ADD_CPPFLAGS!$ADD_CPPFLAGS$ac_delim
|
---|
| 5786 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
| 5787 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
| 5788 | _ACEOF
|
---|
| 5789 |
|
---|
| 5790 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
|
---|
| 5791 | break
|
---|
| 5792 | elif $ac_last_try; then
|
---|
| 5793 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
| 5794 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
| 5795 | { (exit 1); exit 1; }; }
|
---|
| 5796 | else
|
---|
| 5797 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 5798 | fi
|
---|
| 5799 | done
|
---|
| 5800 |
|
---|
| 5801 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
| 5802 | if test -n "$ac_eof"; then
|
---|
| 5803 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
| 5804 | ac_eof=`expr $ac_eof + 1`
|
---|
| 5805 | fi
|
---|
| 5806 |
|
---|
| 5807 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5808 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
| 5809 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
| 5810 | _ACEOF
|
---|
| 5811 | sed '
|
---|
| 5812 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
| 5813 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
| 5814 | :n
|
---|
| 5815 | t n
|
---|
| 5816 | s/'"$ac_delim"'$/,g/; t
|
---|
| 5817 | s/$/\\/; p
|
---|
| 5818 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
| 5819 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
| 5820 | rm -f conf$$subs.sed
|
---|
| 5821 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 5822 | :end
|
---|
| 5823 | s/|#_!!_#|//g
|
---|
| 5824 | CEOF$ac_eof
|
---|
| 5825 | _ACEOF
|
---|
| 5826 |
|
---|
| 5827 |
|
---|
| 5828 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 5829 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 5830 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 5831 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 5832 | if test "x$srcdir" = x.; then
|
---|
| 5833 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 5834 | s/:*\$(srcdir):*/:/
|
---|
| 5835 | s/:*\${srcdir}:*/:/
|
---|
| 5836 | s/:*@srcdir@:*/:/
|
---|
| 5837 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
| 5838 | s/:*$//
|
---|
| 5839 | s/^[^=]*=[ ]*$//
|
---|
| 5840 | }'
|
---|
| 5841 | fi
|
---|
| 5842 |
|
---|
| 5843 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 5844 | fi # test -n "$CONFIG_FILES"
|
---|
| 5845 |
|
---|
| 5846 |
|
---|
| 5847 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
---|
| 5848 | do
|
---|
| 5849 | case $ac_tag in
|
---|
| 5850 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
| 5851 | esac
|
---|
| 5852 | case $ac_mode$ac_tag in
|
---|
| 5853 | :[FHL]*:*);;
|
---|
| 5854 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
| 5855 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
| 5856 | { (exit 1); exit 1; }; };;
|
---|
| 5857 | :[FH]-) ac_tag=-:-;;
|
---|
| 5858 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 5859 | esac
|
---|
| 5860 | ac_save_IFS=$IFS
|
---|
| 5861 | IFS=:
|
---|
| 5862 | set x $ac_tag
|
---|
| 5863 | IFS=$ac_save_IFS
|
---|
| 5864 | shift
|
---|
| 5865 | ac_file=$1
|
---|
| 5866 | shift
|
---|
| 5867 |
|
---|
| 5868 | case $ac_mode in
|
---|
| 5869 | :L) ac_source=$1;;
|
---|
| 5870 | :[FH])
|
---|
| 5871 | ac_file_inputs=
|
---|
| 5872 | for ac_f
|
---|
| 5873 | do
|
---|
| 5874 | case $ac_f in
|
---|
| 5875 | -) ac_f="$tmp/stdin";;
|
---|
| 5876 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 5877 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 5878 | # because $ac_f cannot contain `:'.
|
---|
| 5879 | test -f "$ac_f" ||
|
---|
| 5880 | case $ac_f in
|
---|
| 5881 | [\\/$]*) false;;
|
---|
| 5882 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 5883 | esac ||
|
---|
| 5884 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
| 5885 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
| 5886 | { (exit 1); exit 1; }; };;
|
---|
| 5887 | esac
|
---|
| 5888 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
| 5889 | done
|
---|
| 5890 |
|
---|
| 5891 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 5892 | # use $as_me), people would be surprised to read:
|
---|
| 5893 | # /* config.h. Generated by config.status. */
|
---|
| 5894 | configure_input="Generated from "`IFS=:
|
---|
| 5895 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
| 5896 | if test x"$ac_file" != x-; then
|
---|
| 5897 | configure_input="$ac_file. $configure_input"
|
---|
| 5898 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 5899 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 5900 | fi
|
---|
| 5901 |
|
---|
| 5902 | case $ac_tag in
|
---|
| 5903 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
| 5904 | esac
|
---|
| 5905 | ;;
|
---|
| 5906 | esac
|
---|
| 5907 |
|
---|
| 5908 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
| 5909 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 5910 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 5911 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 5912 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 5913 | echo X"$ac_file" |
|
---|
| 5914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 5915 | s//\1/
|
---|
| 5916 | q
|
---|
| 5917 | }
|
---|
| 5918 | /^X\(\/\/\)[^/].*/{
|
---|
| 5919 | s//\1/
|
---|
| 5920 | q
|
---|
| 5921 | }
|
---|
| 5922 | /^X\(\/\/\)$/{
|
---|
| 5923 | s//\1/
|
---|
| 5924 | q
|
---|
| 5925 | }
|
---|
| 5926 | /^X\(\/\).*/{
|
---|
| 5927 | s//\1/
|
---|
| 5928 | q
|
---|
| 5929 | }
|
---|
| 5930 | s/.*/./; q'`
|
---|
| 5931 | { as_dir="$ac_dir"
|
---|
| 5932 | case $as_dir in #(
|
---|
| 5933 | -*) as_dir=./$as_dir;;
|
---|
| 5934 | esac
|
---|
| 5935 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
| 5936 | as_dirs=
|
---|
| 5937 | while :; do
|
---|
| 5938 | case $as_dir in #(
|
---|
| 5939 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
| 5940 | *) as_qdir=$as_dir;;
|
---|
| 5941 | esac
|
---|
| 5942 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 5943 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 5944 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 5945 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 5946 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 5947 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 5948 | echo X"$as_dir" |
|
---|
| 5949 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 5950 | s//\1/
|
---|
| 5951 | q
|
---|
| 5952 | }
|
---|
| 5953 | /^X\(\/\/\)[^/].*/{
|
---|
| 5954 | s//\1/
|
---|
| 5955 | q
|
---|
| 5956 | }
|
---|
| 5957 | /^X\(\/\/\)$/{
|
---|
| 5958 | s//\1/
|
---|
| 5959 | q
|
---|
| 5960 | }
|
---|
| 5961 | /^X\(\/\).*/{
|
---|
| 5962 | s//\1/
|
---|
| 5963 | q
|
---|
| 5964 | }
|
---|
| 5965 | s/.*/./; q'`
|
---|
| 5966 | test -d "$as_dir" && break
|
---|
| 5967 | done
|
---|
| 5968 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 5969 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
| 5970 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
| 5971 | { (exit 1); exit 1; }; }; }
|
---|
| 5972 | ac_builddir=.
|
---|
| 5973 |
|
---|
| 5974 | case "$ac_dir" in
|
---|
| 5975 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 5976 | *)
|
---|
| 5977 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 5978 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 5979 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
| 5980 | case $ac_top_builddir_sub in
|
---|
| 5981 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 5982 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 5983 | esac ;;
|
---|
| 5984 | esac
|
---|
| 5985 | ac_abs_top_builddir=$ac_pwd
|
---|
| 5986 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 5987 | # for backward compatibility:
|
---|
| 5988 | ac_top_builddir=$ac_top_build_prefix
|
---|
| 5989 |
|
---|
| 5990 | case $srcdir in
|
---|
| 5991 | .) # We are building in place.
|
---|
| 5992 | ac_srcdir=.
|
---|
| 5993 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 5994 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 5995 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
| 5996 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 5997 | ac_top_srcdir=$srcdir
|
---|
| 5998 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 5999 | *) # Relative name.
|
---|
| 6000 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 6001 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 6002 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
| 6003 | esac
|
---|
| 6004 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
| 6005 |
|
---|
| 6006 |
|
---|
| 6007 | case $ac_mode in
|
---|
| 6008 | :F)
|
---|
| 6009 | #
|
---|
| 6010 | # CONFIG_FILE
|
---|
| 6011 | #
|
---|
| 6012 |
|
---|
| 6013 | case $INSTALL in
|
---|
| 6014 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 6015 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
| 6016 | esac
|
---|
| 6017 | _ACEOF
|
---|
| 6018 |
|
---|
| 6019 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 6020 | # If the template does not know about datarootdir, expand it.
|
---|
| 6021 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 6022 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 6023 |
|
---|
| 6024 | case `sed -n '/datarootdir/ {
|
---|
| 6025 | p
|
---|
| 6026 | q
|
---|
| 6027 | }
|
---|
| 6028 | /@datadir@/p
|
---|
| 6029 | /@docdir@/p
|
---|
| 6030 | /@infodir@/p
|
---|
| 6031 | /@localedir@/p
|
---|
| 6032 | /@mandir@/p
|
---|
| 6033 | ' $ac_file_inputs` in
|
---|
| 6034 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 6035 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 6036 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 6037 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 6038 | _ACEOF
|
---|
| 6039 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 6040 | ac_datarootdir_hack='
|
---|
| 6041 | s&@datadir@&$datadir&g
|
---|
| 6042 | s&@docdir@&$docdir&g
|
---|
| 6043 | s&@infodir@&$infodir&g
|
---|
| 6044 | s&@localedir@&$localedir&g
|
---|
| 6045 | s&@mandir@&$mandir&g
|
---|
| 6046 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 6047 | esac
|
---|
| 6048 | _ACEOF
|
---|
| 6049 |
|
---|
| 6050 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 6051 | # Shell code in configure.ac might set extrasub.
|
---|
| 6052 | # FIXME: do we really want to maintain this feature?
|
---|
| 6053 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 6054 | sed "$ac_vpsub
|
---|
| 6055 | $extrasub
|
---|
| 6056 | _ACEOF
|
---|
| 6057 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 6058 | :t
|
---|
| 6059 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 6060 | s&@configure_input@&$configure_input&;t t
|
---|
| 6061 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 6062 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 6063 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 6064 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 6065 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 6066 | s&@builddir@&$ac_builddir&;t t
|
---|
| 6067 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 6068 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 6069 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 6070 | $ac_datarootdir_hack
|
---|
| 6071 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
|
---|
| 6072 |
|
---|
| 6073 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 6074 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 6075 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 6076 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 6077 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
| 6078 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 6079 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
| 6080 |
|
---|
| 6081 | rm -f "$tmp/stdin"
|
---|
| 6082 | case $ac_file in
|
---|
| 6083 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
| 6084 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
| 6085 | esac
|
---|
| 6086 | ;;
|
---|
| 6087 | :H)
|
---|
| 6088 | #
|
---|
| 6089 | # CONFIG_HEADER
|
---|
| 6090 | #
|
---|
| 6091 | _ACEOF
|
---|
| 6092 |
|
---|
| 6093 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
| 6094 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
| 6095 | rm -f conftest.defines conftest.tail
|
---|
| 6096 | # First, append a space to every undef/define line, to ease matching.
|
---|
| 6097 | echo 's/$/ /' >conftest.defines
|
---|
| 6098 | # Then, protect against being on the right side of a sed subst, or in
|
---|
| 6099 | # an unquoted here document, in config.status. If some macros were
|
---|
| 6100 | # called several times there might be several #defines for the same
|
---|
| 6101 | # symbol, which is useless. But do not sort them, since the last
|
---|
| 6102 | # AC_DEFINE must be honored.
|
---|
| 6103 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 6104 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
| 6105 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
| 6106 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
| 6107 | # just an empty string.
|
---|
| 6108 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
| 6109 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
| 6110 | ac_dC=' '
|
---|
| 6111 | ac_dD=' ,'
|
---|
| 6112 |
|
---|
| 6113 | uniq confdefs.h |
|
---|
| 6114 | sed -n '
|
---|
| 6115 | t rset
|
---|
| 6116 | :rset
|
---|
| 6117 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
| 6118 | t ok
|
---|
| 6119 | d
|
---|
| 6120 | :ok
|
---|
| 6121 | s/[\\&,]/\\&/g
|
---|
| 6122 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
| 6123 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
| 6124 | ' >>conftest.defines
|
---|
| 6125 |
|
---|
| 6126 | # Remove the space that was appended to ease matching.
|
---|
| 6127 | # Then replace #undef with comments. This is necessary, for
|
---|
| 6128 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 6129 | # on some systems where configure will not decide to define it.
|
---|
| 6130 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
| 6131 | echo 's/ $//
|
---|
| 6132 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
| 6133 |
|
---|
| 6134 | # Break up conftest.defines:
|
---|
| 6135 | ac_max_sed_lines=50
|
---|
| 6136 |
|
---|
| 6137 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
| 6138 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
| 6139 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
| 6140 | # et cetera.
|
---|
| 6141 | ac_in='$ac_file_inputs'
|
---|
| 6142 | ac_out='"$tmp/out1"'
|
---|
| 6143 | ac_nxt='"$tmp/out2"'
|
---|
| 6144 |
|
---|
| 6145 | while :
|
---|
| 6146 | do
|
---|
| 6147 | # Write a here document:
|
---|
| 6148 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 6149 | # First, check the format of the line:
|
---|
| 6150 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
| 6151 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
| 6152 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
| 6153 | b
|
---|
| 6154 | :def
|
---|
| 6155 | _ACEOF
|
---|
| 6156 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 6157 | echo 'CEOF
|
---|
| 6158 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
| 6159 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
| 6160 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
| 6161 | grep . conftest.tail >/dev/null || break
|
---|
| 6162 | rm -f conftest.defines
|
---|
| 6163 | mv conftest.tail conftest.defines
|
---|
| 6164 | done
|
---|
| 6165 | rm -f conftest.defines conftest.tail
|
---|
| 6166 |
|
---|
| 6167 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
| 6168 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 6169 | if test x"$ac_file" != x-; then
|
---|
| 6170 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
| 6171 | cat "$ac_result" >>"$tmp/config.h"
|
---|
| 6172 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
| 6173 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 6174 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 6175 | else
|
---|
| 6176 | rm -f $ac_file
|
---|
| 6177 | mv "$tmp/config.h" $ac_file
|
---|
| 6178 | fi
|
---|
| 6179 | else
|
---|
| 6180 | echo "/* $configure_input */"
|
---|
| 6181 | cat "$ac_result"
|
---|
| 6182 | fi
|
---|
| 6183 | rm -f "$tmp/out12"
|
---|
| 6184 | ;;
|
---|
| 6185 |
|
---|
| 6186 |
|
---|
| 6187 | esac
|
---|
| 6188 |
|
---|
| 6189 | done # for ac_tag
|
---|
| 6190 |
|
---|
| 6191 |
|
---|
| 6192 | { (exit 0); exit 0; }
|
---|
| 6193 | _ACEOF
|
---|
| 6194 | chmod +x $CONFIG_STATUS
|
---|
| 6195 | ac_clean_files=$ac_clean_files_save
|
---|
| 6196 |
|
---|
| 6197 |
|
---|
| 6198 | # configure is writing to config.log, and then calls config.status.
|
---|
| 6199 | # config.status does its own redirection, appending to config.log.
|
---|
| 6200 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 6201 | # by configure, so config.status won't be able to write to it; its
|
---|
| 6202 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 6203 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 6204 | # appended to by config.status. When coming back to configure, we
|
---|
| 6205 | # need to make the FD available again.
|
---|
| 6206 | if test "$no_create" != yes; then
|
---|
| 6207 | ac_cs_success=:
|
---|
| 6208 | ac_config_status_args=
|
---|
| 6209 | test "$silent" = yes &&
|
---|
| 6210 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 6211 | exec 5>/dev/null
|
---|
| 6212 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 6213 | exec 5>>config.log
|
---|
| 6214 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 6215 | # would make configure fail if this is the last instruction.
|
---|
| 6216 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 6217 | fi
|
---|
| 6218 |
|
---|
| 6219 |
|
---|
| 6220 | eval "exec_prefix=$exec_prefix"
|
---|
| 6221 | eval "bindir=$bindir"
|
---|
| 6222 | eval "libexecdir=$libexecdir"
|
---|
| 6223 |
|
---|
| 6224 | echo
|
---|
| 6225 | echo "Target CPU is .................... ${targmach}"
|
---|
| 6226 | echo "Target ABI is .................... ${abi}"
|
---|
| 6227 | echo "Target OS is ..................... ${targos}"
|
---|
| 6228 | echo "Compiler is called ............... ${BINPREFIX}pcc${EXEEXT}"
|
---|
| 6229 | echo "Installing compiler into ......... ${bindir}"
|
---|
| 6230 | echo "Installing pre-processor into .... ${libexecdir}"
|
---|
| 6231 | echo "Using assembler .................. ${assembler-<default>}"
|
---|
| 6232 | echo "Using linker ..................... ${linker-<default>}"
|
---|
| 6233 | echo "Using include path ............... ${altincdir-<default>}"
|
---|
| 6234 | echo "Using library path ............... ${altlibdir-<default>}"
|
---|
| 6235 | echo "Has TLS support .................. $tls"
|
---|
| 6236 | echo "Has GCC compatibility ............ $gcccompat"
|
---|
| 6237 | echo "Type of wchar_t is ............... ${wchar_type} (${wchar_size} chars)"
|
---|
| 6238 | echo
|
---|
| 6239 | echo "Configure finished. Do 'make && make install' to compile and install.
|
---|
| 6240 | "
|
---|