1 #! /bin/sh 2 # From configure.in Revision: 1.188.2.8 . 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="tcpdump.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 SHLICC2 663 CC 664 CFLAGS 665 LDFLAGS 666 CPPFLAGS 667 ac_ct_CC 668 EXEEXT 669 OBJEXT 670 CPP 671 GREP 672 EGREP 673 LIBOBJS 674 V_CCOPT 675 V_DEFS 676 V_GROUP 677 V_INCLS 678 V_PCAPDEP 679 LOCALSRC 680 INSTALL_PROGRAM 681 INSTALL_SCRIPT 682 INSTALL_DATA 683 LTLIBOBJS' 684 ac_subst_files='' 685 ac_precious_vars='build_alias 686 host_alias 687 target_alias 688 CC 689 CFLAGS 690 LDFLAGS 691 LIBS 692 CPPFLAGS 693 CPP' 694 695 696 # Initialize some variables set by options. 697 ac_init_help= 698 ac_init_version=false 699 # The variables have the same names as the options, with 700 # dashes changed to underlines. 701 cache_file=/dev/null 702 exec_prefix=NONE 703 no_create= 704 no_recursion= 705 prefix=NONE 706 program_prefix=NONE 707 program_suffix=NONE 708 program_transform_name=s,x,x, 709 silent= 710 site= 711 srcdir= 712 verbose= 713 x_includes=NONE 714 x_libraries=NONE 715 716 # Installation directory options. 717 # These are left unexpanded so users can "make install exec_prefix=/foo" 718 # and all the variables that are supposed to be based on exec_prefix 719 # by default will actually change. 720 # Use braces instead of parens because sh, perl, etc. also accept them. 721 # (The list follows the same order as the GNU Coding Standards.) 722 bindir='${exec_prefix}/bin' 723 sbindir='${exec_prefix}/sbin' 724 libexecdir='${exec_prefix}/libexec' 725 datarootdir='${prefix}/share' 726 datadir='${datarootdir}' 727 sysconfdir='${prefix}/etc' 728 sharedstatedir='${prefix}/com' 729 localstatedir='${prefix}/var' 730 includedir='${prefix}/include' 731 oldincludedir='/usr/include' 732 docdir='${datarootdir}/doc/${PACKAGE}' 733 infodir='${datarootdir}/info' 734 htmldir='${docdir}' 735 dvidir='${docdir}' 736 pdfdir='${docdir}' 737 psdir='${docdir}' 738 libdir='${exec_prefix}/lib' 739 localedir='${datarootdir}/locale' 740 mandir='${datarootdir}/man' 741 742 ac_prev= 743 ac_dashdash= 744 for ac_option 745 do 746 # If the previous option needs an argument, assign it. 747 if test -n "$ac_prev"; then 748 eval $ac_prev=\$ac_option 749 ac_prev= 750 continue 751 fi 752 753 case $ac_option in 754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 755 *) ac_optarg=yes ;; 756 esac 757 758 # Accept the important Cygnus configure options, so we can diagnose typos. 759 760 case $ac_dashdash$ac_option in 761 --) 762 ac_dashdash=yes ;; 763 764 -bindir | --bindir | --bindi | --bind | --bin | --bi) 765 ac_prev=bindir ;; 766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 767 bindir=$ac_optarg ;; 768 769 -build | --build | --buil | --bui | --bu) 770 ac_prev=build_alias ;; 771 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 772 build_alias=$ac_optarg ;; 773 774 -cache-file | --cache-file | --cache-fil | --cache-fi \ 775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 776 ac_prev=cache_file ;; 777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 779 cache_file=$ac_optarg ;; 780 781 --config-cache | -C) 782 cache_file=config.cache ;; 783 784 -datadir | --datadir | --datadi | --datad) 785 ac_prev=datadir ;; 786 -datadir=* | --datadir=* | --datadi=* | --datad=*) 787 datadir=$ac_optarg ;; 788 789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 790 | --dataroo | --dataro | --datar) 791 ac_prev=datarootdir ;; 792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 794 datarootdir=$ac_optarg ;; 795 796 -disable-* | --disable-*) 797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 798 # Reject names that are not valid shell variable names. 799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 801 { (exit 1); exit 1; }; } 802 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 803 eval enable_$ac_feature=no ;; 804 805 -docdir | --docdir | --docdi | --doc | --do) 806 ac_prev=docdir ;; 807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 808 docdir=$ac_optarg ;; 809 810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 811 ac_prev=dvidir ;; 812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 813 dvidir=$ac_optarg ;; 814 815 -enable-* | --enable-*) 816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 817 # Reject names that are not valid shell variable names. 818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 820 { (exit 1); exit 1; }; } 821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 822 eval enable_$ac_feature=\$ac_optarg ;; 823 824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 826 | --exec | --exe | --ex) 827 ac_prev=exec_prefix ;; 828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 830 | --exec=* | --exe=* | --ex=*) 831 exec_prefix=$ac_optarg ;; 832 833 -gas | --gas | --ga | --g) 834 # Obsolete; use --with-gas. 835 with_gas=yes ;; 836 837 -help | --help | --hel | --he | -h) 838 ac_init_help=long ;; 839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 840 ac_init_help=recursive ;; 841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 842 ac_init_help=short ;; 843 844 -host | --host | --hos | --ho) 845 ac_prev=host_alias ;; 846 -host=* | --host=* | --hos=* | --ho=*) 847 host_alias=$ac_optarg ;; 848 849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 850 ac_prev=htmldir ;; 851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 852 | --ht=*) 853 htmldir=$ac_optarg ;; 854 855 -includedir | --includedir | --includedi | --included | --include \ 856 | --includ | --inclu | --incl | --inc) 857 ac_prev=includedir ;; 858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 859 | --includ=* | --inclu=* | --incl=* | --inc=*) 860 includedir=$ac_optarg ;; 861 862 -infodir | --infodir | --infodi | --infod | --info | --inf) 863 ac_prev=infodir ;; 864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 865 infodir=$ac_optarg ;; 866 867 -libdir | --libdir | --libdi | --libd) 868 ac_prev=libdir ;; 869 -libdir=* | --libdir=* | --libdi=* | --libd=*) 870 libdir=$ac_optarg ;; 871 872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 873 | --libexe | --libex | --libe) 874 ac_prev=libexecdir ;; 875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 876 | --libexe=* | --libex=* | --libe=*) 877 libexecdir=$ac_optarg ;; 878 879 -localedir | --localedir | --localedi | --localed | --locale) 880 ac_prev=localedir ;; 881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 882 localedir=$ac_optarg ;; 883 884 -localstatedir | --localstatedir | --localstatedi | --localstated \ 885 | --localstate | --localstat | --localsta | --localst | --locals) 886 ac_prev=localstatedir ;; 887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 889 localstatedir=$ac_optarg ;; 890 891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 892 ac_prev=mandir ;; 893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 894 mandir=$ac_optarg ;; 895 896 -nfp | --nfp | --nf) 897 # Obsolete; use --without-fp. 898 with_fp=no ;; 899 900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 901 | --no-cr | --no-c | -n) 902 no_create=yes ;; 903 904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 906 no_recursion=yes ;; 907 908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 910 | --oldin | --oldi | --old | --ol | --o) 911 ac_prev=oldincludedir ;; 912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 915 oldincludedir=$ac_optarg ;; 916 917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 918 ac_prev=prefix ;; 919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 920 prefix=$ac_optarg ;; 921 922 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 923 | --program-pre | --program-pr | --program-p) 924 ac_prev=program_prefix ;; 925 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 927 program_prefix=$ac_optarg ;; 928 929 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 930 | --program-suf | --program-su | --program-s) 931 ac_prev=program_suffix ;; 932 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 934 program_suffix=$ac_optarg ;; 935 936 -program-transform-name | --program-transform-name \ 937 | --program-transform-nam | --program-transform-na \ 938 | --program-transform-n | --program-transform- \ 939 | --program-transform | --program-transfor \ 940 | --program-transfo | --program-transf \ 941 | --program-trans | --program-tran \ 942 | --progr-tra | --program-tr | --program-t) 943 ac_prev=program_transform_name ;; 944 -program-transform-name=* | --program-transform-name=* \ 945 | --program-transform-nam=* | --program-transform-na=* \ 946 | --program-transform-n=* | --program-transform-=* \ 947 | --program-transform=* | --program-transfor=* \ 948 | --program-transfo=* | --program-transf=* \ 949 | --program-trans=* | --program-tran=* \ 950 | --progr-tra=* | --program-tr=* | --program-t=*) 951 program_transform_name=$ac_optarg ;; 952 953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 954 ac_prev=pdfdir ;; 955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 956 pdfdir=$ac_optarg ;; 957 958 -psdir | --psdir | --psdi | --psd | --ps) 959 ac_prev=psdir ;; 960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 961 psdir=$ac_optarg ;; 962 963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 964 | -silent | --silent | --silen | --sile | --sil) 965 silent=yes ;; 966 967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 968 ac_prev=sbindir ;; 969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 970 | --sbi=* | --sb=*) 971 sbindir=$ac_optarg ;; 972 973 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 975 | --sharedst | --shareds | --shared | --share | --shar \ 976 | --sha | --sh) 977 ac_prev=sharedstatedir ;; 978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 981 | --sha=* | --sh=*) 982 sharedstatedir=$ac_optarg ;; 983 984 -site | --site | --sit) 985 ac_prev=site ;; 986 -site=* | --site=* | --sit=*) 987 site=$ac_optarg ;; 988 989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 990 ac_prev=srcdir ;; 991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 992 srcdir=$ac_optarg ;; 993 994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 995 | --syscon | --sysco | --sysc | --sys | --sy) 996 ac_prev=sysconfdir ;; 997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 999 sysconfdir=$ac_optarg ;; 1000 1001 -target | --target | --targe | --targ | --tar | --ta | --t) 1002 ac_prev=target_alias ;; 1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1004 target_alias=$ac_optarg ;; 1005 1006 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1007 verbose=yes ;; 1008 1009 -version | --version | --versio | --versi | --vers | -V) 1010 ac_init_version=: ;; 1011 1012 -with-* | --with-*) 1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1014 # Reject names that are not valid shell variable names. 1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1016 { echo "$as_me: error: invalid package name: $ac_package" >&2 1017 { (exit 1); exit 1; }; } 1018 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1019 eval with_$ac_package=\$ac_optarg ;; 1020 1021 -without-* | --without-*) 1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid package name: $ac_package" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1028 eval with_$ac_package=no ;; 1029 1030 --x) 1031 # Obsolete; use --with-x. 1032 with_x=yes ;; 1033 1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1035 | --x-incl | --x-inc | --x-in | --x-i) 1036 ac_prev=x_includes ;; 1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1039 x_includes=$ac_optarg ;; 1040 1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1043 ac_prev=x_libraries ;; 1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1046 x_libraries=$ac_optarg ;; 1047 1048 -*) { echo "$as_me: error: unrecognized option: $ac_option 1049 Try \`$0 --help' for more information." >&2 1050 { (exit 1); exit 1; }; } 1051 ;; 1052 1053 *=*) 1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1058 { (exit 1); exit 1; }; } 1059 eval $ac_envvar=\$ac_optarg 1060 export $ac_envvar ;; 1061 1062 *) 1063 # FIXME: should be removed in autoconf 3.0. 1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1068 ;; 1069 1070 esac 1071 done 1072 1073 if test -n "$ac_prev"; then 1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1075 { echo "$as_me: error: missing argument to $ac_option" >&2 1076 { (exit 1); exit 1; }; } 1077 fi 1078 1079 # Be sure to have absolute directory names. 1080 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1081 datadir sysconfdir sharedstatedir localstatedir includedir \ 1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1083 libdir localedir mandir 1084 do 1085 eval ac_val=\$$ac_var 1086 case $ac_val in 1087 [\\/$]* | ?:[\\/]* ) continue;; 1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1089 esac 1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1091 { (exit 1); exit 1; }; } 1092 done 1093 1094 # There might be people who depend on the old broken behavior: `$host' 1095 # used to hold the argument of --host etc. 1096 # FIXME: To remove some day. 1097 build=$build_alias 1098 host=$host_alias 1099 target=$target_alias 1100 1101 # FIXME: To remove some day. 1102 if test "x$host_alias" != x; then 1103 if test "x$build_alias" = x; then 1104 cross_compiling=maybe 1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1106 If a cross compiler is detected then cross compile mode will be used." >&2 1107 elif test "x$build_alias" != "x$host_alias"; then 1108 cross_compiling=yes 1109 fi 1110 fi 1111 1112 ac_tool_prefix= 1113 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1114 1115 test "$silent" = yes && exec 6>/dev/null 1116 1117 1118 ac_pwd=`pwd` && test -n "$ac_pwd" && 1119 ac_ls_di=`ls -di .` && 1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1121 { echo "$as_me: error: Working directory cannot be determined" >&2 1122 { (exit 1); exit 1; }; } 1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1124 { echo "$as_me: error: pwd does not report name of working directory" >&2 1125 { (exit 1); exit 1; }; } 1126 1127 1128 # Find the source files, if location was not specified. 1129 if test -z "$srcdir"; then 1130 ac_srcdir_defaulted=yes 1131 # Try the directory containing this script, then the parent directory. 1132 ac_confdir=`$as_dirname -- "$0" || 1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1134 X"$0" : 'X\(//\)[^/]' \| \ 1135 X"$0" : 'X\(//\)$' \| \ 1136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1137 echo X"$0" | 1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1139 s//\1/ 1140 q 1141 } 1142 /^X\(\/\/\)[^/].*/{ 1143 s//\1/ 1144 q 1145 } 1146 /^X\(\/\/\)$/{ 1147 s//\1/ 1148 q 1149 } 1150 /^X\(\/\).*/{ 1151 s//\1/ 1152 q 1153 } 1154 s/.*/./; q'` 1155 srcdir=$ac_confdir 1156 if test ! -r "$srcdir/$ac_unique_file"; then 1157 srcdir=.. 1158 fi 1159 else 1160 ac_srcdir_defaulted=no 1161 fi 1162 if test ! -r "$srcdir/$ac_unique_file"; then 1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1165 { (exit 1); exit 1; }; } 1166 fi 1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1168 ac_abs_confdir=`( 1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1170 { (exit 1); exit 1; }; } 1171 pwd)` 1172 # When building in place, set srcdir=. 1173 if test "$ac_abs_confdir" = "$ac_pwd"; then 1174 srcdir=. 1175 fi 1176 # Remove unnecessary trailing slashes from srcdir. 1177 # Double slashes in file names in object file debugging info 1178 # mess up M-x gdb in Emacs. 1179 case $srcdir in 1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1181 esac 1182 for ac_var in $ac_precious_vars; do 1183 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1184 eval ac_env_${ac_var}_value=\$${ac_var} 1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1186 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1187 done 1188 1189 # 1190 # Report the --help message. 1191 # 1192 if test "$ac_init_help" = "long"; then 1193 # Omit some internal or obsolete options to make the list less imposing. 1194 # This message is too long to be a string in the A/UX 3.1 sh. 1195 cat <<_ACEOF 1196 \`configure' configures this package to adapt to many kinds of systems. 1197 1198 Usage: $0 [OPTION]... [VAR=VALUE]... 1199 1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1201 VAR=VALUE. See below for descriptions of some of the useful variables. 1202 1203 Defaults for the options are specified in brackets. 1204 1205 Configuration: 1206 -h, --help display this help and exit 1207 --help=short display options specific to this package 1208 --help=recursive display the short help of all the included packages 1209 -V, --version display version information and exit 1210 -q, --quiet, --silent do not print \`checking...' messages 1211 --cache-file=FILE cache test results in FILE [disabled] 1212 -C, --config-cache alias for \`--cache-file=config.cache' 1213 -n, --no-create do not create output files 1214 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1215 1216 Installation directories: 1217 --prefix=PREFIX install architecture-independent files in PREFIX 1218 [$ac_default_prefix] 1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1220 [PREFIX] 1221 1222 By default, \`make install' will install all the files in 1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1225 for instance \`--prefix=\$HOME'. 1226 1227 For better control, use the options below. 1228 1229 Fine tuning of the installation directories: 1230 --bindir=DIR user executables [EPREFIX/bin] 1231 --sbindir=DIR system admin executables [EPREFIX/sbin] 1232 --libexecdir=DIR program executables [EPREFIX/libexec] 1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1236 --libdir=DIR object code libraries [EPREFIX/lib] 1237 --includedir=DIR C header files [PREFIX/include] 1238 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1241 --infodir=DIR info documentation [DATAROOTDIR/info] 1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1243 --mandir=DIR man documentation [DATAROOTDIR/man] 1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1245 --htmldir=DIR html documentation [DOCDIR] 1246 --dvidir=DIR dvi documentation [DOCDIR] 1247 --pdfdir=DIR pdf documentation [DOCDIR] 1248 --psdir=DIR ps documentation [DOCDIR] 1249 _ACEOF 1250 1251 cat <<\_ACEOF 1252 1253 System types: 1254 --build=BUILD configure for building on BUILD [guessed] 1255 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1256 _ACEOF 1257 fi 1258 1259 if test -n "$ac_init_help"; then 1260 1261 cat <<\_ACEOF 1262 1263 Optional Features: 1264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1266 --enable-smb enable possibly-buggy SMB printer default=yes 1267 --disable-smb disable possibly-buggy SMB printer 1268 --enable-ipv6 enable ipv6 (with ipv4) support 1269 --disable-ipv6 disable ipv6 support 1270 1271 Optional Packages: 1272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1274 --without-gcc don't use gcc 1275 --with-user=USERNAME drop privileges by default to USERNAME 1276 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1277 --without-crypto disable crypto support 1278 1279 Some influential environment variables: 1280 CC C compiler command 1281 CFLAGS C compiler flags 1282 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1283 nonstandard directory <lib dir> 1284 LIBS libraries to pass to the linker, e.g. -l<library> 1285 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1286 you have headers in a nonstandard directory <include dir> 1287 CPP C preprocessor 1288 1289 Use these variables to override the choices made by `configure' or to help 1290 it to find libraries and programs with nonstandard names/locations. 1291 1292 _ACEOF 1293 ac_status=$? 1294 fi 1295 1296 if test "$ac_init_help" = "recursive"; then 1297 # If there are subdirs, report their specific --help. 1298 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1299 test -d "$ac_dir" || continue 1300 ac_builddir=. 1301 1302 case "$ac_dir" in 1303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1304 *) 1305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1306 # A ".." for each directory in $ac_dir_suffix. 1307 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1308 case $ac_top_builddir_sub in 1309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1311 esac ;; 1312 esac 1313 ac_abs_top_builddir=$ac_pwd 1314 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1315 # for backward compatibility: 1316 ac_top_builddir=$ac_top_build_prefix 1317 1318 case $srcdir in 1319 .) # We are building in place. 1320 ac_srcdir=. 1321 ac_top_srcdir=$ac_top_builddir_sub 1322 ac_abs_top_srcdir=$ac_pwd ;; 1323 [\\/]* | ?:[\\/]* ) # Absolute name. 1324 ac_srcdir=$srcdir$ac_dir_suffix; 1325 ac_top_srcdir=$srcdir 1326 ac_abs_top_srcdir=$srcdir ;; 1327 *) # Relative name. 1328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1329 ac_top_srcdir=$ac_top_build_prefix$srcdir 1330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1331 esac 1332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1333 1334 cd "$ac_dir" || { ac_status=$?; continue; } 1335 # Check for guested configure. 1336 if test -f "$ac_srcdir/configure.gnu"; then 1337 echo && 1338 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1339 elif test -f "$ac_srcdir/configure"; then 1340 echo && 1341 $SHELL "$ac_srcdir/configure" --help=recursive 1342 else 1343 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1344 fi || ac_status=$? 1345 cd "$ac_pwd" || { ac_status=$?; break; } 1346 done 1347 fi 1348 1349 test -n "$ac_init_help" && exit $ac_status 1350 if $ac_init_version; then 1351 cat <<\_ACEOF 1352 configure 1353 generated by GNU Autoconf 2.61 1354 1355 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1356 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1357 This configure script is free software; the Free Software Foundation 1358 gives unlimited permission to copy, distribute and modify it. 1359 _ACEOF 1360 exit 1361 fi 1362 cat >config.log <<_ACEOF 1363 This file contains any messages produced by compilers while 1364 running configure, to aid debugging if configure makes a mistake. 1365 1366 It was created by $as_me, which was 1367 generated by GNU Autoconf 2.61. Invocation command line was 1368 1369 $ $0 $@ 1370 1371 _ACEOF 1372 exec 5>>config.log 1373 { 1374 cat <<_ASUNAME 1375 ## --------- ## 1376 ## Platform. ## 1377 ## --------- ## 1378 1379 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1380 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1381 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1382 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1383 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1384 1385 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1386 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1387 1388 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1389 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1390 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1391 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1392 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1393 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1394 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1395 1396 _ASUNAME 1397 1398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1399 for as_dir in $PATH 1400 do 1401 IFS=$as_save_IFS 1402 test -z "$as_dir" && as_dir=. 1403 echo "PATH: $as_dir" 1404 done 1405 IFS=$as_save_IFS 1406 1407 } >&5 1408 1409 cat >&5 <<_ACEOF 1410 1411 1412 ## ----------- ## 1413 ## Core tests. ## 1414 ## ----------- ## 1415 1416 _ACEOF 1417 1418 1419 # Keep a trace of the command line. 1420 # Strip out --no-create and --no-recursion so they do not pile up. 1421 # Strip out --silent because we don't want to record it for future runs. 1422 # Also quote any args containing shell meta-characters. 1423 # Make two passes to allow for proper duplicate-argument suppression. 1424 ac_configure_args= 1425 ac_configure_args0= 1426 ac_configure_args1= 1427 ac_must_keep_next=false 1428 for ac_pass in 1 2 1429 do 1430 for ac_arg 1431 do 1432 case $ac_arg in 1433 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1435 | -silent | --silent | --silen | --sile | --sil) 1436 continue ;; 1437 *\'*) 1438 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1439 esac 1440 case $ac_pass in 1441 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1442 2) 1443 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1444 if test $ac_must_keep_next = true; then 1445 ac_must_keep_next=false # Got value, back to normal. 1446 else 1447 case $ac_arg in 1448 *=* | --config-cache | -C | -disable-* | --disable-* \ 1449 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1450 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1451 | -with-* | --with-* | -without-* | --without-* | --x) 1452 case "$ac_configure_args0 " in 1453 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1454 esac 1455 ;; 1456 -* ) ac_must_keep_next=true ;; 1457 esac 1458 fi 1459 ac_configure_args="$ac_configure_args '$ac_arg'" 1460 ;; 1461 esac 1462 done 1463 done 1464 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1465 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1466 1467 # When interrupted or exit'd, cleanup temporary files, and complete 1468 # config.log. We remove comments because anyway the quotes in there 1469 # would cause problems or look ugly. 1470 # WARNING: Use '\'' to represent an apostrophe within the trap. 1471 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1472 trap 'exit_status=$? 1473 # Save into config.log some information that might help in debugging. 1474 { 1475 echo 1476 1477 cat <<\_ASBOX 1478 ## ---------------- ## 1479 ## Cache variables. ## 1480 ## ---------------- ## 1481 _ASBOX 1482 echo 1483 # The following way of writing the cache mishandles newlines in values, 1484 ( 1485 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1486 eval ac_val=\$$ac_var 1487 case $ac_val in #( 1488 *${as_nl}*) 1489 case $ac_var in #( 1490 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1491 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1492 esac 1493 case $ac_var in #( 1494 _ | IFS | as_nl) ;; #( 1495 *) $as_unset $ac_var ;; 1496 esac ;; 1497 esac 1498 done 1499 (set) 2>&1 | 1500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1501 *${as_nl}ac_space=\ *) 1502 sed -n \ 1503 "s/'\''/'\''\\\\'\'''\''/g; 1504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1505 ;; #( 1506 *) 1507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1508 ;; 1509 esac | 1510 sort 1511 ) 1512 echo 1513 1514 cat <<\_ASBOX 1515 ## ----------------- ## 1516 ## Output variables. ## 1517 ## ----------------- ## 1518 _ASBOX 1519 echo 1520 for ac_var in $ac_subst_vars 1521 do 1522 eval ac_val=\$$ac_var 1523 case $ac_val in 1524 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1525 esac 1526 echo "$ac_var='\''$ac_val'\''" 1527 done | sort 1528 echo 1529 1530 if test -n "$ac_subst_files"; then 1531 cat <<\_ASBOX 1532 ## ------------------- ## 1533 ## File substitutions. ## 1534 ## ------------------- ## 1535 _ASBOX 1536 echo 1537 for ac_var in $ac_subst_files 1538 do 1539 eval ac_val=\$$ac_var 1540 case $ac_val in 1541 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1542 esac 1543 echo "$ac_var='\''$ac_val'\''" 1544 done | sort 1545 echo 1546 fi 1547 1548 if test -s confdefs.h; then 1549 cat <<\_ASBOX 1550 ## ----------- ## 1551 ## confdefs.h. ## 1552 ## ----------- ## 1553 _ASBOX 1554 echo 1555 cat confdefs.h 1556 echo 1557 fi 1558 test "$ac_signal" != 0 && 1559 echo "$as_me: caught signal $ac_signal" 1560 echo "$as_me: exit $exit_status" 1561 } >&5 1562 rm -f core *.core core.conftest.* && 1563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1564 exit $exit_status 1565 ' 0 1566 for ac_signal in 1 2 13 15; do 1567 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1568 done 1569 ac_signal=0 1570 1571 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1572 rm -f -r conftest* confdefs.h 1573 1574 # Predefined preprocessor variables. 1575 1576 cat >>confdefs.h <<_ACEOF 1577 #define PACKAGE_NAME "$PACKAGE_NAME" 1578 _ACEOF 1579 1580 1581 cat >>confdefs.h <<_ACEOF 1582 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1583 _ACEOF 1584 1585 1586 cat >>confdefs.h <<_ACEOF 1587 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1588 _ACEOF 1589 1590 1591 cat >>confdefs.h <<_ACEOF 1592 #define PACKAGE_STRING "$PACKAGE_STRING" 1593 _ACEOF 1594 1595 1596 cat >>confdefs.h <<_ACEOF 1597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1598 _ACEOF 1599 1600 1601 # Let the site file select an alternate cache file if it wants to. 1602 # Prefer explicitly selected file to automatically selected ones. 1603 if test -n "$CONFIG_SITE"; then 1604 set x "$CONFIG_SITE" 1605 elif test "x$prefix" != xNONE; then 1606 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1607 else 1608 set x "$ac_default_prefix/share/config.site" \ 1609 "$ac_default_prefix/etc/config.site" 1610 fi 1611 shift 1612 for ac_site_file 1613 do 1614 if test -r "$ac_site_file"; then 1615 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1616 echo "$as_me: loading site script $ac_site_file" >&6;} 1617 sed 's/^/| /' "$ac_site_file" >&5 1618 . "$ac_site_file" 1619 fi 1620 done 1621 1622 if test -r "$cache_file"; then 1623 # Some versions of bash will fail to source /dev/null (special 1624 # files actually), so we avoid doing that. 1625 if test -f "$cache_file"; then 1626 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1627 echo "$as_me: loading cache $cache_file" >&6;} 1628 case $cache_file in 1629 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1630 *) . "./$cache_file";; 1631 esac 1632 fi 1633 else 1634 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1635 echo "$as_me: creating cache $cache_file" >&6;} 1636 >$cache_file 1637 fi 1638 1639 # Check that the precious variables saved in the cache have kept the same 1640 # value. 1641 ac_cache_corrupted=false 1642 for ac_var in $ac_precious_vars; do 1643 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1644 eval ac_new_set=\$ac_env_${ac_var}_set 1645 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1646 eval ac_new_val=\$ac_env_${ac_var}_value 1647 case $ac_old_set,$ac_new_set in 1648 set,) 1649 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1650 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1651 ac_cache_corrupted=: ;; 1652 ,set) 1653 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1654 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1655 ac_cache_corrupted=: ;; 1656 ,);; 1657 *) 1658 if test "x$ac_old_val" != "x$ac_new_val"; then 1659 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1660 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1661 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1662 echo "$as_me: former value: $ac_old_val" >&2;} 1663 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1664 echo "$as_me: current value: $ac_new_val" >&2;} 1665 ac_cache_corrupted=: 1666 fi;; 1667 esac 1668 # Pass precious variables to config.status. 1669 if test "$ac_new_set" = set; then 1670 case $ac_new_val in 1671 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1672 *) ac_arg=$ac_var=$ac_new_val ;; 1673 esac 1674 case " $ac_configure_args " in 1675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1676 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1677 esac 1678 fi 1679 done 1680 if $ac_cache_corrupted; then 1681 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1682 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1683 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1684 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1685 { (exit 1); exit 1; }; } 1686 fi 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 ac_ext=c 1705 ac_cpp='$CPP $CPPFLAGS' 1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1709 1710 1711 1712 ac_aux_dir= 1713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1714 if test -f "$ac_dir/install-sh"; then 1715 ac_aux_dir=$ac_dir 1716 ac_install_sh="$ac_aux_dir/install-sh -c" 1717 break 1718 elif test -f "$ac_dir/install.sh"; then 1719 ac_aux_dir=$ac_dir 1720 ac_install_sh="$ac_aux_dir/install.sh -c" 1721 break 1722 elif test -f "$ac_dir/shtool"; then 1723 ac_aux_dir=$ac_dir 1724 ac_install_sh="$ac_aux_dir/shtool install -c" 1725 break 1726 fi 1727 done 1728 if test -z "$ac_aux_dir"; then 1729 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1730 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1731 { (exit 1); exit 1; }; } 1732 fi 1733 1734 # These three variables are undocumented and unsupported, 1735 # and are intended to be withdrawn in a future Autoconf release. 1736 # They can cause serious problems if a builder's source tree is in a directory 1737 # whose full name contains unusual characters. 1738 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1739 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1740 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1741 1742 1743 # Make sure we can run config.sub. 1744 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1745 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1746 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1747 { (exit 1); exit 1; }; } 1748 1749 { echo "$as_me:$LINENO: checking build system type" >&5 1750 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1751 if test "${ac_cv_build+set}" = set; then 1752 echo $ECHO_N "(cached) $ECHO_C" >&6 1753 else 1754 ac_build_alias=$build_alias 1755 test "x$ac_build_alias" = x && 1756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1757 test "x$ac_build_alias" = x && 1758 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1759 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1760 { (exit 1); exit 1; }; } 1761 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1762 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1763 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1764 { (exit 1); exit 1; }; } 1765 1766 fi 1767 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1768 echo "${ECHO_T}$ac_cv_build" >&6; } 1769 case $ac_cv_build in 1770 *-*-*) ;; 1771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1772 echo "$as_me: error: invalid value of canonical build" >&2;} 1773 { (exit 1); exit 1; }; };; 1774 esac 1775 build=$ac_cv_build 1776 ac_save_IFS=$IFS; IFS='-' 1777 set x $ac_cv_build 1778 shift 1779 build_cpu=$1 1780 build_vendor=$2 1781 shift; shift 1782 # Remember, the first character of IFS is used to create $*, 1783 # except with old shells: 1784 build_os=$* 1785 IFS=$ac_save_IFS 1786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1787 1788 1789 { echo "$as_me:$LINENO: checking host system type" >&5 1790 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1791 if test "${ac_cv_host+set}" = set; then 1792 echo $ECHO_N "(cached) $ECHO_C" >&6 1793 else 1794 if test "x$host_alias" = x; then 1795 ac_cv_host=$ac_cv_build 1796 else 1797 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1799 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1800 { (exit 1); exit 1; }; } 1801 fi 1802 1803 fi 1804 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1805 echo "${ECHO_T}$ac_cv_host" >&6; } 1806 case $ac_cv_host in 1807 *-*-*) ;; 1808 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1809 echo "$as_me: error: invalid value of canonical host" >&2;} 1810 { (exit 1); exit 1; }; };; 1811 esac 1812 host=$ac_cv_host 1813 ac_save_IFS=$IFS; IFS='-' 1814 set x $ac_cv_host 1815 shift 1816 host_cpu=$1 1817 host_vendor=$2 1818 shift; shift 1819 # Remember, the first character of IFS is used to create $*, 1820 # except with old shells: 1821 host_os=$* 1822 IFS=$ac_save_IFS 1823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1824 1825 1826 1827 1828 1829 1830 1831 1832 # Check whether --with-gcc was given. 1833 if test "${with_gcc+set}" = set; then 1834 withval=$with_gcc; 1835 fi 1836 1837 V_CCOPT="-O" 1838 V_INCLS="" 1839 if test "${srcdir}" != "." ; then 1840 V_INCLS="-I\$(srcdir)" 1841 fi 1842 if test "${CFLAGS+set}" = set; then 1843 LBL_CFLAGS="$CFLAGS" 1844 fi 1845 if test -z "$CC" ; then 1846 case "$host_os" in 1847 1848 bsdi*) 1849 # Extract the first word of "shlicc2", so it can be a program name with args. 1850 set dummy shlicc2; ac_word=$2 1851 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1853 if test "${ac_cv_prog_SHLICC2+set}" = set; then 1854 echo $ECHO_N "(cached) $ECHO_C" >&6 1855 else 1856 if test -n "$SHLICC2"; then 1857 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1858 else 1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1860 for as_dir in $PATH 1861 do 1862 IFS=$as_save_IFS 1863 test -z "$as_dir" && as_dir=. 1864 for ac_exec_ext in '' $ac_executable_extensions; do 1865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1866 ac_cv_prog_SHLICC2="yes" 1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1868 break 2 1869 fi 1870 done 1871 done 1872 IFS=$as_save_IFS 1873 1874 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1875 fi 1876 fi 1877 SHLICC2=$ac_cv_prog_SHLICC2 1878 if test -n "$SHLICC2"; then 1879 { echo "$as_me:$LINENO: result: $SHLICC2" >&5 1880 echo "${ECHO_T}$SHLICC2" >&6; } 1881 else 1882 { echo "$as_me:$LINENO: result: no" >&5 1883 echo "${ECHO_T}no" >&6; } 1884 fi 1885 1886 1887 if test $SHLICC2 = yes ; then 1888 CC=shlicc2 1889 export CC 1890 fi 1891 ;; 1892 esac 1893 fi 1894 if test -z "$CC" -a "$with_gcc" = no ; then 1895 CC=cc 1896 export CC 1897 fi 1898 ac_ext=c 1899 ac_cpp='$CPP $CPPFLAGS' 1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1903 if test -n "$ac_tool_prefix"; then 1904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1905 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1908 if test "${ac_cv_prog_CC+set}" = set; then 1909 echo $ECHO_N "(cached) $ECHO_C" >&6 1910 else 1911 if test -n "$CC"; then 1912 ac_cv_prog_CC="$CC" # Let the user override the test. 1913 else 1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915 for as_dir in $PATH 1916 do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 for ac_exec_ext in '' $ac_executable_extensions; do 1920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1921 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1923 break 2 1924 fi 1925 done 1926 done 1927 IFS=$as_save_IFS 1928 1929 fi 1930 fi 1931 CC=$ac_cv_prog_CC 1932 if test -n "$CC"; then 1933 { echo "$as_me:$LINENO: result: $CC" >&5 1934 echo "${ECHO_T}$CC" >&6; } 1935 else 1936 { echo "$as_me:$LINENO: result: no" >&5 1937 echo "${ECHO_T}no" >&6; } 1938 fi 1939 1940 1941 fi 1942 if test -z "$ac_cv_prog_CC"; then 1943 ac_ct_CC=$CC 1944 # Extract the first word of "gcc", so it can be a program name with args. 1945 set dummy gcc; ac_word=$2 1946 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 1950 else 1951 if test -n "$ac_ct_CC"; then 1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1953 else 1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955 for as_dir in $PATH 1956 do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 for ac_exec_ext in '' $ac_executable_extensions; do 1960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1961 ac_cv_prog_ac_ct_CC="gcc" 1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1963 break 2 1964 fi 1965 done 1966 done 1967 IFS=$as_save_IFS 1968 1969 fi 1970 fi 1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1972 if test -n "$ac_ct_CC"; then 1973 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1974 echo "${ECHO_T}$ac_ct_CC" >&6; } 1975 else 1976 { echo "$as_me:$LINENO: result: no" >&5 1977 echo "${ECHO_T}no" >&6; } 1978 fi 1979 1980 if test "x$ac_ct_CC" = x; then 1981 CC="" 1982 else 1983 case $cross_compiling:$ac_tool_warned in 1984 yes:) 1985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1986 whose name does not start with the host triplet. If you think this 1987 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 1988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1989 whose name does not start with the host triplet. If you think this 1990 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 1991 ac_tool_warned=yes ;; 1992 esac 1993 CC=$ac_ct_CC 1994 fi 1995 else 1996 CC="$ac_cv_prog_CC" 1997 fi 1998 1999 if test -z "$CC"; then 2000 if test -n "$ac_tool_prefix"; then 2001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2002 set dummy ${ac_tool_prefix}cc; ac_word=$2 2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2005 if test "${ac_cv_prog_CC+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007 else 2008 if test -n "$CC"; then 2009 ac_cv_prog_CC="$CC" # Let the user override the test. 2010 else 2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2012 for as_dir in $PATH 2013 do 2014 IFS=$as_save_IFS 2015 test -z "$as_dir" && as_dir=. 2016 for ac_exec_ext in '' $ac_executable_extensions; do 2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2018 ac_cv_prog_CC="${ac_tool_prefix}cc" 2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2020 break 2 2021 fi 2022 done 2023 done 2024 IFS=$as_save_IFS 2025 2026 fi 2027 fi 2028 CC=$ac_cv_prog_CC 2029 if test -n "$CC"; then 2030 { echo "$as_me:$LINENO: result: $CC" >&5 2031 echo "${ECHO_T}$CC" >&6; } 2032 else 2033 { echo "$as_me:$LINENO: result: no" >&5 2034 echo "${ECHO_T}no" >&6; } 2035 fi 2036 2037 2038 fi 2039 fi 2040 if test -z "$CC"; then 2041 # Extract the first word of "cc", so it can be a program name with args. 2042 set dummy cc; ac_word=$2 2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2045 if test "${ac_cv_prog_CC+set}" = set; then 2046 echo $ECHO_N "(cached) $ECHO_C" >&6 2047 else 2048 if test -n "$CC"; then 2049 ac_cv_prog_CC="$CC" # Let the user override the test. 2050 else 2051 ac_prog_rejected=no 2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2053 for as_dir in $PATH 2054 do 2055 IFS=$as_save_IFS 2056 test -z "$as_dir" && as_dir=. 2057 for ac_exec_ext in '' $ac_executable_extensions; do 2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2060 ac_prog_rejected=yes 2061 continue 2062 fi 2063 ac_cv_prog_CC="cc" 2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2065 break 2 2066 fi 2067 done 2068 done 2069 IFS=$as_save_IFS 2070 2071 if test $ac_prog_rejected = yes; then 2072 # We found a bogon in the path, so make sure we never use it. 2073 set dummy $ac_cv_prog_CC 2074 shift 2075 if test $# != 0; then 2076 # We chose a different compiler from the bogus one. 2077 # However, it has the same basename, so the bogon will be chosen 2078 # first if we set CC to just the basename; use the full file name. 2079 shift 2080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2081 fi 2082 fi 2083 fi 2084 fi 2085 CC=$ac_cv_prog_CC 2086 if test -n "$CC"; then 2087 { echo "$as_me:$LINENO: result: $CC" >&5 2088 echo "${ECHO_T}$CC" >&6; } 2089 else 2090 { echo "$as_me:$LINENO: result: no" >&5 2091 echo "${ECHO_T}no" >&6; } 2092 fi 2093 2094 2095 fi 2096 if test -z "$CC"; then 2097 if test -n "$ac_tool_prefix"; then 2098 for ac_prog in cl.exe 2099 do 2100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2101 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111 for as_dir in $PATH 2112 do 2113 IFS=$as_save_IFS 2114 test -z "$as_dir" && as_dir=. 2115 for ac_exec_ext in '' $ac_executable_extensions; do 2116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2119 break 2 2120 fi 2121 done 2122 done 2123 IFS=$as_save_IFS 2124 2125 fi 2126 fi 2127 CC=$ac_cv_prog_CC 2128 if test -n "$CC"; then 2129 { echo "$as_me:$LINENO: result: $CC" >&5 2130 echo "${ECHO_T}$CC" >&6; } 2131 else 2132 { echo "$as_me:$LINENO: result: no" >&5 2133 echo "${ECHO_T}no" >&6; } 2134 fi 2135 2136 2137 test -n "$CC" && break 2138 done 2139 fi 2140 if test -z "$CC"; then 2141 ac_ct_CC=$CC 2142 for ac_prog in cl.exe 2143 do 2144 # Extract the first word of "$ac_prog", so it can be a program name with args. 2145 set dummy $ac_prog; ac_word=$2 2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2149 echo $ECHO_N "(cached) $ECHO_C" >&6 2150 else 2151 if test -n "$ac_ct_CC"; then 2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2153 else 2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2155 for as_dir in $PATH 2156 do 2157 IFS=$as_save_IFS 2158 test -z "$as_dir" && as_dir=. 2159 for ac_exec_ext in '' $ac_executable_extensions; do 2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2161 ac_cv_prog_ac_ct_CC="$ac_prog" 2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2163 break 2 2164 fi 2165 done 2166 done 2167 IFS=$as_save_IFS 2168 2169 fi 2170 fi 2171 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2172 if test -n "$ac_ct_CC"; then 2173 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2174 echo "${ECHO_T}$ac_ct_CC" >&6; } 2175 else 2176 { echo "$as_me:$LINENO: result: no" >&5 2177 echo "${ECHO_T}no" >&6; } 2178 fi 2179 2180 2181 test -n "$ac_ct_CC" && break 2182 done 2183 2184 if test "x$ac_ct_CC" = x; then 2185 CC="" 2186 else 2187 case $cross_compiling:$ac_tool_warned in 2188 yes:) 2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2190 whose name does not start with the host triplet. If you think this 2191 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2193 whose name does not start with the host triplet. If you think this 2194 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2195 ac_tool_warned=yes ;; 2196 esac 2197 CC=$ac_ct_CC 2198 fi 2199 fi 2200 2201 fi 2202 2203 2204 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2205 See \`config.log' for more details." >&5 2206 echo "$as_me: error: no acceptable C compiler found in \$PATH 2207 See \`config.log' for more details." >&2;} 2208 { (exit 1); exit 1; }; } 2209 2210 # Provide some information about the compiler. 2211 echo "$as_me:$LINENO: checking for C compiler version" >&5 2212 ac_compiler=`set X $ac_compile; echo $2` 2213 { (ac_try="$ac_compiler --version >&5" 2214 case "(($ac_try" in 2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2216 *) ac_try_echo=$ac_try;; 2217 esac 2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2219 (eval "$ac_compiler --version >&5") 2>&5 2220 ac_status=$? 2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2222 (exit $ac_status); } 2223 { (ac_try="$ac_compiler -v >&5" 2224 case "(($ac_try" in 2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2226 *) ac_try_echo=$ac_try;; 2227 esac 2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2229 (eval "$ac_compiler -v >&5") 2>&5 2230 ac_status=$? 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); } 2233 { (ac_try="$ac_compiler -V >&5" 2234 case "(($ac_try" in 2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2236 *) ac_try_echo=$ac_try;; 2237 esac 2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2239 (eval "$ac_compiler -V >&5") 2>&5 2240 ac_status=$? 2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2242 (exit $ac_status); } 2243 2244 cat >conftest.$ac_ext <<_ACEOF 2245 /* confdefs.h. */ 2246 _ACEOF 2247 cat confdefs.h >>conftest.$ac_ext 2248 cat >>conftest.$ac_ext <<_ACEOF 2249 /* end confdefs.h. */ 2250 2251 int 2252 main () 2253 { 2254 2255 ; 2256 return 0; 2257 } 2258 _ACEOF 2259 ac_clean_files_save=$ac_clean_files 2260 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2261 # Try to create an executable without -o first, disregard a.out. 2262 # It will help us diagnose broken compilers, and finding out an intuition 2263 # of exeext. 2264 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2265 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2266 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2267 # 2268 # List of possible output files, starting from the most likely. 2269 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2270 # only as a last resort. b.out is created by i960 compilers. 2271 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2272 # 2273 # The IRIX 6 linker writes into existing files which may not be 2274 # executable, retaining their permissions. Remove them first so a 2275 # subsequent execution test works. 2276 ac_rmfiles= 2277 for ac_file in $ac_files 2278 do 2279 case $ac_file in 2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2281 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2282 esac 2283 done 2284 rm -f $ac_rmfiles 2285 2286 if { (ac_try="$ac_link_default" 2287 case "(($ac_try" in 2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2289 *) ac_try_echo=$ac_try;; 2290 esac 2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2292 (eval "$ac_link_default") 2>&5 2293 ac_status=$? 2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2295 (exit $ac_status); }; then 2296 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2297 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2298 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2299 # so that the user can short-circuit this test for compilers unknown to 2300 # Autoconf. 2301 for ac_file in $ac_files '' 2302 do 2303 test -f "$ac_file" || continue 2304 case $ac_file in 2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2306 ;; 2307 [ab].out ) 2308 # We found the default executable, but exeext='' is most 2309 # certainly right. 2310 break;; 2311 *.* ) 2312 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2313 then :; else 2314 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2315 fi 2316 # We set ac_cv_exeext here because the later test for it is not 2317 # safe: cross compilers may not add the suffix if given an `-o' 2318 # argument, so we may need to know it at that point already. 2319 # Even if this section looks crufty: it has the advantage of 2320 # actually working. 2321 break;; 2322 * ) 2323 break;; 2324 esac 2325 done 2326 test "$ac_cv_exeext" = no && ac_cv_exeext= 2327 2328 else 2329 ac_file='' 2330 fi 2331 2332 { echo "$as_me:$LINENO: result: $ac_file" >&5 2333 echo "${ECHO_T}$ac_file" >&6; } 2334 if test -z "$ac_file"; then 2335 echo "$as_me: failed program was:" >&5 2336 sed 's/^/| /' conftest.$ac_ext >&5 2337 2338 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2339 See \`config.log' for more details." >&5 2340 echo "$as_me: error: C compiler cannot create executables 2341 See \`config.log' for more details." >&2;} 2342 { (exit 77); exit 77; }; } 2343 fi 2344 2345 ac_exeext=$ac_cv_exeext 2346 2347 # Check that the compiler produces executables we can run. If not, either 2348 # the compiler is broken, or we cross compile. 2349 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2352 # If not cross compiling, check that we can run a simple program. 2353 if test "$cross_compiling" != yes; then 2354 if { ac_try='./$ac_file' 2355 { (case "(($ac_try" in 2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2357 *) ac_try_echo=$ac_try;; 2358 esac 2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2360 (eval "$ac_try") 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); }; }; then 2364 cross_compiling=no 2365 else 2366 if test "$cross_compiling" = maybe; then 2367 cross_compiling=yes 2368 else 2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2370 If you meant to cross compile, use \`--host'. 2371 See \`config.log' for more details." >&5 2372 echo "$as_me: error: cannot run C compiled programs. 2373 If you meant to cross compile, use \`--host'. 2374 See \`config.log' for more details." >&2;} 2375 { (exit 1); exit 1; }; } 2376 fi 2377 fi 2378 fi 2379 { echo "$as_me:$LINENO: result: yes" >&5 2380 echo "${ECHO_T}yes" >&6; } 2381 2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2383 ac_clean_files=$ac_clean_files_save 2384 # Check that the compiler produces executables we can run. If not, either 2385 # the compiler is broken, or we cross compile. 2386 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2388 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2389 echo "${ECHO_T}$cross_compiling" >&6; } 2390 2391 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2393 if { (ac_try="$ac_link" 2394 case "(($ac_try" in 2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2396 *) ac_try_echo=$ac_try;; 2397 esac 2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2399 (eval "$ac_link") 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; then 2403 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2405 # work properly (i.e., refer to `conftest.exe'), while it won't with 2406 # `rm'. 2407 for ac_file in conftest.exe conftest conftest.*; do 2408 test -f "$ac_file" || continue 2409 case $ac_file in 2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2412 break;; 2413 * ) break;; 2414 esac 2415 done 2416 else 2417 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2418 See \`config.log' for more details." >&5 2419 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2420 See \`config.log' for more details." >&2;} 2421 { (exit 1); exit 1; }; } 2422 fi 2423 2424 rm -f conftest$ac_cv_exeext 2425 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2426 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2427 2428 rm -f conftest.$ac_ext 2429 EXEEXT=$ac_cv_exeext 2430 ac_exeext=$EXEEXT 2431 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2432 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2433 if test "${ac_cv_objext+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435 else 2436 cat >conftest.$ac_ext <<_ACEOF 2437 /* confdefs.h. */ 2438 _ACEOF 2439 cat confdefs.h >>conftest.$ac_ext 2440 cat >>conftest.$ac_ext <<_ACEOF 2441 /* end confdefs.h. */ 2442 2443 int 2444 main () 2445 { 2446 2447 ; 2448 return 0; 2449 } 2450 _ACEOF 2451 rm -f conftest.o conftest.obj 2452 if { (ac_try="$ac_compile" 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_compile") 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; then 2462 for ac_file in conftest.o conftest.obj conftest.*; do 2463 test -f "$ac_file" || continue; 2464 case $ac_file in 2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2467 break;; 2468 esac 2469 done 2470 else 2471 echo "$as_me: failed program was:" >&5 2472 sed 's/^/| /' conftest.$ac_ext >&5 2473 2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2475 See \`config.log' for more details." >&5 2476 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2477 See \`config.log' for more details." >&2;} 2478 { (exit 1); exit 1; }; } 2479 fi 2480 2481 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2482 fi 2483 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2484 echo "${ECHO_T}$ac_cv_objext" >&6; } 2485 OBJEXT=$ac_cv_objext 2486 ac_objext=$OBJEXT 2487 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2488 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2489 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491 else 2492 cat >conftest.$ac_ext <<_ACEOF 2493 /* confdefs.h. */ 2494 _ACEOF 2495 cat confdefs.h >>conftest.$ac_ext 2496 cat >>conftest.$ac_ext <<_ACEOF 2497 /* end confdefs.h. */ 2498 2499 int 2500 main () 2501 { 2502 #ifndef __GNUC__ 2503 choke me 2504 #endif 2505 2506 ; 2507 return 0; 2508 } 2509 _ACEOF 2510 rm -f conftest.$ac_objext 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>conftest.er1 2518 ac_status=$? 2519 grep -v '^ *+' conftest.er1 >conftest.err 2520 rm -f conftest.er1 2521 cat conftest.err >&5 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); } && { 2524 test -z "$ac_c_werror_flag" || 2525 test ! -s conftest.err 2526 } && test -s conftest.$ac_objext; then 2527 ac_compiler_gnu=yes 2528 else 2529 echo "$as_me: failed program was:" >&5 2530 sed 's/^/| /' conftest.$ac_ext >&5 2531 2532 ac_compiler_gnu=no 2533 fi 2534 2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2537 2538 fi 2539 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2541 GCC=`test $ac_compiler_gnu = yes && echo yes` 2542 ac_test_CFLAGS=${CFLAGS+set} 2543 ac_save_CFLAGS=$CFLAGS 2544 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2545 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2546 if test "${ac_cv_prog_cc_g+set}" = set; then 2547 echo $ECHO_N "(cached) $ECHO_C" >&6 2548 else 2549 ac_save_c_werror_flag=$ac_c_werror_flag 2550 ac_c_werror_flag=yes 2551 ac_cv_prog_cc_g=no 2552 CFLAGS="-g" 2553 cat >conftest.$ac_ext <<_ACEOF 2554 /* confdefs.h. */ 2555 _ACEOF 2556 cat confdefs.h >>conftest.$ac_ext 2557 cat >>conftest.$ac_ext <<_ACEOF 2558 /* end confdefs.h. */ 2559 2560 int 2561 main () 2562 { 2563 2564 ; 2565 return 0; 2566 } 2567 _ACEOF 2568 rm -f conftest.$ac_objext 2569 if { (ac_try="$ac_compile" 2570 case "(($ac_try" in 2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2572 *) ac_try_echo=$ac_try;; 2573 esac 2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2575 (eval "$ac_compile") 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && { 2582 test -z "$ac_c_werror_flag" || 2583 test ! -s conftest.err 2584 } && test -s conftest.$ac_objext; then 2585 ac_cv_prog_cc_g=yes 2586 else 2587 echo "$as_me: failed program was:" >&5 2588 sed 's/^/| /' conftest.$ac_ext >&5 2589 2590 CFLAGS="" 2591 cat >conftest.$ac_ext <<_ACEOF 2592 /* confdefs.h. */ 2593 _ACEOF 2594 cat confdefs.h >>conftest.$ac_ext 2595 cat >>conftest.$ac_ext <<_ACEOF 2596 /* end confdefs.h. */ 2597 2598 int 2599 main () 2600 { 2601 2602 ; 2603 return 0; 2604 } 2605 _ACEOF 2606 rm -f conftest.$ac_objext 2607 if { (ac_try="$ac_compile" 2608 case "(($ac_try" in 2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2610 *) ac_try_echo=$ac_try;; 2611 esac 2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2613 (eval "$ac_compile") 2>conftest.er1 2614 ac_status=$? 2615 grep -v '^ *+' conftest.er1 >conftest.err 2616 rm -f conftest.er1 2617 cat conftest.err >&5 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } && { 2620 test -z "$ac_c_werror_flag" || 2621 test ! -s conftest.err 2622 } && test -s conftest.$ac_objext; then 2623 : 2624 else 2625 echo "$as_me: failed program was:" >&5 2626 sed 's/^/| /' conftest.$ac_ext >&5 2627 2628 ac_c_werror_flag=$ac_save_c_werror_flag 2629 CFLAGS="-g" 2630 cat >conftest.$ac_ext <<_ACEOF 2631 /* confdefs.h. */ 2632 _ACEOF 2633 cat confdefs.h >>conftest.$ac_ext 2634 cat >>conftest.$ac_ext <<_ACEOF 2635 /* end confdefs.h. */ 2636 2637 int 2638 main () 2639 { 2640 2641 ; 2642 return 0; 2643 } 2644 _ACEOF 2645 rm -f conftest.$ac_objext 2646 if { (ac_try="$ac_compile" 2647 case "(($ac_try" in 2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2649 *) ac_try_echo=$ac_try;; 2650 esac 2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2652 (eval "$ac_compile") 2>conftest.er1 2653 ac_status=$? 2654 grep -v '^ *+' conftest.er1 >conftest.err 2655 rm -f conftest.er1 2656 cat conftest.err >&5 2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2658 (exit $ac_status); } && { 2659 test -z "$ac_c_werror_flag" || 2660 test ! -s conftest.err 2661 } && test -s conftest.$ac_objext; then 2662 ac_cv_prog_cc_g=yes 2663 else 2664 echo "$as_me: failed program was:" >&5 2665 sed 's/^/| /' conftest.$ac_ext >&5 2666 2667 2668 fi 2669 2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2671 fi 2672 2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2674 fi 2675 2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2677 ac_c_werror_flag=$ac_save_c_werror_flag 2678 fi 2679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2681 if test "$ac_test_CFLAGS" = set; then 2682 CFLAGS=$ac_save_CFLAGS 2683 elif test $ac_cv_prog_cc_g = yes; then 2684 if test "$GCC" = yes; then 2685 CFLAGS="-g -O2" 2686 else 2687 CFLAGS="-g" 2688 fi 2689 else 2690 if test "$GCC" = yes; then 2691 CFLAGS="-O2" 2692 else 2693 CFLAGS= 2694 fi 2695 fi 2696 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2697 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2698 if test "${ac_cv_prog_cc_c89+set}" = set; then 2699 echo $ECHO_N "(cached) $ECHO_C" >&6 2700 else 2701 ac_cv_prog_cc_c89=no 2702 ac_save_CC=$CC 2703 cat >conftest.$ac_ext <<_ACEOF 2704 /* confdefs.h. */ 2705 _ACEOF 2706 cat confdefs.h >>conftest.$ac_ext 2707 cat >>conftest.$ac_ext <<_ACEOF 2708 /* end confdefs.h. */ 2709 #include <stdarg.h> 2710 #include <stdio.h> 2711 #include <sys/types.h> 2712 #include <sys/stat.h> 2713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2714 struct buf { int x; }; 2715 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2716 static char *e (p, i) 2717 char **p; 2718 int i; 2719 { 2720 return p[i]; 2721 } 2722 static char *f (char * (*g) (char **, int), char **p, ...) 2723 { 2724 char *s; 2725 va_list v; 2726 va_start (v,p); 2727 s = g (p, va_arg (v,int)); 2728 va_end (v); 2729 return s; 2730 } 2731 2732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2733 function prototypes and stuff, but not '\xHH' hex character constants. 2734 These don't provoke an error unfortunately, instead are silently treated 2735 as 'x'. The following induces an error, until -std is added to get 2736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2737 array size at least. It's necessary to write '\x00'==0 to get something 2738 that's true only with -std. */ 2739 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2740 2741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2742 inside strings and character constants. */ 2743 #define FOO(x) 'x' 2744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2745 2746 int test (int i, double x); 2747 struct s1 {int (*f) (int a);}; 2748 struct s2 {int (*f) (double a);}; 2749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2750 int argc; 2751 char **argv; 2752 int 2753 main () 2754 { 2755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2756 ; 2757 return 0; 2758 } 2759 _ACEOF 2760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2762 do 2763 CC="$ac_save_CC $ac_arg" 2764 rm -f conftest.$ac_objext 2765 if { (ac_try="$ac_compile" 2766 case "(($ac_try" in 2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2768 *) ac_try_echo=$ac_try;; 2769 esac 2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2771 (eval "$ac_compile") 2>conftest.er1 2772 ac_status=$? 2773 grep -v '^ *+' conftest.er1 >conftest.err 2774 rm -f conftest.er1 2775 cat conftest.err >&5 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); } && { 2778 test -z "$ac_c_werror_flag" || 2779 test ! -s conftest.err 2780 } && test -s conftest.$ac_objext; then 2781 ac_cv_prog_cc_c89=$ac_arg 2782 else 2783 echo "$as_me: failed program was:" >&5 2784 sed 's/^/| /' conftest.$ac_ext >&5 2785 2786 2787 fi 2788 2789 rm -f core conftest.err conftest.$ac_objext 2790 test "x$ac_cv_prog_cc_c89" != "xno" && break 2791 done 2792 rm -f conftest.$ac_ext 2793 CC=$ac_save_CC 2794 2795 fi 2796 # AC_CACHE_VAL 2797 case "x$ac_cv_prog_cc_c89" in 2798 x) 2799 { echo "$as_me:$LINENO: result: none needed" >&5 2800 echo "${ECHO_T}none needed" >&6; } ;; 2801 xno) 2802 { echo "$as_me:$LINENO: result: unsupported" >&5 2803 echo "${ECHO_T}unsupported" >&6; } ;; 2804 *) 2805 CC="$CC $ac_cv_prog_cc_c89" 2806 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2807 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2808 esac 2809 2810 2811 ac_ext=c 2812 ac_cpp='$CPP $CPPFLAGS' 2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2816 2817 if test "$GCC" = yes ; then 2818 if test "$SHLICC2" = yes ; then 2819 ac_cv_lbl_gcc_vers=2 2820 V_CCOPT="-O2" 2821 else 2822 { echo "$as_me:$LINENO: checking gcc version" >&5 2823 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } 2824 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2825 echo $ECHO_N "(cached) $ECHO_C" >&6 2826 else 2827 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2828 sed -e '/^gcc version /!d' \ 2829 -e 's/^gcc version //' \ 2830 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2831 -e 's/\..*//'` 2832 fi 2833 2834 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2835 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; } 2836 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2837 V_CCOPT="-O2" 2838 fi 2839 fi 2840 else 2841 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2842 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; } 2843 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2844 echo $ECHO_N "(cached) $ECHO_C" >&6 2845 else 2846 2847 cat >conftest.$ac_ext <<_ACEOF 2848 /* confdefs.h. */ 2849 _ACEOF 2850 cat confdefs.h >>conftest.$ac_ext 2851 cat >>conftest.$ac_ext <<_ACEOF 2852 /* end confdefs.h. */ 2853 #include <sys/types.h> 2854 int 2855 main () 2856 { 2857 int frob(int, char *) 2858 ; 2859 return 0; 2860 } 2861 _ACEOF 2862 rm -f conftest.$ac_objext 2863 if { (ac_try="$ac_compile" 2864 case "(($ac_try" in 2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2866 *) ac_try_echo=$ac_try;; 2867 esac 2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2869 (eval "$ac_compile") 2>conftest.er1 2870 ac_status=$? 2871 grep -v '^ *+' conftest.er1 >conftest.err 2872 rm -f conftest.er1 2873 cat conftest.err >&5 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); } && { 2876 test -z "$ac_c_werror_flag" || 2877 test ! -s conftest.err 2878 } && test -s conftest.$ac_objext; then 2879 ac_cv_lbl_cc_ansi_prototypes=yes 2880 else 2881 echo "$as_me: failed program was:" >&5 2882 sed 's/^/| /' conftest.$ac_ext >&5 2883 2884 ac_cv_lbl_cc_ansi_prototypes=no 2885 fi 2886 2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2888 fi 2889 2890 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2891 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; } 2892 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2893 case "$host_os" in 2894 2895 hpux*) 2896 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2897 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; } 2898 savedcflags="$CFLAGS" 2899 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2900 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902 else 2903 cat >conftest.$ac_ext <<_ACEOF 2904 /* confdefs.h. */ 2905 _ACEOF 2906 cat confdefs.h >>conftest.$ac_ext 2907 cat >>conftest.$ac_ext <<_ACEOF 2908 /* end confdefs.h. */ 2909 #include <sys/types.h> 2910 int 2911 main () 2912 { 2913 int frob(int, char *) 2914 ; 2915 return 0; 2916 } 2917 _ACEOF 2918 rm -f conftest.$ac_objext 2919 if { (ac_try="$ac_compile" 2920 case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923 esac 2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_compile") 2>conftest.er1 2926 ac_status=$? 2927 grep -v '^ *+' conftest.er1 >conftest.err 2928 rm -f conftest.er1 2929 cat conftest.err >&5 2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2931 (exit $ac_status); } && { 2932 test -z "$ac_c_werror_flag" || 2933 test ! -s conftest.err 2934 } && test -s conftest.$ac_objext; then 2935 ac_cv_lbl_cc_hpux_cc_aa=yes 2936 else 2937 echo "$as_me: failed program was:" >&5 2938 sed 's/^/| /' conftest.$ac_ext >&5 2939 2940 ac_cv_lbl_cc_hpux_cc_aa=no 2941 fi 2942 2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2944 fi 2945 2946 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2947 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 2948 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2949 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2950 echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2951 { (exit 1); exit 1; }; } 2952 fi 2953 CFLAGS="$savedcflags" 2954 V_CCOPT="-Aa $V_CCOPT" 2955 cat >>confdefs.h <<\_ACEOF 2956 #define _HPUX_SOURCE 1 2957 _ACEOF 2958 2959 ;; 2960 2961 *) 2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2964 { (exit 1); exit 1; }; } 2965 ;; 2966 esac 2967 fi 2968 V_INCLS="$V_INCLS -I/usr/local/include" 2969 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2970 2971 case "$host_os" in 2972 2973 irix*) 2974 V_CCOPT="$V_CCOPT -xansi -signed -O" 2975 ;; 2976 2977 osf*) 2978 V_CCOPT="$V_CCOPT -std1 -O" 2979 ;; 2980 2981 ultrix*) 2982 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2983 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; } 2984 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2985 echo $ECHO_N "(cached) $ECHO_C" >&6 2986 else 2987 cat >conftest.$ac_ext <<_ACEOF 2988 /* confdefs.h. */ 2989 _ACEOF 2990 cat confdefs.h >>conftest.$ac_ext 2991 cat >>conftest.$ac_ext <<_ACEOF 2992 /* end confdefs.h. */ 2993 #include <sys/types.h> 2994 int 2995 main () 2996 { 2997 struct a { int b; }; 2998 void c(const struct a *) 2999 ; 3000 return 0; 3001 } 3002 _ACEOF 3003 rm -f conftest.$ac_objext 3004 if { (ac_try="$ac_compile" 3005 case "(($ac_try" in 3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3007 *) ac_try_echo=$ac_try;; 3008 esac 3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3010 (eval "$ac_compile") 2>conftest.er1 3011 ac_status=$? 3012 grep -v '^ *+' conftest.er1 >conftest.err 3013 rm -f conftest.er1 3014 cat conftest.err >&5 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } && { 3017 test -z "$ac_c_werror_flag" || 3018 test ! -s conftest.err 3019 } && test -s conftest.$ac_objext; then 3020 ac_cv_lbl_cc_const_proto=yes 3021 else 3022 echo "$as_me: failed program was:" >&5 3023 sed 's/^/| /' conftest.$ac_ext >&5 3024 3025 ac_cv_lbl_cc_const_proto=no 3026 fi 3027 3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3029 fi 3030 3031 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 3032 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; } 3033 if test $ac_cv_lbl_cc_const_proto = no ; then 3034 cat >>confdefs.h <<\_ACEOF 3035 #define const 3036 _ACEOF 3037 3038 fi 3039 ;; 3040 esac 3041 fi 3042 3043 { echo "$as_me:$LINENO: checking for inline" >&5 3044 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 3045 if test "${ac_cv_lbl_inline+set}" = set; then 3046 echo $ECHO_N "(cached) $ECHO_C" >&6 3047 else 3048 3049 ac_cv_lbl_inline="" 3050 ac_lbl_cc_inline=no 3051 for ac_lbl_inline in inline __inline__ __inline 3052 do 3053 cat >conftest.$ac_ext <<_ACEOF 3054 /* confdefs.h. */ 3055 _ACEOF 3056 cat confdefs.h >>conftest.$ac_ext 3057 cat >>conftest.$ac_ext <<_ACEOF 3058 /* end confdefs.h. */ 3059 #define inline $ac_lbl_inline 3060 static inline struct iltest *foo(void); 3061 struct iltest { 3062 int iltest1; 3063 int iltest2; 3064 }; 3065 3066 static inline struct iltest * 3067 foo() 3068 { 3069 static struct iltest xxx; 3070 3071 return &xxx; 3072 } 3073 int 3074 main () 3075 { 3076 3077 ; 3078 return 0; 3079 } 3080 _ACEOF 3081 rm -f conftest.$ac_objext 3082 if { (ac_try="$ac_compile" 3083 case "(($ac_try" in 3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3085 *) ac_try_echo=$ac_try;; 3086 esac 3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3088 (eval "$ac_compile") 2>conftest.er1 3089 ac_status=$? 3090 grep -v '^ *+' conftest.er1 >conftest.err 3091 rm -f conftest.er1 3092 cat conftest.err >&5 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); } && { 3095 test -z "$ac_c_werror_flag" || 3096 test ! -s conftest.err 3097 } && test -s conftest.$ac_objext; then 3098 ac_lbl_cc_inline=yes 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 3104 fi 3105 3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3107 if test "$ac_lbl_cc_inline" = yes ; then 3108 break; 3109 fi 3110 done 3111 if test "$ac_lbl_cc_inline" = yes ; then 3112 ac_cv_lbl_inline=$ac_lbl_inline 3113 fi 3114 fi 3115 3116 if test ! -z "$ac_cv_lbl_inline" ; then 3117 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 3118 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; } 3119 else 3120 { echo "$as_me:$LINENO: result: no" >&5 3121 echo "${ECHO_T}no" >&6; } 3122 fi 3123 3124 cat >>confdefs.h <<_ACEOF 3125 #define inline $ac_cv_lbl_inline 3126 _ACEOF 3127 3128 3129 { echo "$as_me:$LINENO: checking for __attribute__" >&5 3130 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } 3131 if test "${ac_cv___attribute__+set}" = set; then 3132 echo $ECHO_N "(cached) $ECHO_C" >&6 3133 else 3134 3135 cat >conftest.$ac_ext <<_ACEOF 3136 /* confdefs.h. */ 3137 _ACEOF 3138 cat confdefs.h >>conftest.$ac_ext 3139 cat >>conftest.$ac_ext <<_ACEOF 3140 /* end confdefs.h. */ 3141 3142 #include <stdlib.h> 3143 3144 static void foo(void) __attribute__ ((noreturn)); 3145 3146 static void 3147 foo(void) 3148 { 3149 exit(1); 3150 } 3151 3152 int 3153 main(int argc, char **argv) 3154 { 3155 foo(); 3156 } 3157 3158 _ACEOF 3159 rm -f conftest.$ac_objext 3160 if { (ac_try="$ac_compile" 3161 case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164 esac 3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_compile") 2>conftest.er1 3167 ac_status=$? 3168 grep -v '^ *+' conftest.er1 >conftest.err 3169 rm -f conftest.er1 3170 cat conftest.err >&5 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); } && { 3173 test -z "$ac_c_werror_flag" || 3174 test ! -s conftest.err 3175 } && test -s conftest.$ac_objext; then 3176 ac_cv___attribute__=yes 3177 else 3178 echo "$as_me: failed program was:" >&5 3179 sed 's/^/| /' conftest.$ac_ext >&5 3180 3181 ac_cv___attribute__=no 3182 fi 3183 3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3185 fi 3186 3187 if test "$ac_cv___attribute__" = "yes"; then 3188 3189 cat >>confdefs.h <<\_ACEOF 3190 #define HAVE___ATTRIBUTE__ 1 3191 _ACEOF 3192 3193 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3194 else 3195 V_DEFS="$V_DEFS -D_U_=\"\"" 3196 fi 3197 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3198 echo "${ECHO_T}$ac_cv___attribute__" >&6; } 3199 3200 ac_ext=c 3201 ac_cpp='$CPP $CPPFLAGS' 3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3207 # On Suns, sometimes $CPP names a directory. 3208 if test -n "$CPP" && test -d "$CPP"; then 3209 CPP= 3210 fi 3211 if test -z "$CPP"; then 3212 if test "${ac_cv_prog_CPP+set}" = set; then 3213 echo $ECHO_N "(cached) $ECHO_C" >&6 3214 else 3215 # Double quotes because CPP needs to be expanded 3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3217 do 3218 ac_preproc_ok=false 3219 for ac_c_preproc_warn_flag in '' yes 3220 do 3221 # Use a header file that comes with gcc, so configuring glibc 3222 # with a fresh cross-compiler works. 3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3224 # <limits.h> exists even on freestanding compilers. 3225 # On the NeXT, cc -E runs the code through the compiler's parser, 3226 # not just through cpp. "Syntax error" is here to catch this case. 3227 cat >conftest.$ac_ext <<_ACEOF 3228 /* confdefs.h. */ 3229 _ACEOF 3230 cat confdefs.h >>conftest.$ac_ext 3231 cat >>conftest.$ac_ext <<_ACEOF 3232 /* end confdefs.h. */ 3233 #ifdef __STDC__ 3234 # include <limits.h> 3235 #else 3236 # include <assert.h> 3237 #endif 3238 Syntax error 3239 _ACEOF 3240 if { (ac_try="$ac_cpp conftest.$ac_ext" 3241 case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244 esac 3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } >/dev/null && { 3253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3254 test ! -s conftest.err 3255 }; then 3256 : 3257 else 3258 echo "$as_me: failed program was:" >&5 3259 sed 's/^/| /' conftest.$ac_ext >&5 3260 3261 # Broken: fails on valid input. 3262 continue 3263 fi 3264 3265 rm -f conftest.err conftest.$ac_ext 3266 3267 # OK, works on sane cases. Now check whether nonexistent headers 3268 # can be detected and how. 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 #include <ac_nonexistent.h> 3276 _ACEOF 3277 if { (ac_try="$ac_cpp conftest.$ac_ext" 3278 case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281 esac 3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3284 ac_status=$? 3285 grep -v '^ *+' conftest.er1 >conftest.err 3286 rm -f conftest.er1 3287 cat conftest.err >&5 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } >/dev/null && { 3290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3291 test ! -s conftest.err 3292 }; then 3293 # Broken: success on invalid input. 3294 continue 3295 else 3296 echo "$as_me: failed program was:" >&5 3297 sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 # Passes both tests. 3300 ac_preproc_ok=: 3301 break 3302 fi 3303 3304 rm -f conftest.err conftest.$ac_ext 3305 3306 done 3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3308 rm -f conftest.err conftest.$ac_ext 3309 if $ac_preproc_ok; then 3310 break 3311 fi 3312 3313 done 3314 ac_cv_prog_CPP=$CPP 3315 3316 fi 3317 CPP=$ac_cv_prog_CPP 3318 else 3319 ac_cv_prog_CPP=$CPP 3320 fi 3321 { echo "$as_me:$LINENO: result: $CPP" >&5 3322 echo "${ECHO_T}$CPP" >&6; } 3323 ac_preproc_ok=false 3324 for ac_c_preproc_warn_flag in '' yes 3325 do 3326 # Use a header file that comes with gcc, so configuring glibc 3327 # with a fresh cross-compiler works. 3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3329 # <limits.h> exists even on freestanding compilers. 3330 # On the NeXT, cc -E runs the code through the compiler's parser, 3331 # not just through cpp. "Syntax error" is here to catch this case. 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 #ifdef __STDC__ 3339 # include <limits.h> 3340 #else 3341 # include <assert.h> 3342 #endif 3343 Syntax error 3344 _ACEOF 3345 if { (ac_try="$ac_cpp conftest.$ac_ext" 3346 case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349 esac 3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } >/dev/null && { 3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3359 test ! -s conftest.err 3360 }; then 3361 : 3362 else 3363 echo "$as_me: failed program was:" >&5 3364 sed 's/^/| /' conftest.$ac_ext >&5 3365 3366 # Broken: fails on valid input. 3367 continue 3368 fi 3369 3370 rm -f conftest.err conftest.$ac_ext 3371 3372 # OK, works on sane cases. Now check whether nonexistent headers 3373 # can be detected and how. 3374 cat >conftest.$ac_ext <<_ACEOF 3375 /* confdefs.h. */ 3376 _ACEOF 3377 cat confdefs.h >>conftest.$ac_ext 3378 cat >>conftest.$ac_ext <<_ACEOF 3379 /* end confdefs.h. */ 3380 #include <ac_nonexistent.h> 3381 _ACEOF 3382 if { (ac_try="$ac_cpp conftest.$ac_ext" 3383 case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386 esac 3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } >/dev/null && { 3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3396 test ! -s conftest.err 3397 }; then 3398 # Broken: success on invalid input. 3399 continue 3400 else 3401 echo "$as_me: failed program was:" >&5 3402 sed 's/^/| /' conftest.$ac_ext >&5 3403 3404 # Passes both tests. 3405 ac_preproc_ok=: 3406 break 3407 fi 3408 3409 rm -f conftest.err conftest.$ac_ext 3410 3411 done 3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3413 rm -f conftest.err conftest.$ac_ext 3414 if $ac_preproc_ok; then 3415 : 3416 else 3417 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3418 See \`config.log' for more details." >&5 3419 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3420 See \`config.log' for more details." >&2;} 3421 { (exit 1); exit 1; }; } 3422 fi 3423 3424 ac_ext=c 3425 ac_cpp='$CPP $CPPFLAGS' 3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3429 3430 3431 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3432 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3433 if test "${ac_cv_path_GREP+set}" = set; then 3434 echo $ECHO_N "(cached) $ECHO_C" >&6 3435 else 3436 # Extract the first word of "grep ggrep" to use in msg output 3437 if test -z "$GREP"; then 3438 set dummy grep ggrep; ac_prog_name=$2 3439 if test "${ac_cv_path_GREP+set}" = set; then 3440 echo $ECHO_N "(cached) $ECHO_C" >&6 3441 else 3442 ac_path_GREP_found=false 3443 # Loop through the user's path and test for each of PROGNAME-LIST 3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3446 do 3447 IFS=$as_save_IFS 3448 test -z "$as_dir" && as_dir=. 3449 for ac_prog in grep ggrep; do 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3452 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3453 # Check for GNU ac_path_GREP and select it if it is found. 3454 # Check for GNU $ac_path_GREP 3455 case `"$ac_path_GREP" --version 2>&1` in 3456 *GNU*) 3457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3458 *) 3459 ac_count=0 3460 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3461 while : 3462 do 3463 cat "conftest.in" "conftest.in" >"conftest.tmp" 3464 mv "conftest.tmp" "conftest.in" 3465 cp "conftest.in" "conftest.nl" 3466 echo 'GREP' >> "conftest.nl" 3467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3469 ac_count=`expr $ac_count + 1` 3470 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3471 # Best one so far, save it but keep looking for a better one 3472 ac_cv_path_GREP="$ac_path_GREP" 3473 ac_path_GREP_max=$ac_count 3474 fi 3475 # 10*(2^10) chars as input seems more than enough 3476 test $ac_count -gt 10 && break 3477 done 3478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3479 esac 3480 3481 3482 $ac_path_GREP_found && break 3 3483 done 3484 done 3485 3486 done 3487 IFS=$as_save_IFS 3488 3489 3490 fi 3491 3492 GREP="$ac_cv_path_GREP" 3493 if test -z "$GREP"; then 3494 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3496 { (exit 1); exit 1; }; } 3497 fi 3498 3499 else 3500 ac_cv_path_GREP=$GREP 3501 fi 3502 3503 3504 fi 3505 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3506 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3507 GREP="$ac_cv_path_GREP" 3508 3509 3510 { echo "$as_me:$LINENO: checking for egrep" >&5 3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3512 if test "${ac_cv_path_EGREP+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514 else 3515 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3516 then ac_cv_path_EGREP="$GREP -E" 3517 else 3518 # Extract the first word of "egrep" to use in msg output 3519 if test -z "$EGREP"; then 3520 set dummy egrep; ac_prog_name=$2 3521 if test "${ac_cv_path_EGREP+set}" = set; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523 else 3524 ac_path_EGREP_found=false 3525 # Loop through the user's path and test for each of PROGNAME-LIST 3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3528 do 3529 IFS=$as_save_IFS 3530 test -z "$as_dir" && as_dir=. 3531 for ac_prog in egrep; do 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3535 # Check for GNU ac_path_EGREP and select it if it is found. 3536 # Check for GNU $ac_path_EGREP 3537 case `"$ac_path_EGREP" --version 2>&1` in 3538 *GNU*) 3539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3540 *) 3541 ac_count=0 3542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3543 while : 3544 do 3545 cat "conftest.in" "conftest.in" >"conftest.tmp" 3546 mv "conftest.tmp" "conftest.in" 3547 cp "conftest.in" "conftest.nl" 3548 echo 'EGREP' >> "conftest.nl" 3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3551 ac_count=`expr $ac_count + 1` 3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3553 # Best one so far, save it but keep looking for a better one 3554 ac_cv_path_EGREP="$ac_path_EGREP" 3555 ac_path_EGREP_max=$ac_count 3556 fi 3557 # 10*(2^10) chars as input seems more than enough 3558 test $ac_count -gt 10 && break 3559 done 3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3561 esac 3562 3563 3564 $ac_path_EGREP_found && break 3 3565 done 3566 done 3567 3568 done 3569 IFS=$as_save_IFS 3570 3571 3572 fi 3573 3574 EGREP="$ac_cv_path_EGREP" 3575 if test -z "$EGREP"; then 3576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3578 { (exit 1); exit 1; }; } 3579 fi 3580 3581 else 3582 ac_cv_path_EGREP=$EGREP 3583 fi 3584 3585 3586 fi 3587 fi 3588 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3589 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3590 EGREP="$ac_cv_path_EGREP" 3591 3592 3593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3595 if test "${ac_cv_header_stdc+set}" = set; then 3596 echo $ECHO_N "(cached) $ECHO_C" >&6 3597 else 3598 cat >conftest.$ac_ext <<_ACEOF 3599 /* confdefs.h. */ 3600 _ACEOF 3601 cat confdefs.h >>conftest.$ac_ext 3602 cat >>conftest.$ac_ext <<_ACEOF 3603 /* end confdefs.h. */ 3604 #include <stdlib.h> 3605 #include <stdarg.h> 3606 #include <string.h> 3607 #include <float.h> 3608 3609 int 3610 main () 3611 { 3612 3613 ; 3614 return 0; 3615 } 3616 _ACEOF 3617 rm -f conftest.$ac_objext 3618 if { (ac_try="$ac_compile" 3619 case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622 esac 3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3624 (eval "$ac_compile") 2>conftest.er1 3625 ac_status=$? 3626 grep -v '^ *+' conftest.er1 >conftest.err 3627 rm -f conftest.er1 3628 cat conftest.err >&5 3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3630 (exit $ac_status); } && { 3631 test -z "$ac_c_werror_flag" || 3632 test ! -s conftest.err 3633 } && test -s conftest.$ac_objext; then 3634 ac_cv_header_stdc=yes 3635 else 3636 echo "$as_me: failed program was:" >&5 3637 sed 's/^/| /' conftest.$ac_ext >&5 3638 3639 ac_cv_header_stdc=no 3640 fi 3641 3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643 3644 if test $ac_cv_header_stdc = yes; then 3645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3646 cat >conftest.$ac_ext <<_ACEOF 3647 /* confdefs.h. */ 3648 _ACEOF 3649 cat confdefs.h >>conftest.$ac_ext 3650 cat >>conftest.$ac_ext <<_ACEOF 3651 /* end confdefs.h. */ 3652 #include <string.h> 3653 3654 _ACEOF 3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3656 $EGREP "memchr" >/dev/null 2>&1; then 3657 : 3658 else 3659 ac_cv_header_stdc=no 3660 fi 3661 rm -f conftest* 3662 3663 fi 3664 3665 if test $ac_cv_header_stdc = yes; then 3666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3667 cat >conftest.$ac_ext <<_ACEOF 3668 /* confdefs.h. */ 3669 _ACEOF 3670 cat confdefs.h >>conftest.$ac_ext 3671 cat >>conftest.$ac_ext <<_ACEOF 3672 /* end confdefs.h. */ 3673 #include <stdlib.h> 3674 3675 _ACEOF 3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3677 $EGREP "free" >/dev/null 2>&1; then 3678 : 3679 else 3680 ac_cv_header_stdc=no 3681 fi 3682 rm -f conftest* 3683 3684 fi 3685 3686 if test $ac_cv_header_stdc = yes; then 3687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3688 if test "$cross_compiling" = yes; then 3689 : 3690 else 3691 cat >conftest.$ac_ext <<_ACEOF 3692 /* confdefs.h. */ 3693 _ACEOF 3694 cat confdefs.h >>conftest.$ac_ext 3695 cat >>conftest.$ac_ext <<_ACEOF 3696 /* end confdefs.h. */ 3697 #include <ctype.h> 3698 #include <stdlib.h> 3699 #if ((' ' & 0x0FF) == 0x020) 3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3702 #else 3703 # define ISLOWER(c) \ 3704 (('a' <= (c) && (c) <= 'i') \ 3705 || ('j' <= (c) && (c) <= 'r') \ 3706 || ('s' <= (c) && (c) <= 'z')) 3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3708 #endif 3709 3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3711 int 3712 main () 3713 { 3714 int i; 3715 for (i = 0; i < 256; i++) 3716 if (XOR (islower (i), ISLOWER (i)) 3717 || toupper (i) != TOUPPER (i)) 3718 return 2; 3719 return 0; 3720 } 3721 _ACEOF 3722 rm -f conftest$ac_exeext 3723 if { (ac_try="$ac_link" 3724 case "(($ac_try" in 3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3726 *) ac_try_echo=$ac_try;; 3727 esac 3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3729 (eval "$ac_link") 2>&5 3730 ac_status=$? 3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3733 { (case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736 esac 3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3738 (eval "$ac_try") 2>&5 3739 ac_status=$? 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); }; }; then 3742 : 3743 else 3744 echo "$as_me: program exited with status $ac_status" >&5 3745 echo "$as_me: failed program was:" >&5 3746 sed 's/^/| /' conftest.$ac_ext >&5 3747 3748 ( exit $ac_status ) 3749 ac_cv_header_stdc=no 3750 fi 3751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3752 fi 3753 3754 3755 fi 3756 fi 3757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3759 if test $ac_cv_header_stdc = yes; then 3760 3761 cat >>confdefs.h <<\_ACEOF 3762 #define STDC_HEADERS 1 3763 _ACEOF 3764 3765 fi 3766 3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3778 inttypes.h stdint.h unistd.h 3779 do 3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3781 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3784 echo $ECHO_N "(cached) $ECHO_C" >&6 3785 else 3786 cat >conftest.$ac_ext <<_ACEOF 3787 /* confdefs.h. */ 3788 _ACEOF 3789 cat confdefs.h >>conftest.$ac_ext 3790 cat >>conftest.$ac_ext <<_ACEOF 3791 /* end confdefs.h. */ 3792 $ac_includes_default 3793 3794 #include <$ac_header> 3795 _ACEOF 3796 rm -f conftest.$ac_objext 3797 if { (ac_try="$ac_compile" 3798 case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801 esac 3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3803 (eval "$ac_compile") 2>conftest.er1 3804 ac_status=$? 3805 grep -v '^ *+' conftest.er1 >conftest.err 3806 rm -f conftest.er1 3807 cat conftest.err >&5 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); } && { 3810 test -z "$ac_c_werror_flag" || 3811 test ! -s conftest.err 3812 } && test -s conftest.$ac_objext; then 3813 eval "$as_ac_Header=yes" 3814 else 3815 echo "$as_me: failed program was:" >&5 3816 sed 's/^/| /' conftest.$ac_ext >&5 3817 3818 eval "$as_ac_Header=no" 3819 fi 3820 3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822 fi 3823 ac_res=`eval echo '${'$as_ac_Header'}'` 3824 { echo "$as_me:$LINENO: result: $ac_res" >&5 3825 echo "${ECHO_T}$ac_res" >&6; } 3826 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3827 cat >>confdefs.h <<_ACEOF 3828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3829 _ACEOF 3830 3831 fi 3832 3833 done 3834 3835 3836 3837 3838 3839 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h 3840 do 3841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3843 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3846 echo $ECHO_N "(cached) $ECHO_C" >&6 3847 fi 3848 ac_res=`eval echo '${'$as_ac_Header'}'` 3849 { echo "$as_me:$LINENO: result: $ac_res" >&5 3850 echo "${ECHO_T}$ac_res" >&6; } 3851 else 3852 # Is the header compilable? 3853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 3854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3855 cat >conftest.$ac_ext <<_ACEOF 3856 /* confdefs.h. */ 3857 _ACEOF 3858 cat confdefs.h >>conftest.$ac_ext 3859 cat >>conftest.$ac_ext <<_ACEOF 3860 /* end confdefs.h. */ 3861 $ac_includes_default 3862 #include <$ac_header> 3863 _ACEOF 3864 rm -f conftest.$ac_objext 3865 if { (ac_try="$ac_compile" 3866 case "(($ac_try" in 3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3868 *) ac_try_echo=$ac_try;; 3869 esac 3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3871 (eval "$ac_compile") 2>conftest.er1 3872 ac_status=$? 3873 grep -v '^ *+' conftest.er1 >conftest.err 3874 rm -f conftest.er1 3875 cat conftest.err >&5 3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3877 (exit $ac_status); } && { 3878 test -z "$ac_c_werror_flag" || 3879 test ! -s conftest.err 3880 } && test -s conftest.$ac_objext; then 3881 ac_header_compiler=yes 3882 else 3883 echo "$as_me: failed program was:" >&5 3884 sed 's/^/| /' conftest.$ac_ext >&5 3885 3886 ac_header_compiler=no 3887 fi 3888 3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3891 echo "${ECHO_T}$ac_header_compiler" >&6; } 3892 3893 # Is the header present? 3894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 3895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3896 cat >conftest.$ac_ext <<_ACEOF 3897 /* confdefs.h. */ 3898 _ACEOF 3899 cat confdefs.h >>conftest.$ac_ext 3900 cat >>conftest.$ac_ext <<_ACEOF 3901 /* end confdefs.h. */ 3902 #include <$ac_header> 3903 _ACEOF 3904 if { (ac_try="$ac_cpp conftest.$ac_ext" 3905 case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908 esac 3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3911 ac_status=$? 3912 grep -v '^ *+' conftest.er1 >conftest.err 3913 rm -f conftest.er1 3914 cat conftest.err >&5 3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3916 (exit $ac_status); } >/dev/null && { 3917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3918 test ! -s conftest.err 3919 }; then 3920 ac_header_preproc=yes 3921 else 3922 echo "$as_me: failed program was:" >&5 3923 sed 's/^/| /' conftest.$ac_ext >&5 3924 3925 ac_header_preproc=no 3926 fi 3927 3928 rm -f conftest.err conftest.$ac_ext 3929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3930 echo "${ECHO_T}$ac_header_preproc" >&6; } 3931 3932 # So? What about this header? 3933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3934 yes:no: ) 3935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3939 ac_header_preproc=yes 3940 ;; 3941 no:yes:* ) 3942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3954 3955 ;; 3956 esac 3957 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961 else 3962 eval "$as_ac_Header=\$ac_header_preproc" 3963 fi 3964 ac_res=`eval echo '${'$as_ac_Header'}'` 3965 { echo "$as_me:$LINENO: result: $ac_res" >&5 3966 echo "${ECHO_T}$ac_res" >&6; } 3967 3968 fi 3969 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3970 cat >>confdefs.h <<_ACEOF 3971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3972 _ACEOF 3973 3974 fi 3975 3976 done 3977 3978 3979 for ac_header in net/pfvar.h 3980 do 3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3982 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3985 echo $ECHO_N "(cached) $ECHO_C" >&6 3986 else 3987 cat >conftest.$ac_ext <<_ACEOF 3988 /* confdefs.h. */ 3989 _ACEOF 3990 cat confdefs.h >>conftest.$ac_ext 3991 cat >>conftest.$ac_ext <<_ACEOF 3992 /* end confdefs.h. */ 3993 #include <sys/types.h> 3994 #include <sys/socket.h> 3995 #include <net/if.h> 3996 3997 #include <$ac_header> 3998 _ACEOF 3999 rm -f conftest.$ac_objext 4000 if { (ac_try="$ac_compile" 4001 case "(($ac_try" in 4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4003 *) ac_try_echo=$ac_try;; 4004 esac 4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4006 (eval "$ac_compile") 2>conftest.er1 4007 ac_status=$? 4008 grep -v '^ *+' conftest.er1 >conftest.err 4009 rm -f conftest.er1 4010 cat conftest.err >&5 4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4012 (exit $ac_status); } && { 4013 test -z "$ac_c_werror_flag" || 4014 test ! -s conftest.err 4015 } && test -s conftest.$ac_objext; then 4016 eval "$as_ac_Header=yes" 4017 else 4018 echo "$as_me: failed program was:" >&5 4019 sed 's/^/| /' conftest.$ac_ext >&5 4020 4021 eval "$as_ac_Header=no" 4022 fi 4023 4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4025 fi 4026 ac_res=`eval echo '${'$as_ac_Header'}'` 4027 { echo "$as_me:$LINENO: result: $ac_res" >&5 4028 echo "${ECHO_T}$ac_res" >&6; } 4029 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4030 cat >>confdefs.h <<_ACEOF 4031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4032 _ACEOF 4033 4034 fi 4035 4036 done 4037 4038 if test "$ac_cv_header_net_pfvar_h" == yes; then 4039 LOCALSRC="print-pflog.c $LOCALSRC" 4040 fi 4041 4042 for ac_header in netinet/if_ether.h 4043 do 4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4048 echo $ECHO_N "(cached) $ECHO_C" >&6 4049 else 4050 cat >conftest.$ac_ext <<_ACEOF 4051 /* confdefs.h. */ 4052 _ACEOF 4053 cat confdefs.h >>conftest.$ac_ext 4054 cat >>conftest.$ac_ext <<_ACEOF 4055 /* end confdefs.h. */ 4056 #include <sys/types.h> 4057 #include <sys/socket.h> 4058 4059 #include <$ac_header> 4060 _ACEOF 4061 rm -f conftest.$ac_objext 4062 if { (ac_try="$ac_compile" 4063 case "(($ac_try" in 4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4065 *) ac_try_echo=$ac_try;; 4066 esac 4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4068 (eval "$ac_compile") 2>conftest.er1 4069 ac_status=$? 4070 grep -v '^ *+' conftest.er1 >conftest.err 4071 rm -f conftest.er1 4072 cat conftest.err >&5 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); } && { 4075 test -z "$ac_c_werror_flag" || 4076 test ! -s conftest.err 4077 } && test -s conftest.$ac_objext; then 4078 eval "$as_ac_Header=yes" 4079 else 4080 echo "$as_me: failed program was:" >&5 4081 sed 's/^/| /' conftest.$ac_ext >&5 4082 4083 eval "$as_ac_Header=no" 4084 fi 4085 4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087 fi 4088 ac_res=`eval echo '${'$as_ac_Header'}'` 4089 { echo "$as_me:$LINENO: result: $ac_res" >&5 4090 echo "${ECHO_T}$ac_res" >&6; } 4091 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4092 cat >>confdefs.h <<_ACEOF 4093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4094 _ACEOF 4095 4096 fi 4097 4098 done 4099 4100 if test "$ac_cv_header_netinet_if_ether_h" != yes; then 4101 # 4102 # The simple test didn't work. 4103 # Do we need to include <net/if.h> first? 4104 # Unset ac_cv_header_netinet_if_ether_h so we don't 4105 # treat the previous failure as a cached value and 4106 # suppress the next test. 4107 # 4108 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 4109 echo "$as_me: Rechecking with some additional includes" >&6;} 4110 unset ac_cv_header_netinet_if_ether_h 4111 4112 for ac_header in netinet/if_ether.h 4113 do 4114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4115 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4118 echo $ECHO_N "(cached) $ECHO_C" >&6 4119 else 4120 cat >conftest.$ac_ext <<_ACEOF 4121 /* confdefs.h. */ 4122 _ACEOF 4123 cat confdefs.h >>conftest.$ac_ext 4124 cat >>conftest.$ac_ext <<_ACEOF 4125 /* end confdefs.h. */ 4126 #include <sys/types.h> 4127 #include <sys/socket.h> 4128 #include <netinet/in.h> 4129 struct mbuf; 4130 struct rtentry; 4131 #include <net/if.h> 4132 4133 #include <$ac_header> 4134 _ACEOF 4135 rm -f conftest.$ac_objext 4136 if { (ac_try="$ac_compile" 4137 case "(($ac_try" in 4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4139 *) ac_try_echo=$ac_try;; 4140 esac 4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4142 (eval "$ac_compile") 2>conftest.er1 4143 ac_status=$? 4144 grep -v '^ *+' conftest.er1 >conftest.err 4145 rm -f conftest.er1 4146 cat conftest.err >&5 4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } && { 4149 test -z "$ac_c_werror_flag" || 4150 test ! -s conftest.err 4151 } && test -s conftest.$ac_objext; then 4152 eval "$as_ac_Header=yes" 4153 else 4154 echo "$as_me: failed program was:" >&5 4155 sed 's/^/| /' conftest.$ac_ext >&5 4156 4157 eval "$as_ac_Header=no" 4158 fi 4159 4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4161 fi 4162 ac_res=`eval echo '${'$as_ac_Header'}'` 4163 { echo "$as_me:$LINENO: result: $ac_res" >&5 4164 echo "${ECHO_T}$ac_res" >&6; } 4165 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4166 cat >>confdefs.h <<_ACEOF 4167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4168 _ACEOF 4169 4170 fi 4171 4172 done 4173 4174 fi 4175 4176 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4177 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 4178 if test "${ac_cv_header_time+set}" = set; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180 else 4181 cat >conftest.$ac_ext <<_ACEOF 4182 /* confdefs.h. */ 4183 _ACEOF 4184 cat confdefs.h >>conftest.$ac_ext 4185 cat >>conftest.$ac_ext <<_ACEOF 4186 /* end confdefs.h. */ 4187 #include <sys/types.h> 4188 #include <sys/time.h> 4189 #include <time.h> 4190 4191 int 4192 main () 4193 { 4194 if ((struct tm *) 0) 4195 return 0; 4196 ; 4197 return 0; 4198 } 4199 _ACEOF 4200 rm -f conftest.$ac_objext 4201 if { (ac_try="$ac_compile" 4202 case "(($ac_try" in 4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4204 *) ac_try_echo=$ac_try;; 4205 esac 4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4207 (eval "$ac_compile") 2>conftest.er1 4208 ac_status=$? 4209 grep -v '^ *+' conftest.er1 >conftest.err 4210 rm -f conftest.er1 4211 cat conftest.err >&5 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } && { 4214 test -z "$ac_c_werror_flag" || 4215 test ! -s conftest.err 4216 } && test -s conftest.$ac_objext; then 4217 ac_cv_header_time=yes 4218 else 4219 echo "$as_me: failed program was:" >&5 4220 sed 's/^/| /' conftest.$ac_ext >&5 4221 4222 ac_cv_header_time=no 4223 fi 4224 4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 fi 4227 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4228 echo "${ECHO_T}$ac_cv_header_time" >&6; } 4229 if test $ac_cv_header_time = yes; then 4230 4231 cat >>confdefs.h <<\_ACEOF 4232 #define TIME_WITH_SYS_TIME 1 4233 _ACEOF 4234 4235 fi 4236 4237 4238 case "$host_os" in 4239 4240 linux*) 4241 { echo "$as_me:$LINENO: checking Linux kernel version" >&5 4242 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; } 4243 if test "$cross_compiling" = yes; then 4244 if test "${ac_cv_linux_vers+set}" = set; then 4245 echo $ECHO_N "(cached) $ECHO_C" >&6 4246 else 4247 ac_cv_linux_vers=unknown 4248 fi 4249 4250 else 4251 if test "${ac_cv_linux_vers+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253 else 4254 ac_cv_linux_vers=`uname -r 2>&1 | \ 4255 sed -n -e '$s/.* //' -e '$s/\..*//p'` 4256 fi 4257 4258 fi 4259 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 4260 echo "${ECHO_T}$ac_cv_linux_vers" >&6; } 4261 if test $ac_cv_linux_vers = unknown ; then 4262 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 4263 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 4264 { (exit 1); exit 1; }; } 4265 fi 4266 if test $ac_cv_linux_vers -lt 2 ; then 4267 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 4268 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 4269 { (exit 1); exit 1; }; } 4270 fi 4271 ;; 4272 4273 *) 4274 ;; 4275 esac 4276 4277 4278 4279 for ac_header in smi.h 4280 do 4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4283 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4286 echo $ECHO_N "(cached) $ECHO_C" >&6 4287 fi 4288 ac_res=`eval echo '${'$as_ac_Header'}'` 4289 { echo "$as_me:$LINENO: result: $ac_res" >&5 4290 echo "${ECHO_T}$ac_res" >&6; } 4291 else 4292 # Is the header compilable? 4293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4295 cat >conftest.$ac_ext <<_ACEOF 4296 /* confdefs.h. */ 4297 _ACEOF 4298 cat confdefs.h >>conftest.$ac_ext 4299 cat >>conftest.$ac_ext <<_ACEOF 4300 /* end confdefs.h. */ 4301 $ac_includes_default 4302 #include <$ac_header> 4303 _ACEOF 4304 rm -f conftest.$ac_objext 4305 if { (ac_try="$ac_compile" 4306 case "(($ac_try" in 4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4308 *) ac_try_echo=$ac_try;; 4309 esac 4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4311 (eval "$ac_compile") 2>conftest.er1 4312 ac_status=$? 4313 grep -v '^ *+' conftest.er1 >conftest.err 4314 rm -f conftest.er1 4315 cat conftest.err >&5 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); } && { 4318 test -z "$ac_c_werror_flag" || 4319 test ! -s conftest.err 4320 } && test -s conftest.$ac_objext; then 4321 ac_header_compiler=yes 4322 else 4323 echo "$as_me: failed program was:" >&5 4324 sed 's/^/| /' conftest.$ac_ext >&5 4325 4326 ac_header_compiler=no 4327 fi 4328 4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4331 echo "${ECHO_T}$ac_header_compiler" >&6; } 4332 4333 # Is the header present? 4334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4336 cat >conftest.$ac_ext <<_ACEOF 4337 /* confdefs.h. */ 4338 _ACEOF 4339 cat confdefs.h >>conftest.$ac_ext 4340 cat >>conftest.$ac_ext <<_ACEOF 4341 /* end confdefs.h. */ 4342 #include <$ac_header> 4343 _ACEOF 4344 if { (ac_try="$ac_cpp conftest.$ac_ext" 4345 case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348 esac 4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4351 ac_status=$? 4352 grep -v '^ *+' conftest.er1 >conftest.err 4353 rm -f conftest.er1 4354 cat conftest.err >&5 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); } >/dev/null && { 4357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4358 test ! -s conftest.err 4359 }; then 4360 ac_header_preproc=yes 4361 else 4362 echo "$as_me: failed program was:" >&5 4363 sed 's/^/| /' conftest.$ac_ext >&5 4364 4365 ac_header_preproc=no 4366 fi 4367 4368 rm -f conftest.err conftest.$ac_ext 4369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4370 echo "${ECHO_T}$ac_header_preproc" >&6; } 4371 4372 # So? What about this header? 4373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4374 yes:no: ) 4375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4379 ac_header_preproc=yes 4380 ;; 4381 no:yes:* ) 4382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4394 4395 ;; 4396 esac 4397 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401 else 4402 eval "$as_ac_Header=\$ac_header_preproc" 4403 fi 4404 ac_res=`eval echo '${'$as_ac_Header'}'` 4405 { echo "$as_me:$LINENO: result: $ac_res" >&5 4406 echo "${ECHO_T}$ac_res" >&6; } 4407 4408 fi 4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4410 cat >>confdefs.h <<_ACEOF 4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4412 _ACEOF 4413 4414 fi 4415 4416 done 4417 4418 4419 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 4420 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; } 4421 if test "${ac_cv_lib_smi_smiInit+set}" = set; then 4422 echo $ECHO_N "(cached) $ECHO_C" >&6 4423 else 4424 ac_check_lib_save_LIBS=$LIBS 4425 LIBS="-lsmi $LIBS" 4426 cat >conftest.$ac_ext <<_ACEOF 4427 /* confdefs.h. */ 4428 _ACEOF 4429 cat confdefs.h >>conftest.$ac_ext 4430 cat >>conftest.$ac_ext <<_ACEOF 4431 /* end confdefs.h. */ 4432 4433 /* Override any GCC internal prototype to avoid an error. 4434 Use char because int might match the return type of a GCC 4435 builtin and then its argument prototype would still apply. */ 4436 #ifdef __cplusplus 4437 extern "C" 4438 #endif 4439 char smiInit (); 4440 int 4441 main () 4442 { 4443 return smiInit (); 4444 ; 4445 return 0; 4446 } 4447 _ACEOF 4448 rm -f conftest.$ac_objext conftest$ac_exeext 4449 if { (ac_try="$ac_link" 4450 case "(($ac_try" in 4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4452 *) ac_try_echo=$ac_try;; 4453 esac 4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4455 (eval "$ac_link") 2>conftest.er1 4456 ac_status=$? 4457 grep -v '^ *+' conftest.er1 >conftest.err 4458 rm -f conftest.er1 4459 cat conftest.err >&5 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } && { 4462 test -z "$ac_c_werror_flag" || 4463 test ! -s conftest.err 4464 } && test -s conftest$ac_exeext && 4465 $as_test_x conftest$ac_exeext; then 4466 ac_cv_lib_smi_smiInit=yes 4467 else 4468 echo "$as_me: failed program was:" >&5 4469 sed 's/^/| /' conftest.$ac_ext >&5 4470 4471 ac_cv_lib_smi_smiInit=no 4472 fi 4473 4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4475 conftest$ac_exeext conftest.$ac_ext 4476 LIBS=$ac_check_lib_save_LIBS 4477 fi 4478 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 4479 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; } 4480 if test $ac_cv_lib_smi_smiInit = yes; then 4481 cat >>confdefs.h <<_ACEOF 4482 #define HAVE_LIBSMI 1 4483 _ACEOF 4484 4485 LIBS="-lsmi $LIBS" 4486 4487 fi 4488 4489 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 4490 then 4491 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 4492 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; } 4493 if test "$cross_compiling" = yes; then 4494 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5 4495 echo "${ECHO_T}not when cross-compiling" >&6; } 4496 libsmi=no 4497 4498 else 4499 cat >conftest.$ac_ext <<_ACEOF 4500 /* confdefs.h. */ 4501 _ACEOF 4502 cat confdefs.h >>conftest.$ac_ext 4503 cat >>conftest.$ac_ext <<_ACEOF 4504 /* end confdefs.h. */ 4505 /* libsmi available check */ 4506 #include <smi.h> 4507 main() 4508 { 4509 int current, revision, age, n; 4510 const int required = 2; 4511 if (smiInit("")) 4512 exit(1); 4513 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4514 exit(2); 4515 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4516 if (n != 3) 4517 exit(3); 4518 if (required < current - age || required > current) 4519 exit(4); 4520 exit(0); 4521 } 4522 4523 _ACEOF 4524 rm -f conftest$ac_exeext 4525 if { (ac_try="$ac_link" 4526 case "(($ac_try" in 4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4528 *) ac_try_echo=$ac_try;; 4529 esac 4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4531 (eval "$ac_link") 2>&5 4532 ac_status=$? 4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4535 { (case "(($ac_try" in 4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4537 *) ac_try_echo=$ac_try;; 4538 esac 4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4540 (eval "$ac_try") 2>&5 4541 ac_status=$? 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); }; }; then 4544 { echo "$as_me:$LINENO: result: yes" >&5 4545 echo "${ECHO_T}yes" >&6; } 4546 cat >>confdefs.h <<\_ACEOF 4547 #define LIBSMI 1 4548 _ACEOF 4549 4550 libsmi=yes 4551 else 4552 echo "$as_me: program exited with status $ac_status" >&5 4553 echo "$as_me: failed program was:" >&5 4554 sed 's/^/| /' conftest.$ac_ext >&5 4555 4556 ( exit $ac_status ) 4557 case $? in 4558 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5 4559 echo "${ECHO_T}no - smiInit failed" >&6; } ;; 4560 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 4561 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;; 4562 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5 4563 echo "${ECHO_T}no - can't determine library version" >&6; } ;; 4564 4) { echo "$as_me:$LINENO: result: no - too old" >&5 4565 echo "${ECHO_T}no - too old" >&6; } ;; 4566 *) { echo "$as_me:$LINENO: result: no" >&5 4567 echo "${ECHO_T}no" >&6; } ;; 4568 esac 4569 libsmi=no 4570 fi 4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4572 fi 4573 4574 4575 fi 4576 4577 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 4578 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; } 4579 # Check whether --enable-smb was given. 4580 if test "${enable_smb+set}" = set; then 4581 enableval=$enable_smb; 4582 else 4583 enableval=yes 4584 fi 4585 4586 case "$enableval" in 4587 yes) { echo "$as_me:$LINENO: result: yes" >&5 4588 echo "${ECHO_T}yes" >&6; } 4589 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 4590 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 4591 cat >>confdefs.h <<\_ACEOF 4592 #define TCPDUMP_DO_SMB 1 4593 _ACEOF 4594 4595 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4596 ;; 4597 *) { echo "$as_me:$LINENO: result: no" >&5 4598 echo "${ECHO_T}no" >&6; } 4599 ;; 4600 esac 4601 4602 4603 # Check whether --with-user was given. 4604 if test "${with_user+set}" = set; then 4605 withval=$with_user; 4606 fi 4607 4608 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 4609 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; } 4610 if test ! -z "$with_user" ; then 4611 cat >>confdefs.h <<_ACEOF 4612 #define WITH_USER "$withval" 4613 _ACEOF 4614 4615 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4616 echo "${ECHO_T}to \"$withval\"" >&6; } 4617 else 4618 { echo "$as_me:$LINENO: result: no" >&5 4619 echo "${ECHO_T}no" >&6; } 4620 fi 4621 4622 4623 # Check whether --with-chroot was given. 4624 if test "${with_chroot+set}" = set; then 4625 withval=$with_chroot; 4626 fi 4627 4628 { echo "$as_me:$LINENO: checking whether to chroot" >&5 4629 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; } 4630 if test ! -z "$with_chroot" ; then 4631 cat >>confdefs.h <<_ACEOF 4632 #define WITH_CHROOT "$withval" 4633 _ACEOF 4634 4635 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4636 echo "${ECHO_T}to \"$withval\"" >&6; } 4637 else 4638 { echo "$as_me:$LINENO: result: no" >&5 4639 echo "${ECHO_T}no" >&6; } 4640 fi 4641 4642 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 4643 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; } 4644 # Check whether --enable-ipv6 was given. 4645 if test "${enable_ipv6+set}" = set; then 4646 enableval=$enable_ipv6; case "$enableval" in 4647 yes) { echo "$as_me:$LINENO: result: yes" >&5 4648 echo "${ECHO_T}yes" >&6; } 4649 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 4650 cat >>confdefs.h <<\_ACEOF 4651 #define INET6 1 4652 _ACEOF 4653 4654 ipv6=yes 4655 ;; 4656 *) 4657 { echo "$as_me:$LINENO: result: no" >&5 4658 echo "${ECHO_T}no" >&6; } 4659 ipv6=no 4660 ;; 4661 esac 4662 else 4663 if test "$cross_compiling" = yes; then 4664 { echo "$as_me:$LINENO: result: no" >&5 4665 echo "${ECHO_T}no" >&6; } 4666 ipv6=no 4667 4668 else 4669 cat >conftest.$ac_ext <<_ACEOF 4670 /* confdefs.h. */ 4671 _ACEOF 4672 cat confdefs.h >>conftest.$ac_ext 4673 cat >>conftest.$ac_ext <<_ACEOF 4674 /* end confdefs.h. */ 4675 /* AF_INET6 available check */ 4676 #include <sys/types.h> 4677 #include <sys/socket.h> 4678 main() 4679 { 4680 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 4681 exit(1); 4682 else 4683 exit(0); 4684 } 4685 4686 _ACEOF 4687 rm -f conftest$ac_exeext 4688 if { (ac_try="$ac_link" 4689 case "(($ac_try" in 4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4691 *) ac_try_echo=$ac_try;; 4692 esac 4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4694 (eval "$ac_link") 2>&5 4695 ac_status=$? 4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4698 { (case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701 esac 4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4703 (eval "$ac_try") 2>&5 4704 ac_status=$? 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); }; }; then 4707 { echo "$as_me:$LINENO: result: yes" >&5 4708 echo "${ECHO_T}yes" >&6; } 4709 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 4710 cat >>confdefs.h <<\_ACEOF 4711 #define INET6 1 4712 _ACEOF 4713 4714 ipv6=yes 4715 else 4716 echo "$as_me: program exited with status $ac_status" >&5 4717 echo "$as_me: failed program was:" >&5 4718 sed 's/^/| /' conftest.$ac_ext >&5 4719 4720 ( exit $ac_status ) 4721 { echo "$as_me:$LINENO: result: no" >&5 4722 echo "${ECHO_T}no" >&6; } 4723 ipv6=no 4724 fi 4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4726 fi 4727 4728 4729 fi 4730 4731 4732 ipv6type=unknown 4733 ipv6lib=none 4734 ipv6trylibc=no 4735 4736 if test "$ipv6" = "yes"; then 4737 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 4738 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } 4739 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 4740 case $i in 4741 inria) 4742 cat >conftest.$ac_ext <<_ACEOF 4743 /* confdefs.h. */ 4744 _ACEOF 4745 cat confdefs.h >>conftest.$ac_ext 4746 cat >>conftest.$ac_ext <<_ACEOF 4747 /* end confdefs.h. */ 4748 #include <netinet/in.h> 4749 #ifdef IPV6_INRIA_VERSION 4750 yes 4751 #endif 4752 _ACEOF 4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4754 $EGREP "yes" >/dev/null 2>&1; then 4755 ipv6type=$i; 4756 CFLAGS="-DINET6 $CFLAGS" 4757 fi 4758 rm -f conftest* 4759 4760 ;; 4761 kame) 4762 cat >conftest.$ac_ext <<_ACEOF 4763 /* confdefs.h. */ 4764 _ACEOF 4765 cat confdefs.h >>conftest.$ac_ext 4766 cat >>conftest.$ac_ext <<_ACEOF 4767 /* end confdefs.h. */ 4768 #include <netinet/in.h> 4769 #ifdef __KAME__ 4770 yes 4771 #endif 4772 _ACEOF 4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4774 $EGREP "yes" >/dev/null 2>&1; then 4775 ipv6type=$i; 4776 ipv6lib=inet6; 4777 ipv6libdir=/usr/local/v6/lib; 4778 ipv6trylibc=yes; 4779 CFLAGS="-DINET6 $CFLAGS" 4780 fi 4781 rm -f conftest* 4782 4783 ;; 4784 linux-glibc) 4785 cat >conftest.$ac_ext <<_ACEOF 4786 /* confdefs.h. */ 4787 _ACEOF 4788 cat confdefs.h >>conftest.$ac_ext 4789 cat >>conftest.$ac_ext <<_ACEOF 4790 /* end confdefs.h. */ 4791 #include <features.h> 4792 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 4793 yes 4794 #endif 4795 _ACEOF 4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4797 $EGREP "yes" >/dev/null 2>&1; then 4798 ipv6type=$i; 4799 CFLAGS="-DINET6 $CFLAGS" 4800 fi 4801 rm -f conftest* 4802 4803 ;; 4804 linux-libinet6) 4805 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 4806 ipv6type=$i 4807 ipv6lib=inet6 4808 ipv6libdir=/usr/inet6/lib 4809 ipv6trylibc=yes; 4810 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 4811 fi 4812 ;; 4813 toshiba) 4814 cat >conftest.$ac_ext <<_ACEOF 4815 /* confdefs.h. */ 4816 _ACEOF 4817 cat confdefs.h >>conftest.$ac_ext 4818 cat >>conftest.$ac_ext <<_ACEOF 4819 /* end confdefs.h. */ 4820 #include <sys/param.h> 4821 #ifdef _TOSHIBA_INET6 4822 yes 4823 #endif 4824 _ACEOF 4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4826 $EGREP "yes" >/dev/null 2>&1; then 4827 ipv6type=$i; 4828 ipv6lib=inet6; 4829 ipv6libdir=/usr/local/v6/lib; 4830 CFLAGS="-DINET6 $CFLAGS" 4831 fi 4832 rm -f conftest* 4833 4834 ;; 4835 v6d) 4836 cat >conftest.$ac_ext <<_ACEOF 4837 /* confdefs.h. */ 4838 _ACEOF 4839 cat confdefs.h >>conftest.$ac_ext 4840 cat >>conftest.$ac_ext <<_ACEOF 4841 /* end confdefs.h. */ 4842 #include </usr/local/v6/include/sys/v6config.h> 4843 #ifdef __V6D__ 4844 yes 4845 #endif 4846 _ACEOF 4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4848 $EGREP "yes" >/dev/null 2>&1; then 4849 ipv6type=$i; 4850 ipv6lib=v6; 4851 ipv6libdir=/usr/local/v6/lib; 4852 CFLAGS="-I/usr/local/v6/include $CFLAGS" 4853 fi 4854 rm -f conftest* 4855 4856 ;; 4857 zeta) 4858 cat >conftest.$ac_ext <<_ACEOF 4859 /* confdefs.h. */ 4860 _ACEOF 4861 cat confdefs.h >>conftest.$ac_ext 4862 cat >>conftest.$ac_ext <<_ACEOF 4863 /* end confdefs.h. */ 4864 #include <sys/param.h> 4865 #ifdef _ZETA_MINAMI_INET6 4866 yes 4867 #endif 4868 _ACEOF 4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4870 $EGREP "yes" >/dev/null 2>&1; then 4871 ipv6type=$i; 4872 ipv6lib=inet6; 4873 ipv6libdir=/usr/local/v6/lib; 4874 CFLAGS="-DINET6 $CFLAGS" 4875 fi 4876 rm -f conftest* 4877 4878 ;; 4879 esac 4880 if test "$ipv6type" != "unknown"; then 4881 break 4882 fi 4883 done 4884 { echo "$as_me:$LINENO: result: $ipv6type" >&5 4885 echo "${ECHO_T}$ipv6type" >&6; } 4886 fi 4887 4888 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 4889 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 4890 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 4891 echo "You have $ipv6lib library, using it" 4892 else 4893 if test "$ipv6trylibc" = "yes"; then 4894 echo "You do not have $ipv6lib library, using libc" 4895 else 4896 echo 'Fatal: no $ipv6lib library found. cannot continue.' 4897 echo "You need to fetch lib$ipv6lib.a from appropriate" 4898 echo 'ipv6 kit and compile beforehand.' 4899 exit 1 4900 fi 4901 fi 4902 fi 4903 4904 4905 if test "$ipv6" = "yes"; then 4906 # 4907 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4908 # function in libc; there are "ngetaddrinfo()" and 4909 # "ogetaddrinfo()" functions, and <netdb.h> #defines 4910 # "getaddrinfo" to be either "ngetaddrinfo" or 4911 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4912 # or _XOPEN_SOURCE_EXTENDED are defined or not. 4913 # 4914 # So this test doesn't work on Tru64 5.1, and possibly 4915 # on other 5.x releases. This causes the configure 4916 # script to become confused, and results in libpcap 4917 # being unbuildable. 4918 # 4919 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4920 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; } 4921 if test "${ac_cv_search_getaddrinfo+set}" = set; then 4922 echo $ECHO_N "(cached) $ECHO_C" >&6 4923 else 4924 ac_func_search_save_LIBS=$LIBS 4925 cat >conftest.$ac_ext <<_ACEOF 4926 /* confdefs.h. */ 4927 _ACEOF 4928 cat confdefs.h >>conftest.$ac_ext 4929 cat >>conftest.$ac_ext <<_ACEOF 4930 /* end confdefs.h. */ 4931 4932 /* Override any GCC internal prototype to avoid an error. 4933 Use char because int might match the return type of a GCC 4934 builtin and then its argument prototype would still apply. */ 4935 #ifdef __cplusplus 4936 extern "C" 4937 #endif 4938 char getaddrinfo (); 4939 int 4940 main () 4941 { 4942 return getaddrinfo (); 4943 ; 4944 return 0; 4945 } 4946 _ACEOF 4947 for ac_lib in '' socket; do 4948 if test -z "$ac_lib"; then 4949 ac_res="none required" 4950 else 4951 ac_res=-l$ac_lib 4952 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4953 fi 4954 rm -f conftest.$ac_objext conftest$ac_exeext 4955 if { (ac_try="$ac_link" 4956 case "(($ac_try" in 4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4958 *) ac_try_echo=$ac_try;; 4959 esac 4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4961 (eval "$ac_link") 2>conftest.er1 4962 ac_status=$? 4963 grep -v '^ *+' conftest.er1 >conftest.err 4964 rm -f conftest.er1 4965 cat conftest.err >&5 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4967 (exit $ac_status); } && { 4968 test -z "$ac_c_werror_flag" || 4969 test ! -s conftest.err 4970 } && test -s conftest$ac_exeext && 4971 $as_test_x conftest$ac_exeext; then 4972 ac_cv_search_getaddrinfo=$ac_res 4973 else 4974 echo "$as_me: failed program was:" >&5 4975 sed 's/^/| /' conftest.$ac_ext >&5 4976 4977 4978 fi 4979 4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4981 conftest$ac_exeext 4982 if test "${ac_cv_search_getaddrinfo+set}" = set; then 4983 break 4984 fi 4985 done 4986 if test "${ac_cv_search_getaddrinfo+set}" = set; then 4987 : 4988 else 4989 ac_cv_search_getaddrinfo=no 4990 fi 4991 rm conftest.$ac_ext 4992 LIBS=$ac_func_search_save_LIBS 4993 fi 4994 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4995 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; } 4996 ac_res=$ac_cv_search_getaddrinfo 4997 if test "$ac_res" != no; then 4998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4999 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 5000 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } 5001 if test "${td_cv_buggygetaddrinfo+set}" = set; then 5002 echo $ECHO_N "(cached) $ECHO_C" >&6 5003 else 5004 if test "$cross_compiling" = yes; then 5005 td_cv_buggygetaddrinfo=yes 5006 else 5007 cat >conftest.$ac_ext <<_ACEOF 5008 /* confdefs.h. */ 5009 _ACEOF 5010 cat confdefs.h >>conftest.$ac_ext 5011 cat >>conftest.$ac_ext <<_ACEOF 5012 /* end confdefs.h. */ 5013 5014 #include <sys/types.h> 5015 #include <netdb.h> 5016 #include <string.h> 5017 #include <sys/socket.h> 5018 #include <netinet/in.h> 5019 5020 main() 5021 { 5022 int passive, gaierr, inet4 = 0, inet6 = 0; 5023 struct addrinfo hints, *ai, *aitop; 5024 char straddr[INET6_ADDRSTRLEN], strport[16]; 5025 5026 for (passive = 0; passive <= 1; passive++) { 5027 memset(&hints, 0, sizeof(hints)); 5028 hints.ai_family = AF_UNSPEC; 5029 hints.ai_flags = passive ? AI_PASSIVE : 0; 5030 hints.ai_socktype = SOCK_STREAM; 5031 hints.ai_protocol = IPPROTO_TCP; 5032 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 5033 (void)gai_strerror(gaierr); 5034 goto bad; 5035 } 5036 for (ai = aitop; ai; ai = ai->ai_next) { 5037 if (ai->ai_addr == NULL || 5038 ai->ai_addrlen == 0 || 5039 getnameinfo(ai->ai_addr, ai->ai_addrlen, 5040 straddr, sizeof(straddr), strport, sizeof(strport), 5041 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 5042 goto bad; 5043 } 5044 switch (ai->ai_family) { 5045 case AF_INET: 5046 if (strcmp(strport, "54321") != 0) { 5047 goto bad; 5048 } 5049 if (passive) { 5050 if (strcmp(straddr, "0.0.0.0") != 0) { 5051 goto bad; 5052 } 5053 } else { 5054 if (strcmp(straddr, "127.0.0.1") != 0) { 5055 goto bad; 5056 } 5057 } 5058 inet4++; 5059 break; 5060 case AF_INET6: 5061 if (strcmp(strport, "54321") != 0) { 5062 goto bad; 5063 } 5064 if (passive) { 5065 if (strcmp(straddr, "::") != 0) { 5066 goto bad; 5067 } 5068 } else { 5069 if (strcmp(straddr, "::1") != 0) { 5070 goto bad; 5071 } 5072 } 5073 inet6++; 5074 break; 5075 case AF_UNSPEC: 5076 goto bad; 5077 break; 5078 #ifdef AF_UNIX 5079 case AF_UNIX: 5080 #else 5081 #ifdef AF_LOCAL 5082 case AF_LOCAL: 5083 #endif 5084 #endif 5085 default: 5086 /* another family support? */ 5087 break; 5088 } 5089 } 5090 } 5091 5092 /* supported family should be 2, unsupported family should be 0 */ 5093 if (!(inet4 == 0 || inet4 == 2)) 5094 goto bad; 5095 if (!(inet6 == 0 || inet6 == 2)) 5096 goto bad; 5097 5098 if (aitop) 5099 freeaddrinfo(aitop); 5100 exit(0); 5101 5102 bad: 5103 if (aitop) 5104 freeaddrinfo(aitop); 5105 exit(1); 5106 } 5107 5108 _ACEOF 5109 rm -f conftest$ac_exeext 5110 if { (ac_try="$ac_link" 5111 case "(($ac_try" in 5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5113 *) ac_try_echo=$ac_try;; 5114 esac 5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5116 (eval "$ac_link") 2>&5 5117 ac_status=$? 5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5120 { (case "(($ac_try" in 5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5122 *) ac_try_echo=$ac_try;; 5123 esac 5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5125 (eval "$ac_try") 2>&5 5126 ac_status=$? 5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5128 (exit $ac_status); }; }; then 5129 td_cv_buggygetaddrinfo=no 5130 else 5131 echo "$as_me: program exited with status $ac_status" >&5 5132 echo "$as_me: failed program was:" >&5 5133 sed 's/^/| /' conftest.$ac_ext >&5 5134 5135 ( exit $ac_status ) 5136 td_cv_buggygetaddrinfo=yes 5137 fi 5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5139 fi 5140 5141 5142 fi 5143 5144 if test "$td_cv_buggygetaddrinfo" = no; then 5145 { echo "$as_me:$LINENO: result: good" >&5 5146 echo "${ECHO_T}good" >&6; } 5147 else 5148 { echo "$as_me:$LINENO: result: buggy" >&5 5149 echo "${ECHO_T}buggy" >&6; } 5150 fi 5151 5152 if test "$td_cv_buggygetaddrinfo" = "yes"; then 5153 # 5154 # XXX - it doesn't appear that "ipv6type" can ever be 5155 # set to "linux". Should this be testing for 5156 # "linux-glibc", or for that *or* "linux-libinet6"? 5157 # If the latter, note that "linux-libinet6" is also 5158 # the type given to some non-Linux OSes. 5159 # 5160 if test "$ipv6type" != "linux"; then 5161 echo 'Fatal: You must get working getaddrinfo() function.' 5162 echo ' or you can specify "--disable-ipv6"'. 5163 exit 1 5164 else 5165 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 5166 echo ' Better upgrade your system library to newest version' 5167 echo ' of GNU C library (aka glibc).' 5168 fi 5169 fi 5170 5171 fi 5172 5173 5174 5175 for ac_func in getaddrinfo getnameinfo 5176 do 5177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5178 { echo "$as_me:$LINENO: checking for $ac_func" >&5 5179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5181 echo $ECHO_N "(cached) $ECHO_C" >&6 5182 else 5183 cat >conftest.$ac_ext <<_ACEOF 5184 /* confdefs.h. */ 5185 _ACEOF 5186 cat confdefs.h >>conftest.$ac_ext 5187 cat >>conftest.$ac_ext <<_ACEOF 5188 /* end confdefs.h. */ 5189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5190 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5191 #define $ac_func innocuous_$ac_func 5192 5193 /* System header to define __stub macros and hopefully few prototypes, 5194 which can conflict with char $ac_func (); below. 5195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5196 <limits.h> exists even on freestanding compilers. */ 5197 5198 #ifdef __STDC__ 5199 # include <limits.h> 5200 #else 5201 # include <assert.h> 5202 #endif 5203 5204 #undef $ac_func 5205 5206 /* Override any GCC internal prototype to avoid an error. 5207 Use char because int might match the return type of a GCC 5208 builtin and then its argument prototype would still apply. */ 5209 #ifdef __cplusplus 5210 extern "C" 5211 #endif 5212 char $ac_func (); 5213 /* The GNU C library defines this for functions which it implements 5214 to always fail with ENOSYS. Some functions are actually named 5215 something starting with __ and the normal name is an alias. */ 5216 #if defined __stub_$ac_func || defined __stub___$ac_func 5217 choke me 5218 #endif 5219 5220 int 5221 main () 5222 { 5223 return $ac_func (); 5224 ; 5225 return 0; 5226 } 5227 _ACEOF 5228 rm -f conftest.$ac_objext conftest$ac_exeext 5229 if { (ac_try="$ac_link" 5230 case "(($ac_try" in 5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5232 *) ac_try_echo=$ac_try;; 5233 esac 5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5235 (eval "$ac_link") 2>conftest.er1 5236 ac_status=$? 5237 grep -v '^ *+' conftest.er1 >conftest.err 5238 rm -f conftest.er1 5239 cat conftest.err >&5 5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5241 (exit $ac_status); } && { 5242 test -z "$ac_c_werror_flag" || 5243 test ! -s conftest.err 5244 } && test -s conftest$ac_exeext && 5245 $as_test_x conftest$ac_exeext; then 5246 eval "$as_ac_var=yes" 5247 else 5248 echo "$as_me: failed program was:" >&5 5249 sed 's/^/| /' conftest.$ac_ext >&5 5250 5251 eval "$as_ac_var=no" 5252 fi 5253 5254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5255 conftest$ac_exeext conftest.$ac_ext 5256 fi 5257 ac_res=`eval echo '${'$as_ac_var'}'` 5258 { echo "$as_me:$LINENO: result: $ac_res" >&5 5259 echo "${ECHO_T}$ac_res" >&6; } 5260 if test `eval echo '${'$as_ac_var'}'` = yes; then 5261 cat >>confdefs.h <<_ACEOF 5262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5263 _ACEOF 5264 5265 else 5266 case " $LIBOBJS " in 5267 *" $ac_func.$ac_objext "* ) ;; 5268 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5269 ;; 5270 esac 5271 5272 fi 5273 done 5274 5275 5276 fi 5277 5278 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 5279 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; } 5280 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 5281 echo $ECHO_N "(cached) $ECHO_C" >&6 5282 else 5283 cat >conftest.$ac_ext <<_ACEOF 5284 /* confdefs.h. */ 5285 _ACEOF 5286 cat confdefs.h >>conftest.$ac_ext 5287 cat >>conftest.$ac_ext <<_ACEOF 5288 /* end confdefs.h. */ 5289 #include <netdnet/dnetdb.h> 5290 5291 _ACEOF 5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5293 $EGREP "dnet_htoa" >/dev/null 2>&1; then 5294 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 5295 else 5296 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 5297 fi 5298 rm -f conftest* 5299 5300 fi 5301 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 5302 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; } 5303 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 5304 cat >>confdefs.h <<\_ACEOF 5305 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 5306 _ACEOF 5307 5308 fi 5309 5310 { echo "$as_me:$LINENO: checking for char" >&5 5311 echo $ECHO_N "checking for char... $ECHO_C" >&6; } 5312 if test "${ac_cv_type_char+set}" = set; then 5313 echo $ECHO_N "(cached) $ECHO_C" >&6 5314 else 5315 cat >conftest.$ac_ext <<_ACEOF 5316 /* confdefs.h. */ 5317 _ACEOF 5318 cat confdefs.h >>conftest.$ac_ext 5319 cat >>conftest.$ac_ext <<_ACEOF 5320 /* end confdefs.h. */ 5321 $ac_includes_default 5322 typedef char ac__type_new_; 5323 int 5324 main () 5325 { 5326 if ((ac__type_new_ *) 0) 5327 return 0; 5328 if (sizeof (ac__type_new_)) 5329 return 0; 5330 ; 5331 return 0; 5332 } 5333 _ACEOF 5334 rm -f conftest.$ac_objext 5335 if { (ac_try="$ac_compile" 5336 case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339 esac 5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_compile") 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } && { 5348 test -z "$ac_c_werror_flag" || 5349 test ! -s conftest.err 5350 } && test -s conftest.$ac_objext; then 5351 ac_cv_type_char=yes 5352 else 5353 echo "$as_me: failed program was:" >&5 5354 sed 's/^/| /' conftest.$ac_ext >&5 5355 5356 ac_cv_type_char=no 5357 fi 5358 5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5360 fi 5361 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 5362 echo "${ECHO_T}$ac_cv_type_char" >&6; } 5363 5364 # The cast to long int works around a bug in the HP C Compiler 5365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5367 # This bug is HP SR number 8606223364. 5368 { echo "$as_me:$LINENO: checking size of char" >&5 5369 echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 5370 if test "${ac_cv_sizeof_char+set}" = set; then 5371 echo $ECHO_N "(cached) $ECHO_C" >&6 5372 else 5373 if test "$cross_compiling" = yes; then 5374 # Depending upon the size, compute the lo and hi bounds. 5375 cat >conftest.$ac_ext <<_ACEOF 5376 /* confdefs.h. */ 5377 _ACEOF 5378 cat confdefs.h >>conftest.$ac_ext 5379 cat >>conftest.$ac_ext <<_ACEOF 5380 /* end confdefs.h. */ 5381 $ac_includes_default 5382 typedef char ac__type_sizeof_; 5383 int 5384 main () 5385 { 5386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5387 test_array [0] = 0 5388 5389 ; 5390 return 0; 5391 } 5392 _ACEOF 5393 rm -f conftest.$ac_objext 5394 if { (ac_try="$ac_compile" 5395 case "(($ac_try" in 5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5397 *) ac_try_echo=$ac_try;; 5398 esac 5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5400 (eval "$ac_compile") 2>conftest.er1 5401 ac_status=$? 5402 grep -v '^ *+' conftest.er1 >conftest.err 5403 rm -f conftest.er1 5404 cat conftest.err >&5 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); } && { 5407 test -z "$ac_c_werror_flag" || 5408 test ! -s conftest.err 5409 } && test -s conftest.$ac_objext; then 5410 ac_lo=0 ac_mid=0 5411 while :; do 5412 cat >conftest.$ac_ext <<_ACEOF 5413 /* confdefs.h. */ 5414 _ACEOF 5415 cat confdefs.h >>conftest.$ac_ext 5416 cat >>conftest.$ac_ext <<_ACEOF 5417 /* end confdefs.h. */ 5418 $ac_includes_default 5419 typedef char ac__type_sizeof_; 5420 int 5421 main () 5422 { 5423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5424 test_array [0] = 0 5425 5426 ; 5427 return 0; 5428 } 5429 _ACEOF 5430 rm -f conftest.$ac_objext 5431 if { (ac_try="$ac_compile" 5432 case "(($ac_try" in 5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5434 *) ac_try_echo=$ac_try;; 5435 esac 5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5437 (eval "$ac_compile") 2>conftest.er1 5438 ac_status=$? 5439 grep -v '^ *+' conftest.er1 >conftest.err 5440 rm -f conftest.er1 5441 cat conftest.err >&5 5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); } && { 5444 test -z "$ac_c_werror_flag" || 5445 test ! -s conftest.err 5446 } && test -s conftest.$ac_objext; then 5447 ac_hi=$ac_mid; break 5448 else 5449 echo "$as_me: failed program was:" >&5 5450 sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 ac_lo=`expr $ac_mid + 1` 5453 if test $ac_lo -le $ac_mid; then 5454 ac_lo= ac_hi= 5455 break 5456 fi 5457 ac_mid=`expr 2 '*' $ac_mid + 1` 5458 fi 5459 5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5461 done 5462 else 5463 echo "$as_me: failed program was:" >&5 5464 sed 's/^/| /' conftest.$ac_ext >&5 5465 5466 cat >conftest.$ac_ext <<_ACEOF 5467 /* confdefs.h. */ 5468 _ACEOF 5469 cat confdefs.h >>conftest.$ac_ext 5470 cat >>conftest.$ac_ext <<_ACEOF 5471 /* end confdefs.h. */ 5472 $ac_includes_default 5473 typedef char ac__type_sizeof_; 5474 int 5475 main () 5476 { 5477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5478 test_array [0] = 0 5479 5480 ; 5481 return 0; 5482 } 5483 _ACEOF 5484 rm -f conftest.$ac_objext 5485 if { (ac_try="$ac_compile" 5486 case "(($ac_try" in 5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5488 *) ac_try_echo=$ac_try;; 5489 esac 5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5491 (eval "$ac_compile") 2>conftest.er1 5492 ac_status=$? 5493 grep -v '^ *+' conftest.er1 >conftest.err 5494 rm -f conftest.er1 5495 cat conftest.err >&5 5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5497 (exit $ac_status); } && { 5498 test -z "$ac_c_werror_flag" || 5499 test ! -s conftest.err 5500 } && test -s conftest.$ac_objext; then 5501 ac_hi=-1 ac_mid=-1 5502 while :; do 5503 cat >conftest.$ac_ext <<_ACEOF 5504 /* confdefs.h. */ 5505 _ACEOF 5506 cat confdefs.h >>conftest.$ac_ext 5507 cat >>conftest.$ac_ext <<_ACEOF 5508 /* end confdefs.h. */ 5509 $ac_includes_default 5510 typedef char ac__type_sizeof_; 5511 int 5512 main () 5513 { 5514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5515 test_array [0] = 0 5516 5517 ; 5518 return 0; 5519 } 5520 _ACEOF 5521 rm -f conftest.$ac_objext 5522 if { (ac_try="$ac_compile" 5523 case "(($ac_try" in 5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5525 *) ac_try_echo=$ac_try;; 5526 esac 5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5528 (eval "$ac_compile") 2>conftest.er1 5529 ac_status=$? 5530 grep -v '^ *+' conftest.er1 >conftest.err 5531 rm -f conftest.er1 5532 cat conftest.err >&5 5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5534 (exit $ac_status); } && { 5535 test -z "$ac_c_werror_flag" || 5536 test ! -s conftest.err 5537 } && test -s conftest.$ac_objext; then 5538 ac_lo=$ac_mid; break 5539 else 5540 echo "$as_me: failed program was:" >&5 5541 sed 's/^/| /' conftest.$ac_ext >&5 5542 5543 ac_hi=`expr '(' $ac_mid ')' - 1` 5544 if test $ac_mid -le $ac_hi; then 5545 ac_lo= ac_hi= 5546 break 5547 fi 5548 ac_mid=`expr 2 '*' $ac_mid` 5549 fi 5550 5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552 done 5553 else 5554 echo "$as_me: failed program was:" >&5 5555 sed 's/^/| /' conftest.$ac_ext >&5 5556 5557 ac_lo= ac_hi= 5558 fi 5559 5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5561 fi 5562 5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5564 # Binary search between lo and hi bounds. 5565 while test "x$ac_lo" != "x$ac_hi"; do 5566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5567 cat >conftest.$ac_ext <<_ACEOF 5568 /* confdefs.h. */ 5569 _ACEOF 5570 cat confdefs.h >>conftest.$ac_ext 5571 cat >>conftest.$ac_ext <<_ACEOF 5572 /* end confdefs.h. */ 5573 $ac_includes_default 5574 typedef char ac__type_sizeof_; 5575 int 5576 main () 5577 { 5578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5579 test_array [0] = 0 5580 5581 ; 5582 return 0; 5583 } 5584 _ACEOF 5585 rm -f conftest.$ac_objext 5586 if { (ac_try="$ac_compile" 5587 case "(($ac_try" in 5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5589 *) ac_try_echo=$ac_try;; 5590 esac 5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5592 (eval "$ac_compile") 2>conftest.er1 5593 ac_status=$? 5594 grep -v '^ *+' conftest.er1 >conftest.err 5595 rm -f conftest.er1 5596 cat conftest.err >&5 5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5598 (exit $ac_status); } && { 5599 test -z "$ac_c_werror_flag" || 5600 test ! -s conftest.err 5601 } && test -s conftest.$ac_objext; then 5602 ac_hi=$ac_mid 5603 else 5604 echo "$as_me: failed program was:" >&5 5605 sed 's/^/| /' conftest.$ac_ext >&5 5606 5607 ac_lo=`expr '(' $ac_mid ')' + 1` 5608 fi 5609 5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611 done 5612 case $ac_lo in 5613 ?*) ac_cv_sizeof_char=$ac_lo;; 5614 '') if test "$ac_cv_type_char" = yes; then 5615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 5616 See \`config.log' for more details." >&5 5617 echo "$as_me: error: cannot compute sizeof (char) 5618 See \`config.log' for more details." >&2;} 5619 { (exit 77); exit 77; }; } 5620 else 5621 ac_cv_sizeof_char=0 5622 fi ;; 5623 esac 5624 else 5625 cat >conftest.$ac_ext <<_ACEOF 5626 /* confdefs.h. */ 5627 _ACEOF 5628 cat confdefs.h >>conftest.$ac_ext 5629 cat >>conftest.$ac_ext <<_ACEOF 5630 /* end confdefs.h. */ 5631 $ac_includes_default 5632 typedef char ac__type_sizeof_; 5633 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 5634 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 5635 #include <stdio.h> 5636 #include <stdlib.h> 5637 int 5638 main () 5639 { 5640 5641 FILE *f = fopen ("conftest.val", "w"); 5642 if (! f) 5643 return 1; 5644 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 5645 { 5646 long int i = longval (); 5647 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5648 return 1; 5649 fprintf (f, "%ld\n", i); 5650 } 5651 else 5652 { 5653 unsigned long int i = ulongval (); 5654 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5655 return 1; 5656 fprintf (f, "%lu\n", i); 5657 } 5658 return ferror (f) || fclose (f) != 0; 5659 5660 ; 5661 return 0; 5662 } 5663 _ACEOF 5664 rm -f conftest$ac_exeext 5665 if { (ac_try="$ac_link" 5666 case "(($ac_try" in 5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5668 *) ac_try_echo=$ac_try;; 5669 esac 5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5671 (eval "$ac_link") 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5675 { (case "(($ac_try" in 5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5677 *) ac_try_echo=$ac_try;; 5678 esac 5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5680 (eval "$ac_try") 2>&5 5681 ac_status=$? 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5683 (exit $ac_status); }; }; then 5684 ac_cv_sizeof_char=`cat conftest.val` 5685 else 5686 echo "$as_me: program exited with status $ac_status" >&5 5687 echo "$as_me: failed program was:" >&5 5688 sed 's/^/| /' conftest.$ac_ext >&5 5689 5690 ( exit $ac_status ) 5691 if test "$ac_cv_type_char" = yes; then 5692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 5693 See \`config.log' for more details." >&5 5694 echo "$as_me: error: cannot compute sizeof (char) 5695 See \`config.log' for more details." >&2;} 5696 { (exit 77); exit 77; }; } 5697 else 5698 ac_cv_sizeof_char=0 5699 fi 5700 fi 5701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5702 fi 5703 rm -f conftest.val 5704 fi 5705 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 5706 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 5707 5708 5709 5710 cat >>confdefs.h <<_ACEOF 5711 #define SIZEOF_CHAR $ac_cv_sizeof_char 5712 _ACEOF 5713 5714 5715 { echo "$as_me:$LINENO: checking for short" >&5 5716 echo $ECHO_N "checking for short... $ECHO_C" >&6; } 5717 if test "${ac_cv_type_short+set}" = set; then 5718 echo $ECHO_N "(cached) $ECHO_C" >&6 5719 else 5720 cat >conftest.$ac_ext <<_ACEOF 5721 /* confdefs.h. */ 5722 _ACEOF 5723 cat confdefs.h >>conftest.$ac_ext 5724 cat >>conftest.$ac_ext <<_ACEOF 5725 /* end confdefs.h. */ 5726 $ac_includes_default 5727 typedef short ac__type_new_; 5728 int 5729 main () 5730 { 5731 if ((ac__type_new_ *) 0) 5732 return 0; 5733 if (sizeof (ac__type_new_)) 5734 return 0; 5735 ; 5736 return 0; 5737 } 5738 _ACEOF 5739 rm -f conftest.$ac_objext 5740 if { (ac_try="$ac_compile" 5741 case "(($ac_try" in 5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5743 *) ac_try_echo=$ac_try;; 5744 esac 5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5746 (eval "$ac_compile") 2>conftest.er1 5747 ac_status=$? 5748 grep -v '^ *+' conftest.er1 >conftest.err 5749 rm -f conftest.er1 5750 cat conftest.err >&5 5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5752 (exit $ac_status); } && { 5753 test -z "$ac_c_werror_flag" || 5754 test ! -s conftest.err 5755 } && test -s conftest.$ac_objext; then 5756 ac_cv_type_short=yes 5757 else 5758 echo "$as_me: failed program was:" >&5 5759 sed 's/^/| /' conftest.$ac_ext >&5 5760 5761 ac_cv_type_short=no 5762 fi 5763 5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5765 fi 5766 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 5767 echo "${ECHO_T}$ac_cv_type_short" >&6; } 5768 5769 # The cast to long int works around a bug in the HP C Compiler 5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5772 # This bug is HP SR number 8606223364. 5773 { echo "$as_me:$LINENO: checking size of short" >&5 5774 echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 5775 if test "${ac_cv_sizeof_short+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777 else 5778 if test "$cross_compiling" = yes; then 5779 # Depending upon the size, compute the lo and hi bounds. 5780 cat >conftest.$ac_ext <<_ACEOF 5781 /* confdefs.h. */ 5782 _ACEOF 5783 cat confdefs.h >>conftest.$ac_ext 5784 cat >>conftest.$ac_ext <<_ACEOF 5785 /* end confdefs.h. */ 5786 $ac_includes_default 5787 typedef short ac__type_sizeof_; 5788 int 5789 main () 5790 { 5791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5792 test_array [0] = 0 5793 5794 ; 5795 return 0; 5796 } 5797 _ACEOF 5798 rm -f conftest.$ac_objext 5799 if { (ac_try="$ac_compile" 5800 case "(($ac_try" in 5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5802 *) ac_try_echo=$ac_try;; 5803 esac 5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5805 (eval "$ac_compile") 2>conftest.er1 5806 ac_status=$? 5807 grep -v '^ *+' conftest.er1 >conftest.err 5808 rm -f conftest.er1 5809 cat conftest.err >&5 5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5811 (exit $ac_status); } && { 5812 test -z "$ac_c_werror_flag" || 5813 test ! -s conftest.err 5814 } && test -s conftest.$ac_objext; then 5815 ac_lo=0 ac_mid=0 5816 while :; do 5817 cat >conftest.$ac_ext <<_ACEOF 5818 /* confdefs.h. */ 5819 _ACEOF 5820 cat confdefs.h >>conftest.$ac_ext 5821 cat >>conftest.$ac_ext <<_ACEOF 5822 /* end confdefs.h. */ 5823 $ac_includes_default 5824 typedef short ac__type_sizeof_; 5825 int 5826 main () 5827 { 5828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5829 test_array [0] = 0 5830 5831 ; 5832 return 0; 5833 } 5834 _ACEOF 5835 rm -f conftest.$ac_objext 5836 if { (ac_try="$ac_compile" 5837 case "(($ac_try" in 5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5839 *) ac_try_echo=$ac_try;; 5840 esac 5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5842 (eval "$ac_compile") 2>conftest.er1 5843 ac_status=$? 5844 grep -v '^ *+' conftest.er1 >conftest.err 5845 rm -f conftest.er1 5846 cat conftest.err >&5 5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5848 (exit $ac_status); } && { 5849 test -z "$ac_c_werror_flag" || 5850 test ! -s conftest.err 5851 } && test -s conftest.$ac_objext; then 5852 ac_hi=$ac_mid; break 5853 else 5854 echo "$as_me: failed program was:" >&5 5855 sed 's/^/| /' conftest.$ac_ext >&5 5856 5857 ac_lo=`expr $ac_mid + 1` 5858 if test $ac_lo -le $ac_mid; then 5859 ac_lo= ac_hi= 5860 break 5861 fi 5862 ac_mid=`expr 2 '*' $ac_mid + 1` 5863 fi 5864 5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866 done 5867 else 5868 echo "$as_me: failed program was:" >&5 5869 sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 cat >conftest.$ac_ext <<_ACEOF 5872 /* confdefs.h. */ 5873 _ACEOF 5874 cat confdefs.h >>conftest.$ac_ext 5875 cat >>conftest.$ac_ext <<_ACEOF 5876 /* end confdefs.h. */ 5877 $ac_includes_default 5878 typedef short ac__type_sizeof_; 5879 int 5880 main () 5881 { 5882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5883 test_array [0] = 0 5884 5885 ; 5886 return 0; 5887 } 5888 _ACEOF 5889 rm -f conftest.$ac_objext 5890 if { (ac_try="$ac_compile" 5891 case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894 esac 5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5896 (eval "$ac_compile") 2>conftest.er1 5897 ac_status=$? 5898 grep -v '^ *+' conftest.er1 >conftest.err 5899 rm -f conftest.er1 5900 cat conftest.err >&5 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); } && { 5903 test -z "$ac_c_werror_flag" || 5904 test ! -s conftest.err 5905 } && test -s conftest.$ac_objext; then 5906 ac_hi=-1 ac_mid=-1 5907 while :; do 5908 cat >conftest.$ac_ext <<_ACEOF 5909 /* confdefs.h. */ 5910 _ACEOF 5911 cat confdefs.h >>conftest.$ac_ext 5912 cat >>conftest.$ac_ext <<_ACEOF 5913 /* end confdefs.h. */ 5914 $ac_includes_default 5915 typedef short ac__type_sizeof_; 5916 int 5917 main () 5918 { 5919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5920 test_array [0] = 0 5921 5922 ; 5923 return 0; 5924 } 5925 _ACEOF 5926 rm -f conftest.$ac_objext 5927 if { (ac_try="$ac_compile" 5928 case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931 esac 5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_compile") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } && { 5940 test -z "$ac_c_werror_flag" || 5941 test ! -s conftest.err 5942 } && test -s conftest.$ac_objext; then 5943 ac_lo=$ac_mid; break 5944 else 5945 echo "$as_me: failed program was:" >&5 5946 sed 's/^/| /' conftest.$ac_ext >&5 5947 5948 ac_hi=`expr '(' $ac_mid ')' - 1` 5949 if test $ac_mid -le $ac_hi; then 5950 ac_lo= ac_hi= 5951 break 5952 fi 5953 ac_mid=`expr 2 '*' $ac_mid` 5954 fi 5955 5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5957 done 5958 else 5959 echo "$as_me: failed program was:" >&5 5960 sed 's/^/| /' conftest.$ac_ext >&5 5961 5962 ac_lo= ac_hi= 5963 fi 5964 5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5966 fi 5967 5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5969 # Binary search between lo and hi bounds. 5970 while test "x$ac_lo" != "x$ac_hi"; do 5971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5972 cat >conftest.$ac_ext <<_ACEOF 5973 /* confdefs.h. */ 5974 _ACEOF 5975 cat confdefs.h >>conftest.$ac_ext 5976 cat >>conftest.$ac_ext <<_ACEOF 5977 /* end confdefs.h. */ 5978 $ac_includes_default 5979 typedef short ac__type_sizeof_; 5980 int 5981 main () 5982 { 5983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5984 test_array [0] = 0 5985 5986 ; 5987 return 0; 5988 } 5989 _ACEOF 5990 rm -f conftest.$ac_objext 5991 if { (ac_try="$ac_compile" 5992 case "(($ac_try" in 5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5994 *) ac_try_echo=$ac_try;; 5995 esac 5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5997 (eval "$ac_compile") 2>conftest.er1 5998 ac_status=$? 5999 grep -v '^ *+' conftest.er1 >conftest.err 6000 rm -f conftest.er1 6001 cat conftest.err >&5 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 (exit $ac_status); } && { 6004 test -z "$ac_c_werror_flag" || 6005 test ! -s conftest.err 6006 } && test -s conftest.$ac_objext; then 6007 ac_hi=$ac_mid 6008 else 6009 echo "$as_me: failed program was:" >&5 6010 sed 's/^/| /' conftest.$ac_ext >&5 6011 6012 ac_lo=`expr '(' $ac_mid ')' + 1` 6013 fi 6014 6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6016 done 6017 case $ac_lo in 6018 ?*) ac_cv_sizeof_short=$ac_lo;; 6019 '') if test "$ac_cv_type_short" = yes; then 6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6021 See \`config.log' for more details." >&5 6022 echo "$as_me: error: cannot compute sizeof (short) 6023 See \`config.log' for more details." >&2;} 6024 { (exit 77); exit 77; }; } 6025 else 6026 ac_cv_sizeof_short=0 6027 fi ;; 6028 esac 6029 else 6030 cat >conftest.$ac_ext <<_ACEOF 6031 /* confdefs.h. */ 6032 _ACEOF 6033 cat confdefs.h >>conftest.$ac_ext 6034 cat >>conftest.$ac_ext <<_ACEOF 6035 /* end confdefs.h. */ 6036 $ac_includes_default 6037 typedef short ac__type_sizeof_; 6038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6040 #include <stdio.h> 6041 #include <stdlib.h> 6042 int 6043 main () 6044 { 6045 6046 FILE *f = fopen ("conftest.val", "w"); 6047 if (! f) 6048 return 1; 6049 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6050 { 6051 long int i = longval (); 6052 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6053 return 1; 6054 fprintf (f, "%ld\n", i); 6055 } 6056 else 6057 { 6058 unsigned long int i = ulongval (); 6059 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6060 return 1; 6061 fprintf (f, "%lu\n", i); 6062 } 6063 return ferror (f) || fclose (f) != 0; 6064 6065 ; 6066 return 0; 6067 } 6068 _ACEOF 6069 rm -f conftest$ac_exeext 6070 if { (ac_try="$ac_link" 6071 case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074 esac 6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_link") 2>&5 6077 ac_status=$? 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6080 { (case "(($ac_try" in 6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6082 *) ac_try_echo=$ac_try;; 6083 esac 6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6085 (eval "$ac_try") 2>&5 6086 ac_status=$? 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6088 (exit $ac_status); }; }; then 6089 ac_cv_sizeof_short=`cat conftest.val` 6090 else 6091 echo "$as_me: program exited with status $ac_status" >&5 6092 echo "$as_me: failed program was:" >&5 6093 sed 's/^/| /' conftest.$ac_ext >&5 6094 6095 ( exit $ac_status ) 6096 if test "$ac_cv_type_short" = yes; then 6097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6098 See \`config.log' for more details." >&5 6099 echo "$as_me: error: cannot compute sizeof (short) 6100 See \`config.log' for more details." >&2;} 6101 { (exit 77); exit 77; }; } 6102 else 6103 ac_cv_sizeof_short=0 6104 fi 6105 fi 6106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6107 fi 6108 rm -f conftest.val 6109 fi 6110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6111 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 6112 6113 6114 6115 cat >>confdefs.h <<_ACEOF 6116 #define SIZEOF_SHORT $ac_cv_sizeof_short 6117 _ACEOF 6118 6119 6120 { echo "$as_me:$LINENO: checking for int" >&5 6121 echo $ECHO_N "checking for int... $ECHO_C" >&6; } 6122 if test "${ac_cv_type_int+set}" = set; then 6123 echo $ECHO_N "(cached) $ECHO_C" >&6 6124 else 6125 cat >conftest.$ac_ext <<_ACEOF 6126 /* confdefs.h. */ 6127 _ACEOF 6128 cat confdefs.h >>conftest.$ac_ext 6129 cat >>conftest.$ac_ext <<_ACEOF 6130 /* end confdefs.h. */ 6131 $ac_includes_default 6132 typedef int ac__type_new_; 6133 int 6134 main () 6135 { 6136 if ((ac__type_new_ *) 0) 6137 return 0; 6138 if (sizeof (ac__type_new_)) 6139 return 0; 6140 ; 6141 return 0; 6142 } 6143 _ACEOF 6144 rm -f conftest.$ac_objext 6145 if { (ac_try="$ac_compile" 6146 case "(($ac_try" in 6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6148 *) ac_try_echo=$ac_try;; 6149 esac 6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6151 (eval "$ac_compile") 2>conftest.er1 6152 ac_status=$? 6153 grep -v '^ *+' conftest.er1 >conftest.err 6154 rm -f conftest.er1 6155 cat conftest.err >&5 6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); } && { 6158 test -z "$ac_c_werror_flag" || 6159 test ! -s conftest.err 6160 } && test -s conftest.$ac_objext; then 6161 ac_cv_type_int=yes 6162 else 6163 echo "$as_me: failed program was:" >&5 6164 sed 's/^/| /' conftest.$ac_ext >&5 6165 6166 ac_cv_type_int=no 6167 fi 6168 6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6170 fi 6171 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6172 echo "${ECHO_T}$ac_cv_type_int" >&6; } 6173 6174 # The cast to long int works around a bug in the HP C Compiler 6175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6177 # This bug is HP SR number 8606223364. 6178 { echo "$as_me:$LINENO: checking size of int" >&5 6179 echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 6180 if test "${ac_cv_sizeof_int+set}" = set; then 6181 echo $ECHO_N "(cached) $ECHO_C" >&6 6182 else 6183 if test "$cross_compiling" = yes; then 6184 # Depending upon the size, compute the lo and hi bounds. 6185 cat >conftest.$ac_ext <<_ACEOF 6186 /* confdefs.h. */ 6187 _ACEOF 6188 cat confdefs.h >>conftest.$ac_ext 6189 cat >>conftest.$ac_ext <<_ACEOF 6190 /* end confdefs.h. */ 6191 $ac_includes_default 6192 typedef int ac__type_sizeof_; 6193 int 6194 main () 6195 { 6196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6197 test_array [0] = 0 6198 6199 ; 6200 return 0; 6201 } 6202 _ACEOF 6203 rm -f conftest.$ac_objext 6204 if { (ac_try="$ac_compile" 6205 case "(($ac_try" in 6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6207 *) ac_try_echo=$ac_try;; 6208 esac 6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6210 (eval "$ac_compile") 2>conftest.er1 6211 ac_status=$? 6212 grep -v '^ *+' conftest.er1 >conftest.err 6213 rm -f conftest.er1 6214 cat conftest.err >&5 6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); } && { 6217 test -z "$ac_c_werror_flag" || 6218 test ! -s conftest.err 6219 } && test -s conftest.$ac_objext; then 6220 ac_lo=0 ac_mid=0 6221 while :; do 6222 cat >conftest.$ac_ext <<_ACEOF 6223 /* confdefs.h. */ 6224 _ACEOF 6225 cat confdefs.h >>conftest.$ac_ext 6226 cat >>conftest.$ac_ext <<_ACEOF 6227 /* end confdefs.h. */ 6228 $ac_includes_default 6229 typedef int ac__type_sizeof_; 6230 int 6231 main () 6232 { 6233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6234 test_array [0] = 0 6235 6236 ; 6237 return 0; 6238 } 6239 _ACEOF 6240 rm -f conftest.$ac_objext 6241 if { (ac_try="$ac_compile" 6242 case "(($ac_try" in 6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6244 *) ac_try_echo=$ac_try;; 6245 esac 6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6247 (eval "$ac_compile") 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } && { 6254 test -z "$ac_c_werror_flag" || 6255 test ! -s conftest.err 6256 } && test -s conftest.$ac_objext; then 6257 ac_hi=$ac_mid; break 6258 else 6259 echo "$as_me: failed program was:" >&5 6260 sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_lo=`expr $ac_mid + 1` 6263 if test $ac_lo -le $ac_mid; then 6264 ac_lo= ac_hi= 6265 break 6266 fi 6267 ac_mid=`expr 2 '*' $ac_mid + 1` 6268 fi 6269 6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6271 done 6272 else 6273 echo "$as_me: failed program was:" >&5 6274 sed 's/^/| /' conftest.$ac_ext >&5 6275 6276 cat >conftest.$ac_ext <<_ACEOF 6277 /* confdefs.h. */ 6278 _ACEOF 6279 cat confdefs.h >>conftest.$ac_ext 6280 cat >>conftest.$ac_ext <<_ACEOF 6281 /* end confdefs.h. */ 6282 $ac_includes_default 6283 typedef int ac__type_sizeof_; 6284 int 6285 main () 6286 { 6287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6288 test_array [0] = 0 6289 6290 ; 6291 return 0; 6292 } 6293 _ACEOF 6294 rm -f conftest.$ac_objext 6295 if { (ac_try="$ac_compile" 6296 case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299 esac 6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 ac_hi=-1 ac_mid=-1 6312 while :; do 6313 cat >conftest.$ac_ext <<_ACEOF 6314 /* confdefs.h. */ 6315 _ACEOF 6316 cat confdefs.h >>conftest.$ac_ext 6317 cat >>conftest.$ac_ext <<_ACEOF 6318 /* end confdefs.h. */ 6319 $ac_includes_default 6320 typedef int ac__type_sizeof_; 6321 int 6322 main () 6323 { 6324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6325 test_array [0] = 0 6326 6327 ; 6328 return 0; 6329 } 6330 _ACEOF 6331 rm -f conftest.$ac_objext 6332 if { (ac_try="$ac_compile" 6333 case "(($ac_try" in 6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6335 *) ac_try_echo=$ac_try;; 6336 esac 6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6338 (eval "$ac_compile") 2>conftest.er1 6339 ac_status=$? 6340 grep -v '^ *+' conftest.er1 >conftest.err 6341 rm -f conftest.er1 6342 cat conftest.err >&5 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); } && { 6345 test -z "$ac_c_werror_flag" || 6346 test ! -s conftest.err 6347 } && test -s conftest.$ac_objext; then 6348 ac_lo=$ac_mid; break 6349 else 6350 echo "$as_me: failed program was:" >&5 6351 sed 's/^/| /' conftest.$ac_ext >&5 6352 6353 ac_hi=`expr '(' $ac_mid ')' - 1` 6354 if test $ac_mid -le $ac_hi; then 6355 ac_lo= ac_hi= 6356 break 6357 fi 6358 ac_mid=`expr 2 '*' $ac_mid` 6359 fi 6360 6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6362 done 6363 else 6364 echo "$as_me: failed program was:" >&5 6365 sed 's/^/| /' conftest.$ac_ext >&5 6366 6367 ac_lo= ac_hi= 6368 fi 6369 6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6371 fi 6372 6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6374 # Binary search between lo and hi bounds. 6375 while test "x$ac_lo" != "x$ac_hi"; do 6376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6377 cat >conftest.$ac_ext <<_ACEOF 6378 /* confdefs.h. */ 6379 _ACEOF 6380 cat confdefs.h >>conftest.$ac_ext 6381 cat >>conftest.$ac_ext <<_ACEOF 6382 /* end confdefs.h. */ 6383 $ac_includes_default 6384 typedef int ac__type_sizeof_; 6385 int 6386 main () 6387 { 6388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6389 test_array [0] = 0 6390 6391 ; 6392 return 0; 6393 } 6394 _ACEOF 6395 rm -f conftest.$ac_objext 6396 if { (ac_try="$ac_compile" 6397 case "(($ac_try" in 6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6399 *) ac_try_echo=$ac_try;; 6400 esac 6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6402 (eval "$ac_compile") 2>conftest.er1 6403 ac_status=$? 6404 grep -v '^ *+' conftest.er1 >conftest.err 6405 rm -f conftest.er1 6406 cat conftest.err >&5 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); } && { 6409 test -z "$ac_c_werror_flag" || 6410 test ! -s conftest.err 6411 } && test -s conftest.$ac_objext; then 6412 ac_hi=$ac_mid 6413 else 6414 echo "$as_me: failed program was:" >&5 6415 sed 's/^/| /' conftest.$ac_ext >&5 6416 6417 ac_lo=`expr '(' $ac_mid ')' + 1` 6418 fi 6419 6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6421 done 6422 case $ac_lo in 6423 ?*) ac_cv_sizeof_int=$ac_lo;; 6424 '') if test "$ac_cv_type_int" = yes; then 6425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6426 See \`config.log' for more details." >&5 6427 echo "$as_me: error: cannot compute sizeof (int) 6428 See \`config.log' for more details." >&2;} 6429 { (exit 77); exit 77; }; } 6430 else 6431 ac_cv_sizeof_int=0 6432 fi ;; 6433 esac 6434 else 6435 cat >conftest.$ac_ext <<_ACEOF 6436 /* confdefs.h. */ 6437 _ACEOF 6438 cat confdefs.h >>conftest.$ac_ext 6439 cat >>conftest.$ac_ext <<_ACEOF 6440 /* end confdefs.h. */ 6441 $ac_includes_default 6442 typedef int ac__type_sizeof_; 6443 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6444 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6445 #include <stdio.h> 6446 #include <stdlib.h> 6447 int 6448 main () 6449 { 6450 6451 FILE *f = fopen ("conftest.val", "w"); 6452 if (! f) 6453 return 1; 6454 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6455 { 6456 long int i = longval (); 6457 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6458 return 1; 6459 fprintf (f, "%ld\n", i); 6460 } 6461 else 6462 { 6463 unsigned long int i = ulongval (); 6464 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6465 return 1; 6466 fprintf (f, "%lu\n", i); 6467 } 6468 return ferror (f) || fclose (f) != 0; 6469 6470 ; 6471 return 0; 6472 } 6473 _ACEOF 6474 rm -f conftest$ac_exeext 6475 if { (ac_try="$ac_link" 6476 case "(($ac_try" in 6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6478 *) ac_try_echo=$ac_try;; 6479 esac 6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6481 (eval "$ac_link") 2>&5 6482 ac_status=$? 6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6485 { (case "(($ac_try" in 6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6487 *) ac_try_echo=$ac_try;; 6488 esac 6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6490 (eval "$ac_try") 2>&5 6491 ac_status=$? 6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6493 (exit $ac_status); }; }; then 6494 ac_cv_sizeof_int=`cat conftest.val` 6495 else 6496 echo "$as_me: program exited with status $ac_status" >&5 6497 echo "$as_me: failed program was:" >&5 6498 sed 's/^/| /' conftest.$ac_ext >&5 6499 6500 ( exit $ac_status ) 6501 if test "$ac_cv_type_int" = yes; then 6502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6503 See \`config.log' for more details." >&5 6504 echo "$as_me: error: cannot compute sizeof (int) 6505 See \`config.log' for more details." >&2;} 6506 { (exit 77); exit 77; }; } 6507 else 6508 ac_cv_sizeof_int=0 6509 fi 6510 fi 6511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6512 fi 6513 rm -f conftest.val 6514 fi 6515 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6516 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 6517 6518 6519 6520 cat >>confdefs.h <<_ACEOF 6521 #define SIZEOF_INT $ac_cv_sizeof_int 6522 _ACEOF 6523 6524 6525 { echo "$as_me:$LINENO: checking for long" >&5 6526 echo $ECHO_N "checking for long... $ECHO_C" >&6; } 6527 if test "${ac_cv_type_long+set}" = set; then 6528 echo $ECHO_N "(cached) $ECHO_C" >&6 6529 else 6530 cat >conftest.$ac_ext <<_ACEOF 6531 /* confdefs.h. */ 6532 _ACEOF 6533 cat confdefs.h >>conftest.$ac_ext 6534 cat >>conftest.$ac_ext <<_ACEOF 6535 /* end confdefs.h. */ 6536 $ac_includes_default 6537 typedef long ac__type_new_; 6538 int 6539 main () 6540 { 6541 if ((ac__type_new_ *) 0) 6542 return 0; 6543 if (sizeof (ac__type_new_)) 6544 return 0; 6545 ; 6546 return 0; 6547 } 6548 _ACEOF 6549 rm -f conftest.$ac_objext 6550 if { (ac_try="$ac_compile" 6551 case "(($ac_try" in 6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6553 *) ac_try_echo=$ac_try;; 6554 esac 6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6556 (eval "$ac_compile") 2>conftest.er1 6557 ac_status=$? 6558 grep -v '^ *+' conftest.er1 >conftest.err 6559 rm -f conftest.er1 6560 cat conftest.err >&5 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); } && { 6563 test -z "$ac_c_werror_flag" || 6564 test ! -s conftest.err 6565 } && test -s conftest.$ac_objext; then 6566 ac_cv_type_long=yes 6567 else 6568 echo "$as_me: failed program was:" >&5 6569 sed 's/^/| /' conftest.$ac_ext >&5 6570 6571 ac_cv_type_long=no 6572 fi 6573 6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575 fi 6576 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6577 echo "${ECHO_T}$ac_cv_type_long" >&6; } 6578 6579 # The cast to long int works around a bug in the HP C Compiler 6580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6582 # This bug is HP SR number 8606223364. 6583 { echo "$as_me:$LINENO: checking size of long" >&5 6584 echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 6585 if test "${ac_cv_sizeof_long+set}" = set; then 6586 echo $ECHO_N "(cached) $ECHO_C" >&6 6587 else 6588 if test "$cross_compiling" = yes; then 6589 # Depending upon the size, compute the lo and hi bounds. 6590 cat >conftest.$ac_ext <<_ACEOF 6591 /* confdefs.h. */ 6592 _ACEOF 6593 cat confdefs.h >>conftest.$ac_ext 6594 cat >>conftest.$ac_ext <<_ACEOF 6595 /* end confdefs.h. */ 6596 $ac_includes_default 6597 typedef long ac__type_sizeof_; 6598 int 6599 main () 6600 { 6601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6602 test_array [0] = 0 6603 6604 ; 6605 return 0; 6606 } 6607 _ACEOF 6608 rm -f conftest.$ac_objext 6609 if { (ac_try="$ac_compile" 6610 case "(($ac_try" in 6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6612 *) ac_try_echo=$ac_try;; 6613 esac 6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6615 (eval "$ac_compile") 2>conftest.er1 6616 ac_status=$? 6617 grep -v '^ *+' conftest.er1 >conftest.err 6618 rm -f conftest.er1 6619 cat conftest.err >&5 6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6621 (exit $ac_status); } && { 6622 test -z "$ac_c_werror_flag" || 6623 test ! -s conftest.err 6624 } && test -s conftest.$ac_objext; then 6625 ac_lo=0 ac_mid=0 6626 while :; do 6627 cat >conftest.$ac_ext <<_ACEOF 6628 /* confdefs.h. */ 6629 _ACEOF 6630 cat confdefs.h >>conftest.$ac_ext 6631 cat >>conftest.$ac_ext <<_ACEOF 6632 /* end confdefs.h. */ 6633 $ac_includes_default 6634 typedef long ac__type_sizeof_; 6635 int 6636 main () 6637 { 6638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6639 test_array [0] = 0 6640 6641 ; 6642 return 0; 6643 } 6644 _ACEOF 6645 rm -f conftest.$ac_objext 6646 if { (ac_try="$ac_compile" 6647 case "(($ac_try" in 6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6649 *) ac_try_echo=$ac_try;; 6650 esac 6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6652 (eval "$ac_compile") 2>conftest.er1 6653 ac_status=$? 6654 grep -v '^ *+' conftest.er1 >conftest.err 6655 rm -f conftest.er1 6656 cat conftest.err >&5 6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6658 (exit $ac_status); } && { 6659 test -z "$ac_c_werror_flag" || 6660 test ! -s conftest.err 6661 } && test -s conftest.$ac_objext; then 6662 ac_hi=$ac_mid; break 6663 else 6664 echo "$as_me: failed program was:" >&5 6665 sed 's/^/| /' conftest.$ac_ext >&5 6666 6667 ac_lo=`expr $ac_mid + 1` 6668 if test $ac_lo -le $ac_mid; then 6669 ac_lo= ac_hi= 6670 break 6671 fi 6672 ac_mid=`expr 2 '*' $ac_mid + 1` 6673 fi 6674 6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6676 done 6677 else 6678 echo "$as_me: failed program was:" >&5 6679 sed 's/^/| /' conftest.$ac_ext >&5 6680 6681 cat >conftest.$ac_ext <<_ACEOF 6682 /* confdefs.h. */ 6683 _ACEOF 6684 cat confdefs.h >>conftest.$ac_ext 6685 cat >>conftest.$ac_ext <<_ACEOF 6686 /* end confdefs.h. */ 6687 $ac_includes_default 6688 typedef long ac__type_sizeof_; 6689 int 6690 main () 6691 { 6692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6693 test_array [0] = 0 6694 6695 ; 6696 return 0; 6697 } 6698 _ACEOF 6699 rm -f conftest.$ac_objext 6700 if { (ac_try="$ac_compile" 6701 case "(($ac_try" in 6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6703 *) ac_try_echo=$ac_try;; 6704 esac 6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6706 (eval "$ac_compile") 2>conftest.er1 6707 ac_status=$? 6708 grep -v '^ *+' conftest.er1 >conftest.err 6709 rm -f conftest.er1 6710 cat conftest.err >&5 6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6712 (exit $ac_status); } && { 6713 test -z "$ac_c_werror_flag" || 6714 test ! -s conftest.err 6715 } && test -s conftest.$ac_objext; then 6716 ac_hi=-1 ac_mid=-1 6717 while :; do 6718 cat >conftest.$ac_ext <<_ACEOF 6719 /* confdefs.h. */ 6720 _ACEOF 6721 cat confdefs.h >>conftest.$ac_ext 6722 cat >>conftest.$ac_ext <<_ACEOF 6723 /* end confdefs.h. */ 6724 $ac_includes_default 6725 typedef long ac__type_sizeof_; 6726 int 6727 main () 6728 { 6729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6730 test_array [0] = 0 6731 6732 ; 6733 return 0; 6734 } 6735 _ACEOF 6736 rm -f conftest.$ac_objext 6737 if { (ac_try="$ac_compile" 6738 case "(($ac_try" in 6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6740 *) ac_try_echo=$ac_try;; 6741 esac 6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6743 (eval "$ac_compile") 2>conftest.er1 6744 ac_status=$? 6745 grep -v '^ *+' conftest.er1 >conftest.err 6746 rm -f conftest.er1 6747 cat conftest.err >&5 6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); } && { 6750 test -z "$ac_c_werror_flag" || 6751 test ! -s conftest.err 6752 } && test -s conftest.$ac_objext; then 6753 ac_lo=$ac_mid; break 6754 else 6755 echo "$as_me: failed program was:" >&5 6756 sed 's/^/| /' conftest.$ac_ext >&5 6757 6758 ac_hi=`expr '(' $ac_mid ')' - 1` 6759 if test $ac_mid -le $ac_hi; then 6760 ac_lo= ac_hi= 6761 break 6762 fi 6763 ac_mid=`expr 2 '*' $ac_mid` 6764 fi 6765 6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6767 done 6768 else 6769 echo "$as_me: failed program was:" >&5 6770 sed 's/^/| /' conftest.$ac_ext >&5 6771 6772 ac_lo= ac_hi= 6773 fi 6774 6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776 fi 6777 6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779 # Binary search between lo and hi bounds. 6780 while test "x$ac_lo" != "x$ac_hi"; do 6781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6782 cat >conftest.$ac_ext <<_ACEOF 6783 /* confdefs.h. */ 6784 _ACEOF 6785 cat confdefs.h >>conftest.$ac_ext 6786 cat >>conftest.$ac_ext <<_ACEOF 6787 /* end confdefs.h. */ 6788 $ac_includes_default 6789 typedef long ac__type_sizeof_; 6790 int 6791 main () 6792 { 6793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6794 test_array [0] = 0 6795 6796 ; 6797 return 0; 6798 } 6799 _ACEOF 6800 rm -f conftest.$ac_objext 6801 if { (ac_try="$ac_compile" 6802 case "(($ac_try" in 6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6804 *) ac_try_echo=$ac_try;; 6805 esac 6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6807 (eval "$ac_compile") 2>conftest.er1 6808 ac_status=$? 6809 grep -v '^ *+' conftest.er1 >conftest.err 6810 rm -f conftest.er1 6811 cat conftest.err >&5 6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6813 (exit $ac_status); } && { 6814 test -z "$ac_c_werror_flag" || 6815 test ! -s conftest.err 6816 } && test -s conftest.$ac_objext; then 6817 ac_hi=$ac_mid 6818 else 6819 echo "$as_me: failed program was:" >&5 6820 sed 's/^/| /' conftest.$ac_ext >&5 6821 6822 ac_lo=`expr '(' $ac_mid ')' + 1` 6823 fi 6824 6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6826 done 6827 case $ac_lo in 6828 ?*) ac_cv_sizeof_long=$ac_lo;; 6829 '') if test "$ac_cv_type_long" = yes; then 6830 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6831 See \`config.log' for more details." >&5 6832 echo "$as_me: error: cannot compute sizeof (long) 6833 See \`config.log' for more details." >&2;} 6834 { (exit 77); exit 77; }; } 6835 else 6836 ac_cv_sizeof_long=0 6837 fi ;; 6838 esac 6839 else 6840 cat >conftest.$ac_ext <<_ACEOF 6841 /* confdefs.h. */ 6842 _ACEOF 6843 cat confdefs.h >>conftest.$ac_ext 6844 cat >>conftest.$ac_ext <<_ACEOF 6845 /* end confdefs.h. */ 6846 $ac_includes_default 6847 typedef long ac__type_sizeof_; 6848 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6849 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6850 #include <stdio.h> 6851 #include <stdlib.h> 6852 int 6853 main () 6854 { 6855 6856 FILE *f = fopen ("conftest.val", "w"); 6857 if (! f) 6858 return 1; 6859 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6860 { 6861 long int i = longval (); 6862 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6863 return 1; 6864 fprintf (f, "%ld\n", i); 6865 } 6866 else 6867 { 6868 unsigned long int i = ulongval (); 6869 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6870 return 1; 6871 fprintf (f, "%lu\n", i); 6872 } 6873 return ferror (f) || fclose (f) != 0; 6874 6875 ; 6876 return 0; 6877 } 6878 _ACEOF 6879 rm -f conftest$ac_exeext 6880 if { (ac_try="$ac_link" 6881 case "(($ac_try" in 6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6883 *) ac_try_echo=$ac_try;; 6884 esac 6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6886 (eval "$ac_link") 2>&5 6887 ac_status=$? 6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6890 { (case "(($ac_try" in 6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6892 *) ac_try_echo=$ac_try;; 6893 esac 6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6895 (eval "$ac_try") 2>&5 6896 ac_status=$? 6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6898 (exit $ac_status); }; }; then 6899 ac_cv_sizeof_long=`cat conftest.val` 6900 else 6901 echo "$as_me: program exited with status $ac_status" >&5 6902 echo "$as_me: failed program was:" >&5 6903 sed 's/^/| /' conftest.$ac_ext >&5 6904 6905 ( exit $ac_status ) 6906 if test "$ac_cv_type_long" = yes; then 6907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6908 See \`config.log' for more details." >&5 6909 echo "$as_me: error: cannot compute sizeof (long) 6910 See \`config.log' for more details." >&2;} 6911 { (exit 77); exit 77; }; } 6912 else 6913 ac_cv_sizeof_long=0 6914 fi 6915 fi 6916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6917 fi 6918 rm -f conftest.val 6919 fi 6920 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6921 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 6922 6923 6924 6925 cat >>confdefs.h <<_ACEOF 6926 #define SIZEOF_LONG $ac_cv_sizeof_long 6927 _ACEOF 6928 6929 6930 { echo "$as_me:$LINENO: checking for long long" >&5 6931 echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 6932 if test "${ac_cv_type_long_long+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934 else 6935 cat >conftest.$ac_ext <<_ACEOF 6936 /* confdefs.h. */ 6937 _ACEOF 6938 cat confdefs.h >>conftest.$ac_ext 6939 cat >>conftest.$ac_ext <<_ACEOF 6940 /* end confdefs.h. */ 6941 $ac_includes_default 6942 typedef long long ac__type_new_; 6943 int 6944 main () 6945 { 6946 if ((ac__type_new_ *) 0) 6947 return 0; 6948 if (sizeof (ac__type_new_)) 6949 return 0; 6950 ; 6951 return 0; 6952 } 6953 _ACEOF 6954 rm -f conftest.$ac_objext 6955 if { (ac_try="$ac_compile" 6956 case "(($ac_try" in 6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6958 *) ac_try_echo=$ac_try;; 6959 esac 6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6961 (eval "$ac_compile") 2>conftest.er1 6962 ac_status=$? 6963 grep -v '^ *+' conftest.er1 >conftest.err 6964 rm -f conftest.er1 6965 cat conftest.err >&5 6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6967 (exit $ac_status); } && { 6968 test -z "$ac_c_werror_flag" || 6969 test ! -s conftest.err 6970 } && test -s conftest.$ac_objext; then 6971 ac_cv_type_long_long=yes 6972 else 6973 echo "$as_me: failed program was:" >&5 6974 sed 's/^/| /' conftest.$ac_ext >&5 6975 6976 ac_cv_type_long_long=no 6977 fi 6978 6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6980 fi 6981 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 6982 echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 6983 6984 # The cast to long int works around a bug in the HP C Compiler 6985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6987 # This bug is HP SR number 8606223364. 6988 { echo "$as_me:$LINENO: checking size of long long" >&5 6989 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 6990 if test "${ac_cv_sizeof_long_long+set}" = set; then 6991 echo $ECHO_N "(cached) $ECHO_C" >&6 6992 else 6993 if test "$cross_compiling" = yes; then 6994 # Depending upon the size, compute the lo and hi bounds. 6995 cat >conftest.$ac_ext <<_ACEOF 6996 /* confdefs.h. */ 6997 _ACEOF 6998 cat confdefs.h >>conftest.$ac_ext 6999 cat >>conftest.$ac_ext <<_ACEOF 7000 /* end confdefs.h. */ 7001 $ac_includes_default 7002 typedef long long ac__type_sizeof_; 7003 int 7004 main () 7005 { 7006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7007 test_array [0] = 0 7008 7009 ; 7010 return 0; 7011 } 7012 _ACEOF 7013 rm -f conftest.$ac_objext 7014 if { (ac_try="$ac_compile" 7015 case "(($ac_try" in 7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7017 *) ac_try_echo=$ac_try;; 7018 esac 7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7020 (eval "$ac_compile") 2>conftest.er1 7021 ac_status=$? 7022 grep -v '^ *+' conftest.er1 >conftest.err 7023 rm -f conftest.er1 7024 cat conftest.err >&5 7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7026 (exit $ac_status); } && { 7027 test -z "$ac_c_werror_flag" || 7028 test ! -s conftest.err 7029 } && test -s conftest.$ac_objext; then 7030 ac_lo=0 ac_mid=0 7031 while :; do 7032 cat >conftest.$ac_ext <<_ACEOF 7033 /* confdefs.h. */ 7034 _ACEOF 7035 cat confdefs.h >>conftest.$ac_ext 7036 cat >>conftest.$ac_ext <<_ACEOF 7037 /* end confdefs.h. */ 7038 $ac_includes_default 7039 typedef long long ac__type_sizeof_; 7040 int 7041 main () 7042 { 7043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7044 test_array [0] = 0 7045 7046 ; 7047 return 0; 7048 } 7049 _ACEOF 7050 rm -f conftest.$ac_objext 7051 if { (ac_try="$ac_compile" 7052 case "(($ac_try" in 7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7054 *) ac_try_echo=$ac_try;; 7055 esac 7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7057 (eval "$ac_compile") 2>conftest.er1 7058 ac_status=$? 7059 grep -v '^ *+' conftest.er1 >conftest.err 7060 rm -f conftest.er1 7061 cat conftest.err >&5 7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); } && { 7064 test -z "$ac_c_werror_flag" || 7065 test ! -s conftest.err 7066 } && test -s conftest.$ac_objext; then 7067 ac_hi=$ac_mid; break 7068 else 7069 echo "$as_me: failed program was:" >&5 7070 sed 's/^/| /' conftest.$ac_ext >&5 7071 7072 ac_lo=`expr $ac_mid + 1` 7073 if test $ac_lo -le $ac_mid; then 7074 ac_lo= ac_hi= 7075 break 7076 fi 7077 ac_mid=`expr 2 '*' $ac_mid + 1` 7078 fi 7079 7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7081 done 7082 else 7083 echo "$as_me: failed program was:" >&5 7084 sed 's/^/| /' conftest.$ac_ext >&5 7085 7086 cat >conftest.$ac_ext <<_ACEOF 7087 /* confdefs.h. */ 7088 _ACEOF 7089 cat confdefs.h >>conftest.$ac_ext 7090 cat >>conftest.$ac_ext <<_ACEOF 7091 /* end confdefs.h. */ 7092 $ac_includes_default 7093 typedef long long ac__type_sizeof_; 7094 int 7095 main () 7096 { 7097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7098 test_array [0] = 0 7099 7100 ; 7101 return 0; 7102 } 7103 _ACEOF 7104 rm -f conftest.$ac_objext 7105 if { (ac_try="$ac_compile" 7106 case "(($ac_try" in 7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7108 *) ac_try_echo=$ac_try;; 7109 esac 7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7111 (eval "$ac_compile") 2>conftest.er1 7112 ac_status=$? 7113 grep -v '^ *+' conftest.er1 >conftest.err 7114 rm -f conftest.er1 7115 cat conftest.err >&5 7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7117 (exit $ac_status); } && { 7118 test -z "$ac_c_werror_flag" || 7119 test ! -s conftest.err 7120 } && test -s conftest.$ac_objext; then 7121 ac_hi=-1 ac_mid=-1 7122 while :; do 7123 cat >conftest.$ac_ext <<_ACEOF 7124 /* confdefs.h. */ 7125 _ACEOF 7126 cat confdefs.h >>conftest.$ac_ext 7127 cat >>conftest.$ac_ext <<_ACEOF 7128 /* end confdefs.h. */ 7129 $ac_includes_default 7130 typedef long long ac__type_sizeof_; 7131 int 7132 main () 7133 { 7134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7135 test_array [0] = 0 7136 7137 ; 7138 return 0; 7139 } 7140 _ACEOF 7141 rm -f conftest.$ac_objext 7142 if { (ac_try="$ac_compile" 7143 case "(($ac_try" in 7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7145 *) ac_try_echo=$ac_try;; 7146 esac 7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7148 (eval "$ac_compile") 2>conftest.er1 7149 ac_status=$? 7150 grep -v '^ *+' conftest.er1 >conftest.err 7151 rm -f conftest.er1 7152 cat conftest.err >&5 7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7154 (exit $ac_status); } && { 7155 test -z "$ac_c_werror_flag" || 7156 test ! -s conftest.err 7157 } && test -s conftest.$ac_objext; then 7158 ac_lo=$ac_mid; break 7159 else 7160 echo "$as_me: failed program was:" >&5 7161 sed 's/^/| /' conftest.$ac_ext >&5 7162 7163 ac_hi=`expr '(' $ac_mid ')' - 1` 7164 if test $ac_mid -le $ac_hi; then 7165 ac_lo= ac_hi= 7166 break 7167 fi 7168 ac_mid=`expr 2 '*' $ac_mid` 7169 fi 7170 7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7172 done 7173 else 7174 echo "$as_me: failed program was:" >&5 7175 sed 's/^/| /' conftest.$ac_ext >&5 7176 7177 ac_lo= ac_hi= 7178 fi 7179 7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7181 fi 7182 7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7184 # Binary search between lo and hi bounds. 7185 while test "x$ac_lo" != "x$ac_hi"; do 7186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7187 cat >conftest.$ac_ext <<_ACEOF 7188 /* confdefs.h. */ 7189 _ACEOF 7190 cat confdefs.h >>conftest.$ac_ext 7191 cat >>conftest.$ac_ext <<_ACEOF 7192 /* end confdefs.h. */ 7193 $ac_includes_default 7194 typedef long long ac__type_sizeof_; 7195 int 7196 main () 7197 { 7198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7199 test_array [0] = 0 7200 7201 ; 7202 return 0; 7203 } 7204 _ACEOF 7205 rm -f conftest.$ac_objext 7206 if { (ac_try="$ac_compile" 7207 case "(($ac_try" in 7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7209 *) ac_try_echo=$ac_try;; 7210 esac 7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7212 (eval "$ac_compile") 2>conftest.er1 7213 ac_status=$? 7214 grep -v '^ *+' conftest.er1 >conftest.err 7215 rm -f conftest.er1 7216 cat conftest.err >&5 7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7218 (exit $ac_status); } && { 7219 test -z "$ac_c_werror_flag" || 7220 test ! -s conftest.err 7221 } && test -s conftest.$ac_objext; then 7222 ac_hi=$ac_mid 7223 else 7224 echo "$as_me: failed program was:" >&5 7225 sed 's/^/| /' conftest.$ac_ext >&5 7226 7227 ac_lo=`expr '(' $ac_mid ')' + 1` 7228 fi 7229 7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7231 done 7232 case $ac_lo in 7233 ?*) ac_cv_sizeof_long_long=$ac_lo;; 7234 '') if test "$ac_cv_type_long_long" = yes; then 7235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 7236 See \`config.log' for more details." >&5 7237 echo "$as_me: error: cannot compute sizeof (long long) 7238 See \`config.log' for more details." >&2;} 7239 { (exit 77); exit 77; }; } 7240 else 7241 ac_cv_sizeof_long_long=0 7242 fi ;; 7243 esac 7244 else 7245 cat >conftest.$ac_ext <<_ACEOF 7246 /* confdefs.h. */ 7247 _ACEOF 7248 cat confdefs.h >>conftest.$ac_ext 7249 cat >>conftest.$ac_ext <<_ACEOF 7250 /* end confdefs.h. */ 7251 $ac_includes_default 7252 typedef long long ac__type_sizeof_; 7253 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7254 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7255 #include <stdio.h> 7256 #include <stdlib.h> 7257 int 7258 main () 7259 { 7260 7261 FILE *f = fopen ("conftest.val", "w"); 7262 if (! f) 7263 return 1; 7264 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7265 { 7266 long int i = longval (); 7267 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7268 return 1; 7269 fprintf (f, "%ld\n", i); 7270 } 7271 else 7272 { 7273 unsigned long int i = ulongval (); 7274 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7275 return 1; 7276 fprintf (f, "%lu\n", i); 7277 } 7278 return ferror (f) || fclose (f) != 0; 7279 7280 ; 7281 return 0; 7282 } 7283 _ACEOF 7284 rm -f conftest$ac_exeext 7285 if { (ac_try="$ac_link" 7286 case "(($ac_try" in 7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7288 *) ac_try_echo=$ac_try;; 7289 esac 7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7291 (eval "$ac_link") 2>&5 7292 ac_status=$? 7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7295 { (case "(($ac_try" in 7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7297 *) ac_try_echo=$ac_try;; 7298 esac 7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7300 (eval "$ac_try") 2>&5 7301 ac_status=$? 7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7303 (exit $ac_status); }; }; then 7304 ac_cv_sizeof_long_long=`cat conftest.val` 7305 else 7306 echo "$as_me: program exited with status $ac_status" >&5 7307 echo "$as_me: failed program was:" >&5 7308 sed 's/^/| /' conftest.$ac_ext >&5 7309 7310 ( exit $ac_status ) 7311 if test "$ac_cv_type_long_long" = yes; then 7312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 7313 See \`config.log' for more details." >&5 7314 echo "$as_me: error: cannot compute sizeof (long long) 7315 See \`config.log' for more details." >&2;} 7316 { (exit 77); exit 77; }; } 7317 else 7318 ac_cv_sizeof_long_long=0 7319 fi 7320 fi 7321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7322 fi 7323 rm -f conftest.val 7324 fi 7325 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 7326 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 7327 7328 7329 7330 cat >>confdefs.h <<_ACEOF 7331 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7332 _ACEOF 7333 7334 7335 7336 7337 7338 { echo "$as_me:$LINENO: checking for addrinfo" >&5 7339 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } 7340 if test "${ac_cv_addrinfo+set}" = set; then 7341 echo $ECHO_N "(cached) $ECHO_C" >&6 7342 else 7343 cat >conftest.$ac_ext <<_ACEOF 7344 /* confdefs.h. */ 7345 _ACEOF 7346 cat confdefs.h >>conftest.$ac_ext 7347 cat >>conftest.$ac_ext <<_ACEOF 7348 /* end confdefs.h. */ 7349 7350 # include <netdb.h> 7351 int 7352 main () 7353 { 7354 struct addrinfo a 7355 ; 7356 return 0; 7357 } 7358 _ACEOF 7359 rm -f conftest.$ac_objext 7360 if { (ac_try="$ac_compile" 7361 case "(($ac_try" in 7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7363 *) ac_try_echo=$ac_try;; 7364 esac 7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7366 (eval "$ac_compile") 2>conftest.er1 7367 ac_status=$? 7368 grep -v '^ *+' conftest.er1 >conftest.err 7369 rm -f conftest.er1 7370 cat conftest.err >&5 7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7372 (exit $ac_status); } && { 7373 test -z "$ac_c_werror_flag" || 7374 test ! -s conftest.err 7375 } && test -s conftest.$ac_objext; then 7376 ac_cv_addrinfo=yes 7377 else 7378 echo "$as_me: failed program was:" >&5 7379 sed 's/^/| /' conftest.$ac_ext >&5 7380 7381 ac_cv_addrinfo=no 7382 fi 7383 7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7385 fi 7386 7387 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 7388 echo "${ECHO_T}$ac_cv_addrinfo" >&6; } 7389 if test $ac_cv_addrinfo = yes; then 7390 cat >>confdefs.h <<\_ACEOF 7391 #define HAVE_ADDRINFO 1 7392 _ACEOF 7393 7394 else 7395 cat >>confdefs.h <<\_ACEOF 7396 #define NEED_ADDRINFO_H 1 7397 _ACEOF 7398 7399 fi 7400 7401 if test "$ac_cv_addrinfo" = no; then 7402 missing_includes=yes 7403 fi 7404 7405 7406 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 7407 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; } 7408 if test "${ac_cv_maxserv+set}" = set; then 7409 echo $ECHO_N "(cached) $ECHO_C" >&6 7410 else 7411 cat >conftest.$ac_ext <<_ACEOF 7412 /* confdefs.h. */ 7413 _ACEOF 7414 cat confdefs.h >>conftest.$ac_ext 7415 cat >>conftest.$ac_ext <<_ACEOF 7416 /* end confdefs.h. */ 7417 #include <netdb.h> 7418 #ifdef NI_MAXSERV 7419 yes 7420 #endif 7421 _ACEOF 7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7423 $EGREP "yes" >/dev/null 2>&1; then 7424 ac_cv_maxserv=yes 7425 else 7426 ac_cv_maxserv=no 7427 fi 7428 rm -f conftest* 7429 7430 fi 7431 7432 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 7433 echo "${ECHO_T}$ac_cv_maxserv" >&6; } 7434 if test $ac_cv_maxserv != yes; then 7435 cat >>confdefs.h <<\_ACEOF 7436 #define NEED_ADDRINFO_H 1 7437 _ACEOF 7438 7439 fi 7440 7441 if test "$ac_cv_maxserv" = no; then 7442 missing_includes=yes 7443 fi 7444 7445 7446 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 7447 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; } 7448 if test "${ac_cv_namereqd+set}" = set; then 7449 echo $ECHO_N "(cached) $ECHO_C" >&6 7450 else 7451 cat >conftest.$ac_ext <<_ACEOF 7452 /* confdefs.h. */ 7453 _ACEOF 7454 cat confdefs.h >>conftest.$ac_ext 7455 cat >>conftest.$ac_ext <<_ACEOF 7456 /* end confdefs.h. */ 7457 #include <netdb.h> 7458 #ifdef NI_NOFQDN 7459 yes 7460 #endif 7461 _ACEOF 7462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7463 $EGREP "yes" >/dev/null 2>&1; then 7464 ac_cv_namereqd=yes 7465 else 7466 ac_cv_namereqd=no 7467 fi 7468 rm -f conftest* 7469 7470 fi 7471 7472 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 7473 echo "${ECHO_T}$ac_cv_namereqd" >&6; } 7474 if test $ac_cv_namereqd != yes; then 7475 cat >>confdefs.h <<\_ACEOF 7476 #define NEED_ADDRINFO_H 1 7477 _ACEOF 7478 7479 fi 7480 7481 if test "$ac_cv_namereqd" = no; then 7482 missing_includes=yes 7483 fi 7484 7485 7486 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 7487 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } 7488 if test "${ac_cv_sa_storage+set}" = set; then 7489 echo $ECHO_N "(cached) $ECHO_C" >&6 7490 else 7491 cat >conftest.$ac_ext <<_ACEOF 7492 /* confdefs.h. */ 7493 _ACEOF 7494 cat confdefs.h >>conftest.$ac_ext 7495 cat >>conftest.$ac_ext <<_ACEOF 7496 /* end confdefs.h. */ 7497 7498 # include <sys/types.h> 7499 # include <sys/socket.h> 7500 int 7501 main () 7502 { 7503 struct sockaddr_storage s 7504 ; 7505 return 0; 7506 } 7507 _ACEOF 7508 rm -f conftest.$ac_objext 7509 if { (ac_try="$ac_compile" 7510 case "(($ac_try" in 7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7512 *) ac_try_echo=$ac_try;; 7513 esac 7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7515 (eval "$ac_compile") 2>conftest.er1 7516 ac_status=$? 7517 grep -v '^ *+' conftest.er1 >conftest.err 7518 rm -f conftest.er1 7519 cat conftest.err >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7521 (exit $ac_status); } && { 7522 test -z "$ac_c_werror_flag" || 7523 test ! -s conftest.err 7524 } && test -s conftest.$ac_objext; then 7525 ac_cv_sa_storage=yes 7526 else 7527 echo "$as_me: failed program was:" >&5 7528 sed 's/^/| /' conftest.$ac_ext >&5 7529 7530 ac_cv_sa_storage=no 7531 fi 7532 7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7534 fi 7535 7536 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 7537 echo "${ECHO_T}$ac_cv_sa_storage" >&6; } 7538 if test $ac_cv_sa_storage = yes; then 7539 cat >>confdefs.h <<\_ACEOF 7540 #define HAVE_SOCKADDR_STORAGE 1 7541 _ACEOF 7542 7543 fi 7544 7545 if test "$ac_cv_sa_storage" = no; then 7546 missing_includes=yes 7547 fi 7548 7549 7550 ac_cv_addrsz=yes 7551 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5 7552 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; } 7553 if test "${ac_cv_inaddrsz+set}" = set; then 7554 echo $ECHO_N "(cached) $ECHO_C" >&6 7555 else 7556 cat >conftest.$ac_ext <<_ACEOF 7557 /* confdefs.h. */ 7558 _ACEOF 7559 cat confdefs.h >>conftest.$ac_ext 7560 cat >>conftest.$ac_ext <<_ACEOF 7561 /* end confdefs.h. */ 7562 7563 # include <arpa/nameser.h> 7564 int 7565 main () 7566 { 7567 int a = INADDRSZ 7568 ; 7569 return 0; 7570 } 7571 _ACEOF 7572 rm -f conftest.$ac_objext 7573 if { (ac_try="$ac_compile" 7574 case "(($ac_try" in 7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7576 *) ac_try_echo=$ac_try;; 7577 esac 7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7579 (eval "$ac_compile") 2>conftest.er1 7580 ac_status=$? 7581 grep -v '^ *+' conftest.er1 >conftest.err 7582 rm -f conftest.er1 7583 cat conftest.err >&5 7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7585 (exit $ac_status); } && { 7586 test -z "$ac_c_werror_flag" || 7587 test ! -s conftest.err 7588 } && test -s conftest.$ac_objext; then 7589 ac_cv_inaddrsz=yes 7590 else 7591 echo "$as_me: failed program was:" >&5 7592 sed 's/^/| /' conftest.$ac_ext >&5 7593 7594 ac_cv_inaddrsz=no 7595 fi 7596 7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598 fi 7599 7600 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 7601 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; } 7602 if test $ac_cv_inaddrsz = yes; then 7603 cat >>confdefs.h <<\_ACEOF 7604 #define HAVE_INADDRSZ 1 7605 _ACEOF 7606 7607 else 7608 ac_cv_addrsz=no 7609 fi 7610 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 7611 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; } 7612 if test "${ac_cv_in6addrsz+set}" = set; then 7613 echo $ECHO_N "(cached) $ECHO_C" >&6 7614 else 7615 cat >conftest.$ac_ext <<_ACEOF 7616 /* confdefs.h. */ 7617 _ACEOF 7618 cat confdefs.h >>conftest.$ac_ext 7619 cat >>conftest.$ac_ext <<_ACEOF 7620 /* end confdefs.h. */ 7621 7622 # include <arpa/nameser.h> 7623 int 7624 main () 7625 { 7626 int a = IN6ADDRSZ 7627 ; 7628 return 0; 7629 } 7630 _ACEOF 7631 rm -f conftest.$ac_objext 7632 if { (ac_try="$ac_compile" 7633 case "(($ac_try" in 7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7635 *) ac_try_echo=$ac_try;; 7636 esac 7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7638 (eval "$ac_compile") 2>conftest.er1 7639 ac_status=$? 7640 grep -v '^ *+' conftest.er1 >conftest.err 7641 rm -f conftest.er1 7642 cat conftest.err >&5 7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7644 (exit $ac_status); } && { 7645 test -z "$ac_c_werror_flag" || 7646 test ! -s conftest.err 7647 } && test -s conftest.$ac_objext; then 7648 ac_cv_in6addrsz=yes 7649 else 7650 echo "$as_me: failed program was:" >&5 7651 sed 's/^/| /' conftest.$ac_ext >&5 7652 7653 ac_cv_in6addrsz=no 7654 fi 7655 7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7657 fi 7658 7659 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 7660 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; } 7661 if test $ac_cv_in6addrsz = yes; then 7662 cat >>confdefs.h <<\_ACEOF 7663 #define HAVE_IN6ADDRSZ 1 7664 _ACEOF 7665 7666 else 7667 ac_cv_addrsz=no 7668 fi 7669 7670 if test "$ac_cv_addrsz" = no; then 7671 missing_includes=yes 7672 fi 7673 7674 7675 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 7676 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; } 7677 if test "${ac_cv_res_inet6+set}" = set; then 7678 echo $ECHO_N "(cached) $ECHO_C" >&6 7679 else 7680 cat >conftest.$ac_ext <<_ACEOF 7681 /* confdefs.h. */ 7682 _ACEOF 7683 cat confdefs.h >>conftest.$ac_ext 7684 cat >>conftest.$ac_ext <<_ACEOF 7685 /* end confdefs.h. */ 7686 7687 # include <sys/types.h> 7688 # include <netinet/in.h> 7689 # include <resolv.h> 7690 int 7691 main () 7692 { 7693 int a = RES_USE_INET6 7694 ; 7695 return 0; 7696 } 7697 _ACEOF 7698 rm -f conftest.$ac_objext 7699 if { (ac_try="$ac_compile" 7700 case "(($ac_try" in 7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7702 *) ac_try_echo=$ac_try;; 7703 esac 7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7705 (eval "$ac_compile") 2>conftest.er1 7706 ac_status=$? 7707 grep -v '^ *+' conftest.er1 >conftest.err 7708 rm -f conftest.er1 7709 cat conftest.err >&5 7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7711 (exit $ac_status); } && { 7712 test -z "$ac_c_werror_flag" || 7713 test ! -s conftest.err 7714 } && test -s conftest.$ac_objext; then 7715 ac_cv_res_inet6=yes 7716 else 7717 echo "$as_me: failed program was:" >&5 7718 sed 's/^/| /' conftest.$ac_ext >&5 7719 7720 ac_cv_res_inet6=no 7721 fi 7722 7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7724 fi 7725 7726 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 7727 echo "${ECHO_T}$ac_cv_res_inet6" >&6; } 7728 if test $ac_cv_res_inet6 = yes; then 7729 cat >>confdefs.h <<\_ACEOF 7730 #define HAVE_RES_USE_INET6 1 7731 _ACEOF 7732 7733 fi 7734 7735 if test "$ac_cv_res_inet6" = no; then 7736 missing_includes=yes 7737 fi 7738 7739 7740 { echo "$as_me:$LINENO: checking for res_state_ext" >&5 7741 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; } 7742 if test "${ac_cv_res_state_ext+set}" = set; then 7743 echo $ECHO_N "(cached) $ECHO_C" >&6 7744 else 7745 cat >conftest.$ac_ext <<_ACEOF 7746 /* confdefs.h. */ 7747 _ACEOF 7748 cat confdefs.h >>conftest.$ac_ext 7749 cat >>conftest.$ac_ext <<_ACEOF 7750 /* end confdefs.h. */ 7751 7752 # include <sys/types.h> 7753 # include <netinet/in.h> 7754 # include <netinet6/in6.h> 7755 # include <resolv.h> 7756 int 7757 main () 7758 { 7759 struct __res_state_ext e 7760 ; 7761 return 0; 7762 } 7763 _ACEOF 7764 rm -f conftest.$ac_objext 7765 if { (ac_try="$ac_compile" 7766 case "(($ac_try" in 7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7768 *) ac_try_echo=$ac_try;; 7769 esac 7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7771 (eval "$ac_compile") 2>conftest.er1 7772 ac_status=$? 7773 grep -v '^ *+' conftest.er1 >conftest.err 7774 rm -f conftest.er1 7775 cat conftest.err >&5 7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7777 (exit $ac_status); } && { 7778 test -z "$ac_c_werror_flag" || 7779 test ! -s conftest.err 7780 } && test -s conftest.$ac_objext; then 7781 ac_cv_res_state_ext=yes 7782 else 7783 echo "$as_me: failed program was:" >&5 7784 sed 's/^/| /' conftest.$ac_ext >&5 7785 7786 ac_cv_res_state_ext=no 7787 fi 7788 7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7790 fi 7791 7792 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 7793 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; } 7794 if test $ac_cv_res_state_ext = yes; then 7795 cat >>confdefs.h <<\_ACEOF 7796 #define HAVE_RES_STATE_EXT 1 7797 _ACEOF 7798 7799 fi 7800 7801 if test "$ac_cv_res_state_ext" = no; then 7802 missing_includes=yes 7803 fi 7804 7805 7806 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5 7807 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; } 7808 if test "${ac_cv_res_state+set}" = set; then 7809 echo $ECHO_N "(cached) $ECHO_C" >&6 7810 else 7811 cat >conftest.$ac_ext <<_ACEOF 7812 /* confdefs.h. */ 7813 _ACEOF 7814 cat confdefs.h >>conftest.$ac_ext 7815 cat >>conftest.$ac_ext <<_ACEOF 7816 /* end confdefs.h. */ 7817 7818 # include <sys/types.h> 7819 # include <netinet/in.h> 7820 # include <netinet6/in6.h> 7821 # include <resolv.h> 7822 int 7823 main () 7824 { 7825 struct __res_state e; e.nsort = 0 7826 ; 7827 return 0; 7828 } 7829 _ACEOF 7830 rm -f conftest.$ac_objext 7831 if { (ac_try="$ac_compile" 7832 case "(($ac_try" in 7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7834 *) ac_try_echo=$ac_try;; 7835 esac 7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7837 (eval "$ac_compile") 2>conftest.er1 7838 ac_status=$? 7839 grep -v '^ *+' conftest.er1 >conftest.err 7840 rm -f conftest.er1 7841 cat conftest.err >&5 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); } && { 7844 test -z "$ac_c_werror_flag" || 7845 test ! -s conftest.err 7846 } && test -s conftest.$ac_objext; then 7847 ac_cv_res_state=yes 7848 else 7849 echo "$as_me: failed program was:" >&5 7850 sed 's/^/| /' conftest.$ac_ext >&5 7851 7852 ac_cv_res_state=no 7853 fi 7854 7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7856 fi 7857 7858 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 7859 echo "${ECHO_T}$ac_cv_res_state" >&6; } 7860 if test $ac_cv_res_state = yes; then 7861 cat >>confdefs.h <<\_ACEOF 7862 #define HAVE_NEW_RES_STATE 1 7863 _ACEOF 7864 7865 fi 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 7876 do 7877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7878 { echo "$as_me:$LINENO: checking for $ac_func" >&5 7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882 else 7883 cat >conftest.$ac_ext <<_ACEOF 7884 /* confdefs.h. */ 7885 _ACEOF 7886 cat confdefs.h >>conftest.$ac_ext 7887 cat >>conftest.$ac_ext <<_ACEOF 7888 /* end confdefs.h. */ 7889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7890 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7891 #define $ac_func innocuous_$ac_func 7892 7893 /* System header to define __stub macros and hopefully few prototypes, 7894 which can conflict with char $ac_func (); below. 7895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7896 <limits.h> exists even on freestanding compilers. */ 7897 7898 #ifdef __STDC__ 7899 # include <limits.h> 7900 #else 7901 # include <assert.h> 7902 #endif 7903 7904 #undef $ac_func 7905 7906 /* Override any GCC internal prototype to avoid an error. 7907 Use char because int might match the return type of a GCC 7908 builtin and then its argument prototype would still apply. */ 7909 #ifdef __cplusplus 7910 extern "C" 7911 #endif 7912 char $ac_func (); 7913 /* The GNU C library defines this for functions which it implements 7914 to always fail with ENOSYS. Some functions are actually named 7915 something starting with __ and the normal name is an alias. */ 7916 #if defined __stub_$ac_func || defined __stub___$ac_func 7917 choke me 7918 #endif 7919 7920 int 7921 main () 7922 { 7923 return $ac_func (); 7924 ; 7925 return 0; 7926 } 7927 _ACEOF 7928 rm -f conftest.$ac_objext conftest$ac_exeext 7929 if { (ac_try="$ac_link" 7930 case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933 esac 7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_link") 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && { 7942 test -z "$ac_c_werror_flag" || 7943 test ! -s conftest.err 7944 } && test -s conftest$ac_exeext && 7945 $as_test_x conftest$ac_exeext; then 7946 eval "$as_ac_var=yes" 7947 else 7948 echo "$as_me: failed program was:" >&5 7949 sed 's/^/| /' conftest.$ac_ext >&5 7950 7951 eval "$as_ac_var=no" 7952 fi 7953 7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7955 conftest$ac_exeext conftest.$ac_ext 7956 fi 7957 ac_res=`eval echo '${'$as_ac_var'}'` 7958 { echo "$as_me:$LINENO: result: $ac_res" >&5 7959 echo "${ECHO_T}$ac_res" >&6; } 7960 if test `eval echo '${'$as_ac_var'}'` = yes; then 7961 cat >>confdefs.h <<_ACEOF 7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7963 _ACEOF 7964 7965 else 7966 case " $LIBOBJS " in 7967 *" $ac_func.$ac_objext "* ) ;; 7968 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7969 ;; 7970 esac 7971 7972 fi 7973 done 7974 7975 7976 7977 for ac_func in strftime 7978 do 7979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7980 { echo "$as_me:$LINENO: checking for $ac_func" >&5 7981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7983 echo $ECHO_N "(cached) $ECHO_C" >&6 7984 else 7985 cat >conftest.$ac_ext <<_ACEOF 7986 /* confdefs.h. */ 7987 _ACEOF 7988 cat confdefs.h >>conftest.$ac_ext 7989 cat >>conftest.$ac_ext <<_ACEOF 7990 /* end confdefs.h. */ 7991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7992 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7993 #define $ac_func innocuous_$ac_func 7994 7995 /* System header to define __stub macros and hopefully few prototypes, 7996 which can conflict with char $ac_func (); below. 7997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7998 <limits.h> exists even on freestanding compilers. */ 7999 8000 #ifdef __STDC__ 8001 # include <limits.h> 8002 #else 8003 # include <assert.h> 8004 #endif 8005 8006 #undef $ac_func 8007 8008 /* Override any GCC internal prototype to avoid an error. 8009 Use char because int might match the return type of a GCC 8010 builtin and then its argument prototype would still apply. */ 8011 #ifdef __cplusplus 8012 extern "C" 8013 #endif 8014 char $ac_func (); 8015 /* The GNU C library defines this for functions which it implements 8016 to always fail with ENOSYS. Some functions are actually named 8017 something starting with __ and the normal name is an alias. */ 8018 #if defined __stub_$ac_func || defined __stub___$ac_func 8019 choke me 8020 #endif 8021 8022 int 8023 main () 8024 { 8025 return $ac_func (); 8026 ; 8027 return 0; 8028 } 8029 _ACEOF 8030 rm -f conftest.$ac_objext conftest$ac_exeext 8031 if { (ac_try="$ac_link" 8032 case "(($ac_try" in 8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8034 *) ac_try_echo=$ac_try;; 8035 esac 8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8037 (eval "$ac_link") 2>conftest.er1 8038 ac_status=$? 8039 grep -v '^ *+' conftest.er1 >conftest.err 8040 rm -f conftest.er1 8041 cat conftest.err >&5 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8043 (exit $ac_status); } && { 8044 test -z "$ac_c_werror_flag" || 8045 test ! -s conftest.err 8046 } && test -s conftest$ac_exeext && 8047 $as_test_x conftest$ac_exeext; then 8048 eval "$as_ac_var=yes" 8049 else 8050 echo "$as_me: failed program was:" >&5 8051 sed 's/^/| /' conftest.$ac_ext >&5 8052 8053 eval "$as_ac_var=no" 8054 fi 8055 8056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8057 conftest$ac_exeext conftest.$ac_ext 8058 fi 8059 ac_res=`eval echo '${'$as_ac_var'}'` 8060 { echo "$as_me:$LINENO: result: $ac_res" >&5 8061 echo "${ECHO_T}$ac_res" >&6; } 8062 if test `eval echo '${'$as_ac_var'}'` = yes; then 8063 cat >>confdefs.h <<_ACEOF 8064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8065 _ACEOF 8066 8067 fi 8068 done 8069 8070 8071 8072 for ac_func in setlinebuf alarm 8073 do 8074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8075 { echo "$as_me:$LINENO: checking for $ac_func" >&5 8076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8078 echo $ECHO_N "(cached) $ECHO_C" >&6 8079 else 8080 cat >conftest.$ac_ext <<_ACEOF 8081 /* confdefs.h. */ 8082 _ACEOF 8083 cat confdefs.h >>conftest.$ac_ext 8084 cat >>conftest.$ac_ext <<_ACEOF 8085 /* end confdefs.h. */ 8086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8087 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8088 #define $ac_func innocuous_$ac_func 8089 8090 /* System header to define __stub macros and hopefully few prototypes, 8091 which can conflict with char $ac_func (); below. 8092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8093 <limits.h> exists even on freestanding compilers. */ 8094 8095 #ifdef __STDC__ 8096 # include <limits.h> 8097 #else 8098 # include <assert.h> 8099 #endif 8100 8101 #undef $ac_func 8102 8103 /* Override any GCC internal prototype to avoid an error. 8104 Use char because int might match the return type of a GCC 8105 builtin and then its argument prototype would still apply. */ 8106 #ifdef __cplusplus 8107 extern "C" 8108 #endif 8109 char $ac_func (); 8110 /* The GNU C library defines this for functions which it implements 8111 to always fail with ENOSYS. Some functions are actually named 8112 something starting with __ and the normal name is an alias. */ 8113 #if defined __stub_$ac_func || defined __stub___$ac_func 8114 choke me 8115 #endif 8116 8117 int 8118 main () 8119 { 8120 return $ac_func (); 8121 ; 8122 return 0; 8123 } 8124 _ACEOF 8125 rm -f conftest.$ac_objext conftest$ac_exeext 8126 if { (ac_try="$ac_link" 8127 case "(($ac_try" in 8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8129 *) ac_try_echo=$ac_try;; 8130 esac 8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8132 (eval "$ac_link") 2>conftest.er1 8133 ac_status=$? 8134 grep -v '^ *+' conftest.er1 >conftest.err 8135 rm -f conftest.er1 8136 cat conftest.err >&5 8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8138 (exit $ac_status); } && { 8139 test -z "$ac_c_werror_flag" || 8140 test ! -s conftest.err 8141 } && test -s conftest$ac_exeext && 8142 $as_test_x conftest$ac_exeext; then 8143 eval "$as_ac_var=yes" 8144 else 8145 echo "$as_me: failed program was:" >&5 8146 sed 's/^/| /' conftest.$ac_ext >&5 8147 8148 eval "$as_ac_var=no" 8149 fi 8150 8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8152 conftest$ac_exeext conftest.$ac_ext 8153 fi 8154 ac_res=`eval echo '${'$as_ac_var'}'` 8155 { echo "$as_me:$LINENO: result: $ac_res" >&5 8156 echo "${ECHO_T}$ac_res" >&6; } 8157 if test `eval echo '${'$as_ac_var'}'` = yes; then 8158 cat >>confdefs.h <<_ACEOF 8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8160 _ACEOF 8161 8162 fi 8163 done 8164 8165 8166 needsnprintf=no 8167 8168 8169 for ac_func in vsnprintf snprintf 8170 do 8171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8172 { echo "$as_me:$LINENO: checking for $ac_func" >&5 8173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8175 echo $ECHO_N "(cached) $ECHO_C" >&6 8176 else 8177 cat >conftest.$ac_ext <<_ACEOF 8178 /* confdefs.h. */ 8179 _ACEOF 8180 cat confdefs.h >>conftest.$ac_ext 8181 cat >>conftest.$ac_ext <<_ACEOF 8182 /* end confdefs.h. */ 8183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8185 #define $ac_func innocuous_$ac_func 8186 8187 /* System header to define __stub macros and hopefully few prototypes, 8188 which can conflict with char $ac_func (); below. 8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8190 <limits.h> exists even on freestanding compilers. */ 8191 8192 #ifdef __STDC__ 8193 # include <limits.h> 8194 #else 8195 # include <assert.h> 8196 #endif 8197 8198 #undef $ac_func 8199 8200 /* Override any GCC internal prototype to avoid an error. 8201 Use char because int might match the return type of a GCC 8202 builtin and then its argument prototype would still apply. */ 8203 #ifdef __cplusplus 8204 extern "C" 8205 #endif 8206 char $ac_func (); 8207 /* The GNU C library defines this for functions which it implements 8208 to always fail with ENOSYS. Some functions are actually named 8209 something starting with __ and the normal name is an alias. */ 8210 #if defined __stub_$ac_func || defined __stub___$ac_func 8211 choke me 8212 #endif 8213 8214 int 8215 main () 8216 { 8217 return $ac_func (); 8218 ; 8219 return 0; 8220 } 8221 _ACEOF 8222 rm -f conftest.$ac_objext conftest$ac_exeext 8223 if { (ac_try="$ac_link" 8224 case "(($ac_try" in 8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8226 *) ac_try_echo=$ac_try;; 8227 esac 8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8229 (eval "$ac_link") 2>conftest.er1 8230 ac_status=$? 8231 grep -v '^ *+' conftest.er1 >conftest.err 8232 rm -f conftest.er1 8233 cat conftest.err >&5 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 (exit $ac_status); } && { 8236 test -z "$ac_c_werror_flag" || 8237 test ! -s conftest.err 8238 } && test -s conftest$ac_exeext && 8239 $as_test_x conftest$ac_exeext; then 8240 eval "$as_ac_var=yes" 8241 else 8242 echo "$as_me: failed program was:" >&5 8243 sed 's/^/| /' conftest.$ac_ext >&5 8244 8245 eval "$as_ac_var=no" 8246 fi 8247 8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8249 conftest$ac_exeext conftest.$ac_ext 8250 fi 8251 ac_res=`eval echo '${'$as_ac_var'}'` 8252 { echo "$as_me:$LINENO: result: $ac_res" >&5 8253 echo "${ECHO_T}$ac_res" >&6; } 8254 if test `eval echo '${'$as_ac_var'}'` = yes; then 8255 cat >>confdefs.h <<_ACEOF 8256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8257 _ACEOF 8258 8259 else 8260 needsnprintf=yes 8261 fi 8262 done 8263 8264 if test $needsnprintf = yes; then 8265 case " $LIBOBJS " in 8266 *" snprintf.$ac_objext "* ) ;; 8267 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8268 ;; 8269 esac 8270 8271 fi 8272 8273 8274 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 8275 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 8276 if test "${ac_cv_type_signal+set}" = set; then 8277 echo $ECHO_N "(cached) $ECHO_C" >&6 8278 else 8279 cat >conftest.$ac_ext <<_ACEOF 8280 /* confdefs.h. */ 8281 _ACEOF 8282 cat confdefs.h >>conftest.$ac_ext 8283 cat >>conftest.$ac_ext <<_ACEOF 8284 /* end confdefs.h. */ 8285 #include <sys/types.h> 8286 #include <signal.h> 8287 8288 int 8289 main () 8290 { 8291 return *(signal (0, 0)) (0) == 1; 8292 ; 8293 return 0; 8294 } 8295 _ACEOF 8296 rm -f conftest.$ac_objext 8297 if { (ac_try="$ac_compile" 8298 case "(($ac_try" in 8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8300 *) ac_try_echo=$ac_try;; 8301 esac 8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8303 (eval "$ac_compile") 2>conftest.er1 8304 ac_status=$? 8305 grep -v '^ *+' conftest.er1 >conftest.err 8306 rm -f conftest.er1 8307 cat conftest.err >&5 8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8309 (exit $ac_status); } && { 8310 test -z "$ac_c_werror_flag" || 8311 test ! -s conftest.err 8312 } && test -s conftest.$ac_objext; then 8313 ac_cv_type_signal=int 8314 else 8315 echo "$as_me: failed program was:" >&5 8316 sed 's/^/| /' conftest.$ac_ext >&5 8317 8318 ac_cv_type_signal=void 8319 fi 8320 8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322 fi 8323 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 8324 echo "${ECHO_T}$ac_cv_type_signal" >&6; } 8325 8326 cat >>confdefs.h <<_ACEOF 8327 #define RETSIGTYPE $ac_cv_type_signal 8328 _ACEOF 8329 8330 8331 if test "$ac_cv_type_signal" = void ; then 8332 cat >>confdefs.h <<\_ACEOF 8333 #define RETSIGVAL 8334 _ACEOF 8335 8336 else 8337 cat >>confdefs.h <<\_ACEOF 8338 #define RETSIGVAL (0) 8339 _ACEOF 8340 8341 fi 8342 case "$host_os" in 8343 8344 irix*) 8345 cat >>confdefs.h <<\_ACEOF 8346 #define _BSD_SIGNALS 1 8347 _ACEOF 8348 8349 ;; 8350 8351 *) 8352 8353 for ac_func in sigaction 8354 do 8355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8356 { echo "$as_me:$LINENO: checking for $ac_func" >&5 8357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8359 echo $ECHO_N "(cached) $ECHO_C" >&6 8360 else 8361 cat >conftest.$ac_ext <<_ACEOF 8362 /* confdefs.h. */ 8363 _ACEOF 8364 cat confdefs.h >>conftest.$ac_ext 8365 cat >>conftest.$ac_ext <<_ACEOF 8366 /* end confdefs.h. */ 8367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8368 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8369 #define $ac_func innocuous_$ac_func 8370 8371 /* System header to define __stub macros and hopefully few prototypes, 8372 which can conflict with char $ac_func (); below. 8373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8374 <limits.h> exists even on freestanding compilers. */ 8375 8376 #ifdef __STDC__ 8377 # include <limits.h> 8378 #else 8379 # include <assert.h> 8380 #endif 8381 8382 #undef $ac_func 8383 8384 /* Override any GCC internal prototype to avoid an error. 8385 Use char because int might match the return type of a GCC 8386 builtin and then its argument prototype would still apply. */ 8387 #ifdef __cplusplus 8388 extern "C" 8389 #endif 8390 char $ac_func (); 8391 /* The GNU C library defines this for functions which it implements 8392 to always fail with ENOSYS. Some functions are actually named 8393 something starting with __ and the normal name is an alias. */ 8394 #if defined __stub_$ac_func || defined __stub___$ac_func 8395 choke me 8396 #endif 8397 8398 int 8399 main () 8400 { 8401 return $ac_func (); 8402 ; 8403 return 0; 8404 } 8405 _ACEOF 8406 rm -f conftest.$ac_objext conftest$ac_exeext 8407 if { (ac_try="$ac_link" 8408 case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411 esac 8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_link") 2>conftest.er1 8414 ac_status=$? 8415 grep -v '^ *+' conftest.er1 >conftest.err 8416 rm -f conftest.er1 8417 cat conftest.err >&5 8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); } && { 8420 test -z "$ac_c_werror_flag" || 8421 test ! -s conftest.err 8422 } && test -s conftest$ac_exeext && 8423 $as_test_x conftest$ac_exeext; then 8424 eval "$as_ac_var=yes" 8425 else 8426 echo "$as_me: failed program was:" >&5 8427 sed 's/^/| /' conftest.$ac_ext >&5 8428 8429 eval "$as_ac_var=no" 8430 fi 8431 8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8433 conftest$ac_exeext conftest.$ac_ext 8434 fi 8435 ac_res=`eval echo '${'$as_ac_var'}'` 8436 { echo "$as_me:$LINENO: result: $ac_res" >&5 8437 echo "${ECHO_T}$ac_res" >&6; } 8438 if test `eval echo '${'$as_ac_var'}'` = yes; then 8439 cat >>confdefs.h <<_ACEOF 8440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8441 _ACEOF 8442 8443 fi 8444 done 8445 8446 if test $ac_cv_func_sigaction = no ; then 8447 8448 for ac_func in sigset 8449 do 8450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8451 { echo "$as_me:$LINENO: checking for $ac_func" >&5 8452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8454 echo $ECHO_N "(cached) $ECHO_C" >&6 8455 else 8456 cat >conftest.$ac_ext <<_ACEOF 8457 /* confdefs.h. */ 8458 _ACEOF 8459 cat confdefs.h >>conftest.$ac_ext 8460 cat >>conftest.$ac_ext <<_ACEOF 8461 /* end confdefs.h. */ 8462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8463 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8464 #define $ac_func innocuous_$ac_func 8465 8466 /* System header to define __stub macros and hopefully few prototypes, 8467 which can conflict with char $ac_func (); below. 8468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8469 <limits.h> exists even on freestanding compilers. */ 8470 8471 #ifdef __STDC__ 8472 # include <limits.h> 8473 #else 8474 # include <assert.h> 8475 #endif 8476 8477 #undef $ac_func 8478 8479 /* Override any GCC internal prototype to avoid an error. 8480 Use char because int might match the return type of a GCC 8481 builtin and then its argument prototype would still apply. */ 8482 #ifdef __cplusplus 8483 extern "C" 8484 #endif 8485 char $ac_func (); 8486 /* The GNU C library defines this for functions which it implements 8487 to always fail with ENOSYS. Some functions are actually named 8488 something starting with __ and the normal name is an alias. */ 8489 #if defined __stub_$ac_func || defined __stub___$ac_func 8490 choke me 8491 #endif 8492 8493 int 8494 main () 8495 { 8496 return $ac_func (); 8497 ; 8498 return 0; 8499 } 8500 _ACEOF 8501 rm -f conftest.$ac_objext conftest$ac_exeext 8502 if { (ac_try="$ac_link" 8503 case "(($ac_try" in 8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8505 *) ac_try_echo=$ac_try;; 8506 esac 8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8508 (eval "$ac_link") 2>conftest.er1 8509 ac_status=$? 8510 grep -v '^ *+' conftest.er1 >conftest.err 8511 rm -f conftest.er1 8512 cat conftest.err >&5 8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8514 (exit $ac_status); } && { 8515 test -z "$ac_c_werror_flag" || 8516 test ! -s conftest.err 8517 } && test -s conftest$ac_exeext && 8518 $as_test_x conftest$ac_exeext; then 8519 eval "$as_ac_var=yes" 8520 else 8521 echo "$as_me: failed program was:" >&5 8522 sed 's/^/| /' conftest.$ac_ext >&5 8523 8524 eval "$as_ac_var=no" 8525 fi 8526 8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8528 conftest$ac_exeext conftest.$ac_ext 8529 fi 8530 ac_res=`eval echo '${'$as_ac_var'}'` 8531 { echo "$as_me:$LINENO: result: $ac_res" >&5 8532 echo "${ECHO_T}$ac_res" >&6; } 8533 if test `eval echo '${'$as_ac_var'}'` = yes; then 8534 cat >>confdefs.h <<_ACEOF 8535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8536 _ACEOF 8537 8538 fi 8539 done 8540 8541 fi 8542 ;; 8543 esac 8544 8545 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 8546 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; } 8547 if test "${ac_cv_search_dnet_htoa+set}" = set; then 8548 echo $ECHO_N "(cached) $ECHO_C" >&6 8549 else 8550 ac_func_search_save_LIBS=$LIBS 8551 cat >conftest.$ac_ext <<_ACEOF 8552 /* confdefs.h. */ 8553 _ACEOF 8554 cat confdefs.h >>conftest.$ac_ext 8555 cat >>conftest.$ac_ext <<_ACEOF 8556 /* end confdefs.h. */ 8557 8558 /* Override any GCC internal prototype to avoid an error. 8559 Use char because int might match the return type of a GCC 8560 builtin and then its argument prototype would still apply. */ 8561 #ifdef __cplusplus 8562 extern "C" 8563 #endif 8564 char dnet_htoa (); 8565 int 8566 main () 8567 { 8568 return dnet_htoa (); 8569 ; 8570 return 0; 8571 } 8572 _ACEOF 8573 for ac_lib in '' dnet; do 8574 if test -z "$ac_lib"; then 8575 ac_res="none required" 8576 else 8577 ac_res=-l$ac_lib 8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8579 fi 8580 rm -f conftest.$ac_objext conftest$ac_exeext 8581 if { (ac_try="$ac_link" 8582 case "(($ac_try" in 8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8584 *) ac_try_echo=$ac_try;; 8585 esac 8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8587 (eval "$ac_link") 2>conftest.er1 8588 ac_status=$? 8589 grep -v '^ *+' conftest.er1 >conftest.err 8590