1 #! /bin/sh 2 # From configure.in Revision: 1.120.2.13 . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.61. 5 # 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8 # This configure script is free software; the Free Software Foundation 9 # gives unlimited permission to copy, distribute and modify it. 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be more Bourne compatible 15 DUALCASE=1; export DUALCASE # for MKS sh 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23 else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26 esac 27 28 fi 29 30 31 32 33 # PATH needs CR 34 # Avoid depending upon Character Ranges. 35 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38 as_cr_digits='0123456789' 39 as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41 # The user is always right. 42 if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52 fi 53 54 # Support unset when possible. 55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57 else 58 as_unset=false 59 fi 60 61 62 # IFS 63 # We need space, tab and new line, in precisely that order. Quoting is 64 # there to prevent editors from complaining about space-tab. 65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66 # splitting by setting IFS to empty value.) 67 as_nl=' 68 ' 69 IFS=" "" $as_nl" 70 71 # Find who we are. Look in the path if we contain no directory separator. 72 case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75 for as_dir in $PATH 76 do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80 done 81 IFS=$as_save_IFS 82 83 ;; 84 esac 85 # We did not find ourselves, most probably we were run as `sh COMMAND' 86 # in which case we are not to be found in the path. 87 if test "x$as_myself" = x; then 88 as_myself=$0 89 fi 90 if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93 fi 94 95 # Work around bugs in pre-3.0 UWIN ksh. 96 for as_var in ENV MAIL MAILPATH 97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98 done 99 PS1='$ ' 100 PS2='> ' 101 PS4='+ ' 102 103 # NLS nuisances. 104 for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108 do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114 done 115 116 # Required to use basename. 117 if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120 else 121 as_expr=false 122 fi 123 124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126 else 127 as_basename=false 128 fi 129 130 131 # Name of the executable. 132 as_me=`$as_basename -- "$0" || 133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136 echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151 # CDPATH. 152 $as_unset CDPATH 153 154 155 if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158 else 159 as_have_required=no 160 fi 161 162 if test $as_have_required = yes && (eval ": 163 (as_func_return () { 164 (exit \$1) 165 } 166 as_func_success () { 167 as_func_return 0 168 } 169 as_func_failure () { 170 as_func_return 1 171 } 172 as_func_ret_success () { 173 return 0 174 } 175 as_func_ret_failure () { 176 return 1 177 } 178 179 exitcode=0 180 if as_func_success; then 181 : 182 else 183 exitcode=1 184 echo as_func_success failed. 185 fi 186 187 if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190 fi 191 192 if as_func_ret_success; then 193 : 194 else 195 exitcode=1 196 echo as_func_ret_success failed. 197 fi 198 199 if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202 fi 203 204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206 else 207 exitcode=1 208 echo positional parameters were not saved. 209 fi 210 211 test \$exitcode = 0) || { (exit 1); exit 1; } 212 213 ( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218 ") 2> /dev/null; then 219 : 220 else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224 do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233 done 234 IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251 esac 252 253 fi 254 255 256 : 257 _ASEOF 258 }; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269 else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272 esac 273 274 fi 275 276 277 : 278 (as_func_return () { 279 (exit $1) 280 } 281 as_func_success () { 282 as_func_return 0 283 } 284 as_func_failure () { 285 as_func_return 1 286 } 287 as_func_ret_success () { 288 return 0 289 } 290 as_func_ret_failure () { 291 return 1 292 } 293 294 exitcode=0 295 if as_func_success; then 296 : 297 else 298 exitcode=1 299 echo as_func_success failed. 300 fi 301 302 if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305 fi 306 307 if as_func_ret_success; then 308 : 309 else 310 exitcode=1 311 echo as_func_ret_success failed. 312 fi 313 314 if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317 fi 318 319 if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321 else 322 exitcode=1 323 echo positional parameters were not saved. 324 fi 325 326 test $exitcode = 0) || { (exit 1); exit 1; } 327 328 ( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334 _ASEOF 335 }; then 336 break 337 fi 338 339 fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349 fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358 fi 359 360 361 fi 362 363 fi 364 365 366 367 (eval "as_func_return () { 368 (exit \$1) 369 } 370 as_func_success () { 371 as_func_return 0 372 } 373 as_func_failure () { 374 as_func_return 1 375 } 376 as_func_ret_success () { 377 return 0 378 } 379 as_func_ret_failure () { 380 return 1 381 } 382 383 exitcode=0 384 if as_func_success; then 385 : 386 else 387 exitcode=1 388 echo as_func_success failed. 389 fi 390 391 if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394 fi 395 396 if as_func_ret_success; then 397 : 398 else 399 exitcode=1 400 echo as_func_ret_success failed. 401 fi 402 403 if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406 fi 407 408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410 else 411 exitcode=1 412 echo positional parameters were not saved. 413 fi 414 415 test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420 } 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464 } 465 466 467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469 else 470 as_dirname=false 471 fi 472 473 ECHO_C= ECHO_N= ECHO_T= 474 case `echo -n x` in 475 -n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480 *) 481 ECHO_N='-n';; 482 esac 483 484 if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487 else 488 as_expr=false 489 fi 490 491 rm -f conf$$ conf$$.exe conf$$.file 492 if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494 else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497 fi 498 echo >conf$$.file 499 if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507 elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509 else 510 as_ln_s='cp -p' 511 fi 512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513 rmdir conf$$.dir 2>/dev/null 514 515 if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517 else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520 fi 521 522 if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524 else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542 fi 543 as_executable_p=$as_test_x 544 545 # Sed expression to map a string onto a valid CPP name. 546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548 # Sed expression to map a string onto a valid variable name. 549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553 exec 7<&0 </dev/null 6>&1 554 555 # Name of the host. 556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557 # so uname gets run too. 558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560 # 561 # Initializations. 562 # 563 ac_default_prefix=/usr/local 564 ac_clean_files= 565 ac_config_libobj_dir=. 566 LIBOBJS= 567 cross_compiling=no 568 subdirs= 569 MFLAGS= 570 MAKEFLAGS= 571 SHELL=${CONFIG_SHELL-/bin/sh} 572 573 # Identity of this package. 574 PACKAGE_NAME= 575 PACKAGE_TARNAME= 576 PACKAGE_VERSION= 577 PACKAGE_STRING= 578 PACKAGE_BUGREPORT= 579 580 ac_unique_file="pcap.c" 581 # Factoring default headers for most tests. 582 ac_includes_default="\ 583 #include <stdio.h> 584 #ifdef HAVE_SYS_TYPES_H 585 # include <sys/types.h> 586 #endif 587 #ifdef HAVE_SYS_STAT_H 588 # include <sys/stat.h> 589 #endif 590 #ifdef STDC_HEADERS 591 # include <stdlib.h> 592 # include <stddef.h> 593 #else 594 # ifdef HAVE_STDLIB_H 595 # include <stdlib.h> 596 # endif 597 #endif 598 #ifdef HAVE_STRING_H 599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600 # include <memory.h> 601 # endif 602 # include <string.h> 603 #endif 604 #ifdef HAVE_STRINGS_H 605 # include <strings.h> 606 #endif 607 #ifdef HAVE_INTTYPES_H 608 # include <inttypes.h> 609 #endif 610 #ifdef HAVE_STDINT_H 611 # include <stdint.h> 612 #endif 613 #ifdef HAVE_UNISTD_H 614 # include <unistd.h> 615 #endif" 616 617 ac_subst_vars='SHELL 618 PATH_SEPARATOR 619 PACKAGE_NAME 620 PACKAGE_TARNAME 621 PACKAGE_VERSION 622 PACKAGE_STRING 623 PACKAGE_BUGREPORT 624 exec_prefix 625 prefix 626 program_transform_name 627 bindir 628 sbindir 629 libexecdir 630 datarootdir 631 datadir 632 sysconfdir 633 sharedstatedir 634 localstatedir 635 includedir 636 oldincludedir 637 docdir 638 infodir 639 htmldir 640 dvidir 641 pdfdir 642 psdir 643 libdir 644 localedir 645 mandir 646 DEFS 647 ECHO_C 648 ECHO_N 649 ECHO_T 650 LIBS 651 build_alias 652 host_alias 653 target_alias 654 build 655 build_cpu 656 build_vendor 657 build_os 658 host 659 host_cpu 660 host_vendor 661 host_os 662 target 663 target_cpu 664 target_vendor 665 target_os 666 SHLICC2 667 CC 668 CFLAGS 669 LDFLAGS 670 CPPFLAGS 671 ac_ct_CC 672 EXEEXT 673 OBJEXT 674 CPP 675 GREP 676 EGREP 677 LIBOBJS 678 V_LEX 679 V_YACC 680 RANLIB 681 V_CCOPT 682 V_DEFS 683 V_INCLS 684 V_LIBS 685 V_PCAP 686 V_FINDALLDEVS 687 V_RANLIB 688 SSRC 689 DYEXT 690 DAGLIBS 691 INSTALL_PROGRAM 692 INSTALL_SCRIPT 693 INSTALL_DATA 694 LTLIBOBJS' 695 ac_subst_files='' 696 ac_precious_vars='build_alias 697 host_alias 698 target_alias 699 CC 700 CFLAGS 701 LDFLAGS 702 LIBS 703 CPPFLAGS 704 CPP' 705 706 707 # Initialize some variables set by options. 708 ac_init_help= 709 ac_init_version=false 710 # The variables have the same names as the options, with 711 # dashes changed to underlines. 712 cache_file=/dev/null 713 exec_prefix=NONE 714 no_create= 715 no_recursion= 716 prefix=NONE 717 program_prefix=NONE 718 program_suffix=NONE 719 program_transform_name=s,x,x, 720 silent= 721 site= 722 srcdir= 723 verbose= 724 x_includes=NONE 725 x_libraries=NONE 726 727 # Installation directory options. 728 # These are left unexpanded so users can "make install exec_prefix=/foo" 729 # and all the variables that are supposed to be based on exec_prefix 730 # by default will actually change. 731 # Use braces instead of parens because sh, perl, etc. also accept them. 732 # (The list follows the same order as the GNU Coding Standards.) 733 bindir='${exec_prefix}/bin' 734 sbindir='${exec_prefix}/sbin' 735 libexecdir='${exec_prefix}/libexec' 736 datarootdir='${prefix}/share' 737 datadir='${datarootdir}' 738 sysconfdir='${prefix}/etc' 739 sharedstatedir='${prefix}/com' 740 localstatedir='${prefix}/var' 741 includedir='${prefix}/include' 742 oldincludedir='/usr/include' 743 docdir='${datarootdir}/doc/${PACKAGE}' 744 infodir='${datarootdir}/info' 745 htmldir='${docdir}' 746 dvidir='${docdir}' 747 pdfdir='${docdir}' 748 psdir='${docdir}' 749 libdir='${exec_prefix}/lib' 750 localedir='${datarootdir}/locale' 751 mandir='${datarootdir}/man' 752 753 ac_prev= 754 ac_dashdash= 755 for ac_option 756 do 757 # If the previous option needs an argument, assign it. 758 if test -n "$ac_prev"; then 759 eval $ac_prev=\$ac_option 760 ac_prev= 761 continue 762 fi 763 764 case $ac_option in 765 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 766 *) ac_optarg=yes ;; 767 esac 768 769 # Accept the important Cygnus configure options, so we can diagnose typos. 770 771 case $ac_dashdash$ac_option in 772 --) 773 ac_dashdash=yes ;; 774 775 -bindir | --bindir | --bindi | --bind | --bin | --bi) 776 ac_prev=bindir ;; 777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 778 bindir=$ac_optarg ;; 779 780 -build | --build | --buil | --bui | --bu) 781 ac_prev=build_alias ;; 782 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 783 build_alias=$ac_optarg ;; 784 785 -cache-file | --cache-file | --cache-fil | --cache-fi \ 786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 787 ac_prev=cache_file ;; 788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 790 cache_file=$ac_optarg ;; 791 792 --config-cache | -C) 793 cache_file=config.cache ;; 794 795 -datadir | --datadir | --datadi | --datad) 796 ac_prev=datadir ;; 797 -datadir=* | --datadir=* | --datadi=* | --datad=*) 798 datadir=$ac_optarg ;; 799 800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 801 | --dataroo | --dataro | --datar) 802 ac_prev=datarootdir ;; 803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 805 datarootdir=$ac_optarg ;; 806 807 -disable-* | --disable-*) 808 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 809 # Reject names that are not valid shell variable names. 810 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 811 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 812 { (exit 1); exit 1; }; } 813 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 814 eval enable_$ac_feature=no ;; 815 816 -docdir | --docdir | --docdi | --doc | --do) 817 ac_prev=docdir ;; 818 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 819 docdir=$ac_optarg ;; 820 821 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 822 ac_prev=dvidir ;; 823 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 824 dvidir=$ac_optarg ;; 825 826 -enable-* | --enable-*) 827 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 828 # Reject names that are not valid shell variable names. 829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 831 { (exit 1); exit 1; }; } 832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 833 eval enable_$ac_feature=\$ac_optarg ;; 834 835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 837 | --exec | --exe | --ex) 838 ac_prev=exec_prefix ;; 839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 841 | --exec=* | --exe=* | --ex=*) 842 exec_prefix=$ac_optarg ;; 843 844 -gas | --gas | --ga | --g) 845 # Obsolete; use --with-gas. 846 with_gas=yes ;; 847 848 -help | --help | --hel | --he | -h) 849 ac_init_help=long ;; 850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 851 ac_init_help=recursive ;; 852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 853 ac_init_help=short ;; 854 855 -host | --host | --hos | --ho) 856 ac_prev=host_alias ;; 857 -host=* | --host=* | --hos=* | --ho=*) 858 host_alias=$ac_optarg ;; 859 860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 861 ac_prev=htmldir ;; 862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 863 | --ht=*) 864 htmldir=$ac_optarg ;; 865 866 -includedir | --includedir | --includedi | --included | --include \ 867 | --includ | --inclu | --incl | --inc) 868 ac_prev=includedir ;; 869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 870 | --includ=* | --inclu=* | --incl=* | --inc=*) 871 includedir=$ac_optarg ;; 872 873 -infodir | --infodir | --infodi | --infod | --info | --inf) 874 ac_prev=infodir ;; 875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 876 infodir=$ac_optarg ;; 877 878 -libdir | --libdir | --libdi | --libd) 879 ac_prev=libdir ;; 880 -libdir=* | --libdir=* | --libdi=* | --libd=*) 881 libdir=$ac_optarg ;; 882 883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 884 | --libexe | --libex | --libe) 885 ac_prev=libexecdir ;; 886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 887 | --libexe=* | --libex=* | --libe=*) 888 libexecdir=$ac_optarg ;; 889 890 -localedir | --localedir | --localedi | --localed | --locale) 891 ac_prev=localedir ;; 892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 893 localedir=$ac_optarg ;; 894 895 -localstatedir | --localstatedir | --localstatedi | --localstated \ 896 | --localstate | --localstat | --localsta | --localst | --locals) 897 ac_prev=localstatedir ;; 898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 900 localstatedir=$ac_optarg ;; 901 902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 903 ac_prev=mandir ;; 904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 905 mandir=$ac_optarg ;; 906 907 -nfp | --nfp | --nf) 908 # Obsolete; use --without-fp. 909 with_fp=no ;; 910 911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 912 | --no-cr | --no-c | -n) 913 no_create=yes ;; 914 915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 917 no_recursion=yes ;; 918 919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 921 | --oldin | --oldi | --old | --ol | --o) 922 ac_prev=oldincludedir ;; 923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 926 oldincludedir=$ac_optarg ;; 927 928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 929 ac_prev=prefix ;; 930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 931 prefix=$ac_optarg ;; 932 933 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 934 | --program-pre | --program-pr | --program-p) 935 ac_prev=program_prefix ;; 936 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 938 program_prefix=$ac_optarg ;; 939 940 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 941 | --program-suf | --program-su | --program-s) 942 ac_prev=program_suffix ;; 943 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 945 program_suffix=$ac_optarg ;; 946 947 -program-transform-name | --program-transform-name \ 948 | --program-transform-nam | --program-transform-na \ 949 | --program-transform-n | --program-transform- \ 950 | --program-transform | --program-transfor \ 951 | --program-transfo | --program-transf \ 952 | --program-trans | --program-tran \ 953 | --progr-tra | --program-tr | --program-t) 954 ac_prev=program_transform_name ;; 955 -program-transform-name=* | --program-transform-name=* \ 956 | --program-transform-nam=* | --program-transform-na=* \ 957 | --program-transform-n=* | --program-transform-=* \ 958 | --program-transform=* | --program-transfor=* \ 959 | --program-transfo=* | --program-transf=* \ 960 | --program-trans=* | --program-tran=* \ 961 | --progr-tra=* | --program-tr=* | --program-t=*) 962 program_transform_name=$ac_optarg ;; 963 964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 965 ac_prev=pdfdir ;; 966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 967 pdfdir=$ac_optarg ;; 968 969 -psdir | --psdir | --psdi | --psd | --ps) 970 ac_prev=psdir ;; 971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 972 psdir=$ac_optarg ;; 973 974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 975 | -silent | --silent | --silen | --sile | --sil) 976 silent=yes ;; 977 978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 979 ac_prev=sbindir ;; 980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 981 | --sbi=* | --sb=*) 982 sbindir=$ac_optarg ;; 983 984 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 986 | --sharedst | --shareds | --shared | --share | --shar \ 987 | --sha | --sh) 988 ac_prev=sharedstatedir ;; 989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 992 | --sha=* | --sh=*) 993 sharedstatedir=$ac_optarg ;; 994 995 -site | --site | --sit) 996 ac_prev=site ;; 997 -site=* | --site=* | --sit=*) 998 site=$ac_optarg ;; 999 1000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1001 ac_prev=srcdir ;; 1002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1003 srcdir=$ac_optarg ;; 1004 1005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1006 | --syscon | --sysco | --sysc | --sys | --sy) 1007 ac_prev=sysconfdir ;; 1008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1010 sysconfdir=$ac_optarg ;; 1011 1012 -target | --target | --targe | --targ | --tar | --ta | --t) 1013 ac_prev=target_alias ;; 1014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1015 target_alias=$ac_optarg ;; 1016 1017 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1018 verbose=yes ;; 1019 1020 -version | --version | --versio | --versi | --vers | -V) 1021 ac_init_version=: ;; 1022 1023 -with-* | --with-*) 1024 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid package name: $ac_package" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1030 eval with_$ac_package=\$ac_optarg ;; 1031 1032 -without-* | --without-*) 1033 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1036 { echo "$as_me: error: invalid package name: $ac_package" >&2 1037 { (exit 1); exit 1; }; } 1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1039 eval with_$ac_package=no ;; 1040 1041 --x) 1042 # Obsolete; use --with-x. 1043 with_x=yes ;; 1044 1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1046 | --x-incl | --x-inc | --x-in | --x-i) 1047 ac_prev=x_includes ;; 1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1050 x_includes=$ac_optarg ;; 1051 1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1054 ac_prev=x_libraries ;; 1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1057 x_libraries=$ac_optarg ;; 1058 1059 -*) { echo "$as_me: error: unrecognized option: $ac_option 1060 Try \`$0 --help' for more information." >&2 1061 { (exit 1); exit 1; }; } 1062 ;; 1063 1064 *=*) 1065 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1068 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1069 { (exit 1); exit 1; }; } 1070 eval $ac_envvar=\$ac_optarg 1071 export $ac_envvar ;; 1072 1073 *) 1074 # FIXME: should be removed in autoconf 3.0. 1075 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1079 ;; 1080 1081 esac 1082 done 1083 1084 if test -n "$ac_prev"; then 1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1086 { echo "$as_me: error: missing argument to $ac_option" >&2 1087 { (exit 1); exit 1; }; } 1088 fi 1089 1090 # Be sure to have absolute directory names. 1091 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1092 datadir sysconfdir sharedstatedir localstatedir includedir \ 1093 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1094 libdir localedir mandir 1095 do 1096 eval ac_val=\$$ac_var 1097 case $ac_val in 1098 [\\/$]* | ?:[\\/]* ) continue;; 1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1100 esac 1101 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1102 { (exit 1); exit 1; }; } 1103 done 1104 1105 # There might be people who depend on the old broken behavior: `$host' 1106 # used to hold the argument of --host etc. 1107 # FIXME: To remove some day. 1108 build=$build_alias 1109 host=$host_alias 1110 target=$target_alias 1111 1112 # FIXME: To remove some day. 1113 if test "x$host_alias" != x; then 1114 if test "x$build_alias" = x; then 1115 cross_compiling=maybe 1116 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1117 If a cross compiler is detected then cross compile mode will be used." >&2 1118 elif test "x$build_alias" != "x$host_alias"; then 1119 cross_compiling=yes 1120 fi 1121 fi 1122 1123 ac_tool_prefix= 1124 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1125 1126 test "$silent" = yes && exec 6>/dev/null 1127 1128 1129 ac_pwd=`pwd` && test -n "$ac_pwd" && 1130 ac_ls_di=`ls -di .` && 1131 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1132 { echo "$as_me: error: Working directory cannot be determined" >&2 1133 { (exit 1); exit 1; }; } 1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1135 { echo "$as_me: error: pwd does not report name of working directory" >&2 1136 { (exit 1); exit 1; }; } 1137 1138 1139 # Find the source files, if location was not specified. 1140 if test -z "$srcdir"; then 1141 ac_srcdir_defaulted=yes 1142 # Try the directory containing this script, then the parent directory. 1143 ac_confdir=`$as_dirname -- "$0" || 1144 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1145 X"$0" : 'X\(//\)[^/]' \| \ 1146 X"$0" : 'X\(//\)$' \| \ 1147 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1148 echo X"$0" | 1149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1150 s//\1/ 1151 q 1152 } 1153 /^X\(\/\/\)[^/].*/{ 1154 s//\1/ 1155 q 1156 } 1157 /^X\(\/\/\)$/{ 1158 s//\1/ 1159 q 1160 } 1161 /^X\(\/\).*/{ 1162 s//\1/ 1163 q 1164 } 1165 s/.*/./; q'` 1166 srcdir=$ac_confdir 1167 if test ! -r "$srcdir/$ac_unique_file"; then 1168 srcdir=.. 1169 fi 1170 else 1171 ac_srcdir_defaulted=no 1172 fi 1173 if test ! -r "$srcdir/$ac_unique_file"; then 1174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1175 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1176 { (exit 1); exit 1; }; } 1177 fi 1178 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1179 ac_abs_confdir=`( 1180 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1181 { (exit 1); exit 1; }; } 1182 pwd)` 1183 # When building in place, set srcdir=. 1184 if test "$ac_abs_confdir" = "$ac_pwd"; then 1185 srcdir=. 1186 fi 1187 # Remove unnecessary trailing slashes from srcdir. 1188 # Double slashes in file names in object file debugging info 1189 # mess up M-x gdb in Emacs. 1190 case $srcdir in 1191 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1192 esac 1193 for ac_var in $ac_precious_vars; do 1194 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1195 eval ac_env_${ac_var}_value=\$${ac_var} 1196 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1197 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1198 done 1199 1200 # 1201 # Report the --help message. 1202 # 1203 if test "$ac_init_help" = "long"; then 1204 # Omit some internal or obsolete options to make the list less imposing. 1205 # This message is too long to be a string in the A/UX 3.1 sh. 1206 cat <<_ACEOF 1207 \`configure' configures this package to adapt to many kinds of systems. 1208 1209 Usage: $0 [OPTION]... [VAR=VALUE]... 1210 1211 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1212 VAR=VALUE. See below for descriptions of some of the useful variables. 1213 1214 Defaults for the options are specified in brackets. 1215 1216 Configuration: 1217 -h, --help display this help and exit 1218 --help=short display options specific to this package 1219 --help=recursive display the short help of all the included packages 1220 -V, --version display version information and exit 1221 -q, --quiet, --silent do not print \`checking...' messages 1222 --cache-file=FILE cache test results in FILE [disabled] 1223 -C, --config-cache alias for \`--cache-file=config.cache' 1224 -n, --no-create do not create output files 1225 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1226 1227 Installation directories: 1228 --prefix=PREFIX install architecture-independent files in PREFIX 1229 [$ac_default_prefix] 1230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1231 [PREFIX] 1232 1233 By default, \`make install' will install all the files in 1234 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1235 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1236 for instance \`--prefix=\$HOME'. 1237 1238 For better control, use the options below. 1239 1240 Fine tuning of the installation directories: 1241 --bindir=DIR user executables [EPREFIX/bin] 1242 --sbindir=DIR system admin executables [EPREFIX/sbin] 1243 --libexecdir=DIR program executables [EPREFIX/libexec] 1244 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1245 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1246 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1247 --libdir=DIR object code libraries [EPREFIX/lib] 1248 --includedir=DIR C header files [PREFIX/include] 1249 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1250 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1251 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1252 --infodir=DIR info documentation [DATAROOTDIR/info] 1253 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1254 --mandir=DIR man documentation [DATAROOTDIR/man] 1255 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1256 --htmldir=DIR html documentation [DOCDIR] 1257 --dvidir=DIR dvi documentation [DOCDIR] 1258 --pdfdir=DIR pdf documentation [DOCDIR] 1259 --psdir=DIR ps documentation [DOCDIR] 1260 _ACEOF 1261 1262 cat <<\_ACEOF 1263 1264 System types: 1265 --build=BUILD configure for building on BUILD [guessed] 1266 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1267 --target=TARGET configure for building compilers for TARGET [HOST] 1268 _ACEOF 1269 fi 1270 1271 if test -n "$ac_init_help"; then 1272 1273 cat <<\_ACEOF 1274 1275 Optional Features: 1276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1278 --disable-protochain disable \"protochain\" insn 1279 --enable-ipv6 build IPv6-capable version 1280 --enable-optimizer-dbg build optimizer debugging code 1281 --enable-yydebug build parser debugging code 1282 1283 Optional Packages: 1284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1286 --without-gcc don't use gcc 1287 --with-pcap=TYPE use packet capture TYPE 1288 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present) 1289 --with-dag-includes=DIR Endace DAG include directory 1290 --with-dag-libraries=DIR Endace DAG library directory 1291 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present 1292 --without-flex don't use flex 1293 --without-bison don't use bison 1294 1295 Some influential environment variables: 1296 CC C compiler command 1297 CFLAGS C compiler flags 1298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1299 nonstandard directory <lib dir> 1300 LIBS libraries to pass to the linker, e.g. -l<library> 1301 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1302 you have headers in a nonstandard directory <include dir> 1303 CPP C preprocessor 1304 1305 Use these variables to override the choices made by `configure' or to help 1306 it to find libraries and programs with nonstandard names/locations. 1307 1308 _ACEOF 1309 ac_status=$? 1310 fi 1311 1312 if test "$ac_init_help" = "recursive"; then 1313 # If there are subdirs, report their specific --help. 1314 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1315 test -d "$ac_dir" || continue 1316 ac_builddir=. 1317 1318 case "$ac_dir" in 1319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1320 *) 1321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1322 # A ".." for each directory in $ac_dir_suffix. 1323 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1324 case $ac_top_builddir_sub in 1325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1327 esac ;; 1328 esac 1329 ac_abs_top_builddir=$ac_pwd 1330 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1331 # for backward compatibility: 1332 ac_top_builddir=$ac_top_build_prefix 1333 1334 case $srcdir in 1335 .) # We are building in place. 1336 ac_srcdir=. 1337 ac_top_srcdir=$ac_top_builddir_sub 1338 ac_abs_top_srcdir=$ac_pwd ;; 1339 [\\/]* | ?:[\\/]* ) # Absolute name. 1340 ac_srcdir=$srcdir$ac_dir_suffix; 1341 ac_top_srcdir=$srcdir 1342 ac_abs_top_srcdir=$srcdir ;; 1343 *) # Relative name. 1344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1345 ac_top_srcdir=$ac_top_build_prefix$srcdir 1346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1347 esac 1348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1349 1350 cd "$ac_dir" || { ac_status=$?; continue; } 1351 # Check for guested configure. 1352 if test -f "$ac_srcdir/configure.gnu"; then 1353 echo && 1354 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1355 elif test -f "$ac_srcdir/configure"; then 1356 echo && 1357 $SHELL "$ac_srcdir/configure" --help=recursive 1358 else 1359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1360 fi || ac_status=$? 1361 cd "$ac_pwd" || { ac_status=$?; break; } 1362 done 1363 fi 1364 1365 test -n "$ac_init_help" && exit $ac_status 1366 if $ac_init_version; then 1367 cat <<\_ACEOF 1368 configure 1369 generated by GNU Autoconf 2.61 1370 1371 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1372 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1373 This configure script is free software; the Free Software Foundation 1374 gives unlimited permission to copy, distribute and modify it. 1375 _ACEOF 1376 exit 1377 fi 1378 cat >config.log <<_ACEOF 1379 This file contains any messages produced by compilers while 1380 running configure, to aid debugging if configure makes a mistake. 1381 1382 It was created by $as_me, which was 1383 generated by GNU Autoconf 2.61. Invocation command line was 1384 1385 $ $0 $@ 1386 1387 _ACEOF 1388 exec 5>>config.log 1389 { 1390 cat <<_ASUNAME 1391 ## --------- ## 1392 ## Platform. ## 1393 ## --------- ## 1394 1395 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1396 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1397 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1398 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1399 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1400 1401 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1402 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1403 1404 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1405 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1406 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1407 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1408 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1409 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1410 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1411 1412 _ASUNAME 1413 1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1415 for as_dir in $PATH 1416 do 1417 IFS=$as_save_IFS 1418 test -z "$as_dir" && as_dir=. 1419 echo "PATH: $as_dir" 1420 done 1421 IFS=$as_save_IFS 1422 1423 } >&5 1424 1425 cat >&5 <<_ACEOF 1426 1427 1428 ## ----------- ## 1429 ## Core tests. ## 1430 ## ----------- ## 1431 1432 _ACEOF 1433 1434 1435 # Keep a trace of the command line. 1436 # Strip out --no-create and --no-recursion so they do not pile up. 1437 # Strip out --silent because we don't want to record it for future runs. 1438 # Also quote any args containing shell meta-characters. 1439 # Make two passes to allow for proper duplicate-argument suppression. 1440 ac_configure_args= 1441 ac_configure_args0= 1442 ac_configure_args1= 1443 ac_must_keep_next=false 1444 for ac_pass in 1 2 1445 do 1446 for ac_arg 1447 do 1448 case $ac_arg in 1449 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1451 | -silent | --silent | --silen | --sile | --sil) 1452 continue ;; 1453 *\'*) 1454 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1455 esac 1456 case $ac_pass in 1457 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1458 2) 1459 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1460 if test $ac_must_keep_next = true; then 1461 ac_must_keep_next=false # Got value, back to normal. 1462 else 1463 case $ac_arg in 1464 *=* | --config-cache | -C | -disable-* | --disable-* \ 1465 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1466 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1467 | -with-* | --with-* | -without-* | --without-* | --x) 1468 case "$ac_configure_args0 " in 1469 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1470 esac 1471 ;; 1472 -* ) ac_must_keep_next=true ;; 1473 esac 1474 fi 1475 ac_configure_args="$ac_configure_args '$ac_arg'" 1476 ;; 1477 esac 1478 done 1479 done 1480 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1481 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1482 1483 # When interrupted or exit'd, cleanup temporary files, and complete 1484 # config.log. We remove comments because anyway the quotes in there 1485 # would cause problems or look ugly. 1486 # WARNING: Use '\'' to represent an apostrophe within the trap. 1487 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1488 trap 'exit_status=$? 1489 # Save into config.log some information that might help in debugging. 1490 { 1491 echo 1492 1493 cat <<\_ASBOX 1494 ## ---------------- ## 1495 ## Cache variables. ## 1496 ## ---------------- ## 1497 _ASBOX 1498 echo 1499 # The following way of writing the cache mishandles newlines in values, 1500 ( 1501 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1502 eval ac_val=\$$ac_var 1503 case $ac_val in #( 1504 *${as_nl}*) 1505 case $ac_var in #( 1506 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1507 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1508 esac 1509 case $ac_var in #( 1510 _ | IFS | as_nl) ;; #( 1511 *) $as_unset $ac_var ;; 1512 esac ;; 1513 esac 1514 done 1515 (set) 2>&1 | 1516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1517 *${as_nl}ac_space=\ *) 1518 sed -n \ 1519 "s/'\''/'\''\\\\'\'''\''/g; 1520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1521 ;; #( 1522 *) 1523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1524 ;; 1525 esac | 1526 sort 1527 ) 1528 echo 1529 1530 cat <<\_ASBOX 1531 ## ----------------- ## 1532 ## Output variables. ## 1533 ## ----------------- ## 1534 _ASBOX 1535 echo 1536 for ac_var in $ac_subst_vars 1537 do 1538 eval ac_val=\$$ac_var 1539 case $ac_val in 1540 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1541 esac 1542 echo "$ac_var='\''$ac_val'\''" 1543 done | sort 1544 echo 1545 1546 if test -n "$ac_subst_files"; then 1547 cat <<\_ASBOX 1548 ## ------------------- ## 1549 ## File substitutions. ## 1550 ## ------------------- ## 1551 _ASBOX 1552 echo 1553 for ac_var in $ac_subst_files 1554 do 1555 eval ac_val=\$$ac_var 1556 case $ac_val in 1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1558 esac 1559 echo "$ac_var='\''$ac_val'\''" 1560 done | sort 1561 echo 1562 fi 1563 1564 if test -s confdefs.h; then 1565 cat <<\_ASBOX 1566 ## ----------- ## 1567 ## confdefs.h. ## 1568 ## ----------- ## 1569 _ASBOX 1570 echo 1571 cat confdefs.h 1572 echo 1573 fi 1574 test "$ac_signal" != 0 && 1575 echo "$as_me: caught signal $ac_signal" 1576 echo "$as_me: exit $exit_status" 1577 } >&5 1578 rm -f core *.core core.conftest.* && 1579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1580 exit $exit_status 1581 ' 0 1582 for ac_signal in 1 2 13 15; do 1583 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1584 done 1585 ac_signal=0 1586 1587 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1588 rm -f -r conftest* confdefs.h 1589 1590 # Predefined preprocessor variables. 1591 1592 cat >>confdefs.h <<_ACEOF 1593 #define PACKAGE_NAME "$PACKAGE_NAME" 1594 _ACEOF 1595 1596 1597 cat >>confdefs.h <<_ACEOF 1598 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1599 _ACEOF 1600 1601 1602 cat >>confdefs.h <<_ACEOF 1603 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1604 _ACEOF 1605 1606 1607 cat >>confdefs.h <<_ACEOF 1608 #define PACKAGE_STRING "$PACKAGE_STRING" 1609 _ACEOF 1610 1611 1612 cat >>confdefs.h <<_ACEOF 1613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1614 _ACEOF 1615 1616 1617 # Let the site file select an alternate cache file if it wants to. 1618 # Prefer explicitly selected file to automatically selected ones. 1619 if test -n "$CONFIG_SITE"; then 1620 set x "$CONFIG_SITE" 1621 elif test "x$prefix" != xNONE; then 1622 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1623 else 1624 set x "$ac_default_prefix/share/config.site" \ 1625 "$ac_default_prefix/etc/config.site" 1626 fi 1627 shift 1628 for ac_site_file 1629 do 1630 if test -r "$ac_site_file"; then 1631 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1632 echo "$as_me: loading site script $ac_site_file" >&6;} 1633 sed 's/^/| /' "$ac_site_file" >&5 1634 . "$ac_site_file" 1635 fi 1636 done 1637 1638 if test -r "$cache_file"; then 1639 # Some versions of bash will fail to source /dev/null (special 1640 # files actually), so we avoid doing that. 1641 if test -f "$cache_file"; then 1642 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1643 echo "$as_me: loading cache $cache_file" >&6;} 1644 case $cache_file in 1645 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1646 *) . "./$cache_file";; 1647 esac 1648 fi 1649 else 1650 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1651 echo "$as_me: creating cache $cache_file" >&6;} 1652 >$cache_file 1653 fi 1654 1655 # Check that the precious variables saved in the cache have kept the same 1656 # value. 1657 ac_cache_corrupted=false 1658 for ac_var in $ac_precious_vars; do 1659 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1660 eval ac_new_set=\$ac_env_${ac_var}_set 1661 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1662 eval ac_new_val=\$ac_env_${ac_var}_value 1663 case $ac_old_set,$ac_new_set in 1664 set,) 1665 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1666 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1667 ac_cache_corrupted=: ;; 1668 ,set) 1669 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1670 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1671 ac_cache_corrupted=: ;; 1672 ,);; 1673 *) 1674 if test "x$ac_old_val" != "x$ac_new_val"; then 1675 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1676 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1677 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1678 echo "$as_me: former value: $ac_old_val" >&2;} 1679 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1680 echo "$as_me: current value: $ac_new_val" >&2;} 1681 ac_cache_corrupted=: 1682 fi;; 1683 esac 1684 # Pass precious variables to config.status. 1685 if test "$ac_new_set" = set; then 1686 case $ac_new_val in 1687 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1688 *) ac_arg=$ac_var=$ac_new_val ;; 1689 esac 1690 case " $ac_configure_args " in 1691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1692 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1693 esac 1694 fi 1695 done 1696 if $ac_cache_corrupted; then 1697 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1698 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1699 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1700 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1701 { (exit 1); exit 1; }; } 1702 fi 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 ac_ext=c 1721 ac_cpp='$CPP $CPPFLAGS' 1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1725 1726 1727 1728 ac_aux_dir= 1729 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1730 if test -f "$ac_dir/install-sh"; then 1731 ac_aux_dir=$ac_dir 1732 ac_install_sh="$ac_aux_dir/install-sh -c" 1733 break 1734 elif test -f "$ac_dir/install.sh"; then 1735 ac_aux_dir=$ac_dir 1736 ac_install_sh="$ac_aux_dir/install.sh -c" 1737 break 1738 elif test -f "$ac_dir/shtool"; then 1739 ac_aux_dir=$ac_dir 1740 ac_install_sh="$ac_aux_dir/shtool install -c" 1741 break 1742 fi 1743 done 1744 if test -z "$ac_aux_dir"; then 1745 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1746 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1747 { (exit 1); exit 1; }; } 1748 fi 1749 1750 # These three variables are undocumented and unsupported, 1751 # and are intended to be withdrawn in a future Autoconf release. 1752 # They can cause serious problems if a builder's source tree is in a directory 1753 # whose full name contains unusual characters. 1754 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1755 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1756 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1757 1758 1759 # Make sure we can run config.sub. 1760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1761 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1762 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1763 { (exit 1); exit 1; }; } 1764 1765 { echo "$as_me:$LINENO: checking build system type" >&5 1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1767 if test "${ac_cv_build+set}" = set; then 1768 echo $ECHO_N "(cached) $ECHO_C" >&6 1769 else 1770 ac_build_alias=$build_alias 1771 test "x$ac_build_alias" = x && 1772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1773 test "x$ac_build_alias" = x && 1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1776 { (exit 1); exit 1; }; } 1777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1779 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1780 { (exit 1); exit 1; }; } 1781 1782 fi 1783 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1784 echo "${ECHO_T}$ac_cv_build" >&6; } 1785 case $ac_cv_build in 1786 *-*-*) ;; 1787 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1788 echo "$as_me: error: invalid value of canonical build" >&2;} 1789 { (exit 1); exit 1; }; };; 1790 esac 1791 build=$ac_cv_build 1792 ac_save_IFS=$IFS; IFS='-' 1793 set x $ac_cv_build 1794 shift 1795 build_cpu=$1 1796 build_vendor=$2 1797 shift; shift 1798 # Remember, the first character of IFS is used to create $*, 1799 # except with old shells: 1800 build_os=$* 1801 IFS=$ac_save_IFS 1802 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1803 1804 1805 { echo "$as_me:$LINENO: checking host system type" >&5 1806 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1807 if test "${ac_cv_host+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809 else 1810 if test "x$host_alias" = x; then 1811 ac_cv_host=$ac_cv_build 1812 else 1813 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1814 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1815 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1816 { (exit 1); exit 1; }; } 1817 fi 1818 1819 fi 1820 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1821 echo "${ECHO_T}$ac_cv_host" >&6; } 1822 case $ac_cv_host in 1823 *-*-*) ;; 1824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1825 echo "$as_me: error: invalid value of canonical host" >&2;} 1826 { (exit 1); exit 1; }; };; 1827 esac 1828 host=$ac_cv_host 1829 ac_save_IFS=$IFS; IFS='-' 1830 set x $ac_cv_host 1831 shift 1832 host_cpu=$1 1833 host_vendor=$2 1834 shift; shift 1835 # Remember, the first character of IFS is used to create $*, 1836 # except with old shells: 1837 host_os=$* 1838 IFS=$ac_save_IFS 1839 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1840 1841 1842 { echo "$as_me:$LINENO: checking target system type" >&5 1843 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1844 if test "${ac_cv_target+set}" = set; then 1845 echo $ECHO_N "(cached) $ECHO_C" >&6 1846 else 1847 if test "x$target_alias" = x; then 1848 ac_cv_target=$ac_cv_host 1849 else 1850 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1853 { (exit 1); exit 1; }; } 1854 fi 1855 1856 fi 1857 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1858 echo "${ECHO_T}$ac_cv_target" >&6; } 1859 case $ac_cv_target in 1860 *-*-*) ;; 1861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1862 echo "$as_me: error: invalid value of canonical target" >&2;} 1863 { (exit 1); exit 1; }; };; 1864 esac 1865 target=$ac_cv_target 1866 ac_save_IFS=$IFS; IFS='-' 1867 set x $ac_cv_target 1868 shift 1869 target_cpu=$1 1870 target_vendor=$2 1871 shift; shift 1872 # Remember, the first character of IFS is used to create $*, 1873 # except with old shells: 1874 target_os=$* 1875 IFS=$ac_save_IFS 1876 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1877 1878 1879 # The aliases save the names the user supplied, while $host etc. 1880 # will get canonicalized. 1881 test -n "$target_alias" && 1882 test "$program_prefix$program_suffix$program_transform_name" = \ 1883 NONENONEs,x,x, && 1884 program_prefix=${target_alias}- 1885 1886 1887 1888 1889 1890 1891 # Check whether --with-gcc was given. 1892 if test "${with_gcc+set}" = set; then 1893 withval=$with_gcc; 1894 fi 1895 1896 V_CCOPT="-O" 1897 V_INCLS="" 1898 if test "${srcdir}" != "." ; then 1899 V_INCLS="-I\$(srcdir)" 1900 fi 1901 if test "${CFLAGS+set}" = set; then 1902 LBL_CFLAGS="$CFLAGS" 1903 fi 1904 if test -z "$CC" ; then 1905 case "$target_os" in 1906 1907 bsdi*) 1908 # Extract the first word of "shlicc2", so it can be a program name with args. 1909 set dummy shlicc2; ac_word=$2 1910 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1912 if test "${ac_cv_prog_SHLICC2+set}" = set; then 1913 echo $ECHO_N "(cached) $ECHO_C" >&6 1914 else 1915 if test -n "$SHLICC2"; then 1916 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1917 else 1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1919 for as_dir in $PATH 1920 do 1921 IFS=$as_save_IFS 1922 test -z "$as_dir" && as_dir=. 1923 for ac_exec_ext in '' $ac_executable_extensions; do 1924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1925 ac_cv_prog_SHLICC2="yes" 1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1927 break 2 1928 fi 1929 done 1930 done 1931 IFS=$as_save_IFS 1932 1933 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1934 fi 1935 fi 1936 SHLICC2=$ac_cv_prog_SHLICC2 1937 if test -n "$SHLICC2"; then 1938 { echo "$as_me:$LINENO: result: $SHLICC2" >&5 1939 echo "${ECHO_T}$SHLICC2" >&6; } 1940 else 1941 { echo "$as_me:$LINENO: result: no" >&5 1942 echo "${ECHO_T}no" >&6; } 1943 fi 1944 1945 1946 if test $SHLICC2 = yes ; then 1947 CC=shlicc2 1948 export CC 1949 fi 1950 ;; 1951 esac 1952 fi 1953 if test -z "$CC" -a "$with_gcc" = no ; then 1954 CC=cc 1955 export CC 1956 fi 1957 ac_ext=c 1958 ac_cpp='$CPP $CPPFLAGS' 1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1962 if test -n "$ac_tool_prefix"; then 1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1964 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1965 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1967 if test "${ac_cv_prog_CC+set}" = set; then 1968 echo $ECHO_N "(cached) $ECHO_C" >&6 1969 else 1970 if test -n "$CC"; then 1971 ac_cv_prog_CC="$CC" # Let the user override the test. 1972 else 1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974 for as_dir in $PATH 1975 do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1980 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1982 break 2 1983 fi 1984 done 1985 done 1986 IFS=$as_save_IFS 1987 1988 fi 1989 fi 1990 CC=$ac_cv_prog_CC 1991 if test -n "$CC"; then 1992 { echo "$as_me:$LINENO: result: $CC" >&5 1993 echo "${ECHO_T}$CC" >&6; } 1994 else 1995 { echo "$as_me:$LINENO: result: no" >&5 1996 echo "${ECHO_T}no" >&6; } 1997 fi 1998 1999 2000 fi 2001 if test -z "$ac_cv_prog_CC"; then 2002 ac_ct_CC=$CC 2003 # Extract the first word of "gcc", so it can be a program name with args. 2004 set dummy gcc; ac_word=$2 2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009 else 2010 if test -n "$ac_ct_CC"; then 2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2012 else 2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014 for as_dir in $PATH 2015 do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2020 ac_cv_prog_ac_ct_CC="gcc" 2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2022 break 2 2023 fi 2024 done 2025 done 2026 IFS=$as_save_IFS 2027 2028 fi 2029 fi 2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2031 if test -n "$ac_ct_CC"; then 2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2033 echo "${ECHO_T}$ac_ct_CC" >&6; } 2034 else 2035 { echo "$as_me:$LINENO: result: no" >&5 2036 echo "${ECHO_T}no" >&6; } 2037 fi 2038 2039 if test "x$ac_ct_CC" = x; then 2040 CC="" 2041 else 2042 case $cross_compiling:$ac_tool_warned in 2043 yes:) 2044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2045 whose name does not start with the host triplet. If you think this 2046 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2048 whose name does not start with the host triplet. If you think this 2049 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2050 ac_tool_warned=yes ;; 2051 esac 2052 CC=$ac_ct_CC 2053 fi 2054 else 2055 CC="$ac_cv_prog_CC" 2056 fi 2057 2058 if test -z "$CC"; then 2059 if test -n "$ac_tool_prefix"; then 2060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2061 set dummy ${ac_tool_prefix}cc; ac_word=$2 2062 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2064 if test "${ac_cv_prog_CC+set}" = set; then 2065 echo $ECHO_N "(cached) $ECHO_C" >&6 2066 else 2067 if test -n "$CC"; then 2068 ac_cv_prog_CC="$CC" # Let the user override the test. 2069 else 2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2071 for as_dir in $PATH 2072 do 2073 IFS=$as_save_IFS 2074 test -z "$as_dir" && as_dir=. 2075 for ac_exec_ext in '' $ac_executable_extensions; do 2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2077 ac_cv_prog_CC="${ac_tool_prefix}cc" 2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2079 break 2 2080 fi 2081 done 2082 done 2083 IFS=$as_save_IFS 2084 2085 fi 2086 fi 2087 CC=$ac_cv_prog_CC 2088 if test -n "$CC"; then 2089 { echo "$as_me:$LINENO: result: $CC" >&5 2090 echo "${ECHO_T}$CC" >&6; } 2091 else 2092 { echo "$as_me:$LINENO: result: no" >&5 2093 echo "${ECHO_T}no" >&6; } 2094 fi 2095 2096 2097 fi 2098 fi 2099 if test -z "$CC"; then 2100 # Extract the first word of "cc", so it can be a program name with args. 2101 set dummy cc; ac_word=$2 2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2104 if test "${ac_cv_prog_CC+set}" = set; then 2105 echo $ECHO_N "(cached) $ECHO_C" >&6 2106 else 2107 if test -n "$CC"; then 2108 ac_cv_prog_CC="$CC" # Let the user override the test. 2109 else 2110 ac_prog_rejected=no 2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2112 for as_dir in $PATH 2113 do 2114 IFS=$as_save_IFS 2115 test -z "$as_dir" && as_dir=. 2116 for ac_exec_ext in '' $ac_executable_extensions; do 2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2119 ac_prog_rejected=yes 2120 continue 2121 fi 2122 ac_cv_prog_CC="cc" 2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2124 break 2 2125 fi 2126 done 2127 done 2128 IFS=$as_save_IFS 2129 2130 if test $ac_prog_rejected = yes; then 2131 # We found a bogon in the path, so make sure we never use it. 2132 set dummy $ac_cv_prog_CC 2133 shift 2134 if test $# != 0; then 2135 # We chose a different compiler from the bogus one. 2136 # However, it has the same basename, so the bogon will be chosen 2137 # first if we set CC to just the basename; use the full file name. 2138 shift 2139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2140 fi 2141 fi 2142 fi 2143 fi 2144 CC=$ac_cv_prog_CC 2145 if test -n "$CC"; then 2146 { echo "$as_me:$LINENO: result: $CC" >&5 2147 echo "${ECHO_T}$CC" >&6; } 2148 else 2149 { echo "$as_me:$LINENO: result: no" >&5 2150 echo "${ECHO_T}no" >&6; } 2151 fi 2152 2153 2154 fi 2155 if test -z "$CC"; then 2156 if test -n "$ac_tool_prefix"; then 2157 for ac_prog in cl.exe 2158 do 2159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2161 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2163 if test "${ac_cv_prog_CC+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165 else 2166 if test -n "$CC"; then 2167 ac_cv_prog_CC="$CC" # Let the user override the test. 2168 else 2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2170 for as_dir in $PATH 2171 do 2172 IFS=$as_save_IFS 2173 test -z "$as_dir" && as_dir=. 2174 for ac_exec_ext in '' $ac_executable_extensions; do 2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2178 break 2 2179 fi 2180 done 2181 done 2182 IFS=$as_save_IFS 2183 2184 fi 2185 fi 2186 CC=$ac_cv_prog_CC 2187 if test -n "$CC"; then 2188 { echo "$as_me:$LINENO: result: $CC" >&5 2189 echo "${ECHO_T}$CC" >&6; } 2190 else 2191 { echo "$as_me:$LINENO: result: no" >&5 2192 echo "${ECHO_T}no" >&6; } 2193 fi 2194 2195 2196 test -n "$CC" && break 2197 done 2198 fi 2199 if test -z "$CC"; then 2200 ac_ct_CC=$CC 2201 for ac_prog in cl.exe 2202 do 2203 # Extract the first word of "$ac_prog", so it can be a program name with args. 2204 set dummy $ac_prog; ac_word=$2 2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2208 echo $ECHO_N "(cached) $ECHO_C" >&6 2209 else 2210 if test -n "$ac_ct_CC"; then 2211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2212 else 2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2214 for as_dir in $PATH 2215 do 2216 IFS=$as_save_IFS 2217 test -z "$as_dir" && as_dir=. 2218 for ac_exec_ext in '' $ac_executable_extensions; do 2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2220 ac_cv_prog_ac_ct_CC="$ac_prog" 2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2222 break 2 2223 fi 2224 done 2225 done 2226 IFS=$as_save_IFS 2227 2228 fi 2229 fi 2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2231 if test -n "$ac_ct_CC"; then 2232 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2233 echo "${ECHO_T}$ac_ct_CC" >&6; } 2234 else 2235 { echo "$as_me:$LINENO: result: no" >&5 2236 echo "${ECHO_T}no" >&6; } 2237 fi 2238 2239 2240 test -n "$ac_ct_CC" && break 2241 done 2242 2243 if test "x$ac_ct_CC" = x; then 2244 CC="" 2245 else 2246 case $cross_compiling:$ac_tool_warned in 2247 yes:) 2248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2249 whose name does not start with the host triplet. If you think this 2250 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2252 whose name does not start with the host triplet. If you think this 2253 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2254 ac_tool_warned=yes ;; 2255 esac 2256 CC=$ac_ct_CC 2257 fi 2258 fi 2259 2260 fi 2261 2262 2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2264 See \`config.log' for more details." >&5 2265 echo "$as_me: error: no acceptable C compiler found in \$PATH 2266 See \`config.log' for more details." >&2;} 2267 { (exit 1); exit 1; }; } 2268 2269 # Provide some information about the compiler. 2270 echo "$as_me:$LINENO: checking for C compiler version" >&5 2271 ac_compiler=`set X $ac_compile; echo $2` 2272 { (ac_try="$ac_compiler --version >&5" 2273 case "(($ac_try" in 2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2275 *) ac_try_echo=$ac_try;; 2276 esac 2277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2278 (eval "$ac_compiler --version >&5") 2>&5 2279 ac_status=$? 2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2281 (exit $ac_status); } 2282 { (ac_try="$ac_compiler -v >&5" 2283 case "(($ac_try" in 2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2285 *) ac_try_echo=$ac_try;; 2286 esac 2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2288 (eval "$ac_compiler -v >&5") 2>&5 2289 ac_status=$? 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); } 2292 { (ac_try="$ac_compiler -V >&5" 2293 case "(($ac_try" in 2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2295 *) ac_try_echo=$ac_try;; 2296 esac 2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2298 (eval "$ac_compiler -V >&5") 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); } 2302 2303 cat >conftest.$ac_ext <<_ACEOF 2304 /* confdefs.h. */ 2305 _ACEOF 2306 cat confdefs.h >>conftest.$ac_ext 2307 cat >>conftest.$ac_ext <<_ACEOF 2308 /* end confdefs.h. */ 2309 2310 int 2311 main () 2312 { 2313 2314 ; 2315 return 0; 2316 } 2317 _ACEOF 2318 ac_clean_files_save=$ac_clean_files 2319 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2320 # Try to create an executable without -o first, disregard a.out. 2321 # It will help us diagnose broken compilers, and finding out an intuition 2322 # of exeext. 2323 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2324 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2325 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2326 # 2327 # List of possible output files, starting from the most likely. 2328 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2329 # only as a last resort. b.out is created by i960 compilers. 2330 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2331 # 2332 # The IRIX 6 linker writes into existing files which may not be 2333 # executable, retaining their permissions. Remove them first so a 2334 # subsequent execution test works. 2335 ac_rmfiles= 2336 for ac_file in $ac_files 2337 do 2338 case $ac_file in 2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2340 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2341 esac 2342 done 2343 rm -f $ac_rmfiles 2344 2345 if { (ac_try="$ac_link_default" 2346 case "(($ac_try" in 2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2348 *) ac_try_echo=$ac_try;; 2349 esac 2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2351 (eval "$ac_link_default") 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; then 2355 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2356 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2357 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2358 # so that the user can short-circuit this test for compilers unknown to 2359 # Autoconf. 2360 for ac_file in $ac_files '' 2361 do 2362 test -f "$ac_file" || continue 2363 case $ac_file in 2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2365 ;; 2366 [ab].out ) 2367 # We found the default executable, but exeext='' is most 2368 # certainly right. 2369 break;; 2370 *.* ) 2371 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2372 then :; else 2373 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2374 fi 2375 # We set ac_cv_exeext here because the later test for it is not 2376 # safe: cross compilers may not add the suffix if given an `-o' 2377 # argument, so we may need to know it at that point already. 2378 # Even if this section looks crufty: it has the advantage of 2379 # actually working. 2380 break;; 2381 * ) 2382 break;; 2383 esac 2384 done 2385 test "$ac_cv_exeext" = no && ac_cv_exeext= 2386 2387 else 2388 ac_file='' 2389 fi 2390 2391 { echo "$as_me:$LINENO: result: $ac_file" >&5 2392 echo "${ECHO_T}$ac_file" >&6; } 2393 if test -z "$ac_file"; then 2394 echo "$as_me: failed program was:" >&5 2395 sed 's/^/| /' conftest.$ac_ext >&5 2396 2397 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2398 See \`config.log' for more details." >&5 2399 echo "$as_me: error: C compiler cannot create executables 2400 See \`config.log' for more details." >&2;} 2401 { (exit 77); exit 77; }; } 2402 fi 2403 2404 ac_exeext=$ac_cv_exeext 2405 2406 # Check that the compiler produces executables we can run. If not, either 2407 # the compiler is broken, or we cross compile. 2408 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2411 # If not cross compiling, check that we can run a simple program. 2412 if test "$cross_compiling" != yes; then 2413 if { ac_try='./$ac_file' 2414 { (case "(($ac_try" in 2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2416 *) ac_try_echo=$ac_try;; 2417 esac 2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2419 (eval "$ac_try") 2>&5 2420 ac_status=$? 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); }; }; then 2423 cross_compiling=no 2424 else 2425 if test "$cross_compiling" = maybe; then 2426 cross_compiling=yes 2427 else 2428 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2429 If you meant to cross compile, use \`--host'. 2430 See \`config.log' for more details." >&5 2431 echo "$as_me: error: cannot run C compiled programs. 2432 If you meant to cross compile, use \`--host'. 2433 See \`config.log' for more details." >&2;} 2434 { (exit 1); exit 1; }; } 2435 fi 2436 fi 2437 fi 2438 { echo "$as_me:$LINENO: result: yes" >&5 2439 echo "${ECHO_T}yes" >&6; } 2440 2441 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2442 ac_clean_files=$ac_clean_files_save 2443 # Check that the compiler produces executables we can run. If not, either 2444 # the compiler is broken, or we cross compile. 2445 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2446 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2447 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2448 echo "${ECHO_T}$cross_compiling" >&6; } 2449 2450 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2451 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2452 if { (ac_try="$ac_link" 2453 case "(($ac_try" in 2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 *) ac_try_echo=$ac_try;; 2456 esac 2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2458 (eval "$ac_link") 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; then 2462 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2464 # work properly (i.e., refer to `conftest.exe'), while it won't with 2465 # `rm'. 2466 for ac_file in conftest.exe conftest conftest.*; do 2467 test -f "$ac_file" || continue 2468 case $ac_file in 2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2471 break;; 2472 * ) break;; 2473 esac 2474 done 2475 else 2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2477 See \`config.log' for more details." >&5 2478 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2479 See \`config.log' for more details." >&2;} 2480 { (exit 1); exit 1; }; } 2481 fi 2482 2483 rm -f conftest$ac_cv_exeext 2484 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2485 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2486 2487 rm -f conftest.$ac_ext 2488 EXEEXT=$ac_cv_exeext 2489 ac_exeext=$EXEEXT 2490 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2491 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2492 if test "${ac_cv_objext+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494 else 2495 cat >conftest.$ac_ext <<_ACEOF 2496 /* confdefs.h. */ 2497 _ACEOF 2498 cat confdefs.h >>conftest.$ac_ext 2499 cat >>conftest.$ac_ext <<_ACEOF 2500 /* end confdefs.h. */ 2501 2502 int 2503 main () 2504 { 2505 2506 ; 2507 return 0; 2508 } 2509 _ACEOF 2510 rm -f conftest.o conftest.obj 2511 if { (ac_try="$ac_compile" 2512 case "(($ac_try" in 2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2514 *) ac_try_echo=$ac_try;; 2515 esac 2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2517 (eval "$ac_compile") 2>&5 2518 ac_status=$? 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); }; then 2521 for ac_file in conftest.o conftest.obj conftest.*; do 2522 test -f "$ac_file" || continue; 2523 case $ac_file in 2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2526 break;; 2527 esac 2528 done 2529 else 2530 echo "$as_me: failed program was:" >&5 2531 sed 's/^/| /' conftest.$ac_ext >&5 2532 2533 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2534 See \`config.log' for more details." >&5 2535 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2536 See \`config.log' for more details." >&2;} 2537 { (exit 1); exit 1; }; } 2538 fi 2539 2540 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2541 fi 2542 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2543 echo "${ECHO_T}$ac_cv_objext" >&6; } 2544 OBJEXT=$ac_cv_objext 2545 ac_objext=$OBJEXT 2546 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2547 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2548 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550 else 2551 cat >conftest.$ac_ext <<_ACEOF 2552 /* confdefs.h. */ 2553 _ACEOF 2554 cat confdefs.h >>conftest.$ac_ext 2555 cat >>conftest.$ac_ext <<_ACEOF 2556 /* end confdefs.h. */ 2557 2558 int 2559 main () 2560 { 2561 #ifndef __GNUC__ 2562 choke me 2563 #endif 2564 2565 ; 2566 return 0; 2567 } 2568 _ACEOF 2569 rm -f conftest.$ac_objext 2570 if { (ac_try="$ac_compile" 2571 case "(($ac_try" in 2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2573 *) ac_try_echo=$ac_try;; 2574 esac 2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2576 (eval "$ac_compile") 2>conftest.er1 2577 ac_status=$? 2578 grep -v '^ *+' conftest.er1 >conftest.err 2579 rm -f conftest.er1 2580 cat conftest.err >&5 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); } && { 2583 test -z "$ac_c_werror_flag" || 2584 test ! -s conftest.err 2585 } && test -s conftest.$ac_objext; then 2586 ac_compiler_gnu=yes 2587 else 2588 echo "$as_me: failed program was:" >&5 2589 sed 's/^/| /' conftest.$ac_ext >&5 2590 2591 ac_compiler_gnu=no 2592 fi 2593 2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2596 2597 fi 2598 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2600 GCC=`test $ac_compiler_gnu = yes && echo yes` 2601 ac_test_CFLAGS=${CFLAGS+set} 2602 ac_save_CFLAGS=$CFLAGS 2603 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2604 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2605 if test "${ac_cv_prog_cc_g+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607 else 2608 ac_save_c_werror_flag=$ac_c_werror_flag 2609 ac_c_werror_flag=yes 2610 ac_cv_prog_cc_g=no 2611 CFLAGS="-g" 2612 cat >conftest.$ac_ext <<_ACEOF 2613 /* confdefs.h. */ 2614 _ACEOF 2615 cat confdefs.h >>conftest.$ac_ext 2616 cat >>conftest.$ac_ext <<_ACEOF 2617 /* end confdefs.h. */ 2618 2619 int 2620 main () 2621 { 2622 2623 ; 2624 return 0; 2625 } 2626 _ACEOF 2627 rm -f conftest.$ac_objext 2628 if { (ac_try="$ac_compile" 2629 case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632 esac 2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2634 (eval "$ac_compile") 2>conftest.er1 2635 ac_status=$? 2636 grep -v '^ *+' conftest.er1 >conftest.err 2637 rm -f conftest.er1 2638 cat conftest.err >&5 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); } && { 2641 test -z "$ac_c_werror_flag" || 2642 test ! -s conftest.err 2643 } && test -s conftest.$ac_objext; then 2644 ac_cv_prog_cc_g=yes 2645 else 2646 echo "$as_me: failed program was:" >&5 2647 sed 's/^/| /' conftest.$ac_ext >&5 2648 2649 CFLAGS="" 2650 cat >conftest.$ac_ext <<_ACEOF 2651 /* confdefs.h. */ 2652 _ACEOF 2653 cat confdefs.h >>conftest.$ac_ext 2654 cat >>conftest.$ac_ext <<_ACEOF 2655 /* end confdefs.h. */ 2656 2657 int 2658 main () 2659 { 2660 2661 ; 2662 return 0; 2663 } 2664 _ACEOF 2665 rm -f conftest.$ac_objext 2666 if { (ac_try="$ac_compile" 2667 case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670 esac 2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2672 (eval "$ac_compile") 2>conftest.er1 2673 ac_status=$? 2674 grep -v '^ *+' conftest.er1 >conftest.err 2675 rm -f conftest.er1 2676 cat conftest.err >&5 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); } && { 2679 test -z "$ac_c_werror_flag" || 2680 test ! -s conftest.err 2681 } && test -s conftest.$ac_objext; then 2682 : 2683 else 2684 echo "$as_me: failed program was:" >&5 2685 sed 's/^/| /' conftest.$ac_ext >&5 2686 2687 ac_c_werror_flag=$ac_save_c_werror_flag 2688 CFLAGS="-g" 2689 cat >conftest.$ac_ext <<_ACEOF 2690 /* confdefs.h. */ 2691 _ACEOF 2692 cat confdefs.h >>conftest.$ac_ext 2693 cat >>conftest.$ac_ext <<_ACEOF 2694 /* end confdefs.h. */ 2695 2696 int 2697 main () 2698 { 2699 2700 ; 2701 return 0; 2702 } 2703 _ACEOF 2704 rm -f conftest.$ac_objext 2705 if { (ac_try="$ac_compile" 2706 case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709 esac 2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2711 (eval "$ac_compile") 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && { 2718 test -z "$ac_c_werror_flag" || 2719 test ! -s conftest.err 2720 } && test -s conftest.$ac_objext; then 2721 ac_cv_prog_cc_g=yes 2722 else 2723 echo "$as_me: failed program was:" >&5 2724 sed 's/^/| /' conftest.$ac_ext >&5 2725 2726 2727 fi 2728 2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2730 fi 2731 2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2733 fi 2734 2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2736 ac_c_werror_flag=$ac_save_c_werror_flag 2737 fi 2738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2739 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2740 if test "$ac_test_CFLAGS" = set; then 2741 CFLAGS=$ac_save_CFLAGS 2742 elif test $ac_cv_prog_cc_g = yes; then 2743 if test "$GCC" = yes; then 2744 CFLAGS="-g -O2" 2745 else 2746 CFLAGS="-g" 2747 fi 2748 else 2749 if test "$GCC" = yes; then 2750 CFLAGS="-O2" 2751 else 2752 CFLAGS= 2753 fi 2754 fi 2755 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2756 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2757 if test "${ac_cv_prog_cc_c89+set}" = set; then 2758 echo $ECHO_N "(cached) $ECHO_C" >&6 2759 else 2760 ac_cv_prog_cc_c89=no 2761 ac_save_CC=$CC 2762 cat >conftest.$ac_ext <<_ACEOF 2763 /* confdefs.h. */ 2764 _ACEOF 2765 cat confdefs.h >>conftest.$ac_ext 2766 cat >>conftest.$ac_ext <<_ACEOF 2767 /* end confdefs.h. */ 2768 #include <stdarg.h> 2769 #include <stdio.h> 2770 #include <sys/types.h> 2771 #include <sys/stat.h> 2772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2773 struct buf { int x; }; 2774 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2775 static char *e (p, i) 2776 char **p; 2777 int i; 2778 { 2779 return p[i]; 2780 } 2781 static char *f (char * (*g) (char **, int), char **p, ...) 2782 { 2783 char *s; 2784 va_list v; 2785 va_start (v,p); 2786 s = g (p, va_arg (v,int)); 2787 va_end (v); 2788 return s; 2789 } 2790 2791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2792 function prototypes and stuff, but not '\xHH' hex character constants. 2793 These don't provoke an error unfortunately, instead are silently treated 2794 as 'x'. The following induces an error, until -std is added to get 2795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2796 array size at least. It's necessary to write '\x00'==0 to get something 2797 that's true only with -std. */ 2798 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2799 2800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2801 inside strings and character constants. */ 2802 #define FOO(x) 'x' 2803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2804 2805 int test (int i, double x); 2806 struct s1 {int (*f) (int a);}; 2807 struct s2 {int (*f) (double a);}; 2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2809 int argc; 2810 char **argv; 2811 int 2812 main () 2813 { 2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2815 ; 2816 return 0; 2817 } 2818 _ACEOF 2819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2821 do 2822 CC="$ac_save_CC $ac_arg" 2823 rm -f conftest.$ac_objext 2824 if { (ac_try="$ac_compile" 2825 case "(($ac_try" in 2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2827 *) ac_try_echo=$ac_try;; 2828 esac 2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2830 (eval "$ac_compile") 2>conftest.er1 2831 ac_status=$? 2832 grep -v '^ *+' conftest.er1 >conftest.err 2833 rm -f conftest.er1 2834 cat conftest.err >&5 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836 (exit $ac_status); } && { 2837 test -z "$ac_c_werror_flag" || 2838 test ! -s conftest.err 2839 } && test -s conftest.$ac_objext; then 2840 ac_cv_prog_cc_c89=$ac_arg 2841 else 2842 echo "$as_me: failed program was:" >&5 2843 sed 's/^/| /' conftest.$ac_ext >&5 2844 2845 2846 fi 2847 2848 rm -f core conftest.err conftest.$ac_objext 2849 test "x$ac_cv_prog_cc_c89" != "xno" && break 2850 done 2851 rm -f conftest.$ac_ext 2852 CC=$ac_save_CC 2853 2854 fi 2855 # AC_CACHE_VAL 2856 case "x$ac_cv_prog_cc_c89" in 2857 x) 2858 { echo "$as_me:$LINENO: result: none needed" >&5 2859 echo "${ECHO_T}none needed" >&6; } ;; 2860 xno) 2861 { echo "$as_me:$LINENO: result: unsupported" >&5 2862 echo "${ECHO_T}unsupported" >&6; } ;; 2863 *) 2864 CC="$CC $ac_cv_prog_cc_c89" 2865 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2866 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2867 esac 2868 2869 2870 ac_ext=c 2871 ac_cpp='$CPP $CPPFLAGS' 2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2875 2876 if test "$GCC" = yes ; then 2877 if test "$SHLICC2" = yes ; then 2878 ac_cv_lbl_gcc_vers=2 2879 V_CCOPT="-O2" 2880 else 2881 { echo "$as_me:$LINENO: checking gcc version" >&5 2882 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } 2883 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2884 echo $ECHO_N "(cached) $ECHO_C" >&6 2885 else 2886 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2887 sed -e '/^gcc version /!d' \ 2888 -e 's/^gcc version //' \ 2889 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2890 -e 's/\..*//'` 2891 fi 2892 2893 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2894 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; } 2895 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2896 V_CCOPT="-O2" 2897 fi 2898 fi 2899 else 2900 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2901 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; } 2902 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2903 echo $ECHO_N "(cached) $ECHO_C" >&6 2904 else 2905 2906 cat >conftest.$ac_ext <<_ACEOF 2907 /* confdefs.h. */ 2908 _ACEOF 2909 cat confdefs.h >>conftest.$ac_ext 2910 cat >>conftest.$ac_ext <<_ACEOF 2911 /* end confdefs.h. */ 2912 #include <sys/types.h> 2913 int 2914 main () 2915 { 2916 int frob(int, char *) 2917 ; 2918 return 0; 2919 } 2920 _ACEOF 2921 rm -f conftest.$ac_objext 2922 if { (ac_try="$ac_compile" 2923 case "(($ac_try" in 2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2925 *) ac_try_echo=$ac_try;; 2926 esac 2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2928 (eval "$ac_compile") 2>conftest.er1 2929 ac_status=$? 2930 grep -v '^ *+' conftest.er1 >conftest.err 2931 rm -f conftest.er1 2932 cat conftest.err >&5 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); } && { 2935 test -z "$ac_c_werror_flag" || 2936 test ! -s conftest.err 2937 } && test -s conftest.$ac_objext; then 2938 ac_cv_lbl_cc_ansi_prototypes=yes 2939 else 2940 echo "$as_me: failed program was:" >&5 2941 sed 's/^/| /' conftest.$ac_ext >&5 2942 2943 ac_cv_lbl_cc_ansi_prototypes=no 2944 fi 2945 2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2947 fi 2948 2949 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2950 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; } 2951 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2952 case "$target_os" in 2953 2954 hpux*) 2955 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2956 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; } 2957 savedcflags="$CFLAGS" 2958 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2959 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961 else 2962 cat >conftest.$ac_ext <<_ACEOF 2963 /* confdefs.h. */ 2964 _ACEOF 2965 cat confdefs.h >>conftest.$ac_ext 2966 cat >>conftest.$ac_ext <<_ACEOF 2967 /* end confdefs.h. */ 2968 #include <sys/types.h> 2969 int 2970 main () 2971 { 2972 int frob(int, char *) 2973 ; 2974 return 0; 2975 } 2976 _ACEOF 2977 rm -f conftest.$ac_objext 2978 if { (ac_try="$ac_compile" 2979 case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982 esac 2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2984 (eval "$ac_compile") 2>conftest.er1 2985 ac_status=$? 2986 grep -v '^ *+' conftest.er1 >conftest.err 2987 rm -f conftest.er1 2988 cat conftest.err >&5 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); } && { 2991 test -z "$ac_c_werror_flag" || 2992 test ! -s conftest.err 2993 } && test -s conftest.$ac_objext; then 2994 ac_cv_lbl_cc_hpux_cc_aa=yes 2995 else 2996 echo "$as_me: failed program was:" >&5 2997 sed 's/^/| /' conftest.$ac_ext >&5 2998 2999 ac_cv_lbl_cc_hpux_cc_aa=no 3000 fi 3001 3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3003 fi 3004 3005 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 3006 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 3007 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 3008 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 3009 echo "$as_me: error: see the INSTALL doc for more info" >&2;} 3010 { (exit 1); exit 1; }; } 3011 fi 3012 CFLAGS="$savedcflags" 3013 V_CCOPT="-Aa $V_CCOPT" 3014 3015 cat >>confdefs.h <<\_ACEOF 3016 #define _HPUX_SOURCE 1 3017 _ACEOF 3018 3019 ;; 3020 3021 *) 3022 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 3023 echo "$as_me: error: see the INSTALL doc for more info" >&2;} 3024 { (exit 1); exit 1; }; } 3025 ;; 3026 esac 3027 fi 3028 V_INCLS="$V_INCLS -I/usr/local/include" 3029 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3030 3031 case "$target_os" in 3032 3033 irix*) 3034 V_CCOPT="$V_CCOPT -xansi -signed -g3" 3035 ;; 3036 3037 osf*) 3038 V_CCOPT="$V_CCOPT -std1 -g3" 3039 ;; 3040 3041 ultrix*) 3042 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 3043 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; } 3044 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046 else 3047 cat >conftest.$ac_ext <<_ACEOF 3048 /* confdefs.h. */ 3049 _ACEOF 3050 cat confdefs.h >>conftest.$ac_ext 3051 cat >>conftest.$ac_ext <<_ACEOF 3052 /* end confdefs.h. */ 3053 #include <sys/types.h> 3054 int 3055 main () 3056 { 3057 struct a { int b; }; 3058 void c(const struct a *) 3059 ; 3060 return 0; 3061 } 3062 _ACEOF 3063 rm -f conftest.$ac_objext 3064 if { (ac_try="$ac_compile" 3065 case "(($ac_try" in 3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3067 *) ac_try_echo=$ac_try;; 3068 esac 3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3070 (eval "$ac_compile") 2>conftest.er1 3071 ac_status=$? 3072 grep -v '^ *+' conftest.er1 >conftest.err 3073 rm -f conftest.er1 3074 cat conftest.err >&5 3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 (exit $ac_status); } && { 3077 test -z "$ac_c_werror_flag" || 3078 test ! -s conftest.err 3079 } && test -s conftest.$ac_objext; then 3080 ac_cv_lbl_cc_const_proto=yes 3081 else 3082 echo "$as_me: failed program was:" >&5 3083 sed 's/^/| /' conftest.$ac_ext >&5 3084 3085 ac_cv_lbl_cc_const_proto=no 3086 fi 3087 3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3089 fi 3090 3091 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 3092 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; } 3093 if test $ac_cv_lbl_cc_const_proto = no ; then 3094 cat >>confdefs.h <<\_ACEOF 3095 #define const 3096 _ACEOF 3097 3098 fi 3099 ;; 3100 esac 3101 fi 3102 3103 { echo "$as_me:$LINENO: checking for inline" >&5 3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 3105 save_CFLAGS="$CFLAGS" 3106 CFLAGS="$V_CCOPT" 3107 if test "${ac_cv_lbl_inline+set}" = set; then 3108 echo $ECHO_N "(cached) $ECHO_C" >&6 3109 else 3110 3111 ac_cv_lbl_inline="" 3112 ac_lbl_cc_inline=no 3113 for ac_lbl_inline in inline __inline__ __inline 3114 do 3115 cat >conftest.$ac_ext <<_ACEOF 3116 /* confdefs.h. */ 3117 _ACEOF 3118 cat confdefs.h >>conftest.$ac_ext 3119 cat >>conftest.$ac_ext <<_ACEOF 3120 /* end confdefs.h. */ 3121 #define inline $ac_lbl_inline 3122 static inline struct iltest *foo(void); 3123 struct iltest { 3124 int iltest1; 3125 int iltest2; 3126 }; 3127 3128 static inline struct iltest * 3129 foo() 3130 { 3131 static struct iltest xxx; 3132 3133 return &xxx; 3134 } 3135 int 3136 main () 3137 { 3138 3139 ; 3140 return 0; 3141 } 3142 _ACEOF 3143 rm -f conftest.$ac_objext 3144 if { (ac_try="$ac_compile" 3145 case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148 esac 3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3150 (eval "$ac_compile") 2>conftest.er1 3151 ac_status=$? 3152 grep -v '^ *+' conftest.er1 >conftest.err 3153 rm -f conftest.er1 3154 cat conftest.err >&5 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } && { 3157 test -z "$ac_c_werror_flag" || 3158 test ! -s conftest.err 3159 } && test -s conftest.$ac_objext; then 3160 ac_lbl_cc_inline=yes 3161 else 3162 echo "$as_me: failed program was:" >&5 3163 sed 's/^/| /' conftest.$ac_ext >&5 3164 3165 3166 fi 3167 3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3169 if test "$ac_lbl_cc_inline" = yes ; then 3170 break; 3171 fi 3172 done 3173 if test "$ac_lbl_cc_inline" = yes ; then 3174 ac_cv_lbl_inline=$ac_lbl_inline 3175 fi 3176 fi 3177 3178 CFLAGS="$save_CFLAGS" 3179 if test ! -z "$ac_cv_lbl_inline" ; then 3180 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 3181 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; } 3182 else 3183 { echo "$as_me:$LINENO: result: no" >&5 3184 echo "${ECHO_T}no" >&6; } 3185 fi 3186 3187 cat >>confdefs.h <<_ACEOF 3188 #define inline $ac_cv_lbl_inline 3189 _ACEOF 3190 3191 3192 { echo "$as_me:$LINENO: checking for __attribute__" >&5 3193 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } 3194 if test "${ac_cv___attribute__+set}" = set; then 3195 echo $ECHO_N "(cached) $ECHO_C" >&6 3196 else 3197 3198 cat >conftest.$ac_ext <<_ACEOF 3199 /* confdefs.h. */ 3200 _ACEOF 3201 cat confdefs.h >>conftest.$ac_ext 3202 cat >>conftest.$ac_ext <<_ACEOF 3203 /* end confdefs.h. */ 3204 3205 #include <stdlib.h> 3206 3207 static void foo(void) __attribute__ ((noreturn)); 3208 3209 static void 3210 foo(void) 3211 { 3212 exit(1); 3213 } 3214 3215 int 3216 main(int argc, char **argv) 3217 { 3218 foo(); 3219 } 3220 3221 _ACEOF 3222 rm -f conftest.$ac_objext 3223 if { (ac_try="$ac_compile" 3224 case "(($ac_try" in 3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226 *) ac_try_echo=$ac_try;; 3227 esac 3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3229 (eval "$ac_compile") 2>conftest.er1 3230 ac_status=$? 3231 grep -v '^ *+' conftest.er1 >conftest.err 3232 rm -f conftest.er1 3233 cat conftest.err >&5 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); } && { 3236 test -z "$ac_c_werror_flag" || 3237 test ! -s conftest.err 3238 } && test -s conftest.$ac_objext; then 3239 ac_cv___attribute__=yes 3240 else 3241 echo "$as_me: failed program was:" >&5 3242 sed 's/^/| /' conftest.$ac_ext >&5 3243 3244 ac_cv___attribute__=no 3245 fi 3246 3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3248 fi 3249 3250 if test "$ac_cv___attribute__" = "yes"; then 3251 3252 cat >>confdefs.h <<\_ACEOF 3253 #define HAVE___ATTRIBUTE__ 1 3254 _ACEOF 3255 3256 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3257 else 3258 V_DEFS="$V_DEFS -D_U_=\"\"" 3259 fi 3260 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3261 echo "${ECHO_T}$ac_cv___attribute__" >&6; } 3262 3263 3264 { echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5 3265 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6; } 3266 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then 3267 echo $ECHO_N "(cached) $ECHO_C" >&6 3268 else 3269 cat >conftest.$ac_ext <<_ACEOF 3270 /* confdefs.h. */ 3271 _ACEOF 3272 cat confdefs.h >>conftest.$ac_ext 3273 cat >>conftest.$ac_ext <<_ACEOF 3274 /* end confdefs.h. */ 3275 3276 # include "confdefs.h" 3277 # include <sys/types.h> 3278 # if STDC_HEADERS 3279 # include <stdlib.h> 3280 # include <stddef.h> 3281 # endif 3282 int 3283 main () 3284 { 3285 u_int8_t i 3286 ; 3287 return 0; 3288 } 3289 _ACEOF 3290 rm -f conftest.$ac_objext 3291 if { (ac_try="$ac_compile" 3292 case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295 esac 3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_compile") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } && { 3304 test -z "$ac_c_werror_flag" || 3305 test ! -s conftest.err 3306 } && test -s conftest.$ac_objext; then 3307 ac_cv_lbl_have_u_int8_t=yes 3308 else 3309 echo "$as_me: failed program was:" >&5 3310 sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 ac_cv_lbl_have_u_int8_t=no 3313 fi 3314 3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3316 fi 3317 3318 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5 3319 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; } 3320 if test $ac_cv_lbl_have_u_int8_t = no ; then 3321 3322 cat >>confdefs.h <<\_ACEOF 3323 #define u_int8_t u_char 3324 _ACEOF 3325 3326 fi 3327 { echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5 3328 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6; } 3329 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then 3330 echo $ECHO_N "(cached) $ECHO_C" >&6 3331 else 3332 cat >conftest.$ac_ext <<_ACEOF 3333 /* confdefs.h. */ 3334 _ACEOF 3335 cat confdefs.h >>conftest.$ac_ext 3336 cat >>conftest.$ac_ext <<_ACEOF 3337 /* end confdefs.h. */ 3338 3339 # include "confdefs.h" 3340 # include <sys/types.h> 3341 # if STDC_HEADERS 3342 # include <stdlib.h> 3343 # include <stddef.h> 3344 # endif 3345 int 3346 main () 3347 { 3348 u_int16_t i 3349 ; 3350 return 0; 3351 } 3352 _ACEOF 3353 rm -f conftest.$ac_objext 3354 if { (ac_try="$ac_compile" 3355 case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358 esac 3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3360 (eval "$ac_compile") 2>conftest.er1 3361 ac_status=$? 3362 grep -v '^ *+' conftest.er1 >conftest.err 3363 rm -f conftest.er1 3364 cat conftest.err >&5 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } && { 3367 test -z "$ac_c_werror_flag" || 3368 test ! -s conftest.err 3369 } && test -s conftest.$ac_objext; then 3370 ac_cv_lbl_have_u_int16_t=yes 3371 else 3372 echo "$as_me: failed program was:" >&5 3373 sed 's/^/| /' conftest.$ac_ext >&5 3374 3375 ac_cv_lbl_have_u_int16_t=no 3376 fi 3377 3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379 fi 3380 3381 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5 3382 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; } 3383 if test $ac_cv_lbl_have_u_int16_t = no ; then 3384 3385 cat >>confdefs.h <<\_ACEOF 3386 #define u_int16_t u_short 3387 _ACEOF 3388 3389 fi 3390 { echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5 3391 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6; } 3392 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then 3393 echo $ECHO_N "(cached) $ECHO_C" >&6 3394 else 3395 cat >conftest.$ac_ext <<_ACEOF 3396 /* confdefs.h. */ 3397 _ACEOF 3398 cat confdefs.h >>conftest.$ac_ext 3399 cat >>conftest.$ac_ext <<_ACEOF 3400 /* end confdefs.h. */ 3401 3402 # include "confdefs.h" 3403 # include <sys/types.h> 3404 # if STDC_HEADERS 3405 # include <stdlib.h> 3406 # include <stddef.h> 3407 # endif 3408 int 3409 main () 3410 { 3411 u_int32_t i 3412 ; 3413 return 0; 3414 } 3415 _ACEOF 3416 rm -f conftest.$ac_objext 3417 if { (ac_try="$ac_compile" 3418 case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421 esac 3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3423 (eval "$ac_compile") 2>conftest.er1 3424 ac_status=$? 3425 grep -v '^ *+' conftest.er1 >conftest.err 3426 rm -f conftest.er1 3427 cat conftest.err >&5 3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3429 (exit $ac_status); } && { 3430 test -z "$ac_c_werror_flag" || 3431 test ! -s conftest.err 3432 } && test -s conftest.$ac_objext; then 3433 ac_cv_lbl_have_u_int32_t=yes 3434 else 3435 echo "$as_me: failed program was:" >&5 3436 sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 ac_cv_lbl_have_u_int32_t=no 3439 fi 3440 3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442 fi 3443 3444 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5 3445 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; } 3446 if test $ac_cv_lbl_have_u_int32_t = no ; then 3447 3448 cat >>confdefs.h <<\_ACEOF 3449 #define u_int32_t u_int 3450 _ACEOF 3451 3452 fi 3453 3454 ac_ext=c 3455 ac_cpp='$CPP $CPPFLAGS' 3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3459 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3460 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3461 # On Suns, sometimes $CPP names a directory. 3462 if test -n "$CPP" && test -d "$CPP"; then 3463 CPP= 3464 fi 3465 if test -z "$CPP"; then 3466 if test "${ac_cv_prog_CPP+set}" = set; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468 else 3469 # Double quotes because CPP needs to be expanded 3470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3471 do 3472 ac_preproc_ok=false 3473 for ac_c_preproc_warn_flag in '' yes 3474 do 3475 # Use a header file that comes with gcc, so configuring glibc 3476 # with a fresh cross-compiler works. 3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3478 # <limits.h> exists even on freestanding compilers. 3479 # On the NeXT, cc -E runs the code through the compiler's parser, 3480 # not just through cpp. "Syntax error" is here to catch this case. 3481 cat >conftest.$ac_ext <<_ACEOF 3482 /* confdefs.h. */ 3483 _ACEOF 3484 cat confdefs.h >>conftest.$ac_ext 3485 cat >>conftest.$ac_ext <<_ACEOF 3486 /* end confdefs.h. */ 3487 #ifdef __STDC__ 3488 # include <limits.h> 3489 #else 3490 # include <assert.h> 3491 #endif 3492 Syntax error 3493 _ACEOF 3494 if { (ac_try="$ac_cpp conftest.$ac_ext" 3495 case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498 esac 3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } >/dev/null && { 3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 }; then 3510 : 3511 else 3512 echo "$as_me: failed program was:" >&5 3513 sed 's/^/| /' conftest.$ac_ext >&5 3514 3515 # Broken: fails on valid input. 3516 continue 3517 fi 3518 3519 rm -f conftest.err conftest.$ac_ext 3520 3521 # OK, works on sane cases. Now check whether nonexistent headers 3522 # can be detected and how. 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 #include <ac_nonexistent.h> 3530 _ACEOF 3531 if { (ac_try="$ac_cpp conftest.$ac_ext" 3532 case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535 esac 3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3538 ac_status=$? 3539 grep -v '^ *+' conftest.er1 >conftest.err 3540 rm -f conftest.er1 3541 cat conftest.err >&5 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } >/dev/null && { 3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3545 test ! -s conftest.err 3546 }; then 3547 # Broken: success on invalid input. 3548 continue 3549 else 3550 echo "$as_me: failed program was:" >&5 3551 sed 's/^/| /' conftest.$ac_ext >&5 3552 3553 # Passes both tests. 3554 ac_preproc_ok=: 3555 break 3556 fi 3557 3558 rm -f conftest.err conftest.$ac_ext 3559 3560 done 3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3562 rm -f conftest.err conftest.$ac_ext 3563 if $ac_preproc_ok; then 3564 break 3565 fi 3566 3567 done 3568 ac_cv_prog_CPP=$CPP 3569 3570 fi 3571 CPP=$ac_cv_prog_CPP 3572 else 3573 ac_cv_prog_CPP=$CPP 3574 fi 3575 { echo "$as_me:$LINENO: result: $CPP" >&5 3576 echo "${ECHO_T}$CPP" >&6; } 3577 ac_preproc_ok=false 3578 for ac_c_preproc_warn_flag in '' yes 3579 do 3580 # Use a header file that comes with gcc, so configuring glibc 3581 # with a fresh cross-compiler works. 3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3583 # <limits.h> exists even on freestanding compilers. 3584 # On the NeXT, cc -E runs the code through the compiler's parser, 3585 # not just through cpp. "Syntax error" is here to catch this case. 3586 cat >conftest.$ac_ext <<_ACEOF 3587 /* confdefs.h. */ 3588 _ACEOF 3589 cat confdefs.h >>conftest.$ac_ext 3590 cat >>conftest.$ac_ext <<_ACEOF 3591 /* end confdefs.h. */ 3592 #ifdef __STDC__ 3593 # include <limits.h> 3594 #else 3595 # include <assert.h> 3596 #endif 3597 Syntax error 3598 _ACEOF 3599 if { (ac_try="$ac_cpp conftest.$ac_ext" 3600 case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603 esac 3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } >/dev/null && { 3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3613 test ! -s conftest.err 3614 }; then 3615 : 3616 else 3617 echo "$as_me: failed program was:" >&5 3618 sed 's/^/| /' conftest.$ac_ext >&5 3619 3620 # Broken: fails on valid input. 3621 continue 3622 fi 3623 3624 rm -f conftest.err conftest.$ac_ext 3625 3626 # OK, works on sane cases. Now check whether nonexistent headers 3627 # can be detected and how. 3628 cat >conftest.$ac_ext <<_ACEOF 3629 /* confdefs.h. */ 3630 _ACEOF 3631 cat confdefs.h >>conftest.$ac_ext 3632 cat >>conftest.$ac_ext <<_ACEOF 3633 /* end confdefs.h. */ 3634 #include <ac_nonexistent.h> 3635 _ACEOF 3636 if { (ac_try="$ac_cpp conftest.$ac_ext" 3637 case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640 esac 3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } >/dev/null && { 3649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3650 test ! -s conftest.err