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