1#! /bin/sh 2# From configure.in Revision: 1.196.2.6 . 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 15DUALCASE=1; export DUALCASE # for MKS sh 16if 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 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if 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 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 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.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 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. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if 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; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for 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 108do 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 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo 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 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$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 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 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 233done 234IFS=$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 241if 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 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 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 262if 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 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $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 337fi 338 339fi 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+"$@"} 349fi 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; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$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 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `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';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if 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' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 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 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_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. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 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. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME= 575PACKAGE_TARNAME= 576PACKAGE_VERSION= 577PACKAGE_STRING= 578PACKAGE_BUGREPORT= 579 580ac_unique_file="tcpdump.c" 581# Factoring default headers for most tests. 582ac_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 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654build 655build_cpu 656build_vendor 657build_os 658host 659host_cpu 660host_vendor 661host_os 662SHLICC2 663CC 664CFLAGS 665LDFLAGS 666CPPFLAGS 667ac_ct_CC 668EXEEXT 669OBJEXT 670CPP 671GREP 672EGREP 673LIBOBJS 674RANLIB 675V_CCOPT 676V_DEFS 677V_GROUP 678V_INCLS 679V_PCAPDEP 680LOCALSRC 681INSTALL_PROGRAM 682INSTALL_SCRIPT 683INSTALL_DATA 684LTLIBOBJS' 685ac_subst_files='' 686 ac_precious_vars='build_alias 687host_alias 688target_alias 689CC 690CFLAGS 691LDFLAGS 692LIBS 693CPPFLAGS 694CPP' 695 696 697# Initialize some variables set by options. 698ac_init_help= 699ac_init_version=false 700# The variables have the same names as the options, with 701# dashes changed to underlines. 702cache_file=/dev/null 703exec_prefix=NONE 704no_create= 705no_recursion= 706prefix=NONE 707program_prefix=NONE 708program_suffix=NONE 709program_transform_name=s,x,x, 710silent= 711site= 712srcdir= 713verbose= 714x_includes=NONE 715x_libraries=NONE 716 717# Installation directory options. 718# These are left unexpanded so users can "make install exec_prefix=/foo" 719# and all the variables that are supposed to be based on exec_prefix 720# by default will actually change. 721# Use braces instead of parens because sh, perl, etc. also accept them. 722# (The list follows the same order as the GNU Coding Standards.) 723bindir='${exec_prefix}/bin' 724sbindir='${exec_prefix}/sbin' 725libexecdir='${exec_prefix}/libexec' 726datarootdir='${prefix}/share' 727datadir='${datarootdir}' 728sysconfdir='${prefix}/etc' 729sharedstatedir='${prefix}/com' 730localstatedir='${prefix}/var' 731includedir='${prefix}/include' 732oldincludedir='/usr/include' 733docdir='${datarootdir}/doc/${PACKAGE}' 734infodir='${datarootdir}/info' 735htmldir='${docdir}' 736dvidir='${docdir}' 737pdfdir='${docdir}' 738psdir='${docdir}' 739libdir='${exec_prefix}/lib' 740localedir='${datarootdir}/locale' 741mandir='${datarootdir}/man' 742 743ac_prev= 744ac_dashdash= 745for ac_option 746do 747 # If the previous option needs an argument, assign it. 748 if test -n "$ac_prev"; then 749 eval $ac_prev=\$ac_option 750 ac_prev= 751 continue 752 fi 753 754 case $ac_option in 755 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 756 *) ac_optarg=yes ;; 757 esac 758 759 # Accept the important Cygnus configure options, so we can diagnose typos. 760 761 case $ac_dashdash$ac_option in 762 --) 763 ac_dashdash=yes ;; 764 765 -bindir | --bindir | --bindi | --bind | --bin | --bi) 766 ac_prev=bindir ;; 767 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 768 bindir=$ac_optarg ;; 769 770 -build | --build | --buil | --bui | --bu) 771 ac_prev=build_alias ;; 772 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 773 build_alias=$ac_optarg ;; 774 775 -cache-file | --cache-file | --cache-fil | --cache-fi \ 776 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 777 ac_prev=cache_file ;; 778 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 779 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 780 cache_file=$ac_optarg ;; 781 782 --config-cache | -C) 783 cache_file=config.cache ;; 784 785 -datadir | --datadir | --datadi | --datad) 786 ac_prev=datadir ;; 787 -datadir=* | --datadir=* | --datadi=* | --datad=*) 788 datadir=$ac_optarg ;; 789 790 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 791 | --dataroo | --dataro | --datar) 792 ac_prev=datarootdir ;; 793 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 794 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 795 datarootdir=$ac_optarg ;; 796 797 -disable-* | --disable-*) 798 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 799 # Reject names that are not valid shell variable names. 800 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 802 { (exit 1); exit 1; }; } 803 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 804 eval enable_$ac_feature=no ;; 805 806 -docdir | --docdir | --docdi | --doc | --do) 807 ac_prev=docdir ;; 808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 809 docdir=$ac_optarg ;; 810 811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 812 ac_prev=dvidir ;; 813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 814 dvidir=$ac_optarg ;; 815 816 -enable-* | --enable-*) 817 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 818 # Reject names that are not valid shell variable names. 819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 821 { (exit 1); exit 1; }; } 822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 823 eval enable_$ac_feature=\$ac_optarg ;; 824 825 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 826 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 827 | --exec | --exe | --ex) 828 ac_prev=exec_prefix ;; 829 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 830 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 831 | --exec=* | --exe=* | --ex=*) 832 exec_prefix=$ac_optarg ;; 833 834 -gas | --gas | --ga | --g) 835 # Obsolete; use --with-gas. 836 with_gas=yes ;; 837 838 -help | --help | --hel | --he | -h) 839 ac_init_help=long ;; 840 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 841 ac_init_help=recursive ;; 842 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 843 ac_init_help=short ;; 844 845 -host | --host | --hos | --ho) 846 ac_prev=host_alias ;; 847 -host=* | --host=* | --hos=* | --ho=*) 848 host_alias=$ac_optarg ;; 849 850 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 851 ac_prev=htmldir ;; 852 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 853 | --ht=*) 854 htmldir=$ac_optarg ;; 855 856 -includedir | --includedir | --includedi | --included | --include \ 857 | --includ | --inclu | --incl | --inc) 858 ac_prev=includedir ;; 859 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 860 | --includ=* | --inclu=* | --incl=* | --inc=*) 861 includedir=$ac_optarg ;; 862 863 -infodir | --infodir | --infodi | --infod | --info | --inf) 864 ac_prev=infodir ;; 865 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 866 infodir=$ac_optarg ;; 867 868 -libdir | --libdir | --libdi | --libd) 869 ac_prev=libdir ;; 870 -libdir=* | --libdir=* | --libdi=* | --libd=*) 871 libdir=$ac_optarg ;; 872 873 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 874 | --libexe | --libex | --libe) 875 ac_prev=libexecdir ;; 876 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 877 | --libexe=* | --libex=* | --libe=*) 878 libexecdir=$ac_optarg ;; 879 880 -localedir | --localedir | --localedi | --localed | --locale) 881 ac_prev=localedir ;; 882 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 883 localedir=$ac_optarg ;; 884 885 -localstatedir | --localstatedir | --localstatedi | --localstated \ 886 | --localstate | --localstat | --localsta | --localst | --locals) 887 ac_prev=localstatedir ;; 888 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 889 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 890 localstatedir=$ac_optarg ;; 891 892 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 893 ac_prev=mandir ;; 894 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 895 mandir=$ac_optarg ;; 896 897 -nfp | --nfp | --nf) 898 # Obsolete; use --without-fp. 899 with_fp=no ;; 900 901 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 902 | --no-cr | --no-c | -n) 903 no_create=yes ;; 904 905 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 906 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 907 no_recursion=yes ;; 908 909 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 910 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 911 | --oldin | --oldi | --old | --ol | --o) 912 ac_prev=oldincludedir ;; 913 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 914 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 915 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 916 oldincludedir=$ac_optarg ;; 917 918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 919 ac_prev=prefix ;; 920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 921 prefix=$ac_optarg ;; 922 923 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 924 | --program-pre | --program-pr | --program-p) 925 ac_prev=program_prefix ;; 926 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 927 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 928 program_prefix=$ac_optarg ;; 929 930 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 931 | --program-suf | --program-su | --program-s) 932 ac_prev=program_suffix ;; 933 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 934 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 935 program_suffix=$ac_optarg ;; 936 937 -program-transform-name | --program-transform-name \ 938 | --program-transform-nam | --program-transform-na \ 939 | --program-transform-n | --program-transform- \ 940 | --program-transform | --program-transfor \ 941 | --program-transfo | --program-transf \ 942 | --program-trans | --program-tran \ 943 | --progr-tra | --program-tr | --program-t) 944 ac_prev=program_transform_name ;; 945 -program-transform-name=* | --program-transform-name=* \ 946 | --program-transform-nam=* | --program-transform-na=* \ 947 | --program-transform-n=* | --program-transform-=* \ 948 | --program-transform=* | --program-transfor=* \ 949 | --program-transfo=* | --program-transf=* \ 950 | --program-trans=* | --program-tran=* \ 951 | --progr-tra=* | --program-tr=* | --program-t=*) 952 program_transform_name=$ac_optarg ;; 953 954 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 955 ac_prev=pdfdir ;; 956 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 957 pdfdir=$ac_optarg ;; 958 959 -psdir | --psdir | --psdi | --psd | --ps) 960 ac_prev=psdir ;; 961 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 962 psdir=$ac_optarg ;; 963 964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 965 | -silent | --silent | --silen | --sile | --sil) 966 silent=yes ;; 967 968 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 969 ac_prev=sbindir ;; 970 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 971 | --sbi=* | --sb=*) 972 sbindir=$ac_optarg ;; 973 974 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 975 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 976 | --sharedst | --shareds | --shared | --share | --shar \ 977 | --sha | --sh) 978 ac_prev=sharedstatedir ;; 979 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 980 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 981 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 982 | --sha=* | --sh=*) 983 sharedstatedir=$ac_optarg ;; 984 985 -site | --site | --sit) 986 ac_prev=site ;; 987 -site=* | --site=* | --sit=*) 988 site=$ac_optarg ;; 989 990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 991 ac_prev=srcdir ;; 992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 993 srcdir=$ac_optarg ;; 994 995 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 996 | --syscon | --sysco | --sysc | --sys | --sy) 997 ac_prev=sysconfdir ;; 998 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 999 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1000 sysconfdir=$ac_optarg ;; 1001 1002 -target | --target | --targe | --targ | --tar | --ta | --t) 1003 ac_prev=target_alias ;; 1004 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1005 target_alias=$ac_optarg ;; 1006 1007 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1008 verbose=yes ;; 1009 1010 -version | --version | --versio | --versi | --vers | -V) 1011 ac_init_version=: ;; 1012 1013 -with-* | --with-*) 1014 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1017 { echo "$as_me: error: invalid package name: $ac_package" >&2 1018 { (exit 1); exit 1; }; } 1019 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1020 eval with_$ac_package=\$ac_optarg ;; 1021 1022 -without-* | --without-*) 1023 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1024 # Reject names that are not valid shell variable names. 1025 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1026 { echo "$as_me: error: invalid package name: $ac_package" >&2 1027 { (exit 1); exit 1; }; } 1028 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1029 eval with_$ac_package=no ;; 1030 1031 --x) 1032 # Obsolete; use --with-x. 1033 with_x=yes ;; 1034 1035 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1036 | --x-incl | --x-inc | --x-in | --x-i) 1037 ac_prev=x_includes ;; 1038 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1039 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1040 x_includes=$ac_optarg ;; 1041 1042 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1043 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1044 ac_prev=x_libraries ;; 1045 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1046 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1047 x_libraries=$ac_optarg ;; 1048 1049 -*) { echo "$as_me: error: unrecognized option: $ac_option 1050Try \`$0 --help' for more information." >&2 1051 { (exit 1); exit 1; }; } 1052 ;; 1053 1054 *=*) 1055 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1058 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1059 { (exit 1); exit 1; }; } 1060 eval $ac_envvar=\$ac_optarg 1061 export $ac_envvar ;; 1062 1063 *) 1064 # FIXME: should be removed in autoconf 3.0. 1065 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1066 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1067 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1068 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1069 ;; 1070 1071 esac 1072done 1073 1074if test -n "$ac_prev"; then 1075 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1076 { echo "$as_me: error: missing argument to $ac_option" >&2 1077 { (exit 1); exit 1; }; } 1078fi 1079 1080# Be sure to have absolute directory names. 1081for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1082 datadir sysconfdir sharedstatedir localstatedir includedir \ 1083 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1084 libdir localedir mandir 1085do 1086 eval ac_val=\$$ac_var 1087 case $ac_val in 1088 [\\/$]* | ?:[\\/]* ) continue;; 1089 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1090 esac 1091 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1092 { (exit 1); exit 1; }; } 1093done 1094 1095# There might be people who depend on the old broken behavior: `$host' 1096# used to hold the argument of --host etc. 1097# FIXME: To remove some day. 1098build=$build_alias 1099host=$host_alias 1100target=$target_alias 1101 1102# FIXME: To remove some day. 1103if test "x$host_alias" != x; then 1104 if test "x$build_alias" = x; then 1105 cross_compiling=maybe 1106 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1107 If a cross compiler is detected then cross compile mode will be used." >&2 1108 elif test "x$build_alias" != "x$host_alias"; then 1109 cross_compiling=yes 1110 fi 1111fi 1112 1113ac_tool_prefix= 1114test -n "$host_alias" && ac_tool_prefix=$host_alias- 1115 1116test "$silent" = yes && exec 6>/dev/null 1117 1118 1119ac_pwd=`pwd` && test -n "$ac_pwd" && 1120ac_ls_di=`ls -di .` && 1121ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1122 { echo "$as_me: error: Working directory cannot be determined" >&2 1123 { (exit 1); exit 1; }; } 1124test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1125 { echo "$as_me: error: pwd does not report name of working directory" >&2 1126 { (exit 1); exit 1; }; } 1127 1128 1129# Find the source files, if location was not specified. 1130if test -z "$srcdir"; then 1131 ac_srcdir_defaulted=yes 1132 # Try the directory containing this script, then the parent directory. 1133 ac_confdir=`$as_dirname -- "$0" || 1134$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1135 X"$0" : 'X\(//\)[^/]' \| \ 1136 X"$0" : 'X\(//\)$' \| \ 1137 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1138echo X"$0" | 1139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1140 s//\1/ 1141 q 1142 } 1143 /^X\(\/\/\)[^/].*/{ 1144 s//\1/ 1145 q 1146 } 1147 /^X\(\/\/\)$/{ 1148 s//\1/ 1149 q 1150 } 1151 /^X\(\/\).*/{ 1152 s//\1/ 1153 q 1154 } 1155 s/.*/./; q'` 1156 srcdir=$ac_confdir 1157 if test ! -r "$srcdir/$ac_unique_file"; then 1158 srcdir=.. 1159 fi 1160else 1161 ac_srcdir_defaulted=no 1162fi 1163if test ! -r "$srcdir/$ac_unique_file"; then 1164 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1165 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1166 { (exit 1); exit 1; }; } 1167fi 1168ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1169ac_abs_confdir=`( 1170 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1171 { (exit 1); exit 1; }; } 1172 pwd)` 1173# When building in place, set srcdir=. 1174if test "$ac_abs_confdir" = "$ac_pwd"; then 1175 srcdir=. 1176fi 1177# Remove unnecessary trailing slashes from srcdir. 1178# Double slashes in file names in object file debugging info 1179# mess up M-x gdb in Emacs. 1180case $srcdir in 1181*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1182esac 1183for ac_var in $ac_precious_vars; do 1184 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1185 eval ac_env_${ac_var}_value=\$${ac_var} 1186 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1187 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1188done 1189 1190# 1191# Report the --help message. 1192# 1193if test "$ac_init_help" = "long"; then 1194 # Omit some internal or obsolete options to make the list less imposing. 1195 # This message is too long to be a string in the A/UX 3.1 sh. 1196 cat <<_ACEOF 1197\`configure' configures this package to adapt to many kinds of systems. 1198 1199Usage: $0 [OPTION]... [VAR=VALUE]... 1200 1201To assign environment variables (e.g., CC, CFLAGS...), specify them as 1202VAR=VALUE. See below for descriptions of some of the useful variables. 1203 1204Defaults for the options are specified in brackets. 1205 1206Configuration: 1207 -h, --help display this help and exit 1208 --help=short display options specific to this package 1209 --help=recursive display the short help of all the included packages 1210 -V, --version display version information and exit 1211 -q, --quiet, --silent do not print \`checking...' messages 1212 --cache-file=FILE cache test results in FILE [disabled] 1213 -C, --config-cache alias for \`--cache-file=config.cache' 1214 -n, --no-create do not create output files 1215 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1216 1217Installation directories: 1218 --prefix=PREFIX install architecture-independent files in PREFIX 1219 [$ac_default_prefix] 1220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1221 [PREFIX] 1222 1223By default, \`make install' will install all the files in 1224\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1225an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1226for instance \`--prefix=\$HOME'. 1227 1228For better control, use the options below. 1229 1230Fine tuning of the installation directories: 1231 --bindir=DIR user executables [EPREFIX/bin] 1232 --sbindir=DIR system admin executables [EPREFIX/sbin] 1233 --libexecdir=DIR program executables [EPREFIX/libexec] 1234 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1235 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1236 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1237 --libdir=DIR object code libraries [EPREFIX/lib] 1238 --includedir=DIR C header files [PREFIX/include] 1239 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1240 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1241 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1242 --infodir=DIR info documentation [DATAROOTDIR/info] 1243 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1244 --mandir=DIR man documentation [DATAROOTDIR/man] 1245 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1246 --htmldir=DIR html documentation [DOCDIR] 1247 --dvidir=DIR dvi documentation [DOCDIR] 1248 --pdfdir=DIR pdf documentation [DOCDIR] 1249 --psdir=DIR ps documentation [DOCDIR] 1250_ACEOF 1251 1252 cat <<\_ACEOF 1253 1254System types: 1255 --build=BUILD configure for building on BUILD [guessed] 1256 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1257_ACEOF 1258fi 1259 1260if test -n "$ac_init_help"; then 1261 1262 cat <<\_ACEOF 1263 1264Optional Features: 1265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1267 --enable-smb enable possibly-buggy SMB printer default=yes 1268 --disable-smb disable possibly-buggy SMB printer 1269 --enable-ipv6 enable ipv6 (with ipv4) support 1270 --disable-ipv6 disable ipv6 support 1271 1272Optional Packages: 1273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1275 --without-gcc don't use gcc 1276 --with-user=USERNAME drop privileges by default to USERNAME 1277 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1278 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if 1279 supplied). [default=yes, if available] 1280 1281Some influential environment variables: 1282 CC C compiler command 1283 CFLAGS C compiler flags 1284 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1285 nonstandard directory <lib dir> 1286 LIBS libraries to pass to the linker, e.g. -l<library> 1287 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1288 you have headers in a nonstandard directory <include dir> 1289 CPP C preprocessor 1290 1291Use these variables to override the choices made by `configure' or to help 1292it to find libraries and programs with nonstandard names/locations. 1293 1294_ACEOF 1295ac_status=$? 1296fi 1297 1298if test "$ac_init_help" = "recursive"; then 1299 # If there are subdirs, report their specific --help. 1300 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1301 test -d "$ac_dir" || continue 1302 ac_builddir=. 1303 1304case "$ac_dir" in 1305.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1306*) 1307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1308 # A ".." for each directory in $ac_dir_suffix. 1309 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1310 case $ac_top_builddir_sub in 1311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1313 esac ;; 1314esac 1315ac_abs_top_builddir=$ac_pwd 1316ac_abs_builddir=$ac_pwd$ac_dir_suffix 1317# for backward compatibility: 1318ac_top_builddir=$ac_top_build_prefix 1319 1320case $srcdir in 1321 .) # We are building in place. 1322 ac_srcdir=. 1323 ac_top_srcdir=$ac_top_builddir_sub 1324 ac_abs_top_srcdir=$ac_pwd ;; 1325 [\\/]* | ?:[\\/]* ) # Absolute name. 1326 ac_srcdir=$srcdir$ac_dir_suffix; 1327 ac_top_srcdir=$srcdir 1328 ac_abs_top_srcdir=$srcdir ;; 1329 *) # Relative name. 1330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1331 ac_top_srcdir=$ac_top_build_prefix$srcdir 1332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1333esac 1334ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1335 1336 cd "$ac_dir" || { ac_status=$?; continue; } 1337 # Check for guested configure. 1338 if test -f "$ac_srcdir/configure.gnu"; then 1339 echo && 1340 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1341 elif test -f "$ac_srcdir/configure"; then 1342 echo && 1343 $SHELL "$ac_srcdir/configure" --help=recursive 1344 else 1345 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1346 fi || ac_status=$? 1347 cd "$ac_pwd" || { ac_status=$?; break; } 1348 done 1349fi 1350 1351test -n "$ac_init_help" && exit $ac_status 1352if $ac_init_version; then 1353 cat <<\_ACEOF 1354configure 1355generated by GNU Autoconf 2.61 1356 1357Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1359This configure script is free software; the Free Software Foundation 1360gives unlimited permission to copy, distribute and modify it. 1361_ACEOF 1362 exit 1363fi 1364cat >config.log <<_ACEOF 1365This file contains any messages produced by compilers while 1366running configure, to aid debugging if configure makes a mistake. 1367 1368It was created by $as_me, which was 1369generated by GNU Autoconf 2.61. Invocation command line was 1370 1371 $ $0 $@ 1372 1373_ACEOF 1374exec 5>>config.log 1375{ 1376cat <<_ASUNAME 1377## --------- ## 1378## Platform. ## 1379## --------- ## 1380 1381hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1382uname -m = `(uname -m) 2>/dev/null || echo unknown` 1383uname -r = `(uname -r) 2>/dev/null || echo unknown` 1384uname -s = `(uname -s) 2>/dev/null || echo unknown` 1385uname -v = `(uname -v) 2>/dev/null || echo unknown` 1386 1387/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1388/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1389 1390/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1391/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1392/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1393/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1394/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1395/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1396/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1397 1398_ASUNAME 1399 1400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1401for as_dir in $PATH 1402do 1403 IFS=$as_save_IFS 1404 test -z "$as_dir" && as_dir=. 1405 echo "PATH: $as_dir" 1406done 1407IFS=$as_save_IFS 1408 1409} >&5 1410 1411cat >&5 <<_ACEOF 1412 1413 1414## ----------- ## 1415## Core tests. ## 1416## ----------- ## 1417 1418_ACEOF 1419 1420 1421# Keep a trace of the command line. 1422# Strip out --no-create and --no-recursion so they do not pile up. 1423# Strip out --silent because we don't want to record it for future runs. 1424# Also quote any args containing shell meta-characters. 1425# Make two passes to allow for proper duplicate-argument suppression. 1426ac_configure_args= 1427ac_configure_args0= 1428ac_configure_args1= 1429ac_must_keep_next=false 1430for ac_pass in 1 2 1431do 1432 for ac_arg 1433 do 1434 case $ac_arg in 1435 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1437 | -silent | --silent | --silen | --sile | --sil) 1438 continue ;; 1439 *\'*) 1440 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1441 esac 1442 case $ac_pass in 1443 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1444 2) 1445 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1446 if test $ac_must_keep_next = true; then 1447 ac_must_keep_next=false # Got value, back to normal. 1448 else 1449 case $ac_arg in 1450 *=* | --config-cache | -C | -disable-* | --disable-* \ 1451 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1452 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1453 | -with-* | --with-* | -without-* | --without-* | --x) 1454 case "$ac_configure_args0 " in 1455 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1456 esac 1457 ;; 1458 -* ) ac_must_keep_next=true ;; 1459 esac 1460 fi 1461 ac_configure_args="$ac_configure_args '$ac_arg'" 1462 ;; 1463 esac 1464 done 1465done 1466$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1467$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1468 1469# When interrupted or exit'd, cleanup temporary files, and complete 1470# config.log. We remove comments because anyway the quotes in there 1471# would cause problems or look ugly. 1472# WARNING: Use '\'' to represent an apostrophe within the trap. 1473# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1474trap 'exit_status=$? 1475 # Save into config.log some information that might help in debugging. 1476 { 1477 echo 1478 1479 cat <<\_ASBOX 1480## ---------------- ## 1481## Cache variables. ## 1482## ---------------- ## 1483_ASBOX 1484 echo 1485 # The following way of writing the cache mishandles newlines in values, 1486( 1487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1488 eval ac_val=\$$ac_var 1489 case $ac_val in #( 1490 *${as_nl}*) 1491 case $ac_var in #( 1492 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1493echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1494 esac 1495 case $ac_var in #( 1496 _ | IFS | as_nl) ;; #( 1497 *) $as_unset $ac_var ;; 1498 esac ;; 1499 esac 1500 done 1501 (set) 2>&1 | 1502 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1503 *${as_nl}ac_space=\ *) 1504 sed -n \ 1505 "s/'\''/'\''\\\\'\'''\''/g; 1506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1507 ;; #( 1508 *) 1509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1510 ;; 1511 esac | 1512 sort 1513) 1514 echo 1515 1516 cat <<\_ASBOX 1517## ----------------- ## 1518## Output variables. ## 1519## ----------------- ## 1520_ASBOX 1521 echo 1522 for ac_var in $ac_subst_vars 1523 do 1524 eval ac_val=\$$ac_var 1525 case $ac_val in 1526 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1527 esac 1528 echo "$ac_var='\''$ac_val'\''" 1529 done | sort 1530 echo 1531 1532 if test -n "$ac_subst_files"; then 1533 cat <<\_ASBOX 1534## ------------------- ## 1535## File substitutions. ## 1536## ------------------- ## 1537_ASBOX 1538 echo 1539 for ac_var in $ac_subst_files 1540 do 1541 eval ac_val=\$$ac_var 1542 case $ac_val in 1543 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1544 esac 1545 echo "$ac_var='\''$ac_val'\''" 1546 done | sort 1547 echo 1548 fi 1549 1550 if test -s confdefs.h; then 1551 cat <<\_ASBOX 1552## ----------- ## 1553## confdefs.h. ## 1554## ----------- ## 1555_ASBOX 1556 echo 1557 cat confdefs.h 1558 echo 1559 fi 1560 test "$ac_signal" != 0 && 1561 echo "$as_me: caught signal $ac_signal" 1562 echo "$as_me: exit $exit_status" 1563 } >&5 1564 rm -f core *.core core.conftest.* && 1565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1566 exit $exit_status 1567' 0 1568for ac_signal in 1 2 13 15; do 1569 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1570done 1571ac_signal=0 1572 1573# confdefs.h avoids OS command line length limits that DEFS can exceed. 1574rm -f -r conftest* confdefs.h 1575 1576# Predefined preprocessor variables. 1577 1578cat >>confdefs.h <<_ACEOF 1579#define PACKAGE_NAME "$PACKAGE_NAME" 1580_ACEOF 1581 1582 1583cat >>confdefs.h <<_ACEOF 1584#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1585_ACEOF 1586 1587 1588cat >>confdefs.h <<_ACEOF 1589#define PACKAGE_VERSION "$PACKAGE_VERSION" 1590_ACEOF 1591 1592 1593cat >>confdefs.h <<_ACEOF 1594#define PACKAGE_STRING "$PACKAGE_STRING" 1595_ACEOF 1596 1597 1598cat >>confdefs.h <<_ACEOF 1599#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1600_ACEOF 1601 1602 1603# Let the site file select an alternate cache file if it wants to. 1604# Prefer explicitly selected file to automatically selected ones. 1605if test -n "$CONFIG_SITE"; then 1606 set x "$CONFIG_SITE" 1607elif test "x$prefix" != xNONE; then 1608 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1609else 1610 set x "$ac_default_prefix/share/config.site" \ 1611 "$ac_default_prefix/etc/config.site" 1612fi 1613shift 1614for ac_site_file 1615do 1616 if test -r "$ac_site_file"; then 1617 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1618echo "$as_me: loading site script $ac_site_file" >&6;} 1619 sed 's/^/| /' "$ac_site_file" >&5 1620 . "$ac_site_file" 1621 fi 1622done 1623 1624if test -r "$cache_file"; then 1625 # Some versions of bash will fail to source /dev/null (special 1626 # files actually), so we avoid doing that. 1627 if test -f "$cache_file"; then 1628 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1629echo "$as_me: loading cache $cache_file" >&6;} 1630 case $cache_file in 1631 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1632 *) . "./$cache_file";; 1633 esac 1634 fi 1635else 1636 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1637echo "$as_me: creating cache $cache_file" >&6;} 1638 >$cache_file 1639fi 1640 1641# Check that the precious variables saved in the cache have kept the same 1642# value. 1643ac_cache_corrupted=false 1644for ac_var in $ac_precious_vars; do 1645 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1646 eval ac_new_set=\$ac_env_${ac_var}_set 1647 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1648 eval ac_new_val=\$ac_env_${ac_var}_value 1649 case $ac_old_set,$ac_new_set in 1650 set,) 1651 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1652echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1653 ac_cache_corrupted=: ;; 1654 ,set) 1655 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1656echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1657 ac_cache_corrupted=: ;; 1658 ,);; 1659 *) 1660 if test "x$ac_old_val" != "x$ac_new_val"; then 1661 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1662echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1663 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1664echo "$as_me: former value: $ac_old_val" >&2;} 1665 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1666echo "$as_me: current value: $ac_new_val" >&2;} 1667 ac_cache_corrupted=: 1668 fi;; 1669 esac 1670 # Pass precious variables to config.status. 1671 if test "$ac_new_set" = set; then 1672 case $ac_new_val in 1673 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1674 *) ac_arg=$ac_var=$ac_new_val ;; 1675 esac 1676 case " $ac_configure_args " in 1677 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1678 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1679 esac 1680 fi 1681done 1682if $ac_cache_corrupted; then 1683 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1684echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1685 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1686echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1687 { (exit 1); exit 1; }; } 1688fi 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706ac_ext=c 1707ac_cpp='$CPP $CPPFLAGS' 1708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1710ac_compiler_gnu=$ac_cv_c_compiler_gnu 1711 1712 1713 1714ac_aux_dir= 1715for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1716 if test -f "$ac_dir/install-sh"; then 1717 ac_aux_dir=$ac_dir 1718 ac_install_sh="$ac_aux_dir/install-sh -c" 1719 break 1720 elif test -f "$ac_dir/install.sh"; then 1721 ac_aux_dir=$ac_dir 1722 ac_install_sh="$ac_aux_dir/install.sh -c" 1723 break 1724 elif test -f "$ac_dir/shtool"; then 1725 ac_aux_dir=$ac_dir 1726 ac_install_sh="$ac_aux_dir/shtool install -c" 1727 break 1728 fi 1729done 1730if test -z "$ac_aux_dir"; then 1731 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1732echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1733 { (exit 1); exit 1; }; } 1734fi 1735 1736# These three variables are undocumented and unsupported, 1737# and are intended to be withdrawn in a future Autoconf release. 1738# They can cause serious problems if a builder's source tree is in a directory 1739# whose full name contains unusual characters. 1740ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1741ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1742ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1743 1744 1745# Make sure we can run config.sub. 1746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1747 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1748echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1749 { (exit 1); exit 1; }; } 1750 1751{ echo "$as_me:$LINENO: checking build system type" >&5 1752echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1753if test "${ac_cv_build+set}" = set; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 ac_build_alias=$build_alias 1757test "x$ac_build_alias" = x && 1758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1759test "x$ac_build_alias" = x && 1760 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1761echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1762 { (exit 1); exit 1; }; } 1763ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1764 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1765echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1766 { (exit 1); exit 1; }; } 1767 1768fi 1769{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1770echo "${ECHO_T}$ac_cv_build" >&6; } 1771case $ac_cv_build in 1772*-*-*) ;; 1773*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1774echo "$as_me: error: invalid value of canonical build" >&2;} 1775 { (exit 1); exit 1; }; };; 1776esac 1777build=$ac_cv_build 1778ac_save_IFS=$IFS; IFS='-' 1779set x $ac_cv_build 1780shift 1781build_cpu=$1 1782build_vendor=$2 1783shift; shift 1784# Remember, the first character of IFS is used to create $*, 1785# except with old shells: 1786build_os=$* 1787IFS=$ac_save_IFS 1788case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1789 1790 1791{ echo "$as_me:$LINENO: checking host system type" >&5 1792echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1793if test "${ac_cv_host+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 if test "x$host_alias" = x; then 1797 ac_cv_host=$ac_cv_build 1798else 1799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1801echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1802 { (exit 1); exit 1; }; } 1803fi 1804 1805fi 1806{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1807echo "${ECHO_T}$ac_cv_host" >&6; } 1808case $ac_cv_host in 1809*-*-*) ;; 1810*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1811echo "$as_me: error: invalid value of canonical host" >&2;} 1812 { (exit 1); exit 1; }; };; 1813esac 1814host=$ac_cv_host 1815ac_save_IFS=$IFS; IFS='-' 1816set x $ac_cv_host 1817shift 1818host_cpu=$1 1819host_vendor=$2 1820shift; shift 1821# Remember, the first character of IFS is used to create $*, 1822# except with old shells: 1823host_os=$* 1824IFS=$ac_save_IFS 1825case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1826 1827 1828 1829 1830 1831 1832 1833 1834# Check whether --with-gcc was given. 1835if test "${with_gcc+set}" = set; then 1836 withval=$with_gcc; 1837fi 1838 1839 V_CCOPT="-O" 1840 V_INCLS="" 1841 if test "${srcdir}" != "." ; then 1842 V_INCLS="-I\$(srcdir)" 1843 fi 1844 if test "${CFLAGS+set}" = set; then 1845 LBL_CFLAGS="$CFLAGS" 1846 fi 1847 if test -z "$CC" ; then 1848 case "$host_os" in 1849 1850 bsdi*) 1851 # Extract the first word of "shlicc2", so it can be a program name with args. 1852set dummy shlicc2; ac_word=$2 1853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1855if test "${ac_cv_prog_SHLICC2+set}" = set; then 1856 echo $ECHO_N "(cached) $ECHO_C" >&6 1857else 1858 if test -n "$SHLICC2"; then 1859 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1860else 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 for ac_exec_ext in '' $ac_executable_extensions; do 1867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1868 ac_cv_prog_SHLICC2="yes" 1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870 break 2 1871 fi 1872done 1873done 1874IFS=$as_save_IFS 1875 1876 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1877fi 1878fi 1879SHLICC2=$ac_cv_prog_SHLICC2 1880if test -n "$SHLICC2"; then 1881 { echo "$as_me:$LINENO: result: $SHLICC2" >&5 1882echo "${ECHO_T}$SHLICC2" >&6; } 1883else 1884 { echo "$as_me:$LINENO: result: no" >&5 1885echo "${ECHO_T}no" >&6; } 1886fi 1887 1888 1889 if test $SHLICC2 = yes ; then 1890 CC=shlicc2 1891 export CC 1892 fi 1893 ;; 1894 esac 1895 fi 1896 if test -z "$CC" -a "$with_gcc" = no ; then 1897 CC=cc 1898 export CC 1899 fi 1900 ac_ext=c 1901ac_cpp='$CPP $CPPFLAGS' 1902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1904ac_compiler_gnu=$ac_cv_c_compiler_gnu 1905if test -n "$ac_tool_prefix"; then 1906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1907set dummy ${ac_tool_prefix}gcc; ac_word=$2 1908{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1910if test "${ac_cv_prog_CC+set}" = set; then 1911 echo $ECHO_N "(cached) $ECHO_C" >&6 1912else 1913 if test -n "$CC"; then 1914 ac_cv_prog_CC="$CC" # Let the user override the test. 1915else 1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1917for as_dir in $PATH 1918do 1919 IFS=$as_save_IFS 1920 test -z "$as_dir" && as_dir=. 1921 for ac_exec_ext in '' $ac_executable_extensions; do 1922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1923 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1925 break 2 1926 fi 1927done 1928done 1929IFS=$as_save_IFS 1930 1931fi 1932fi 1933CC=$ac_cv_prog_CC 1934if test -n "$CC"; then 1935 { echo "$as_me:$LINENO: result: $CC" >&5 1936echo "${ECHO_T}$CC" >&6; } 1937else 1938 { echo "$as_me:$LINENO: result: no" >&5 1939echo "${ECHO_T}no" >&6; } 1940fi 1941 1942 1943fi 1944if test -z "$ac_cv_prog_CC"; then 1945 ac_ct_CC=$CC 1946 # Extract the first word of "gcc", so it can be a program name with args. 1947set dummy gcc; ac_word=$2 1948{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1951 echo $ECHO_N "(cached) $ECHO_C" >&6 1952else 1953 if test -n "$ac_ct_CC"; then 1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1955else 1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1957for as_dir in $PATH 1958do 1959 IFS=$as_save_IFS 1960 test -z "$as_dir" && as_dir=. 1961 for ac_exec_ext in '' $ac_executable_extensions; do 1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1963 ac_cv_prog_ac_ct_CC="gcc" 1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1965 break 2 1966 fi 1967done 1968done 1969IFS=$as_save_IFS 1970 1971fi 1972fi 1973ac_ct_CC=$ac_cv_prog_ac_ct_CC 1974if test -n "$ac_ct_CC"; then 1975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1976echo "${ECHO_T}$ac_ct_CC" >&6; } 1977else 1978 { echo "$as_me:$LINENO: result: no" >&5 1979echo "${ECHO_T}no" >&6; } 1980fi 1981 1982 if test "x$ac_ct_CC" = x; then 1983 CC="" 1984 else 1985 case $cross_compiling:$ac_tool_warned in 1986yes:) 1987{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1988whose name does not start with the host triplet. If you think this 1989configuration is useful to you, please write to autoconf@gnu.org." >&5 1990echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1991whose name does not start with the host triplet. If you think this 1992configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1993ac_tool_warned=yes ;; 1994esac 1995 CC=$ac_ct_CC 1996 fi 1997else 1998 CC="$ac_cv_prog_CC" 1999fi 2000 2001if test -z "$CC"; then 2002 if test -n "$ac_tool_prefix"; then 2003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2004set dummy ${ac_tool_prefix}cc; ac_word=$2 2005{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2007if test "${ac_cv_prog_CC+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 if test -n "$CC"; then 2011 ac_cv_prog_CC="$CC" # Let the user override the test. 2012else 2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014for as_dir in $PATH 2015do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2020 ac_cv_prog_CC="${ac_tool_prefix}cc" 2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2022 break 2 2023 fi 2024done 2025done 2026IFS=$as_save_IFS 2027 2028fi 2029fi 2030CC=$ac_cv_prog_CC 2031if test -n "$CC"; then 2032 { echo "$as_me:$LINENO: result: $CC" >&5 2033echo "${ECHO_T}$CC" >&6; } 2034else 2035 { echo "$as_me:$LINENO: result: no" >&5 2036echo "${ECHO_T}no" >&6; } 2037fi 2038 2039 2040 fi 2041fi 2042if test -z "$CC"; then 2043 # Extract the first word of "cc", so it can be a program name with args. 2044set dummy cc; ac_word=$2 2045{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2047if test "${ac_cv_prog_CC+set}" = set; then 2048 echo $ECHO_N "(cached) $ECHO_C" >&6 2049else 2050 if test -n "$CC"; then 2051 ac_cv_prog_CC="$CC" # Let the user override the test. 2052else 2053 ac_prog_rejected=no 2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2055for as_dir in $PATH 2056do 2057 IFS=$as_save_IFS 2058 test -z "$as_dir" && as_dir=. 2059 for ac_exec_ext in '' $ac_executable_extensions; do 2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2062 ac_prog_rejected=yes 2063 continue 2064 fi 2065 ac_cv_prog_CC="cc" 2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2067 break 2 2068 fi 2069done 2070done 2071IFS=$as_save_IFS 2072 2073if test $ac_prog_rejected = yes; then 2074 # We found a bogon in the path, so make sure we never use it. 2075 set dummy $ac_cv_prog_CC 2076 shift 2077 if test $# != 0; then 2078 # We chose a different compiler from the bogus one. 2079 # However, it has the same basename, so the bogon will be chosen 2080 # first if we set CC to just the basename; use the full file name. 2081 shift 2082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2083 fi 2084fi 2085fi 2086fi 2087CC=$ac_cv_prog_CC 2088if test -n "$CC"; then 2089 { echo "$as_me:$LINENO: result: $CC" >&5 2090echo "${ECHO_T}$CC" >&6; } 2091else 2092 { echo "$as_me:$LINENO: result: no" >&5 2093echo "${ECHO_T}no" >&6; } 2094fi 2095 2096 2097fi 2098if test -z "$CC"; then 2099 if test -n "$ac_tool_prefix"; then 2100 for ac_prog in cl.exe 2101 do 2102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2103set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2104{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2106if test "${ac_cv_prog_CC+set}" = set; then 2107 echo $ECHO_N "(cached) $ECHO_C" >&6 2108else 2109 if test -n "$CC"; then 2110 ac_cv_prog_CC="$CC" # Let the user override the test. 2111else 2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 for ac_exec_ext in '' $ac_executable_extensions; do 2118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 break 2 2122 fi 2123done 2124done 2125IFS=$as_save_IFS 2126 2127fi 2128fi 2129CC=$ac_cv_prog_CC 2130if test -n "$CC"; then 2131 { echo "$as_me:$LINENO: result: $CC" >&5 2132echo "${ECHO_T}$CC" >&6; } 2133else 2134 { echo "$as_me:$LINENO: result: no" >&5 2135echo "${ECHO_T}no" >&6; } 2136fi 2137 2138 2139 test -n "$CC" && break 2140 done 2141fi 2142if test -z "$CC"; then 2143 ac_ct_CC=$CC 2144 for ac_prog in cl.exe 2145do 2146 # Extract the first word of "$ac_prog", so it can be a program name with args. 2147set dummy $ac_prog; ac_word=$2 2148{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2150if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2151 echo $ECHO_N "(cached) $ECHO_C" >&6 2152else 2153 if test -n "$ac_ct_CC"; then 2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2155else 2156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2157for as_dir in $PATH 2158do 2159 IFS=$as_save_IFS 2160 test -z "$as_dir" && as_dir=. 2161 for ac_exec_ext in '' $ac_executable_extensions; do 2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2163 ac_cv_prog_ac_ct_CC="$ac_prog" 2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2165 break 2 2166 fi 2167done 2168done 2169IFS=$as_save_IFS 2170 2171fi 2172fi 2173ac_ct_CC=$ac_cv_prog_ac_ct_CC 2174if test -n "$ac_ct_CC"; then 2175 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2176echo "${ECHO_T}$ac_ct_CC" >&6; } 2177else 2178 { echo "$as_me:$LINENO: result: no" >&5 2179echo "${ECHO_T}no" >&6; } 2180fi 2181 2182 2183 test -n "$ac_ct_CC" && break 2184done 2185 2186 if test "x$ac_ct_CC" = x; then 2187 CC="" 2188 else 2189 case $cross_compiling:$ac_tool_warned in 2190yes:) 2191{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2192whose name does not start with the host triplet. If you think this 2193configuration is useful to you, please write to autoconf@gnu.org." >&5 2194echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2195whose name does not start with the host triplet. If you think this 2196configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2197ac_tool_warned=yes ;; 2198esac 2199 CC=$ac_ct_CC 2200 fi 2201fi 2202 2203fi 2204 2205 2206test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2207See \`config.log' for more details." >&5 2208echo "$as_me: error: no acceptable C compiler found in \$PATH 2209See \`config.log' for more details." >&2;} 2210 { (exit 1); exit 1; }; } 2211 2212# Provide some information about the compiler. 2213echo "$as_me:$LINENO: checking for C compiler version" >&5 2214ac_compiler=`set X $ac_compile; echo $2` 2215{ (ac_try="$ac_compiler --version >&5" 2216case "(($ac_try" in 2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2218 *) ac_try_echo=$ac_try;; 2219esac 2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2221 (eval "$ac_compiler --version >&5") 2>&5 2222 ac_status=$? 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2224 (exit $ac_status); } 2225{ (ac_try="$ac_compiler -v >&5" 2226case "(($ac_try" in 2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2228 *) ac_try_echo=$ac_try;; 2229esac 2230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2231 (eval "$ac_compiler -v >&5") 2>&5 2232 ac_status=$? 2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2234 (exit $ac_status); } 2235{ (ac_try="$ac_compiler -V >&5" 2236case "(($ac_try" in 2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2238 *) ac_try_echo=$ac_try;; 2239esac 2240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2241 (eval "$ac_compiler -V >&5") 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); } 2245 2246cat >conftest.$ac_ext <<_ACEOF 2247/* confdefs.h. */ 2248_ACEOF 2249cat confdefs.h >>conftest.$ac_ext 2250cat >>conftest.$ac_ext <<_ACEOF 2251/* end confdefs.h. */ 2252 2253int 2254main () 2255{ 2256 2257 ; 2258 return 0; 2259} 2260_ACEOF 2261ac_clean_files_save=$ac_clean_files 2262ac_clean_files="$ac_clean_files a.out a.exe b.out" 2263# Try to create an executable without -o first, disregard a.out. 2264# It will help us diagnose broken compilers, and finding out an intuition 2265# of exeext. 2266{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2267echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2268ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2269# 2270# List of possible output files, starting from the most likely. 2271# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2272# only as a last resort. b.out is created by i960 compilers. 2273ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2274# 2275# The IRIX 6 linker writes into existing files which may not be 2276# executable, retaining their permissions. Remove them first so a 2277# subsequent execution test works. 2278ac_rmfiles= 2279for ac_file in $ac_files 2280do 2281 case $ac_file in 2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2283 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2284 esac 2285done 2286rm -f $ac_rmfiles 2287 2288if { (ac_try="$ac_link_default" 2289case "(($ac_try" in 2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2291 *) ac_try_echo=$ac_try;; 2292esac 2293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2294 (eval "$ac_link_default") 2>&5 2295 ac_status=$? 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); }; then 2298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2299# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2300# in a Makefile. We should not override ac_cv_exeext if it was cached, 2301# so that the user can short-circuit this test for compilers unknown to 2302# Autoconf. 2303for ac_file in $ac_files '' 2304do 2305 test -f "$ac_file" || continue 2306 case $ac_file in 2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2308 ;; 2309 [ab].out ) 2310 # We found the default executable, but exeext='' is most 2311 # certainly right. 2312 break;; 2313 *.* ) 2314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2315 then :; else 2316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2317 fi 2318 # We set ac_cv_exeext here because the later test for it is not 2319 # safe: cross compilers may not add the suffix if given an `-o' 2320 # argument, so we may need to know it at that point already. 2321 # Even if this section looks crufty: it has the advantage of 2322 # actually working. 2323 break;; 2324 * ) 2325 break;; 2326 esac 2327done 2328test "$ac_cv_exeext" = no && ac_cv_exeext= 2329 2330else 2331 ac_file='' 2332fi 2333 2334{ echo "$as_me:$LINENO: result: $ac_file" >&5 2335echo "${ECHO_T}$ac_file" >&6; } 2336if test -z "$ac_file"; then 2337 echo "$as_me: failed program was:" >&5 2338sed 's/^/| /' conftest.$ac_ext >&5 2339 2340{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2341See \`config.log' for more details." >&5 2342echo "$as_me: error: C compiler cannot create executables 2343See \`config.log' for more details." >&2;} 2344 { (exit 77); exit 77; }; } 2345fi 2346 2347ac_exeext=$ac_cv_exeext 2348 2349# Check that the compiler produces executables we can run. If not, either 2350# the compiler is broken, or we cross compile. 2351{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2352echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2353# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2354# If not cross compiling, check that we can run a simple program. 2355if test "$cross_compiling" != yes; then 2356 if { ac_try='./$ac_file' 2357 { (case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360esac 2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2362 (eval "$ac_try") 2>&5 2363 ac_status=$? 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2365 (exit $ac_status); }; }; then 2366 cross_compiling=no 2367 else 2368 if test "$cross_compiling" = maybe; then 2369 cross_compiling=yes 2370 else 2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2372If you meant to cross compile, use \`--host'. 2373See \`config.log' for more details." >&5 2374echo "$as_me: error: cannot run C compiled programs. 2375If you meant to cross compile, use \`--host'. 2376See \`config.log' for more details." >&2;} 2377 { (exit 1); exit 1; }; } 2378 fi 2379 fi 2380fi 2381{ echo "$as_me:$LINENO: result: yes" >&5 2382echo "${ECHO_T}yes" >&6; } 2383 2384rm -f a.out a.exe conftest$ac_cv_exeext b.out 2385ac_clean_files=$ac_clean_files_save 2386# Check that the compiler produces executables we can run. If not, either 2387# the compiler is broken, or we cross compile. 2388{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2389echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2390{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2391echo "${ECHO_T}$cross_compiling" >&6; } 2392 2393{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2394echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2395if { (ac_try="$ac_link" 2396case "(($ac_try" in 2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2398 *) ac_try_echo=$ac_try;; 2399esac 2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2401 (eval "$ac_link") 2>&5 2402 ac_status=$? 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); }; then 2405 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2406# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2407# work properly (i.e., refer to `conftest.exe'), while it won't with 2408# `rm'. 2409for ac_file in conftest.exe conftest conftest.*; do 2410 test -f "$ac_file" || continue 2411 case $ac_file in 2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2414 break;; 2415 * ) break;; 2416 esac 2417done 2418else 2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2420See \`config.log' for more details." >&5 2421echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2422See \`config.log' for more details." >&2;} 2423 { (exit 1); exit 1; }; } 2424fi 2425 2426rm -f conftest$ac_cv_exeext 2427{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2428echo "${ECHO_T}$ac_cv_exeext" >&6; } 2429 2430rm -f conftest.$ac_ext 2431EXEEXT=$ac_cv_exeext 2432ac_exeext=$EXEEXT 2433{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2434echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2435if test "${ac_cv_objext+set}" = set; then 2436 echo $ECHO_N "(cached) $ECHO_C" >&6 2437else 2438 cat >conftest.$ac_ext <<_ACEOF 2439/* confdefs.h. */ 2440_ACEOF 2441cat confdefs.h >>conftest.$ac_ext 2442cat >>conftest.$ac_ext <<_ACEOF 2443/* end confdefs.h. */ 2444 2445int 2446main () 2447{ 2448 2449 ; 2450 return 0; 2451} 2452_ACEOF 2453rm -f conftest.o conftest.obj 2454if { (ac_try="$ac_compile" 2455case "(($ac_try" in 2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2457 *) ac_try_echo=$ac_try;; 2458esac 2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2460 (eval "$ac_compile") 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; then 2464 for ac_file in conftest.o conftest.obj conftest.*; do 2465 test -f "$ac_file" || continue; 2466 case $ac_file in 2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2469 break;; 2470 esac 2471done 2472else 2473 echo "$as_me: failed program was:" >&5 2474sed 's/^/| /' conftest.$ac_ext >&5 2475 2476{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2477See \`config.log' for more details." >&5 2478echo "$as_me: error: cannot compute suffix of object files: cannot compile 2479See \`config.log' for more details." >&2;} 2480 { (exit 1); exit 1; }; } 2481fi 2482 2483rm -f conftest.$ac_cv_objext conftest.$ac_ext 2484fi 2485{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2486echo "${ECHO_T}$ac_cv_objext" >&6; } 2487OBJEXT=$ac_cv_objext 2488ac_objext=$OBJEXT 2489{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2490echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2491if test "${ac_cv_c_compiler_gnu+set}" = set; then 2492 echo $ECHO_N "(cached) $ECHO_C" >&6 2493else 2494 cat >conftest.$ac_ext <<_ACEOF 2495/* confdefs.h. */ 2496_ACEOF 2497cat confdefs.h >>conftest.$ac_ext 2498cat >>conftest.$ac_ext <<_ACEOF 2499/* end confdefs.h. */ 2500 2501int 2502main () 2503{ 2504#ifndef __GNUC__ 2505 choke me 2506#endif 2507 2508 ; 2509 return 0; 2510} 2511_ACEOF 2512rm -f conftest.$ac_objext 2513if { (ac_try="$ac_compile" 2514case "(($ac_try" in 2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2516 *) ac_try_echo=$ac_try;; 2517esac 2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2519 (eval "$ac_compile") 2>conftest.er1 2520 ac_status=$? 2521 grep -v '^ *+' conftest.er1 >conftest.err 2522 rm -f conftest.er1 2523 cat conftest.err >&5 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } && { 2526 test -z "$ac_c_werror_flag" || 2527 test ! -s conftest.err 2528 } && test -s conftest.$ac_objext; then 2529 ac_compiler_gnu=yes 2530else 2531 echo "$as_me: failed program was:" >&5 2532sed 's/^/| /' conftest.$ac_ext >&5 2533 2534 ac_compiler_gnu=no 2535fi 2536 2537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2538ac_cv_c_compiler_gnu=$ac_compiler_gnu 2539 2540fi 2541{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2542echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2543GCC=`test $ac_compiler_gnu = yes && echo yes` 2544ac_test_CFLAGS=${CFLAGS+set} 2545ac_save_CFLAGS=$CFLAGS 2546{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2547echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2548if test "${ac_cv_prog_cc_g+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 ac_save_c_werror_flag=$ac_c_werror_flag 2552 ac_c_werror_flag=yes 2553 ac_cv_prog_cc_g=no 2554 CFLAGS="-g" 2555 cat >conftest.$ac_ext <<_ACEOF 2556/* confdefs.h. */ 2557_ACEOF 2558cat confdefs.h >>conftest.$ac_ext 2559cat >>conftest.$ac_ext <<_ACEOF 2560/* end confdefs.h. */ 2561 2562int 2563main () 2564{ 2565 2566 ; 2567 return 0; 2568} 2569_ACEOF 2570rm -f conftest.$ac_objext 2571if { (ac_try="$ac_compile" 2572case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575esac 2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2577 (eval "$ac_compile") 2>conftest.er1 2578 ac_status=$? 2579 grep -v '^ *+' conftest.er1 >conftest.err 2580 rm -f conftest.er1 2581 cat conftest.err >&5 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); } && { 2584 test -z "$ac_c_werror_flag" || 2585 test ! -s conftest.err 2586 } && test -s conftest.$ac_objext; then 2587 ac_cv_prog_cc_g=yes 2588else 2589 echo "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592 CFLAGS="" 2593 cat >conftest.$ac_ext <<_ACEOF 2594/* confdefs.h. */ 2595_ACEOF 2596cat confdefs.h >>conftest.$ac_ext 2597cat >>conftest.$ac_ext <<_ACEOF 2598/* end confdefs.h. */ 2599 2600int 2601main () 2602{ 2603 2604 ; 2605 return 0; 2606} 2607_ACEOF 2608rm -f conftest.$ac_objext 2609if { (ac_try="$ac_compile" 2610case "(($ac_try" in 2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2612 *) ac_try_echo=$ac_try;; 2613esac 2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2615 (eval "$ac_compile") 2>conftest.er1 2616 ac_status=$? 2617 grep -v '^ *+' conftest.er1 >conftest.err 2618 rm -f conftest.er1 2619 cat conftest.err >&5 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); } && { 2622 test -z "$ac_c_werror_flag" || 2623 test ! -s conftest.err 2624 } && test -s conftest.$ac_objext; then 2625 : 2626else 2627 echo "$as_me: failed program was:" >&5 2628sed 's/^/| /' conftest.$ac_ext >&5 2629 2630 ac_c_werror_flag=$ac_save_c_werror_flag 2631 CFLAGS="-g" 2632 cat >conftest.$ac_ext <<_ACEOF 2633/* confdefs.h. */ 2634_ACEOF 2635cat confdefs.h >>conftest.$ac_ext 2636cat >>conftest.$ac_ext <<_ACEOF 2637/* end confdefs.h. */ 2638 2639int 2640main () 2641{ 2642 2643 ; 2644 return 0; 2645} 2646_ACEOF 2647rm -f conftest.$ac_objext 2648if { (ac_try="$ac_compile" 2649case "(($ac_try" in 2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2651 *) ac_try_echo=$ac_try;; 2652esac 2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2654 (eval "$ac_compile") 2>conftest.er1 2655 ac_status=$? 2656 grep -v '^ *+' conftest.er1 >conftest.err 2657 rm -f conftest.er1 2658 cat conftest.err >&5 2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2660 (exit $ac_status); } && { 2661 test -z "$ac_c_werror_flag" || 2662 test ! -s conftest.err 2663 } && test -s conftest.$ac_objext; then 2664 ac_cv_prog_cc_g=yes 2665else 2666 echo "$as_me: failed program was:" >&5 2667sed 's/^/| /' conftest.$ac_ext >&5 2668 2669 2670fi 2671 2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2673fi 2674 2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2676fi 2677 2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2679 ac_c_werror_flag=$ac_save_c_werror_flag 2680fi 2681{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2682echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2683if test "$ac_test_CFLAGS" = set; then 2684 CFLAGS=$ac_save_CFLAGS 2685elif test $ac_cv_prog_cc_g = yes; then 2686 if test "$GCC" = yes; then 2687 CFLAGS="-g -O2" 2688 else 2689 CFLAGS="-g" 2690 fi 2691else 2692 if test "$GCC" = yes; then 2693 CFLAGS="-O2" 2694 else 2695 CFLAGS= 2696 fi 2697fi 2698{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2699echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2700if test "${ac_cv_prog_cc_c89+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 ac_cv_prog_cc_c89=no 2704ac_save_CC=$CC 2705cat >conftest.$ac_ext <<_ACEOF 2706/* confdefs.h. */ 2707_ACEOF 2708cat confdefs.h >>conftest.$ac_ext 2709cat >>conftest.$ac_ext <<_ACEOF 2710/* end confdefs.h. */ 2711#include <stdarg.h> 2712#include <stdio.h> 2713#include <sys/types.h> 2714#include <sys/stat.h> 2715/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2716struct buf { int x; }; 2717FILE * (*rcsopen) (struct buf *, struct stat *, int); 2718static char *e (p, i) 2719 char **p; 2720 int i; 2721{ 2722 return p[i]; 2723} 2724static char *f (char * (*g) (char **, int), char **p, ...) 2725{ 2726 char *s; 2727 va_list v; 2728 va_start (v,p); 2729 s = g (p, va_arg (v,int)); 2730 va_end (v); 2731 return s; 2732} 2733 2734/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2735 function prototypes and stuff, but not '\xHH' hex character constants. 2736 These don't provoke an error unfortunately, instead are silently treated 2737 as 'x'. The following induces an error, until -std is added to get 2738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2739 array size at least. It's necessary to write '\x00'==0 to get something 2740 that's true only with -std. */ 2741int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2742 2743/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2744 inside strings and character constants. */ 2745#define FOO(x) 'x' 2746int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2747 2748int test (int i, double x); 2749struct s1 {int (*f) (int a);}; 2750struct s2 {int (*f) (double a);}; 2751int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2752int argc; 2753char **argv; 2754int 2755main () 2756{ 2757return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2758 ; 2759 return 0; 2760} 2761_ACEOF 2762for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2764do 2765 CC="$ac_save_CC $ac_arg" 2766 rm -f conftest.$ac_objext 2767if { (ac_try="$ac_compile" 2768case "(($ac_try" in 2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2770 *) ac_try_echo=$ac_try;; 2771esac 2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2773 (eval "$ac_compile") 2>conftest.er1 2774 ac_status=$? 2775 grep -v '^ *+' conftest.er1 >conftest.err 2776 rm -f conftest.er1 2777 cat conftest.err >&5 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2779 (exit $ac_status); } && { 2780 test -z "$ac_c_werror_flag" || 2781 test ! -s conftest.err 2782 } && test -s conftest.$ac_objext; then 2783 ac_cv_prog_cc_c89=$ac_arg 2784else 2785 echo "$as_me: failed program was:" >&5 2786sed 's/^/| /' conftest.$ac_ext >&5 2787 2788 2789fi 2790 2791rm -f core conftest.err conftest.$ac_objext 2792 test "x$ac_cv_prog_cc_c89" != "xno" && break 2793done 2794rm -f conftest.$ac_ext 2795CC=$ac_save_CC 2796 2797fi 2798# AC_CACHE_VAL 2799case "x$ac_cv_prog_cc_c89" in 2800 x) 2801 { echo "$as_me:$LINENO: result: none needed" >&5 2802echo "${ECHO_T}none needed" >&6; } ;; 2803 xno) 2804 { echo "$as_me:$LINENO: result: unsupported" >&5 2805echo "${ECHO_T}unsupported" >&6; } ;; 2806 *) 2807 CC="$CC $ac_cv_prog_cc_c89" 2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2809echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2810esac 2811 2812 2813ac_ext=c 2814ac_cpp='$CPP $CPPFLAGS' 2815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2817ac_compiler_gnu=$ac_cv_c_compiler_gnu 2818 2819 if test "$GCC" = yes ; then 2820 if test "$SHLICC2" = yes ; then 2821 ac_cv_lbl_gcc_vers=2 2822 V_CCOPT="-O2" 2823 else 2824 { echo "$as_me:$LINENO: checking gcc version" >&5 2825echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } 2826 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2827 echo $ECHO_N "(cached) $ECHO_C" >&6 2828else 2829 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2830 sed -e '/^gcc version /!d' \ 2831 -e 's/^gcc version //' \ 2832 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2833 -e 's/\..*//'` 2834fi 2835 2836 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2837echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; } 2838 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2839 V_CCOPT="-O2" 2840 fi 2841 fi 2842 else 2843 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2844echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; } 2845 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2846 echo $ECHO_N "(cached) $ECHO_C" >&6 2847else 2848 2849cat >conftest.$ac_ext <<_ACEOF 2850/* confdefs.h. */ 2851_ACEOF 2852cat confdefs.h >>conftest.$ac_ext 2853cat >>conftest.$ac_ext <<_ACEOF 2854/* end confdefs.h. */ 2855#include <sys/types.h> 2856int 2857main () 2858{ 2859int frob(int, char *) 2860 ; 2861 return 0; 2862} 2863_ACEOF 2864rm -f conftest.$ac_objext 2865if { (ac_try="$ac_compile" 2866case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2871 (eval "$ac_compile") 2>conftest.er1 2872 ac_status=$? 2873 grep -v '^ *+' conftest.er1 >conftest.err 2874 rm -f conftest.er1 2875 cat conftest.err >&5 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); } && { 2878 test -z "$ac_c_werror_flag" || 2879 test ! -s conftest.err 2880 } && test -s conftest.$ac_objext; then 2881 ac_cv_lbl_cc_ansi_prototypes=yes 2882else 2883 echo "$as_me: failed program was:" >&5 2884sed 's/^/| /' conftest.$ac_ext >&5 2885 2886 ac_cv_lbl_cc_ansi_prototypes=no 2887fi 2888 2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2890fi 2891 2892 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2893echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; } 2894 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2895 case "$host_os" in 2896 2897 hpux*) 2898 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2899echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; } 2900 savedcflags="$CFLAGS" 2901 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2902 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2903 echo $ECHO_N "(cached) $ECHO_C" >&6 2904else 2905 cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911#include <sys/types.h> 2912int 2913main () 2914{ 2915int frob(int, char *) 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920rm -f conftest.$ac_objext 2921if { (ac_try="$ac_compile" 2922case "(($ac_try" in 2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2924 *) ac_try_echo=$ac_try;; 2925esac 2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2927 (eval "$ac_compile") 2>conftest.er1 2928 ac_status=$? 2929 grep -v '^ *+' conftest.er1 >conftest.err 2930 rm -f conftest.er1 2931 cat conftest.err >&5 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2933 (exit $ac_status); } && { 2934 test -z "$ac_c_werror_flag" || 2935 test ! -s conftest.err 2936 } && test -s conftest.$ac_objext; then 2937 ac_cv_lbl_cc_hpux_cc_aa=yes 2938else 2939 echo "$as_me: failed program was:" >&5 2940sed 's/^/| /' conftest.$ac_ext >&5 2941 2942 ac_cv_lbl_cc_hpux_cc_aa=no 2943fi 2944 2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2946fi 2947 2948 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2949echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 2950 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2951 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2952echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2953 { (exit 1); exit 1; }; } 2954 fi 2955 CFLAGS="$savedcflags" 2956 V_CCOPT="-Aa $V_CCOPT" 2957 cat >>confdefs.h <<\_ACEOF 2958#define _HPUX_SOURCE 1 2959_ACEOF 2960 2961 ;; 2962 2963 *) 2964 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2965echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2966 { (exit 1); exit 1; }; } 2967 ;; 2968 esac 2969 fi 2970 V_INCLS="$V_INCLS -I/usr/local/include" 2971 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2972 2973 case "$host_os" in 2974 2975 irix*) 2976 V_CCOPT="$V_CCOPT -xansi -signed -O" 2977 ;; 2978 2979 osf*) 2980 V_CCOPT="$V_CCOPT -std1 -O" 2981 ;; 2982 2983 ultrix*) 2984 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2985echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; } 2986 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2987 echo $ECHO_N "(cached) $ECHO_C" >&6 2988else 2989 cat >conftest.$ac_ext <<_ACEOF 2990/* confdefs.h. */ 2991_ACEOF 2992cat confdefs.h >>conftest.$ac_ext 2993cat >>conftest.$ac_ext <<_ACEOF 2994/* end confdefs.h. */ 2995#include <sys/types.h> 2996int 2997main () 2998{ 2999struct a { int b; }; 3000 void c(const struct a *) 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005rm -f conftest.$ac_objext 3006if { (ac_try="$ac_compile" 3007case "(($ac_try" in 3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3009 *) ac_try_echo=$ac_try;; 3010esac 3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3012 (eval "$ac_compile") 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } && { 3019 test -z "$ac_c_werror_flag" || 3020 test ! -s conftest.err 3021 } && test -s conftest.$ac_objext; then 3022 ac_cv_lbl_cc_const_proto=yes 3023else 3024 echo "$as_me: failed program was:" >&5 3025sed 's/^/| /' conftest.$ac_ext >&5 3026 3027 ac_cv_lbl_cc_const_proto=no 3028fi 3029 3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3031fi 3032 3033 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 3034echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; } 3035 if test $ac_cv_lbl_cc_const_proto = no ; then 3036 cat >>confdefs.h <<\_ACEOF 3037#define const 3038_ACEOF 3039 3040 fi 3041 ;; 3042 esac 3043 fi 3044 3045{ echo "$as_me:$LINENO: checking for inline" >&5 3046echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 3047 if test "${ac_cv_lbl_inline+set}" = set; then 3048 echo $ECHO_N "(cached) $ECHO_C" >&6 3049else 3050 3051 ac_cv_lbl_inline="" 3052 ac_lbl_cc_inline=no 3053 for ac_lbl_inline in inline __inline__ __inline 3054 do 3055 cat >conftest.$ac_ext <<_ACEOF 3056/* confdefs.h. */ 3057_ACEOF 3058cat confdefs.h >>conftest.$ac_ext 3059cat >>conftest.$ac_ext <<_ACEOF 3060/* end confdefs.h. */ 3061#define inline $ac_lbl_inline 3062 static inline struct iltest *foo(void); 3063 struct iltest { 3064 int iltest1; 3065 int iltest2; 3066 }; 3067 3068 static inline struct iltest * 3069 foo() 3070 { 3071 static struct iltest xxx; 3072 3073 return &xxx; 3074 } 3075int 3076main () 3077{ 3078 3079 ; 3080 return 0; 3081} 3082_ACEOF 3083rm -f conftest.$ac_objext 3084if { (ac_try="$ac_compile" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3090 (eval "$ac_compile") 2>conftest.er1 3091 ac_status=$? 3092 grep -v '^ *+' conftest.er1 >conftest.err 3093 rm -f conftest.er1 3094 cat conftest.err >&5 3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3096 (exit $ac_status); } && { 3097 test -z "$ac_c_werror_flag" || 3098 test ! -s conftest.err 3099 } && test -s conftest.$ac_objext; then 3100 ac_lbl_cc_inline=yes 3101else 3102 echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 3106fi 3107 3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3109 if test "$ac_lbl_cc_inline" = yes ; then 3110 break; 3111 fi 3112 done 3113 if test "$ac_lbl_cc_inline" = yes ; then 3114 ac_cv_lbl_inline=$ac_lbl_inline 3115 fi 3116fi 3117 3118 if test ! -z "$ac_cv_lbl_inline" ; then 3119 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 3120echo "${ECHO_T}$ac_cv_lbl_inline" >&6; } 3121 else 3122 { echo "$as_me:$LINENO: result: no" >&5 3123echo "${ECHO_T}no" >&6; } 3124 fi 3125 3126cat >>confdefs.h <<_ACEOF 3127#define inline $ac_cv_lbl_inline 3128_ACEOF 3129 3130 3131{ echo "$as_me:$LINENO: checking for __attribute__" >&5 3132echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } 3133if test "${ac_cv___attribute__+set}" = set; then 3134 echo $ECHO_N "(cached) $ECHO_C" >&6 3135else 3136 3137cat >conftest.$ac_ext <<_ACEOF 3138/* confdefs.h. */ 3139_ACEOF 3140cat confdefs.h >>conftest.$ac_ext 3141cat >>conftest.$ac_ext <<_ACEOF 3142/* end confdefs.h. */ 3143 3144#include <stdlib.h> 3145 3146static void foo(void) __attribute__ ((noreturn)); 3147 3148static void 3149foo(void) 3150{ 3151 exit(1); 3152} 3153 3154int 3155main(int argc, char **argv) 3156{ 3157 foo(); 3158} 3159 3160_ACEOF 3161rm -f conftest.$ac_objext 3162if { (ac_try="$ac_compile" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_compile") 2>conftest.er1 3169 ac_status=$? 3170 grep -v '^ *+' conftest.er1 >conftest.err 3171 rm -f conftest.er1 3172 cat conftest.err >&5 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } && { 3175 test -z "$ac_c_werror_flag" || 3176 test ! -s conftest.err 3177 } && test -s conftest.$ac_objext; then 3178 ac_cv___attribute__=yes 3179else 3180 echo "$as_me: failed program was:" >&5 3181sed 's/^/| /' conftest.$ac_ext >&5 3182 3183 ac_cv___attribute__=no 3184fi 3185 3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3187fi 3188 3189if test "$ac_cv___attribute__" = "yes"; then 3190 3191cat >>confdefs.h <<\_ACEOF 3192#define HAVE___ATTRIBUTE__ 1 3193_ACEOF 3194 3195 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3196else 3197 V_DEFS="$V_DEFS -D_U_=\"\"" 3198fi 3199{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3200echo "${ECHO_T}$ac_cv___attribute__" >&6; } 3201 3202ac_ext=c 3203ac_cpp='$CPP $CPPFLAGS' 3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3206ac_compiler_gnu=$ac_cv_c_compiler_gnu 3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3209# On Suns, sometimes $CPP names a directory. 3210if test -n "$CPP" && test -d "$CPP"; then 3211 CPP= 3212fi 3213if test -z "$CPP"; then 3214 if test "${ac_cv_prog_CPP+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216else 3217 # Double quotes because CPP needs to be expanded 3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3219 do 3220 ac_preproc_ok=false 3221for ac_c_preproc_warn_flag in '' yes 3222do 3223 # Use a header file that comes with gcc, so configuring glibc 3224 # with a fresh cross-compiler works. 3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3226 # <limits.h> exists even on freestanding compilers. 3227 # On the NeXT, cc -E runs the code through the compiler's parser, 3228 # not just through cpp. "Syntax error" is here to catch this case. 3229 cat >conftest.$ac_ext <<_ACEOF 3230/* confdefs.h. */ 3231_ACEOF 3232cat confdefs.h >>conftest.$ac_ext 3233cat >>conftest.$ac_ext <<_ACEOF 3234/* end confdefs.h. */ 3235#ifdef __STDC__ 3236# include <limits.h> 3237#else 3238# include <assert.h> 3239#endif 3240 Syntax error 3241_ACEOF 3242if { (ac_try="$ac_cpp conftest.$ac_ext" 3243case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246esac 3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3249 ac_status=$? 3250 grep -v '^ *+' conftest.er1 >conftest.err 3251 rm -f conftest.er1 3252 cat conftest.err >&5 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); } >/dev/null && { 3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3256 test ! -s conftest.err 3257 }; then 3258 : 3259else 3260 echo "$as_me: failed program was:" >&5 3261sed 's/^/| /' conftest.$ac_ext >&5 3262 3263 # Broken: fails on valid input. 3264continue 3265fi 3266 3267rm -f conftest.err conftest.$ac_ext 3268 3269 # OK, works on sane cases. Now check whether nonexistent headers 3270 # can be detected and how. 3271 cat >conftest.$ac_ext <<_ACEOF 3272/* confdefs.h. */ 3273_ACEOF 3274cat confdefs.h >>conftest.$ac_ext 3275cat >>conftest.$ac_ext <<_ACEOF 3276/* end confdefs.h. */ 3277#include <ac_nonexistent.h> 3278_ACEOF 3279if { (ac_try="$ac_cpp conftest.$ac_ext" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } >/dev/null && { 3292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3293 test ! -s conftest.err 3294 }; then 3295 # Broken: success on invalid input. 3296continue 3297else 3298 echo "$as_me: failed program was:" >&5 3299sed 's/^/| /' conftest.$ac_ext >&5 3300 3301 # Passes both tests. 3302ac_preproc_ok=: 3303break 3304fi 3305 3306rm -f conftest.err conftest.$ac_ext 3307 3308done 3309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3310rm -f conftest.err conftest.$ac_ext 3311if $ac_preproc_ok; then 3312 break 3313fi 3314 3315 done 3316 ac_cv_prog_CPP=$CPP 3317 3318fi 3319 CPP=$ac_cv_prog_CPP 3320else 3321 ac_cv_prog_CPP=$CPP 3322fi 3323{ echo "$as_me:$LINENO: result: $CPP" >&5 3324echo "${ECHO_T}$CPP" >&6; } 3325ac_preproc_ok=false 3326for ac_c_preproc_warn_flag in '' yes 3327do 3328 # Use a header file that comes with gcc, so configuring glibc 3329 # with a fresh cross-compiler works. 3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3331 # <limits.h> exists even on freestanding compilers. 3332 # On the NeXT, cc -E runs the code through the compiler's parser, 3333 # not just through cpp. "Syntax error" is here to catch this case. 3334 cat >conftest.$ac_ext <<_ACEOF 3335/* confdefs.h. */ 3336_ACEOF 3337cat confdefs.h >>conftest.$ac_ext 3338cat >>conftest.$ac_ext <<_ACEOF 3339/* end confdefs.h. */ 3340#ifdef __STDC__ 3341# include <limits.h> 3342#else 3343# include <assert.h> 3344#endif 3345 Syntax error 3346_ACEOF 3347if { (ac_try="$ac_cpp conftest.$ac_ext" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3354 ac_status=$? 3355 grep -v '^ *+' conftest.er1 >conftest.err 3356 rm -f conftest.er1 3357 cat conftest.err >&5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } >/dev/null && { 3360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3361 test ! -s conftest.err 3362 }; then 3363 : 3364else 3365 echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368 # Broken: fails on valid input. 3369continue 3370fi 3371 3372rm -f conftest.err conftest.$ac_ext 3373 3374 # OK, works on sane cases. Now check whether nonexistent headers 3375 # can be detected and how. 3376 cat >conftest.$ac_ext <<_ACEOF 3377/* confdefs.h. */ 3378_ACEOF 3379cat confdefs.h >>conftest.$ac_ext 3380cat >>conftest.$ac_ext <<_ACEOF 3381/* end confdefs.h. */ 3382#include <ac_nonexistent.h> 3383_ACEOF 3384if { (ac_try="$ac_cpp conftest.$ac_ext" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3391 ac_status=$? 3392 grep -v '^ *+' conftest.er1 >conftest.err 3393 rm -f conftest.er1 3394 cat conftest.err >&5 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); } >/dev/null && { 3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3398 test ! -s conftest.err 3399 }; then 3400 # Broken: success on invalid input. 3401continue 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406 # Passes both tests. 3407ac_preproc_ok=: 3408break 3409fi 3410 3411rm -f conftest.err conftest.$ac_ext 3412 3413done 3414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3415rm -f conftest.err conftest.$ac_ext 3416if $ac_preproc_ok; then 3417 : 3418else 3419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3420See \`config.log' for more details." >&5 3421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3422See \`config.log' for more details." >&2;} 3423 { (exit 1); exit 1; }; } 3424fi 3425 3426ac_ext=c 3427ac_cpp='$CPP $CPPFLAGS' 3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430ac_compiler_gnu=$ac_cv_c_compiler_gnu 3431 3432 3433{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3434echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3435if test "${ac_cv_path_GREP+set}" = set; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437else 3438 # Extract the first word of "grep ggrep" to use in msg output 3439if test -z "$GREP"; then 3440set dummy grep ggrep; ac_prog_name=$2 3441if test "${ac_cv_path_GREP+set}" = set; then 3442 echo $ECHO_N "(cached) $ECHO_C" >&6 3443else 3444 ac_path_GREP_found=false 3445# Loop through the user's path and test for each of PROGNAME-LIST 3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3448do 3449 IFS=$as_save_IFS 3450 test -z "$as_dir" && as_dir=. 3451 for ac_prog in grep ggrep; do 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3455 # Check for GNU ac_path_GREP and select it if it is found. 3456 # Check for GNU $ac_path_GREP 3457case `"$ac_path_GREP" --version 2>&1` in 3458*GNU*) 3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3460*) 3461 ac_count=0 3462 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3463 while : 3464 do 3465 cat "conftest.in" "conftest.in" >"conftest.tmp" 3466 mv "conftest.tmp" "conftest.in" 3467 cp "conftest.in" "conftest.nl" 3468 echo 'GREP' >> "conftest.nl" 3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3471 ac_count=`expr $ac_count + 1` 3472 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3473 # Best one so far, save it but keep looking for a better one 3474 ac_cv_path_GREP="$ac_path_GREP" 3475 ac_path_GREP_max=$ac_count 3476 fi 3477 # 10*(2^10) chars as input seems more than enough 3478 test $ac_count -gt 10 && break 3479 done 3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3481esac 3482 3483 3484 $ac_path_GREP_found && break 3 3485 done 3486done 3487 3488done 3489IFS=$as_save_IFS 3490 3491 3492fi 3493 3494GREP="$ac_cv_path_GREP" 3495if test -z "$GREP"; then 3496 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3497echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3498 { (exit 1); exit 1; }; } 3499fi 3500 3501else 3502 ac_cv_path_GREP=$GREP 3503fi 3504 3505 3506fi 3507{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3508echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3509 GREP="$ac_cv_path_GREP" 3510 3511 3512{ echo "$as_me:$LINENO: checking for egrep" >&5 3513echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3514if test "${ac_cv_path_EGREP+set}" = set; then 3515 echo $ECHO_N "(cached) $ECHO_C" >&6 3516else 3517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3518 then ac_cv_path_EGREP="$GREP -E" 3519 else 3520 # Extract the first word of "egrep" to use in msg output 3521if test -z "$EGREP"; then 3522set dummy egrep; ac_prog_name=$2 3523if test "${ac_cv_path_EGREP+set}" = set; then 3524 echo $ECHO_N "(cached) $ECHO_C" >&6 3525else 3526 ac_path_EGREP_found=false 3527# Loop through the user's path and test for each of PROGNAME-LIST 3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_prog in egrep; do 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3536 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3537 # Check for GNU ac_path_EGREP and select it if it is found. 3538 # Check for GNU $ac_path_EGREP 3539case `"$ac_path_EGREP" --version 2>&1` in 3540*GNU*) 3541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3542*) 3543 ac_count=0 3544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3545 while : 3546 do 3547 cat "conftest.in" "conftest.in" >"conftest.tmp" 3548 mv "conftest.tmp" "conftest.in" 3549 cp "conftest.in" "conftest.nl" 3550 echo 'EGREP' >> "conftest.nl" 3551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3553 ac_count=`expr $ac_count + 1` 3554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3555 # Best one so far, save it but keep looking for a better one 3556 ac_cv_path_EGREP="$ac_path_EGREP" 3557 ac_path_EGREP_max=$ac_count 3558 fi 3559 # 10*(2^10) chars as input seems more than enough 3560 test $ac_count -gt 10 && break 3561 done 3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3563esac 3564 3565 3566 $ac_path_EGREP_found && break 3 3567 done 3568done 3569 3570done 3571IFS=$as_save_IFS 3572 3573 3574fi 3575 3576EGREP="$ac_cv_path_EGREP" 3577if test -z "$EGREP"; then 3578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3579echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3580 { (exit 1); exit 1; }; } 3581fi 3582 3583else 3584 ac_cv_path_EGREP=$EGREP 3585fi 3586 3587 3588 fi 3589fi 3590{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3591echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3592 EGREP="$ac_cv_path_EGREP" 3593 3594 3595{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3596echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3597if test "${ac_cv_header_stdc+set}" = set; then 3598 echo $ECHO_N "(cached) $ECHO_C" >&6 3599else 3600 cat >conftest.$ac_ext <<_ACEOF 3601/* confdefs.h. */ 3602_ACEOF 3603cat confdefs.h >>conftest.$ac_ext 3604cat >>conftest.$ac_ext <<_ACEOF 3605/* end confdefs.h. */ 3606#include <stdlib.h> 3607#include <stdarg.h> 3608#include <string.h> 3609#include <float.h> 3610 3611int 3612main () 3613{ 3614 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619rm -f conftest.$ac_objext 3620if { (ac_try="$ac_compile" 3621case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3626 (eval "$ac_compile") 2>conftest.er1 3627 ac_status=$? 3628 grep -v '^ *+' conftest.er1 >conftest.err 3629 rm -f conftest.er1 3630 cat conftest.err >&5 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } && { 3633 test -z "$ac_c_werror_flag" || 3634 test ! -s conftest.err 3635 } && test -s conftest.$ac_objext; then 3636 ac_cv_header_stdc=yes 3637else 3638 echo "$as_me: failed program was:" >&5 3639sed 's/^/| /' conftest.$ac_ext >&5 3640 3641 ac_cv_header_stdc=no 3642fi 3643 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645 3646if test $ac_cv_header_stdc = yes; then 3647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3648 cat >conftest.$ac_ext <<_ACEOF 3649/* confdefs.h. */ 3650_ACEOF 3651cat confdefs.h >>conftest.$ac_ext 3652cat >>conftest.$ac_ext <<_ACEOF 3653/* end confdefs.h. */ 3654#include <string.h> 3655 3656_ACEOF 3657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3658 $EGREP "memchr" >/dev/null 2>&1; then 3659 : 3660else 3661 ac_cv_header_stdc=no 3662fi 3663rm -f conftest* 3664 3665fi 3666 3667if test $ac_cv_header_stdc = yes; then 3668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3669 cat >conftest.$ac_ext <<_ACEOF 3670/* confdefs.h. */ 3671_ACEOF 3672cat confdefs.h >>conftest.$ac_ext 3673cat >>conftest.$ac_ext <<_ACEOF 3674/* end confdefs.h. */ 3675#include <stdlib.h> 3676 3677_ACEOF 3678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3679 $EGREP "free" >/dev/null 2>&1; then 3680 : 3681else 3682 ac_cv_header_stdc=no 3683fi 3684rm -f conftest* 3685 3686fi 3687 3688if test $ac_cv_header_stdc = yes; then 3689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3690 if test "$cross_compiling" = yes; then 3691 : 3692else 3693 cat >conftest.$ac_ext <<_ACEOF 3694/* confdefs.h. */ 3695_ACEOF 3696cat confdefs.h >>conftest.$ac_ext 3697cat >>conftest.$ac_ext <<_ACEOF 3698/* end confdefs.h. */ 3699#include <ctype.h> 3700#include <stdlib.h> 3701#if ((' ' & 0x0FF) == 0x020) 3702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3704#else 3705# define ISLOWER(c) \ 3706 (('a' <= (c) && (c) <= 'i') \ 3707 || ('j' <= (c) && (c) <= 'r') \ 3708 || ('s' <= (c) && (c) <= 'z')) 3709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3710#endif 3711 3712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3713int 3714main () 3715{ 3716 int i; 3717 for (i = 0; i < 256; i++) 3718 if (XOR (islower (i), ISLOWER (i)) 3719 || toupper (i) != TOUPPER (i)) 3720 return 2; 3721 return 0; 3722} 3723_ACEOF 3724rm -f conftest$ac_exeext 3725if { (ac_try="$ac_link" 3726case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729esac 3730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3731 (eval "$ac_link") 2>&5 3732 ac_status=$? 3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3735 { (case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3740 (eval "$ac_try") 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; }; then 3744 : 3745else 3746 echo "$as_me: program exited with status $ac_status" >&5 3747echo "$as_me: failed program was:" >&5 3748sed 's/^/| /' conftest.$ac_ext >&5 3749 3750( exit $ac_status ) 3751ac_cv_header_stdc=no 3752fi 3753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3754fi 3755 3756 3757fi 3758fi 3759{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3760echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3761if test $ac_cv_header_stdc = yes; then 3762 3763cat >>confdefs.h <<\_ACEOF 3764#define STDC_HEADERS 1 3765_ACEOF 3766 3767fi 3768 3769# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3780 inttypes.h stdint.h unistd.h 3781do 3782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3783{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 cat >conftest.$ac_ext <<_ACEOF 3789/* confdefs.h. */ 3790_ACEOF 3791cat confdefs.h >>conftest.$ac_ext 3792cat >>conftest.$ac_ext <<_ACEOF 3793/* end confdefs.h. */ 3794$ac_includes_default 3795 3796#include <$ac_header> 3797_ACEOF 3798rm -f conftest.$ac_objext 3799if { (ac_try="$ac_compile" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3805 (eval "$ac_compile") 2>conftest.er1 3806 ac_status=$? 3807 grep -v '^ *+' conftest.er1 >conftest.err 3808 rm -f conftest.er1 3809 cat conftest.err >&5 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && { 3812 test -z "$ac_c_werror_flag" || 3813 test ! -s conftest.err 3814 } && test -s conftest.$ac_objext; then 3815 eval "$as_ac_Header=yes" 3816else 3817 echo "$as_me: failed program was:" >&5 3818sed 's/^/| /' conftest.$ac_ext >&5 3819 3820 eval "$as_ac_Header=no" 3821fi 3822 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824fi 3825ac_res=`eval echo '${'$as_ac_Header'}'` 3826 { echo "$as_me:$LINENO: result: $ac_res" >&5 3827echo "${ECHO_T}$ac_res" >&6; } 3828if test `eval echo '${'$as_ac_Header'}'` = yes; then 3829 cat >>confdefs.h <<_ACEOF 3830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3831_ACEOF 3832 3833fi 3834 3835done 3836 3837 3838 3839 3840 3841for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h 3842do 3843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3845 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3848 echo $ECHO_N "(cached) $ECHO_C" >&6 3849fi 3850ac_res=`eval echo '${'$as_ac_Header'}'` 3851 { echo "$as_me:$LINENO: result: $ac_res" >&5 3852echo "${ECHO_T}$ac_res" >&6; } 3853else 3854 # Is the header compilable? 3855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 3856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3857cat >conftest.$ac_ext <<_ACEOF 3858/* confdefs.h. */ 3859_ACEOF 3860cat confdefs.h >>conftest.$ac_ext 3861cat >>conftest.$ac_ext <<_ACEOF 3862/* end confdefs.h. */ 3863$ac_includes_default 3864#include <$ac_header> 3865_ACEOF 3866rm -f conftest.$ac_objext 3867if { (ac_try="$ac_compile" 3868case "(($ac_try" in 3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3870 *) ac_try_echo=$ac_try;; 3871esac 3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3873 (eval "$ac_compile") 2>conftest.er1 3874 ac_status=$? 3875 grep -v '^ *+' conftest.er1 >conftest.err 3876 rm -f conftest.er1 3877 cat conftest.err >&5 3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3879 (exit $ac_status); } && { 3880 test -z "$ac_c_werror_flag" || 3881 test ! -s conftest.err 3882 } && test -s conftest.$ac_objext; then 3883 ac_header_compiler=yes 3884else 3885 echo "$as_me: failed program was:" >&5 3886sed 's/^/| /' conftest.$ac_ext >&5 3887 3888 ac_header_compiler=no 3889fi 3890 3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3893echo "${ECHO_T}$ac_header_compiler" >&6; } 3894 3895# Is the header present? 3896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 3897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3898cat >conftest.$ac_ext <<_ACEOF 3899/* confdefs.h. */ 3900_ACEOF 3901cat confdefs.h >>conftest.$ac_ext 3902cat >>conftest.$ac_ext <<_ACEOF 3903/* end confdefs.h. */ 3904#include <$ac_header> 3905_ACEOF 3906if { (ac_try="$ac_cpp conftest.$ac_ext" 3907case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3913 ac_status=$? 3914 grep -v '^ *+' conftest.er1 >conftest.err 3915 rm -f conftest.er1 3916 cat conftest.err >&5 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 (exit $ac_status); } >/dev/null && { 3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3920 test ! -s conftest.err 3921 }; then 3922 ac_header_preproc=yes 3923else 3924 echo "$as_me: failed program was:" >&5 3925sed 's/^/| /' conftest.$ac_ext >&5 3926 3927 ac_header_preproc=no 3928fi 3929 3930rm -f conftest.err conftest.$ac_ext 3931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3932echo "${ECHO_T}$ac_header_preproc" >&6; } 3933 3934# So? What about this header? 3935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3936 yes:no: ) 3937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3941 ac_header_preproc=yes 3942 ;; 3943 no:yes:* ) 3944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3956 3957 ;; 3958esac 3959{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963else 3964 eval "$as_ac_Header=\$ac_header_preproc" 3965fi 3966ac_res=`eval echo '${'$as_ac_Header'}'` 3967 { echo "$as_me:$LINENO: result: $ac_res" >&5 3968echo "${ECHO_T}$ac_res" >&6; } 3969 3970fi 3971if test `eval echo '${'$as_ac_Header'}'` = yes; then 3972 cat >>confdefs.h <<_ACEOF 3973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3974_ACEOF 3975 3976fi 3977 3978done 3979 3980 3981for ac_header in net/pfvar.h 3982do 3983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3984{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3987 echo $ECHO_N "(cached) $ECHO_C" >&6 3988else 3989 cat >conftest.$ac_ext <<_ACEOF 3990/* confdefs.h. */ 3991_ACEOF 3992cat confdefs.h >>conftest.$ac_ext 3993cat >>conftest.$ac_ext <<_ACEOF 3994/* end confdefs.h. */ 3995#include <sys/types.h> 3996#include <sys/socket.h> 3997#include <net/if.h> 3998 3999#include <$ac_header> 4000_ACEOF 4001rm -f conftest.$ac_objext 4002if { (ac_try="$ac_compile" 4003case "(($ac_try" in 4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4005 *) ac_try_echo=$ac_try;; 4006esac 4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4008 (eval "$ac_compile") 2>conftest.er1 4009 ac_status=$? 4010 grep -v '^ *+' conftest.er1 >conftest.err 4011 rm -f conftest.er1 4012 cat conftest.err >&5 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); } && { 4015 test -z "$ac_c_werror_flag" || 4016 test ! -s conftest.err 4017 } && test -s conftest.$ac_objext; then 4018 eval "$as_ac_Header=yes" 4019else 4020 echo "$as_me: failed program was:" >&5 4021sed 's/^/| /' conftest.$ac_ext >&5 4022 4023 eval "$as_ac_Header=no" 4024fi 4025 4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4027fi 4028ac_res=`eval echo '${'$as_ac_Header'}'` 4029 { echo "$as_me:$LINENO: result: $ac_res" >&5 4030echo "${ECHO_T}$ac_res" >&6; } 4031if test `eval echo '${'$as_ac_Header'}'` = yes; then 4032 cat >>confdefs.h <<_ACEOF 4033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4034_ACEOF 4035 4036fi 4037 4038done 4039 4040if test "$ac_cv_header_net_pfvar_h" = yes; then 4041 LOCALSRC="print-pflog.c $LOCALSRC" 4042fi 4043 4044for ac_header in netinet/if_ether.h 4045do 4046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4047{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4050 echo $ECHO_N "(cached) $ECHO_C" >&6 4051else 4052 cat >conftest.$ac_ext <<_ACEOF 4053/* confdefs.h. */ 4054_ACEOF 4055cat confdefs.h >>conftest.$ac_ext 4056cat >>conftest.$ac_ext <<_ACEOF 4057/* end confdefs.h. */ 4058#include <sys/types.h> 4059#include <sys/socket.h> 4060 4061#include <$ac_header> 4062_ACEOF 4063rm -f conftest.$ac_objext 4064if { (ac_try="$ac_compile" 4065case "(($ac_try" in 4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4067 *) ac_try_echo=$ac_try;; 4068esac 4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4070 (eval "$ac_compile") 2>conftest.er1 4071 ac_status=$? 4072 grep -v '^ *+' conftest.er1 >conftest.err 4073 rm -f conftest.er1 4074 cat conftest.err >&5 4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4076 (exit $ac_status); } && { 4077 test -z "$ac_c_werror_flag" || 4078 test ! -s conftest.err 4079 } && test -s conftest.$ac_objext; then 4080 eval "$as_ac_Header=yes" 4081else 4082 echo "$as_me: failed program was:" >&5 4083sed 's/^/| /' conftest.$ac_ext >&5 4084 4085 eval "$as_ac_Header=no" 4086fi 4087 4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4089fi 4090ac_res=`eval echo '${'$as_ac_Header'}'` 4091 { echo "$as_me:$LINENO: result: $ac_res" >&5 4092echo "${ECHO_T}$ac_res" >&6; } 4093if test `eval echo '${'$as_ac_Header'}'` = yes; then 4094 cat >>confdefs.h <<_ACEOF 4095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4096_ACEOF 4097 4098fi 4099 4100done 4101 4102if test "$ac_cv_header_netinet_if_ether_h" != yes; then 4103 # 4104 # The simple test didn't work. 4105 # Do we need to include <net/if.h> first? 4106 # Unset ac_cv_header_netinet_if_ether_h so we don't 4107 # treat the previous failure as a cached value and 4108 # suppress the next test. 4109 # 4110 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 4111echo "$as_me: Rechecking with some additional includes" >&6;} 4112 unset ac_cv_header_netinet_if_ether_h 4113 4114for ac_header in netinet/if_ether.h 4115do 4116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4117{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4120 echo $ECHO_N "(cached) $ECHO_C" >&6 4121else 4122 cat >conftest.$ac_ext <<_ACEOF 4123/* confdefs.h. */ 4124_ACEOF 4125cat confdefs.h >>conftest.$ac_ext 4126cat >>conftest.$ac_ext <<_ACEOF 4127/* end confdefs.h. */ 4128#include <sys/types.h> 4129#include <sys/socket.h> 4130#include <netinet/in.h> 4131struct mbuf; 4132struct rtentry; 4133#include <net/if.h> 4134 4135#include <$ac_header> 4136_ACEOF 4137rm -f conftest.$ac_objext 4138if { (ac_try="$ac_compile" 4139case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4144 (eval "$ac_compile") 2>conftest.er1 4145 ac_status=$? 4146 grep -v '^ *+' conftest.er1 >conftest.err 4147 rm -f conftest.er1 4148 cat conftest.err >&5 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); } && { 4151 test -z "$ac_c_werror_flag" || 4152 test ! -s conftest.err 4153 } && test -s conftest.$ac_objext; then 4154 eval "$as_ac_Header=yes" 4155else 4156 echo "$as_me: failed program was:" >&5 4157sed 's/^/| /' conftest.$ac_ext >&5 4158 4159 eval "$as_ac_Header=no" 4160fi 4161 4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4163fi 4164ac_res=`eval echo '${'$as_ac_Header'}'` 4165 { echo "$as_me:$LINENO: result: $ac_res" >&5 4166echo "${ECHO_T}$ac_res" >&6; } 4167if test `eval echo '${'$as_ac_Header'}'` = yes; then 4168 cat >>confdefs.h <<_ACEOF 4169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4170_ACEOF 4171 4172fi 4173 4174done 4175 4176fi 4177 4178{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4179echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 4180if test "${ac_cv_header_time+set}" = set; then 4181 echo $ECHO_N "(cached) $ECHO_C" >&6 4182else 4183 cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189#include <sys/types.h> 4190#include <sys/time.h> 4191#include <time.h> 4192 4193int 4194main () 4195{ 4196if ((struct tm *) 0) 4197return 0; 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202rm -f conftest.$ac_objext 4203if { (ac_try="$ac_compile" 4204case "(($ac_try" in 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4206 *) ac_try_echo=$ac_try;; 4207esac 4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4209 (eval "$ac_compile") 2>conftest.er1 4210 ac_status=$? 4211 grep -v '^ *+' conftest.er1 >conftest.err 4212 rm -f conftest.er1 4213 cat conftest.err >&5 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 (exit $ac_status); } && { 4216 test -z "$ac_c_werror_flag" || 4217 test ! -s conftest.err 4218 } && test -s conftest.$ac_objext; then 4219 ac_cv_header_time=yes 4220else 4221 echo "$as_me: failed program was:" >&5 4222sed 's/^/| /' conftest.$ac_ext >&5 4223 4224 ac_cv_header_time=no 4225fi 4226 4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228fi 4229{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4230echo "${ECHO_T}$ac_cv_header_time" >&6; } 4231if test $ac_cv_header_time = yes; then 4232 4233cat >>confdefs.h <<\_ACEOF 4234#define TIME_WITH_SYS_TIME 1 4235_ACEOF 4236 4237fi 4238 4239 4240case "$host_os" in 4241 4242linux*) 4243 { echo "$as_me:$LINENO: checking Linux kernel version" >&5 4244echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; } 4245 if test "$cross_compiling" = yes; then 4246 if test "${ac_cv_linux_vers+set}" = set; then 4247 echo $ECHO_N "(cached) $ECHO_C" >&6 4248else 4249 ac_cv_linux_vers=unknown 4250fi 4251 4252 else 4253 if test "${ac_cv_linux_vers+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 ac_cv_linux_vers=`uname -r 2>&1 | \ 4257 sed -n -e '$s/.* //' -e '$s/\..*//p'` 4258fi 4259 4260 fi 4261 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 4262echo "${ECHO_T}$ac_cv_linux_vers" >&6; } 4263 if test $ac_cv_linux_vers = unknown ; then 4264 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 4265echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 4266 { (exit 1); exit 1; }; } 4267 fi 4268 if test $ac_cv_linux_vers -lt 2 ; then 4269 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 4270echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 4271 { (exit 1); exit 1; }; } 4272 fi 4273 ;; 4274 4275*) 4276 ;; 4277esac 4278 4279 4280 4281for ac_header in smi.h 4282do 4283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4288 echo $ECHO_N "(cached) $ECHO_C" >&6 4289fi 4290ac_res=`eval echo '${'$as_ac_Header'}'` 4291 { echo "$as_me:$LINENO: result: $ac_res" >&5 4292echo "${ECHO_T}$ac_res" >&6; } 4293else 4294 # Is the header compilable? 4295{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4297cat >conftest.$ac_ext <<_ACEOF 4298/* confdefs.h. */ 4299_ACEOF 4300cat confdefs.h >>conftest.$ac_ext 4301cat >>conftest.$ac_ext <<_ACEOF 4302/* end confdefs.h. */ 4303$ac_includes_default 4304#include <$ac_header> 4305_ACEOF 4306rm -f conftest.$ac_objext 4307if { (ac_try="$ac_compile" 4308case "(($ac_try" in 4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4310 *) ac_try_echo=$ac_try;; 4311esac 4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4313 (eval "$ac_compile") 2>conftest.er1 4314 ac_status=$? 4315 grep -v '^ *+' conftest.er1 >conftest.err 4316 rm -f conftest.er1 4317 cat conftest.err >&5 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); } && { 4320 test -z "$ac_c_werror_flag" || 4321 test ! -s conftest.err 4322 } && test -s conftest.$ac_objext; then 4323 ac_header_compiler=yes 4324else 4325 echo "$as_me: failed program was:" >&5 4326sed 's/^/| /' conftest.$ac_ext >&5 4327 4328 ac_header_compiler=no 4329fi 4330 4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4332{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4333echo "${ECHO_T}$ac_header_compiler" >&6; } 4334 4335# Is the header present? 4336{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4338cat >conftest.$ac_ext <<_ACEOF 4339/* confdefs.h. */ 4340_ACEOF 4341cat confdefs.h >>conftest.$ac_ext 4342cat >>conftest.$ac_ext <<_ACEOF 4343/* end confdefs.h. */ 4344#include <$ac_header> 4345_ACEOF 4346if { (ac_try="$ac_cpp conftest.$ac_ext" 4347case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350esac 4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } >/dev/null && { 4359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4360 test ! -s conftest.err 4361 }; then 4362 ac_header_preproc=yes 4363else 4364 echo "$as_me: failed program was:" >&5 4365sed 's/^/| /' conftest.$ac_ext >&5 4366 4367 ac_header_preproc=no 4368fi 4369 4370rm -f conftest.err conftest.$ac_ext 4371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4372echo "${ECHO_T}$ac_header_preproc" >&6; } 4373 4374# So? What about this header? 4375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4376 yes:no: ) 4377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4381 ac_header_preproc=yes 4382 ;; 4383 no:yes:* ) 4384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4396 4397 ;; 4398esac 4399{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4402 echo $ECHO_N "(cached) $ECHO_C" >&6 4403else 4404 eval "$as_ac_Header=\$ac_header_preproc" 4405fi 4406ac_res=`eval echo '${'$as_ac_Header'}'` 4407 { echo "$as_me:$LINENO: result: $ac_res" >&5 4408echo "${ECHO_T}$ac_res" >&6; } 4409 4410fi 4411if test `eval echo '${'$as_ac_Header'}'` = yes; then 4412 cat >>confdefs.h <<_ACEOF 4413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4414_ACEOF 4415 4416fi 4417 4418done 4419 4420 4421{ echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 4422echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; } 4423if test "${ac_cv_lib_smi_smiInit+set}" = set; then 4424 echo $ECHO_N "(cached) $ECHO_C" >&6 4425else 4426 ac_check_lib_save_LIBS=$LIBS 4427LIBS="-lsmi $LIBS" 4428cat >conftest.$ac_ext <<_ACEOF 4429/* confdefs.h. */ 4430_ACEOF 4431cat confdefs.h >>conftest.$ac_ext 4432cat >>conftest.$ac_ext <<_ACEOF 4433/* end confdefs.h. */ 4434 4435/* Override any GCC internal prototype to avoid an error. 4436 Use char because int might match the return type of a GCC 4437 builtin and then its argument prototype would still apply. */ 4438#ifdef __cplusplus 4439extern "C" 4440#endif 4441char smiInit (); 4442int 4443main () 4444{ 4445return smiInit (); 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450rm -f conftest.$ac_objext conftest$ac_exeext 4451if { (ac_try="$ac_link" 4452case "(($ac_try" in 4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4454 *) ac_try_echo=$ac_try;; 4455esac 4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4457 (eval "$ac_link") 2>conftest.er1 4458 ac_status=$? 4459 grep -v '^ *+' conftest.er1 >conftest.err 4460 rm -f conftest.er1 4461 cat conftest.err >&5 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); } && { 4464 test -z "$ac_c_werror_flag" || 4465 test ! -s conftest.err 4466 } && test -s conftest$ac_exeext && 4467 $as_test_x conftest$ac_exeext; then 4468 ac_cv_lib_smi_smiInit=yes 4469else 4470 echo "$as_me: failed program was:" >&5 4471sed 's/^/| /' conftest.$ac_ext >&5 4472 4473 ac_cv_lib_smi_smiInit=no 4474fi 4475 4476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4477 conftest$ac_exeext conftest.$ac_ext 4478LIBS=$ac_check_lib_save_LIBS 4479fi 4480{ echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 4481echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; } 4482if test $ac_cv_lib_smi_smiInit = yes; then 4483 cat >>confdefs.h <<_ACEOF 4484#define HAVE_LIBSMI 1 4485_ACEOF 4486 4487 LIBS="-lsmi $LIBS" 4488 4489fi 4490 4491if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 4492then 4493{ echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 4494echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; } 4495 if test "$cross_compiling" = yes; then 4496 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5 4497echo "${ECHO_T}not when cross-compiling" >&6; } 4498 libsmi=no 4499 4500else 4501 cat >conftest.$ac_ext <<_ACEOF 4502/* confdefs.h. */ 4503_ACEOF 4504cat confdefs.h >>conftest.$ac_ext 4505cat >>conftest.$ac_ext <<_ACEOF 4506/* end confdefs.h. */ 4507 /* libsmi available check */ 4508#include <smi.h> 4509main() 4510{ 4511 int current, revision, age, n; 4512 const int required = 2; 4513 if (smiInit("")) 4514 exit(1); 4515 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4516 exit(2); 4517 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4518 if (n != 3) 4519 exit(3); 4520 if (required < current - age || required > current) 4521 exit(4); 4522 exit(0); 4523} 4524 4525_ACEOF 4526rm -f conftest$ac_exeext 4527if { (ac_try="$ac_link" 4528case "(($ac_try" in 4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4530 *) ac_try_echo=$ac_try;; 4531esac 4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4533 (eval "$ac_link") 2>&5 4534 ac_status=$? 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4537 { (case "(($ac_try" in 4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4539 *) ac_try_echo=$ac_try;; 4540esac 4541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4542 (eval "$ac_try") 2>&5 4543 ac_status=$? 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); }; }; then 4546 { echo "$as_me:$LINENO: result: yes" >&5 4547echo "${ECHO_T}yes" >&6; } 4548 cat >>confdefs.h <<\_ACEOF 4549#define LIBSMI 1 4550_ACEOF 4551 4552 libsmi=yes 4553else 4554 echo "$as_me: program exited with status $ac_status" >&5 4555echo "$as_me: failed program was:" >&5 4556sed 's/^/| /' conftest.$ac_ext >&5 4557 4558( exit $ac_status ) 4559 case $? in 4560 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5 4561echo "${ECHO_T}no - smiInit failed" >&6; } ;; 4562 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 4563echo "${ECHO_T}no - header/library version mismatch" >&6; } ;; 4564 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5 4565echo "${ECHO_T}no - can't determine library version" >&6; } ;; 4566 4) { echo "$as_me:$LINENO: result: no - too old" >&5 4567echo "${ECHO_T}no - too old" >&6; } ;; 4568 *) { echo "$as_me:$LINENO: result: no" >&5 4569echo "${ECHO_T}no" >&6; } ;; 4570 esac 4571 libsmi=no 4572fi 4573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4574fi 4575 4576 4577fi 4578 4579{ echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 4580echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; } 4581# Check whether --enable-smb was given. 4582if test "${enable_smb+set}" = set; then 4583 enableval=$enable_smb; 4584else 4585 enableval=yes 4586fi 4587 4588case "$enableval" in 4589yes) { echo "$as_me:$LINENO: result: yes" >&5 4590echo "${ECHO_T}yes" >&6; } 4591 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 4592echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 4593 cat >>confdefs.h <<\_ACEOF 4594#define TCPDUMP_DO_SMB 1 4595_ACEOF 4596 4597 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4598 ;; 4599*) { echo "$as_me:$LINENO: result: no" >&5 4600echo "${ECHO_T}no" >&6; } 4601 ;; 4602esac 4603 4604 4605# Check whether --with-user was given. 4606if test "${with_user+set}" = set; then 4607 withval=$with_user; 4608fi 4609 4610{ echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 4611echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; } 4612if test ! -z "$with_user" ; then 4613 cat >>confdefs.h <<_ACEOF 4614#define WITH_USER "$withval" 4615_ACEOF 4616 4617 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4618echo "${ECHO_T}to \"$withval\"" >&6; } 4619else 4620 { echo "$as_me:$LINENO: result: no" >&5 4621echo "${ECHO_T}no" >&6; } 4622fi 4623 4624 4625# Check whether --with-chroot was given. 4626if test "${with_chroot+set}" = set; then 4627 withval=$with_chroot; 4628fi 4629 4630{ echo "$as_me:$LINENO: checking whether to chroot" >&5 4631echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; } 4632if test ! -z "$with_chroot" ; then 4633 cat >>confdefs.h <<_ACEOF 4634#define WITH_CHROOT "$withval" 4635_ACEOF 4636 4637 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4638echo "${ECHO_T}to \"$withval\"" >&6; } 4639else 4640 { echo "$as_me:$LINENO: result: no" >&5 4641echo "${ECHO_T}no" >&6; } 4642fi 4643 4644{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 4645echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; } 4646# Check whether --enable-ipv6 was given. 4647if test "${enable_ipv6+set}" = set; then 4648 enableval=$enable_ipv6; case "$enableval" in 4649yes) { echo "$as_me:$LINENO: result: yes" >&5 4650echo "${ECHO_T}yes" >&6; } 4651 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" 4652 cat >>confdefs.h <<\_ACEOF 4653#define INET6 1 4654_ACEOF 4655 4656 ipv6=yes 4657 ;; 4658*) 4659 { echo "$as_me:$LINENO: result: no" >&5 4660echo "${ECHO_T}no" >&6; } 4661 ipv6=no 4662 ;; 4663 esac 4664else 4665 if test "$cross_compiling" = yes; then 4666 { echo "$as_me:$LINENO: result: no" >&5 4667echo "${ECHO_T}no" >&6; } 4668 ipv6=no 4669 4670else 4671 cat >conftest.$ac_ext <<_ACEOF 4672/* confdefs.h. */ 4673_ACEOF 4674cat confdefs.h >>conftest.$ac_ext 4675cat >>conftest.$ac_ext <<_ACEOF 4676/* end confdefs.h. */ 4677 /* AF_INET6 available check */ 4678#include <sys/types.h> 4679#include <sys/socket.h> 4680main() 4681{ 4682 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 4683 exit(1); 4684 else 4685 exit(0); 4686} 4687 4688_ACEOF 4689rm -f conftest$ac_exeext 4690if { (ac_try="$ac_link" 4691case "(($ac_try" in 4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4693 *) ac_try_echo=$ac_try;; 4694esac 4695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4696 (eval "$ac_link") 2>&5 4697 ac_status=$? 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4700 { (case "(($ac_try" in 4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4702 *) ac_try_echo=$ac_try;; 4703esac 4704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4705 (eval "$ac_try") 2>&5 4706 ac_status=$? 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); }; }; then 4709 { echo "$as_me:$LINENO: result: yes" >&5 4710echo "${ECHO_T}yes" >&6; } 4711 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" 4712 cat >>confdefs.h <<\_ACEOF 4713#define INET6 1 4714_ACEOF 4715 4716 ipv6=yes 4717else 4718 echo "$as_me: program exited with status $ac_status" >&5 4719echo "$as_me: failed program was:" >&5 4720sed 's/^/| /' conftest.$ac_ext >&5 4721 4722( exit $ac_status ) 4723 { echo "$as_me:$LINENO: result: no" >&5 4724echo "${ECHO_T}no" >&6; } 4725 ipv6=no 4726fi 4727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4728fi 4729 4730 4731fi 4732 4733 4734ipv6type=unknown 4735ipv6lib=none 4736ipv6trylibc=no 4737 4738if test "$ipv6" = "yes"; then 4739 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 4740echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } 4741 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 4742 case $i in 4743 inria) 4744 cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750#include <netinet/in.h> 4751#ifdef IPV6_INRIA_VERSION 4752yes 4753#endif 4754_ACEOF 4755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4756 $EGREP "yes" >/dev/null 2>&1; then 4757 ipv6type=$i; 4758 CFLAGS="-DINET6 $CFLAGS" 4759fi 4760rm -f conftest* 4761 4762 ;; 4763 kame) 4764 cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770#include <netinet/in.h> 4771#ifdef __KAME__ 4772yes 4773#endif 4774_ACEOF 4775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4776 $EGREP "yes" >/dev/null 2>&1; then 4777 ipv6type=$i; 4778 ipv6lib=inet6; 4779 ipv6libdir=/usr/local/v6/lib; 4780 ipv6trylibc=yes; 4781 CFLAGS="-DINET6 $CFLAGS" 4782fi 4783rm -f conftest* 4784 4785 ;; 4786 linux-glibc) 4787 cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793#include <features.h> 4794#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 4795yes 4796#endif 4797_ACEOF 4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4799 $EGREP "yes" >/dev/null 2>&1; then 4800 ipv6type=$i; 4801 CFLAGS="-DINET6 $CFLAGS" 4802fi 4803rm -f conftest* 4804 4805 ;; 4806 linux-libinet6) 4807 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 4808 ipv6type=$i 4809 ipv6lib=inet6 4810 ipv6libdir=/usr/inet6/lib 4811 ipv6trylibc=yes; 4812 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 4813 fi 4814 ;; 4815 toshiba) 4816 cat >conftest.$ac_ext <<_ACEOF 4817/* confdefs.h. */ 4818_ACEOF 4819cat confdefs.h >>conftest.$ac_ext 4820cat >>conftest.$ac_ext <<_ACEOF 4821/* end confdefs.h. */ 4822#include <sys/param.h> 4823#ifdef _TOSHIBA_INET6 4824yes 4825#endif 4826_ACEOF 4827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4828 $EGREP "yes" >/dev/null 2>&1; then 4829 ipv6type=$i; 4830 ipv6lib=inet6; 4831 ipv6libdir=/usr/local/v6/lib; 4832 CFLAGS="-DINET6 $CFLAGS" 4833fi 4834rm -f conftest* 4835 4836 ;; 4837 v6d) 4838 cat >conftest.$ac_ext <<_ACEOF 4839/* confdefs.h. */ 4840_ACEOF 4841cat confdefs.h >>conftest.$ac_ext 4842cat >>conftest.$ac_ext <<_ACEOF 4843/* end confdefs.h. */ 4844#include </usr/local/v6/include/sys/v6config.h> 4845#ifdef __V6D__ 4846yes 4847#endif 4848_ACEOF 4849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4850 $EGREP "yes" >/dev/null 2>&1; then 4851 ipv6type=$i; 4852 ipv6lib=v6; 4853 ipv6libdir=/usr/local/v6/lib; 4854 CFLAGS="-I/usr/local/v6/include $CFLAGS" 4855fi 4856rm -f conftest* 4857 4858 ;; 4859 zeta) 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866#include <sys/param.h> 4867#ifdef _ZETA_MINAMI_INET6 4868yes 4869#endif 4870_ACEOF 4871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4872 $EGREP "yes" >/dev/null 2>&1; then 4873 ipv6type=$i; 4874 ipv6lib=inet6; 4875 ipv6libdir=/usr/local/v6/lib; 4876 CFLAGS="-DINET6 $CFLAGS" 4877fi 4878rm -f conftest* 4879 4880 ;; 4881 esac 4882 if test "$ipv6type" != "unknown"; then 4883 break 4884 fi 4885 done 4886 { echo "$as_me:$LINENO: result: $ipv6type" >&5 4887echo "${ECHO_T}$ipv6type" >&6; } 4888fi 4889 4890if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 4891 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 4892 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 4893 echo "You have $ipv6lib library, using it" 4894 else 4895 if test "$ipv6trylibc" = "yes"; then 4896 echo "You do not have $ipv6lib library, using libc" 4897 else 4898 echo 'Fatal: no $ipv6lib library found. cannot continue.' 4899 echo "You need to fetch lib$ipv6lib.a from appropriate" 4900 echo 'ipv6 kit and compile beforehand.' 4901 exit 1 4902 fi 4903 fi 4904fi 4905 4906 4907if test "$ipv6" = "yes"; then 4908 # 4909 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4910 # function in libc; there are "ngetaddrinfo()" and 4911 # "ogetaddrinfo()" functions, and <netdb.h> #defines 4912 # "getaddrinfo" to be either "ngetaddrinfo" or 4913 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4914 # or _XOPEN_SOURCE_EXTENDED are defined or not. 4915 # 4916 # So this test doesn't work on Tru64 5.1, and possibly 4917 # on other 5.x releases. This causes the configure 4918 # script to become confused, and results in libpcap 4919 # being unbuildable. 4920 # 4921 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4922echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; } 4923if test "${ac_cv_search_getaddrinfo+set}" = set; then 4924 echo $ECHO_N "(cached) $ECHO_C" >&6 4925else 4926 ac_func_search_save_LIBS=$LIBS 4927cat >conftest.$ac_ext <<_ACEOF 4928/* confdefs.h. */ 4929_ACEOF 4930cat confdefs.h >>conftest.$ac_ext 4931cat >>conftest.$ac_ext <<_ACEOF 4932/* end confdefs.h. */ 4933 4934/* Override any GCC internal prototype to avoid an error. 4935 Use char because int might match the return type of a GCC 4936 builtin and then its argument prototype would still apply. */ 4937#ifdef __cplusplus 4938extern "C" 4939#endif 4940char getaddrinfo (); 4941int 4942main () 4943{ 4944return getaddrinfo (); 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949for ac_lib in '' socket; do 4950 if test -z "$ac_lib"; then 4951 ac_res="none required" 4952 else 4953 ac_res=-l$ac_lib 4954 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4955 fi 4956 rm -f conftest.$ac_objext conftest$ac_exeext 4957if { (ac_try="$ac_link" 4958case "(($ac_try" in 4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4960 *) ac_try_echo=$ac_try;; 4961esac 4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4963 (eval "$ac_link") 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } && { 4970 test -z "$ac_c_werror_flag" || 4971 test ! -s conftest.err 4972 } && test -s conftest$ac_exeext && 4973 $as_test_x conftest$ac_exeext; then 4974 ac_cv_search_getaddrinfo=$ac_res 4975else 4976 echo "$as_me: failed program was:" >&5 4977sed 's/^/| /' conftest.$ac_ext >&5 4978 4979 4980fi 4981 4982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4983 conftest$ac_exeext 4984 if test "${ac_cv_search_getaddrinfo+set}" = set; then 4985 break 4986fi 4987done 4988if test "${ac_cv_search_getaddrinfo+set}" = set; then 4989 : 4990else 4991 ac_cv_search_getaddrinfo=no 4992fi 4993rm conftest.$ac_ext 4994LIBS=$ac_func_search_save_LIBS 4995fi 4996{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4997echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; } 4998ac_res=$ac_cv_search_getaddrinfo 4999if test "$ac_res" != no; then 5000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5001 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 5002echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } 5003 if test "${td_cv_buggygetaddrinfo+set}" = set; then 5004 echo $ECHO_N "(cached) $ECHO_C" >&6 5005else 5006 if test "$cross_compiling" = yes; then 5007 td_cv_buggygetaddrinfo=yes 5008else 5009 cat >conftest.$ac_ext <<_ACEOF 5010/* confdefs.h. */ 5011_ACEOF 5012cat confdefs.h >>conftest.$ac_ext 5013cat >>conftest.$ac_ext <<_ACEOF 5014/* end confdefs.h. */ 5015 5016#include <sys/types.h> 5017#include <netdb.h> 5018#include <string.h> 5019#include <sys/socket.h> 5020#include <netinet/in.h> 5021 5022main() 5023{ 5024 int passive, gaierr, inet4 = 0, inet6 = 0; 5025 struct addrinfo hints, *ai, *aitop; 5026 char straddr[INET6_ADDRSTRLEN], strport[16]; 5027 5028 for (passive = 0; passive <= 1; passive++) { 5029 memset(&hints, 0, sizeof(hints)); 5030 hints.ai_family = AF_UNSPEC; 5031 hints.ai_flags = passive ? AI_PASSIVE : 0; 5032 hints.ai_socktype = SOCK_STREAM; 5033 hints.ai_protocol = IPPROTO_TCP; 5034 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 5035 (void)gai_strerror(gaierr); 5036 goto bad; 5037 } 5038 for (ai = aitop; ai; ai = ai->ai_next) { 5039 if (ai->ai_addr == NULL || 5040 ai->ai_addrlen == 0 || 5041 getnameinfo(ai->ai_addr, ai->ai_addrlen, 5042 straddr, sizeof(straddr), strport, sizeof(strport), 5043 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 5044 goto bad; 5045 } 5046 switch (ai->ai_family) { 5047 case AF_INET: 5048 if (strcmp(strport, "54321") != 0) { 5049 goto bad; 5050 } 5051 if (passive) { 5052 if (strcmp(straddr, "0.0.0.0") != 0) { 5053 goto bad; 5054 } 5055 } else { 5056 if (strcmp(straddr, "127.0.0.1") != 0) { 5057 goto bad; 5058 } 5059 } 5060 inet4++; 5061 break; 5062 case AF_INET6: 5063 if (strcmp(strport, "54321") != 0) { 5064 goto bad; 5065 } 5066 if (passive) { 5067 if (strcmp(straddr, "::") != 0) { 5068 goto bad; 5069 } 5070 } else { 5071 if (strcmp(straddr, "::1") != 0) { 5072 goto bad; 5073 } 5074 } 5075 inet6++; 5076 break; 5077 case AF_UNSPEC: 5078 goto bad; 5079 break; 5080#ifdef AF_UNIX 5081 case AF_UNIX: 5082#else 5083#ifdef AF_LOCAL 5084 case AF_LOCAL: 5085#endif 5086#endif 5087 default: 5088 /* another family support? */ 5089 break; 5090 } 5091 } 5092 } 5093 5094 /* supported family should be 2, unsupported family should be 0 */ 5095 if (!(inet4 == 0 || inet4 == 2)) 5096 goto bad; 5097 if (!(inet6 == 0 || inet6 == 2)) 5098 goto bad; 5099 5100 if (aitop) 5101 freeaddrinfo(aitop); 5102 exit(0); 5103 5104 bad: 5105 if (aitop) 5106 freeaddrinfo(aitop); 5107 exit(1); 5108} 5109 5110_ACEOF 5111rm -f conftest$ac_exeext 5112if { (ac_try="$ac_link" 5113case "(($ac_try" in 5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5115 *) ac_try_echo=$ac_try;; 5116esac 5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5118 (eval "$ac_link") 2>&5 5119 ac_status=$? 5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5122 { (case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5127 (eval "$ac_try") 2>&5 5128 ac_status=$? 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; }; then 5131 td_cv_buggygetaddrinfo=no 5132else 5133 echo "$as_me: program exited with status $ac_status" >&5 5134echo "$as_me: failed program was:" >&5 5135sed 's/^/| /' conftest.$ac_ext >&5 5136 5137( exit $ac_status ) 5138td_cv_buggygetaddrinfo=yes 5139fi 5140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5141fi 5142 5143 5144fi 5145 5146 if test "$td_cv_buggygetaddrinfo" = no; then 5147 { echo "$as_me:$LINENO: result: good" >&5 5148echo "${ECHO_T}good" >&6; } 5149 else 5150 { echo "$as_me:$LINENO: result: buggy" >&5 5151echo "${ECHO_T}buggy" >&6; } 5152 fi 5153 5154 if test "$td_cv_buggygetaddrinfo" = "yes"; then 5155 # 5156 # XXX - it doesn't appear that "ipv6type" can ever be 5157 # set to "linux". Should this be testing for 5158 # "linux-glibc", or for that *or* "linux-libinet6"? 5159 # If the latter, note that "linux-libinet6" is also 5160 # the type given to some non-Linux OSes. 5161 # 5162 if test "$ipv6type" != "linux"; then 5163 echo 'Fatal: You must get working getaddrinfo() function.' 5164 echo ' or you can specify "--disable-ipv6"'. 5165 exit 1 5166 else 5167 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 5168 echo ' Better upgrade your system library to newest version' 5169 echo ' of GNU C library (aka glibc).' 5170 fi 5171 fi 5172 5173fi 5174 5175 5176 5177for ac_func in getaddrinfo getnameinfo 5178do 5179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5180{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5183 echo $ECHO_N "(cached) $ECHO_C" >&6 5184else 5185 cat >conftest.$ac_ext <<_ACEOF 5186/* confdefs.h. */ 5187_ACEOF 5188cat confdefs.h >>conftest.$ac_ext 5189cat >>conftest.$ac_ext <<_ACEOF 5190/* end confdefs.h. */ 5191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5192 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5193#define $ac_func innocuous_$ac_func 5194 5195/* System header to define __stub macros and hopefully few prototypes, 5196 which can conflict with char $ac_func (); below. 5197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5198 <limits.h> exists even on freestanding compilers. */ 5199 5200#ifdef __STDC__ 5201# include <limits.h> 5202#else 5203# include <assert.h> 5204#endif 5205 5206#undef $ac_func 5207 5208/* Override any GCC internal prototype to avoid an error. 5209 Use char because int might match the return type of a GCC 5210 builtin and then its argument prototype would still apply. */ 5211#ifdef __cplusplus 5212extern "C" 5213#endif 5214char $ac_func (); 5215/* The GNU C library defines this for functions which it implements 5216 to always fail with ENOSYS. Some functions are actually named 5217 something starting with __ and the normal name is an alias. */ 5218#if defined __stub_$ac_func || defined __stub___$ac_func 5219choke me 5220#endif 5221 5222int 5223main () 5224{ 5225return $ac_func (); 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230rm -f conftest.$ac_objext conftest$ac_exeext 5231if { (ac_try="$ac_link" 5232case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5237 (eval "$ac_link") 2>conftest.er1 5238 ac_status=$? 5239 grep -v '^ *+' conftest.er1 >conftest.err 5240 rm -f conftest.er1 5241 cat conftest.err >&5 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); } && { 5244 test -z "$ac_c_werror_flag" || 5245 test ! -s conftest.err 5246 } && test -s conftest$ac_exeext && 5247 $as_test_x conftest$ac_exeext; then 5248 eval "$as_ac_var=yes" 5249else 5250 echo "$as_me: failed program was:" >&5 5251sed 's/^/| /' conftest.$ac_ext >&5 5252 5253 eval "$as_ac_var=no" 5254fi 5255 5256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5257 conftest$ac_exeext conftest.$ac_ext 5258fi 5259ac_res=`eval echo '${'$as_ac_var'}'` 5260 { echo "$as_me:$LINENO: result: $ac_res" >&5 5261echo "${ECHO_T}$ac_res" >&6; } 5262if test `eval echo '${'$as_ac_var'}'` = yes; then 5263 cat >>confdefs.h <<_ACEOF 5264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5265_ACEOF 5266 5267else 5268 case " $LIBOBJS " in 5269 *" $ac_func.$ac_objext "* ) ;; 5270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5271 ;; 5272esac 5273 5274fi 5275done 5276 5277 5278fi 5279 5280{ echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 5281echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; } 5282if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 5283 echo $ECHO_N "(cached) $ECHO_C" >&6 5284else 5285 cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291#include <netdnet/dnetdb.h> 5292 5293_ACEOF 5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5295 $EGREP "dnet_htoa" >/dev/null 2>&1; then 5296 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 5297else 5298 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 5299fi 5300rm -f conftest* 5301 5302fi 5303{ echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 5304echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; } 5305if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 5306 cat >>confdefs.h <<\_ACEOF 5307#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 5308_ACEOF 5309 5310fi 5311 5312{ echo "$as_me:$LINENO: checking for char" >&5 5313echo $ECHO_N "checking for char... $ECHO_C" >&6; } 5314if test "${ac_cv_type_char+set}" = set; then 5315 echo $ECHO_N "(cached) $ECHO_C" >&6 5316else 5317 cat >conftest.$ac_ext <<_ACEOF 5318/* confdefs.h. */ 5319_ACEOF 5320cat confdefs.h >>conftest.$ac_ext 5321cat >>conftest.$ac_ext <<_ACEOF 5322/* end confdefs.h. */ 5323$ac_includes_default 5324typedef char ac__type_new_; 5325int 5326main () 5327{ 5328if ((ac__type_new_ *) 0) 5329 return 0; 5330if (sizeof (ac__type_new_)) 5331 return 0; 5332 ; 5333 return 0; 5334} 5335_ACEOF 5336rm -f conftest.$ac_objext 5337if { (ac_try="$ac_compile" 5338case "(($ac_try" in 5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5340 *) ac_try_echo=$ac_try;; 5341esac 5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5343 (eval "$ac_compile") 2>conftest.er1 5344 ac_status=$? 5345 grep -v '^ *+' conftest.er1 >conftest.err 5346 rm -f conftest.er1 5347 cat conftest.err >&5 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } && { 5350 test -z "$ac_c_werror_flag" || 5351 test ! -s conftest.err 5352 } && test -s conftest.$ac_objext; then 5353 ac_cv_type_char=yes 5354else 5355 echo "$as_me: failed program was:" >&5 5356sed 's/^/| /' conftest.$ac_ext >&5 5357 5358 ac_cv_type_char=no 5359fi 5360 5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5362fi 5363{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 5364echo "${ECHO_T}$ac_cv_type_char" >&6; } 5365 5366# The cast to long int works around a bug in the HP C Compiler 5367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5369# This bug is HP SR number 8606223364. 5370{ echo "$as_me:$LINENO: checking size of char" >&5 5371echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 5372if test "${ac_cv_sizeof_char+set}" = set; then 5373 echo $ECHO_N "(cached) $ECHO_C" >&6 5374else 5375 if test "$cross_compiling" = yes; then 5376 # Depending upon the size, compute the lo and hi bounds. 5377cat >conftest.$ac_ext <<_ACEOF 5378/* confdefs.h. */ 5379_ACEOF 5380cat confdefs.h >>conftest.$ac_ext 5381cat >>conftest.$ac_ext <<_ACEOF 5382/* end confdefs.h. */ 5383$ac_includes_default 5384 typedef char ac__type_sizeof_; 5385int 5386main () 5387{ 5388static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5389test_array [0] = 0 5390 5391 ; 5392 return 0; 5393} 5394_ACEOF 5395rm -f conftest.$ac_objext 5396if { (ac_try="$ac_compile" 5397case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5402 (eval "$ac_compile") 2>conftest.er1 5403 ac_status=$? 5404 grep -v '^ *+' conftest.er1 >conftest.err 5405 rm -f conftest.er1 5406 cat conftest.err >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && { 5409 test -z "$ac_c_werror_flag" || 5410 test ! -s conftest.err 5411 } && test -s conftest.$ac_objext; then 5412 ac_lo=0 ac_mid=0 5413 while :; do 5414 cat >conftest.$ac_ext <<_ACEOF 5415/* confdefs.h. */ 5416_ACEOF 5417cat confdefs.h >>conftest.$ac_ext 5418cat >>conftest.$ac_ext <<_ACEOF 5419/* end confdefs.h. */ 5420$ac_includes_default 5421 typedef char ac__type_sizeof_; 5422int 5423main () 5424{ 5425static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5426test_array [0] = 0 5427 5428 ; 5429 return 0; 5430} 5431_ACEOF 5432rm -f conftest.$ac_objext 5433if { (ac_try="$ac_compile" 5434case "(($ac_try" in 5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5436 *) ac_try_echo=$ac_try;; 5437esac 5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5439 (eval "$ac_compile") 2>conftest.er1 5440 ac_status=$? 5441 grep -v '^ *+' conftest.er1 >conftest.err 5442 rm -f conftest.er1 5443 cat conftest.err >&5 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); } && { 5446 test -z "$ac_c_werror_flag" || 5447 test ! -s conftest.err 5448 } && test -s conftest.$ac_objext; then 5449 ac_hi=$ac_mid; break 5450else 5451 echo "$as_me: failed program was:" >&5 5452sed 's/^/| /' conftest.$ac_ext >&5 5453 5454 ac_lo=`expr $ac_mid + 1` 5455 if test $ac_lo -le $ac_mid; then 5456 ac_lo= ac_hi= 5457 break 5458 fi 5459 ac_mid=`expr 2 '*' $ac_mid + 1` 5460fi 5461 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463 done 5464else 5465 echo "$as_me: failed program was:" >&5 5466sed 's/^/| /' conftest.$ac_ext >&5 5467 5468 cat >conftest.$ac_ext <<_ACEOF 5469/* confdefs.h. */ 5470_ACEOF 5471cat confdefs.h >>conftest.$ac_ext 5472cat >>conftest.$ac_ext <<_ACEOF 5473/* end confdefs.h. */ 5474$ac_includes_default 5475 typedef char ac__type_sizeof_; 5476int 5477main () 5478{ 5479static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5480test_array [0] = 0 5481 5482 ; 5483 return 0; 5484} 5485_ACEOF 5486rm -f conftest.$ac_objext 5487if { (ac_try="$ac_compile" 5488case "(($ac_try" in 5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5490 *) ac_try_echo=$ac_try;; 5491esac 5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5493 (eval "$ac_compile") 2>conftest.er1 5494 ac_status=$? 5495 grep -v '^ *+' conftest.er1 >conftest.err 5496 rm -f conftest.er1 5497 cat conftest.err >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } && { 5500 test -z "$ac_c_werror_flag" || 5501 test ! -s conftest.err 5502 } && test -s conftest.$ac_objext; then 5503 ac_hi=-1 ac_mid=-1 5504 while :; do 5505 cat >conftest.$ac_ext <<_ACEOF 5506/* confdefs.h. */ 5507_ACEOF 5508cat confdefs.h >>conftest.$ac_ext 5509cat >>conftest.$ac_ext <<_ACEOF 5510/* end confdefs.h. */ 5511$ac_includes_default 5512 typedef char ac__type_sizeof_; 5513int 5514main () 5515{ 5516static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5517test_array [0] = 0 5518 5519 ; 5520 return 0; 5521} 5522_ACEOF 5523rm -f conftest.$ac_objext 5524if { (ac_try="$ac_compile" 5525case "(($ac_try" in 5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5527 *) ac_try_echo=$ac_try;; 5528esac 5529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5530 (eval "$ac_compile") 2>conftest.er1 5531 ac_status=$? 5532 grep -v '^ *+' conftest.er1 >conftest.err 5533 rm -f conftest.er1 5534 cat conftest.err >&5 5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5536 (exit $ac_status); } && { 5537 test -z "$ac_c_werror_flag" || 5538 test ! -s conftest.err 5539 } && test -s conftest.$ac_objext; then 5540 ac_lo=$ac_mid; break 5541else 5542 echo "$as_me: failed program was:" >&5 5543sed 's/^/| /' conftest.$ac_ext >&5 5544 5545 ac_hi=`expr '(' $ac_mid ')' - 1` 5546 if test $ac_mid -le $ac_hi; then 5547 ac_lo= ac_hi= 5548 break 5549 fi 5550 ac_mid=`expr 2 '*' $ac_mid` 5551fi 5552 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5554 done 5555else 5556 echo "$as_me: failed program was:" >&5 5557sed 's/^/| /' conftest.$ac_ext >&5 5558 5559 ac_lo= ac_hi= 5560fi 5561 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563fi 5564 5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5566# Binary search between lo and hi bounds. 5567while test "x$ac_lo" != "x$ac_hi"; do 5568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5569 cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575$ac_includes_default 5576 typedef char ac__type_sizeof_; 5577int 5578main () 5579{ 5580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5581test_array [0] = 0 5582 5583 ; 5584 return 0; 5585} 5586_ACEOF 5587rm -f conftest.$ac_objext 5588if { (ac_try="$ac_compile" 5589case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592esac 5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5594 (eval "$ac_compile") 2>conftest.er1 5595 ac_status=$? 5596 grep -v '^ *+' conftest.er1 >conftest.err 5597 rm -f conftest.er1 5598 cat conftest.err >&5 5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5600 (exit $ac_status); } && { 5601 test -z "$ac_c_werror_flag" || 5602 test ! -s conftest.err 5603 } && test -s conftest.$ac_objext; then 5604 ac_hi=$ac_mid 5605else 5606 echo "$as_me: failed program was:" >&5 5607sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 ac_lo=`expr '(' $ac_mid ')' + 1` 5610fi 5611 5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5613done 5614case $ac_lo in 5615?*) ac_cv_sizeof_char=$ac_lo;; 5616'') if test "$ac_cv_type_char" = yes; then 5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 5618See \`config.log' for more details." >&5 5619echo "$as_me: error: cannot compute sizeof (char) 5620See \`config.log' for more details." >&2;} 5621 { (exit 77); exit 77; }; } 5622 else 5623 ac_cv_sizeof_char=0 5624 fi ;; 5625esac 5626else 5627 cat >conftest.$ac_ext <<_ACEOF 5628/* confdefs.h. */ 5629_ACEOF 5630cat confdefs.h >>conftest.$ac_ext 5631cat >>conftest.$ac_ext <<_ACEOF 5632/* end confdefs.h. */ 5633$ac_includes_default 5634 typedef char ac__type_sizeof_; 5635static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 5636static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 5637#include <stdio.h> 5638#include <stdlib.h> 5639int 5640main () 5641{ 5642 5643 FILE *f = fopen ("conftest.val", "w"); 5644 if (! f) 5645 return 1; 5646 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 5647 { 5648 long int i = longval (); 5649 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5650 return 1; 5651 fprintf (f, "%ld\n", i); 5652 } 5653 else 5654 { 5655 unsigned long int i = ulongval (); 5656 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5657 return 1; 5658 fprintf (f, "%lu\n", i); 5659 } 5660 return ferror (f) || fclose (f) != 0; 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666rm -f conftest$ac_exeext 5667if { (ac_try="$ac_link" 5668case "(($ac_try" in 5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5670 *) ac_try_echo=$ac_try;; 5671esac 5672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5673 (eval "$ac_link") 2>&5 5674 ac_status=$? 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5677 { (case "(($ac_try" in 5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5679 *) ac_try_echo=$ac_try;; 5680esac 5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5682 (eval "$ac_try") 2>&5 5683 ac_status=$? 5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5685 (exit $ac_status); }; }; then 5686 ac_cv_sizeof_char=`cat conftest.val` 5687else 5688 echo "$as_me: program exited with status $ac_status" >&5 5689echo "$as_me: failed program was:" >&5 5690sed 's/^/| /' conftest.$ac_ext >&5 5691 5692( exit $ac_status ) 5693if test "$ac_cv_type_char" = yes; then 5694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 5695See \`config.log' for more details." >&5 5696echo "$as_me: error: cannot compute sizeof (char) 5697See \`config.log' for more details." >&2;} 5698 { (exit 77); exit 77; }; } 5699 else 5700 ac_cv_sizeof_char=0 5701 fi 5702fi 5703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5704fi 5705rm -f conftest.val 5706fi 5707{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 5708echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 5709 5710 5711 5712cat >>confdefs.h <<_ACEOF 5713#define SIZEOF_CHAR $ac_cv_sizeof_char 5714_ACEOF 5715 5716 5717{ echo "$as_me:$LINENO: checking for short" >&5 5718echo $ECHO_N "checking for short... $ECHO_C" >&6; } 5719if test "${ac_cv_type_short+set}" = set; then 5720 echo $ECHO_N "(cached) $ECHO_C" >&6 5721else 5722 cat >conftest.$ac_ext <<_ACEOF 5723/* confdefs.h. */ 5724_ACEOF 5725cat confdefs.h >>conftest.$ac_ext 5726cat >>conftest.$ac_ext <<_ACEOF 5727/* end confdefs.h. */ 5728$ac_includes_default 5729typedef short ac__type_new_; 5730int 5731main () 5732{ 5733if ((ac__type_new_ *) 0) 5734 return 0; 5735if (sizeof (ac__type_new_)) 5736 return 0; 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741rm -f conftest.$ac_objext 5742if { (ac_try="$ac_compile" 5743case "(($ac_try" in 5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5745 *) ac_try_echo=$ac_try;; 5746esac 5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5748 (eval "$ac_compile") 2>conftest.er1 5749 ac_status=$? 5750 grep -v '^ *+' conftest.er1 >conftest.err 5751 rm -f conftest.er1 5752 cat conftest.err >&5 5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5754 (exit $ac_status); } && { 5755 test -z "$ac_c_werror_flag" || 5756 test ! -s conftest.err 5757 } && test -s conftest.$ac_objext; then 5758 ac_cv_type_short=yes 5759else 5760 echo "$as_me: failed program was:" >&5 5761sed 's/^/| /' conftest.$ac_ext >&5 5762 5763 ac_cv_type_short=no 5764fi 5765 5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5767fi 5768{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 5769echo "${ECHO_T}$ac_cv_type_short" >&6; } 5770 5771# The cast to long int works around a bug in the HP C Compiler 5772# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5773# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5774# This bug is HP SR number 8606223364. 5775{ echo "$as_me:$LINENO: checking size of short" >&5 5776echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 5777if test "${ac_cv_sizeof_short+set}" = set; then 5778 echo $ECHO_N "(cached) $ECHO_C" >&6 5779else 5780 if test "$cross_compiling" = yes; then 5781 # Depending upon the size, compute the lo and hi bounds. 5782cat >conftest.$ac_ext <<_ACEOF 5783/* confdefs.h. */ 5784_ACEOF 5785cat confdefs.h >>conftest.$ac_ext 5786cat >>conftest.$ac_ext <<_ACEOF 5787/* end confdefs.h. */ 5788$ac_includes_default 5789 typedef short ac__type_sizeof_; 5790int 5791main () 5792{ 5793static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5794test_array [0] = 0 5795 5796 ; 5797 return 0; 5798} 5799_ACEOF 5800rm -f conftest.$ac_objext 5801if { (ac_try="$ac_compile" 5802case "(($ac_try" in 5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5804 *) ac_try_echo=$ac_try;; 5805esac 5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5807 (eval "$ac_compile") 2>conftest.er1 5808 ac_status=$? 5809 grep -v '^ *+' conftest.er1 >conftest.err 5810 rm -f conftest.er1 5811 cat conftest.err >&5 5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5813 (exit $ac_status); } && { 5814 test -z "$ac_c_werror_flag" || 5815 test ! -s conftest.err 5816 } && test -s conftest.$ac_objext; then 5817 ac_lo=0 ac_mid=0 5818 while :; do 5819 cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825$ac_includes_default 5826 typedef short ac__type_sizeof_; 5827int 5828main () 5829{ 5830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5831test_array [0] = 0 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837rm -f conftest.$ac_objext 5838if { (ac_try="$ac_compile" 5839case "(($ac_try" in 5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5841 *) ac_try_echo=$ac_try;; 5842esac 5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5844 (eval "$ac_compile") 2>conftest.er1 5845 ac_status=$? 5846 grep -v '^ *+' conftest.er1 >conftest.err 5847 rm -f conftest.er1 5848 cat conftest.err >&5 5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5850 (exit $ac_status); } && { 5851 test -z "$ac_c_werror_flag" || 5852 test ! -s conftest.err 5853 } && test -s conftest.$ac_objext; then 5854 ac_hi=$ac_mid; break 5855else 5856 echo "$as_me: failed program was:" >&5 5857sed 's/^/| /' conftest.$ac_ext >&5 5858 5859 ac_lo=`expr $ac_mid + 1` 5860 if test $ac_lo -le $ac_mid; then 5861 ac_lo= ac_hi= 5862 break 5863 fi 5864 ac_mid=`expr 2 '*' $ac_mid + 1` 5865fi 5866 5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5868 done 5869else 5870 echo "$as_me: failed program was:" >&5 5871sed 's/^/| /' conftest.$ac_ext >&5 5872 5873 cat >conftest.$ac_ext <<_ACEOF 5874/* confdefs.h. */ 5875_ACEOF 5876cat confdefs.h >>conftest.$ac_ext 5877cat >>conftest.$ac_ext <<_ACEOF 5878/* end confdefs.h. */ 5879$ac_includes_default 5880 typedef short ac__type_sizeof_; 5881int 5882main () 5883{ 5884static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5885test_array [0] = 0 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891rm -f conftest.$ac_objext 5892if { (ac_try="$ac_compile" 5893case "(($ac_try" in 5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5895 *) ac_try_echo=$ac_try;; 5896esac 5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5898 (eval "$ac_compile") 2>conftest.er1 5899 ac_status=$? 5900 grep -v '^ *+' conftest.er1 >conftest.err 5901 rm -f conftest.er1 5902 cat conftest.err >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); } && { 5905 test -z "$ac_c_werror_flag" || 5906 test ! -s conftest.err 5907 } && test -s conftest.$ac_objext; then 5908 ac_hi=-1 ac_mid=-1 5909 while :; do 5910 cat >conftest.$ac_ext <<_ACEOF 5911/* confdefs.h. */ 5912_ACEOF 5913cat confdefs.h >>conftest.$ac_ext 5914cat >>conftest.$ac_ext <<_ACEOF 5915/* end confdefs.h. */ 5916$ac_includes_default 5917 typedef short ac__type_sizeof_; 5918int 5919main () 5920{ 5921static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5922test_array [0] = 0 5923 5924 ; 5925 return 0; 5926} 5927_ACEOF 5928rm -f conftest.$ac_objext 5929if { (ac_try="$ac_compile" 5930case "(($ac_try" in 5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5932 *) ac_try_echo=$ac_try;; 5933esac 5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5935 (eval "$ac_compile") 2>conftest.er1 5936 ac_status=$? 5937 grep -v '^ *+' conftest.er1 >conftest.err 5938 rm -f conftest.er1 5939 cat conftest.err >&5 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); } && { 5942 test -z "$ac_c_werror_flag" || 5943 test ! -s conftest.err 5944 } && test -s conftest.$ac_objext; then 5945 ac_lo=$ac_mid; break 5946else 5947 echo "$as_me: failed program was:" >&5 5948sed 's/^/| /' conftest.$ac_ext >&5 5949 5950 ac_hi=`expr '(' $ac_mid ')' - 1` 5951 if test $ac_mid -le $ac_hi; then 5952 ac_lo= ac_hi= 5953 break 5954 fi 5955 ac_mid=`expr 2 '*' $ac_mid` 5956fi 5957 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959 done 5960else 5961 echo "$as_me: failed program was:" >&5 5962sed 's/^/| /' conftest.$ac_ext >&5 5963 5964 ac_lo= ac_hi= 5965fi 5966 5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5968fi 5969 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971# Binary search between lo and hi bounds. 5972while test "x$ac_lo" != "x$ac_hi"; do 5973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5974 cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980$ac_includes_default 5981 typedef short ac__type_sizeof_; 5982int 5983main () 5984{ 5985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5986test_array [0] = 0 5987 5988 ; 5989 return 0; 5990} 5991_ACEOF 5992rm -f conftest.$ac_objext 5993if { (ac_try="$ac_compile" 5994case "(($ac_try" in 5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5996 *) ac_try_echo=$ac_try;; 5997esac 5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5999 (eval "$ac_compile") 2>conftest.er1 6000 ac_status=$? 6001 grep -v '^ *+' conftest.er1 >conftest.err 6002 rm -f conftest.er1 6003 cat conftest.err >&5 6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6005 (exit $ac_status); } && { 6006 test -z "$ac_c_werror_flag" || 6007 test ! -s conftest.err 6008 } && test -s conftest.$ac_objext; then 6009 ac_hi=$ac_mid 6010else 6011 echo "$as_me: failed program was:" >&5 6012sed 's/^/| /' conftest.$ac_ext >&5 6013 6014 ac_lo=`expr '(' $ac_mid ')' + 1` 6015fi 6016 6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6018done 6019case $ac_lo in 6020?*) ac_cv_sizeof_short=$ac_lo;; 6021'') if test "$ac_cv_type_short" = yes; then 6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6023See \`config.log' for more details." >&5 6024echo "$as_me: error: cannot compute sizeof (short) 6025See \`config.log' for more details." >&2;} 6026 { (exit 77); exit 77; }; } 6027 else 6028 ac_cv_sizeof_short=0 6029 fi ;; 6030esac 6031else 6032 cat >conftest.$ac_ext <<_ACEOF 6033/* confdefs.h. */ 6034_ACEOF 6035cat confdefs.h >>conftest.$ac_ext 6036cat >>conftest.$ac_ext <<_ACEOF 6037/* end confdefs.h. */ 6038$ac_includes_default 6039 typedef short ac__type_sizeof_; 6040static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6041static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6042#include <stdio.h> 6043#include <stdlib.h> 6044int 6045main () 6046{ 6047 6048 FILE *f = fopen ("conftest.val", "w"); 6049 if (! f) 6050 return 1; 6051 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6052 { 6053 long int i = longval (); 6054 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6055 return 1; 6056 fprintf (f, "%ld\n", i); 6057 } 6058 else 6059 { 6060 unsigned long int i = ulongval (); 6061 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6062 return 1; 6063 fprintf (f, "%lu\n", i); 6064 } 6065 return ferror (f) || fclose (f) != 0; 6066 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071rm -f conftest$ac_exeext 6072if { (ac_try="$ac_link" 6073case "(($ac_try" in 6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6075 *) ac_try_echo=$ac_try;; 6076esac 6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6078 (eval "$ac_link") 2>&5 6079 ac_status=$? 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6082 { (case "(($ac_try" in 6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6084 *) ac_try_echo=$ac_try;; 6085esac 6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6087 (eval "$ac_try") 2>&5 6088 ac_status=$? 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); }; }; then 6091 ac_cv_sizeof_short=`cat conftest.val` 6092else 6093 echo "$as_me: program exited with status $ac_status" >&5 6094echo "$as_me: failed program was:" >&5 6095sed 's/^/| /' conftest.$ac_ext >&5 6096 6097( exit $ac_status ) 6098if test "$ac_cv_type_short" = yes; then 6099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6100See \`config.log' for more details." >&5 6101echo "$as_me: error: cannot compute sizeof (short) 6102See \`config.log' for more details." >&2;} 6103 { (exit 77); exit 77; }; } 6104 else 6105 ac_cv_sizeof_short=0 6106 fi 6107fi 6108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6109fi 6110rm -f conftest.val 6111fi 6112{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6113echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 6114 6115 6116 6117cat >>confdefs.h <<_ACEOF 6118#define SIZEOF_SHORT $ac_cv_sizeof_short 6119_ACEOF 6120 6121 6122{ echo "$as_me:$LINENO: checking for int" >&5 6123echo $ECHO_N "checking for int... $ECHO_C" >&6; } 6124if test "${ac_cv_type_int+set}" = set; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126else 6127 cat >conftest.$ac_ext <<_ACEOF 6128/* confdefs.h. */ 6129_ACEOF 6130cat confdefs.h >>conftest.$ac_ext 6131cat >>conftest.$ac_ext <<_ACEOF 6132/* end confdefs.h. */ 6133$ac_includes_default 6134typedef int ac__type_new_; 6135int 6136main () 6137{ 6138if ((ac__type_new_ *) 0) 6139 return 0; 6140if (sizeof (ac__type_new_)) 6141 return 0; 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146rm -f conftest.$ac_objext 6147if { (ac_try="$ac_compile" 6148case "(($ac_try" in 6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6150 *) ac_try_echo=$ac_try;; 6151esac 6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6153 (eval "$ac_compile") 2>conftest.er1 6154 ac_status=$? 6155 grep -v '^ *+' conftest.er1 >conftest.err 6156 rm -f conftest.er1 6157 cat conftest.err >&5 6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6159 (exit $ac_status); } && { 6160 test -z "$ac_c_werror_flag" || 6161 test ! -s conftest.err 6162 } && test -s conftest.$ac_objext; then 6163 ac_cv_type_int=yes 6164else 6165 echo "$as_me: failed program was:" >&5 6166sed 's/^/| /' conftest.$ac_ext >&5 6167 6168 ac_cv_type_int=no 6169fi 6170 6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6172fi 6173{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6174echo "${ECHO_T}$ac_cv_type_int" >&6; } 6175 6176# The cast to long int works around a bug in the HP C Compiler 6177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6179# This bug is HP SR number 8606223364. 6180{ echo "$as_me:$LINENO: checking size of int" >&5 6181echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 6182if test "${ac_cv_sizeof_int+set}" = set; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184else 6185 if test "$cross_compiling" = yes; then 6186 # Depending upon the size, compute the lo and hi bounds. 6187cat >conftest.$ac_ext <<_ACEOF 6188/* confdefs.h. */ 6189_ACEOF 6190cat confdefs.h >>conftest.$ac_ext 6191cat >>conftest.$ac_ext <<_ACEOF 6192/* end confdefs.h. */ 6193$ac_includes_default 6194 typedef int ac__type_sizeof_; 6195int 6196main () 6197{ 6198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6199test_array [0] = 0 6200 6201 ; 6202 return 0; 6203} 6204_ACEOF 6205rm -f conftest.$ac_objext 6206if { (ac_try="$ac_compile" 6207case "(($ac_try" in 6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6209 *) ac_try_echo=$ac_try;; 6210esac 6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6212 (eval "$ac_compile") 2>conftest.er1 6213 ac_status=$? 6214 grep -v '^ *+' conftest.er1 >conftest.err 6215 rm -f conftest.er1 6216 cat conftest.err >&5 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218 (exit $ac_status); } && { 6219 test -z "$ac_c_werror_flag" || 6220 test ! -s conftest.err 6221 } && test -s conftest.$ac_objext; then 6222 ac_lo=0 ac_mid=0 6223 while :; do 6224 cat >conftest.$ac_ext <<_ACEOF 6225/* confdefs.h. */ 6226_ACEOF 6227cat confdefs.h >>conftest.$ac_ext 6228cat >>conftest.$ac_ext <<_ACEOF 6229/* end confdefs.h. */ 6230$ac_includes_default 6231 typedef int ac__type_sizeof_; 6232int 6233main () 6234{ 6235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6236test_array [0] = 0 6237 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242rm -f conftest.$ac_objext 6243if { (ac_try="$ac_compile" 6244case "(($ac_try" in 6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6246 *) ac_try_echo=$ac_try;; 6247esac 6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6249 (eval "$ac_compile") 2>conftest.er1 6250 ac_status=$? 6251 grep -v '^ *+' conftest.er1 >conftest.err 6252 rm -f conftest.er1 6253 cat conftest.err >&5 6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); } && { 6256 test -z "$ac_c_werror_flag" || 6257 test ! -s conftest.err 6258 } && test -s conftest.$ac_objext; then 6259 ac_hi=$ac_mid; break 6260else 6261 echo "$as_me: failed program was:" >&5 6262sed 's/^/| /' conftest.$ac_ext >&5 6263 6264 ac_lo=`expr $ac_mid + 1` 6265 if test $ac_lo -le $ac_mid; then 6266 ac_lo= ac_hi= 6267 break 6268 fi 6269 ac_mid=`expr 2 '*' $ac_mid + 1` 6270fi 6271 6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6273 done 6274else 6275 echo "$as_me: failed program was:" >&5 6276sed 's/^/| /' conftest.$ac_ext >&5 6277 6278 cat >conftest.$ac_ext <<_ACEOF 6279/* confdefs.h. */ 6280_ACEOF 6281cat confdefs.h >>conftest.$ac_ext 6282cat >>conftest.$ac_ext <<_ACEOF 6283/* end confdefs.h. */ 6284$ac_includes_default 6285 typedef int ac__type_sizeof_; 6286int 6287main () 6288{ 6289static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6290test_array [0] = 0 6291 6292 ; 6293 return 0; 6294} 6295_ACEOF 6296rm -f conftest.$ac_objext 6297if { (ac_try="$ac_compile" 6298case "(($ac_try" in 6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6300 *) ac_try_echo=$ac_try;; 6301esac 6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6303 (eval "$ac_compile") 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } && { 6310 test -z "$ac_c_werror_flag" || 6311 test ! -s conftest.err 6312 } && test -s conftest.$ac_objext; then 6313 ac_hi=-1 ac_mid=-1 6314 while :; do 6315 cat >conftest.$ac_ext <<_ACEOF 6316/* confdefs.h. */ 6317_ACEOF 6318cat confdefs.h >>conftest.$ac_ext 6319cat >>conftest.$ac_ext <<_ACEOF 6320/* end confdefs.h. */ 6321$ac_includes_default 6322 typedef int ac__type_sizeof_; 6323int 6324main () 6325{ 6326static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6327test_array [0] = 0 6328 6329 ; 6330 return 0; 6331} 6332_ACEOF 6333rm -f conftest.$ac_objext 6334if { (ac_try="$ac_compile" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_compile") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } && { 6347 test -z "$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 } && test -s conftest.$ac_objext; then 6350 ac_lo=$ac_mid; break 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_hi=`expr '(' $ac_mid ')' - 1` 6356 if test $ac_mid -le $ac_hi; then 6357 ac_lo= ac_hi= 6358 break 6359 fi 6360 ac_mid=`expr 2 '*' $ac_mid` 6361fi 6362 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364 done 6365else 6366 echo "$as_me: failed program was:" >&5 6367sed 's/^/| /' conftest.$ac_ext >&5 6368 6369 ac_lo= ac_hi= 6370fi 6371 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373fi 6374 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376# Binary search between lo and hi bounds. 6377while test "x$ac_lo" != "x$ac_hi"; do 6378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6379 cat >conftest.$ac_ext <<_ACEOF 6380/* confdefs.h. */ 6381_ACEOF 6382cat confdefs.h >>conftest.$ac_ext 6383cat >>conftest.$ac_ext <<_ACEOF 6384/* end confdefs.h. */ 6385$ac_includes_default 6386 typedef int ac__type_sizeof_; 6387int 6388main () 6389{ 6390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6391test_array [0] = 0 6392 6393 ; 6394 return 0; 6395} 6396_ACEOF 6397rm -f conftest.$ac_objext 6398if { (ac_try="$ac_compile" 6399case "(($ac_try" in 6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6401 *) ac_try_echo=$ac_try;; 6402esac 6403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6404 (eval "$ac_compile") 2>conftest.er1 6405 ac_status=$? 6406 grep -v '^ *+' conftest.er1 >conftest.err 6407 rm -f conftest.er1 6408 cat conftest.err >&5 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); } && { 6411 test -z "$ac_c_werror_flag" || 6412 test ! -s conftest.err 6413 } && test -s conftest.$ac_objext; then 6414 ac_hi=$ac_mid 6415else 6416 echo "$as_me: failed program was:" >&5 6417sed 's/^/| /' conftest.$ac_ext >&5 6418 6419 ac_lo=`expr '(' $ac_mid ')' + 1` 6420fi 6421 6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6423done 6424case $ac_lo in 6425?*) ac_cv_sizeof_int=$ac_lo;; 6426'') if test "$ac_cv_type_int" = yes; then 6427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6428See \`config.log' for more details." >&5 6429echo "$as_me: error: cannot compute sizeof (int) 6430See \`config.log' for more details." >&2;} 6431 { (exit 77); exit 77; }; } 6432 else 6433 ac_cv_sizeof_int=0 6434 fi ;; 6435esac 6436else 6437 cat >conftest.$ac_ext <<_ACEOF 6438/* confdefs.h. */ 6439_ACEOF 6440cat confdefs.h >>conftest.$ac_ext 6441cat >>conftest.$ac_ext <<_ACEOF 6442/* end confdefs.h. */ 6443$ac_includes_default 6444 typedef int ac__type_sizeof_; 6445static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6446static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6447#include <stdio.h> 6448#include <stdlib.h> 6449int 6450main () 6451{ 6452 6453 FILE *f = fopen ("conftest.val", "w"); 6454 if (! f) 6455 return 1; 6456 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6457 { 6458 long int i = longval (); 6459 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6460 return 1; 6461 fprintf (f, "%ld\n", i); 6462 } 6463 else 6464 { 6465 unsigned long int i = ulongval (); 6466 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6467 return 1; 6468 fprintf (f, "%lu\n", i); 6469 } 6470 return ferror (f) || fclose (f) != 0; 6471 6472 ; 6473 return 0; 6474} 6475_ACEOF 6476rm -f conftest$ac_exeext 6477if { (ac_try="$ac_link" 6478case "(($ac_try" in 6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6480 *) ac_try_echo=$ac_try;; 6481esac 6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6483 (eval "$ac_link") 2>&5 6484 ac_status=$? 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6487 { (case "(($ac_try" in 6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6489 *) ac_try_echo=$ac_try;; 6490esac 6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6492 (eval "$ac_try") 2>&5 6493 ac_status=$? 6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6495 (exit $ac_status); }; }; then 6496 ac_cv_sizeof_int=`cat conftest.val` 6497else 6498 echo "$as_me: program exited with status $ac_status" >&5 6499echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502( exit $ac_status ) 6503if test "$ac_cv_type_int" = yes; then 6504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6505See \`config.log' for more details." >&5 6506echo "$as_me: error: cannot compute sizeof (int) 6507See \`config.log' for more details." >&2;} 6508 { (exit 77); exit 77; }; } 6509 else 6510 ac_cv_sizeof_int=0 6511 fi 6512fi 6513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6514fi 6515rm -f conftest.val 6516fi 6517{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6518echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 6519 6520 6521 6522cat >>confdefs.h <<_ACEOF 6523#define SIZEOF_INT $ac_cv_sizeof_int 6524_ACEOF 6525 6526 6527{ echo "$as_me:$LINENO: checking for long" >&5 6528echo $ECHO_N "checking for long... $ECHO_C" >&6; } 6529if test "${ac_cv_type_long+set}" = set; then 6530 echo $ECHO_N "(cached) $ECHO_C" >&6 6531else 6532 cat >conftest.$ac_ext <<_ACEOF 6533/* confdefs.h. */ 6534_ACEOF 6535cat confdefs.h >>conftest.$ac_ext 6536cat >>conftest.$ac_ext <<_ACEOF 6537/* end confdefs.h. */ 6538$ac_includes_default 6539typedef long ac__type_new_; 6540int 6541main () 6542{ 6543if ((ac__type_new_ *) 0) 6544 return 0; 6545if (sizeof (ac__type_new_)) 6546 return 0; 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551rm -f conftest.$ac_objext 6552if { (ac_try="$ac_compile" 6553case "(($ac_try" in 6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6555 *) ac_try_echo=$ac_try;; 6556esac 6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6558 (eval "$ac_compile") 2>conftest.er1 6559 ac_status=$? 6560 grep -v '^ *+' conftest.er1 >conftest.err 6561 rm -f conftest.er1 6562 cat conftest.err >&5 6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6564 (exit $ac_status); } && { 6565 test -z "$ac_c_werror_flag" || 6566 test ! -s conftest.err 6567 } && test -s conftest.$ac_objext; then 6568 ac_cv_type_long=yes 6569else 6570 echo "$as_me: failed program was:" >&5 6571sed 's/^/| /' conftest.$ac_ext >&5 6572 6573 ac_cv_type_long=no 6574fi 6575 6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6577fi 6578{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6579echo "${ECHO_T}$ac_cv_type_long" >&6; } 6580 6581# The cast to long int works around a bug in the HP C Compiler 6582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6584# This bug is HP SR number 8606223364. 6585{ echo "$as_me:$LINENO: checking size of long" >&5 6586echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 6587if test "${ac_cv_sizeof_long+set}" = set; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589else 6590 if test "$cross_compiling" = yes; then 6591 # Depending upon the size, compute the lo and hi bounds. 6592cat >conftest.$ac_ext <<_ACEOF 6593/* confdefs.h. */ 6594_ACEOF 6595cat confdefs.h >>conftest.$ac_ext 6596cat >>conftest.$ac_ext <<_ACEOF 6597/* end confdefs.h. */ 6598$ac_includes_default 6599 typedef long ac__type_sizeof_; 6600int 6601main () 6602{ 6603static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6604test_array [0] = 0 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610rm -f conftest.$ac_objext 6611if { (ac_try="$ac_compile" 6612case "(($ac_try" in 6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6614 *) ac_try_echo=$ac_try;; 6615esac 6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6617 (eval "$ac_compile") 2>conftest.er1 6618 ac_status=$? 6619 grep -v '^ *+' conftest.er1 >conftest.err 6620 rm -f conftest.er1 6621 cat conftest.err >&5 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); } && { 6624 test -z "$ac_c_werror_flag" || 6625 test ! -s conftest.err 6626 } && test -s conftest.$ac_objext; then 6627 ac_lo=0 ac_mid=0 6628 while :; do 6629 cat >conftest.$ac_ext <<_ACEOF 6630/* confdefs.h. */ 6631_ACEOF 6632cat confdefs.h >>conftest.$ac_ext 6633cat >>conftest.$ac_ext <<_ACEOF 6634/* end confdefs.h. */ 6635$ac_includes_default 6636 typedef long ac__type_sizeof_; 6637int 6638main () 6639{ 6640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6641test_array [0] = 0 6642 6643 ; 6644 return 0; 6645} 6646_ACEOF 6647rm -f conftest.$ac_objext 6648if { (ac_try="$ac_compile" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_compile") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } && { 6661 test -z "$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 } && test -s conftest.$ac_objext; then 6664 ac_hi=$ac_mid; break 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_lo=`expr $ac_mid + 1` 6670 if test $ac_lo -le $ac_mid; then 6671 ac_lo= ac_hi= 6672 break 6673 fi 6674 ac_mid=`expr 2 '*' $ac_mid + 1` 6675fi 6676 6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6678 done 6679else 6680 echo "$as_me: failed program was:" >&5 6681sed 's/^/| /' conftest.$ac_ext >&5 6682 6683 cat >conftest.$ac_ext <<_ACEOF 6684/* confdefs.h. */ 6685_ACEOF 6686cat confdefs.h >>conftest.$ac_ext 6687cat >>conftest.$ac_ext <<_ACEOF 6688/* end confdefs.h. */ 6689$ac_includes_default 6690 typedef long ac__type_sizeof_; 6691int 6692main () 6693{ 6694static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6695test_array [0] = 0 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701rm -f conftest.$ac_objext 6702if { (ac_try="$ac_compile" 6703case "(($ac_try" in 6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6705 *) ac_try_echo=$ac_try;; 6706esac 6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6708 (eval "$ac_compile") 2>conftest.er1 6709 ac_status=$? 6710 grep -v '^ *+' conftest.er1 >conftest.err 6711 rm -f conftest.er1 6712 cat conftest.err >&5 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); } && { 6715 test -z "$ac_c_werror_flag" || 6716 test ! -s conftest.err 6717 } && test -s conftest.$ac_objext; then 6718 ac_hi=-1 ac_mid=-1 6719 while :; do 6720 cat >conftest.$ac_ext <<_ACEOF 6721/* confdefs.h. */ 6722_ACEOF 6723cat confdefs.h >>conftest.$ac_ext 6724cat >>conftest.$ac_ext <<_ACEOF 6725/* end confdefs.h. */ 6726$ac_includes_default 6727 typedef long ac__type_sizeof_; 6728int 6729main () 6730{ 6731static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6732test_array [0] = 0 6733 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738rm -f conftest.$ac_objext 6739if { (ac_try="$ac_compile" 6740case "(($ac_try" in 6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6742 *) ac_try_echo=$ac_try;; 6743esac 6744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6745 (eval "$ac_compile") 2>conftest.er1 6746 ac_status=$? 6747 grep -v '^ *+' conftest.er1 >conftest.err 6748 rm -f conftest.er1 6749 cat conftest.err >&5 6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 (exit $ac_status); } && { 6752 test -z "$ac_c_werror_flag" || 6753 test ! -s conftest.err 6754 } && test -s conftest.$ac_objext; then 6755 ac_lo=$ac_mid; break 6756else 6757 echo "$as_me: failed program was:" >&5 6758sed 's/^/| /' conftest.$ac_ext >&5 6759 6760 ac_hi=`expr '(' $ac_mid ')' - 1` 6761 if test $ac_mid -le $ac_hi; then 6762 ac_lo= ac_hi= 6763 break 6764 fi 6765 ac_mid=`expr 2 '*' $ac_mid` 6766fi 6767 6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6769 done 6770else 6771 echo "$as_me: failed program was:" >&5 6772sed 's/^/| /' conftest.$ac_ext >&5 6773 6774 ac_lo= ac_hi= 6775fi 6776 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778fi 6779 6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6781# Binary search between lo and hi bounds. 6782while test "x$ac_lo" != "x$ac_hi"; do 6783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6784 cat >conftest.$ac_ext <<_ACEOF 6785/* confdefs.h. */ 6786_ACEOF 6787cat confdefs.h >>conftest.$ac_ext 6788cat >>conftest.$ac_ext <<_ACEOF 6789/* end confdefs.h. */ 6790$ac_includes_default 6791 typedef long ac__type_sizeof_; 6792int 6793main () 6794{ 6795static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6796test_array [0] = 0 6797 6798 ; 6799 return 0; 6800} 6801_ACEOF 6802rm -f conftest.$ac_objext 6803if { (ac_try="$ac_compile" 6804case "(($ac_try" in 6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6806 *) ac_try_echo=$ac_try;; 6807esac 6808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6809 (eval "$ac_compile") 2>conftest.er1 6810 ac_status=$? 6811 grep -v '^ *+' conftest.er1 >conftest.err 6812 rm -f conftest.er1 6813 cat conftest.err >&5 6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); } && { 6816 test -z "$ac_c_werror_flag" || 6817 test ! -s conftest.err 6818 } && test -s conftest.$ac_objext; then 6819 ac_hi=$ac_mid 6820else 6821 echo "$as_me: failed program was:" >&5 6822sed 's/^/| /' conftest.$ac_ext >&5 6823 6824 ac_lo=`expr '(' $ac_mid ')' + 1` 6825fi 6826 6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6828done 6829case $ac_lo in 6830?*) ac_cv_sizeof_long=$ac_lo;; 6831'') if test "$ac_cv_type_long" = yes; then 6832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6833See \`config.log' for more details." >&5 6834echo "$as_me: error: cannot compute sizeof (long) 6835See \`config.log' for more details." >&2;} 6836 { (exit 77); exit 77; }; } 6837 else 6838 ac_cv_sizeof_long=0 6839 fi ;; 6840esac 6841else 6842 cat >conftest.$ac_ext <<_ACEOF 6843/* confdefs.h. */ 6844_ACEOF 6845cat confdefs.h >>conftest.$ac_ext 6846cat >>conftest.$ac_ext <<_ACEOF 6847/* end confdefs.h. */ 6848$ac_includes_default 6849 typedef long ac__type_sizeof_; 6850static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6851static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6852#include <stdio.h> 6853#include <stdlib.h> 6854int 6855main () 6856{ 6857 6858 FILE *f = fopen ("conftest.val", "w"); 6859 if (! f) 6860 return 1; 6861 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6862 { 6863 long int i = longval (); 6864 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6865 return 1; 6866 fprintf (f, "%ld\n", i); 6867 } 6868 else 6869 { 6870 unsigned long int i = ulongval (); 6871 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6872 return 1; 6873 fprintf (f, "%lu\n", i); 6874 } 6875 return ferror (f) || fclose (f) != 0; 6876 6877 ; 6878 return 0; 6879} 6880_ACEOF 6881rm -f conftest$ac_exeext 6882if { (ac_try="$ac_link" 6883case "(($ac_try" in 6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6885 *) ac_try_echo=$ac_try;; 6886esac 6887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6888 (eval "$ac_link") 2>&5 6889 ac_status=$? 6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6892 { (case "(($ac_try" in 6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6894 *) ac_try_echo=$ac_try;; 6895esac 6896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6897 (eval "$ac_try") 2>&5 6898 ac_status=$? 6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6900 (exit $ac_status); }; }; then 6901 ac_cv_sizeof_long=`cat conftest.val` 6902else 6903 echo "$as_me: program exited with status $ac_status" >&5 6904echo "$as_me: failed program was:" >&5 6905sed 's/^/| /' conftest.$ac_ext >&5 6906 6907( exit $ac_status ) 6908if test "$ac_cv_type_long" = yes; then 6909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6910See \`config.log' for more details." >&5 6911echo "$as_me: error: cannot compute sizeof (long) 6912See \`config.log' for more details." >&2;} 6913 { (exit 77); exit 77; }; } 6914 else 6915 ac_cv_sizeof_long=0 6916 fi 6917fi 6918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6919fi 6920rm -f conftest.val 6921fi 6922{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6923echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 6924 6925 6926 6927cat >>confdefs.h <<_ACEOF 6928#define SIZEOF_LONG $ac_cv_sizeof_long 6929_ACEOF 6930 6931 6932{ echo "$as_me:$LINENO: checking for long long" >&5 6933echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 6934if test "${ac_cv_type_long_long+set}" = set; then 6935 echo $ECHO_N "(cached) $ECHO_C" >&6 6936else 6937 cat >conftest.$ac_ext <<_ACEOF 6938/* confdefs.h. */ 6939_ACEOF 6940cat confdefs.h >>conftest.$ac_ext 6941cat >>conftest.$ac_ext <<_ACEOF 6942/* end confdefs.h. */ 6943$ac_includes_default 6944typedef long long ac__type_new_; 6945int 6946main () 6947{ 6948if ((ac__type_new_ *) 0) 6949 return 0; 6950if (sizeof (ac__type_new_)) 6951 return 0; 6952 ; 6953 return 0; 6954} 6955_ACEOF 6956rm -f conftest.$ac_objext 6957if { (ac_try="$ac_compile" 6958case "(($ac_try" in 6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6960 *) ac_try_echo=$ac_try;; 6961esac 6962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6963 (eval "$ac_compile") 2>conftest.er1 6964 ac_status=$? 6965 grep -v '^ *+' conftest.er1 >conftest.err 6966 rm -f conftest.er1 6967 cat conftest.err >&5 6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && { 6970 test -z "$ac_c_werror_flag" || 6971 test ! -s conftest.err 6972 } && test -s conftest.$ac_objext; then 6973 ac_cv_type_long_long=yes 6974else 6975 echo "$as_me: failed program was:" >&5 6976sed 's/^/| /' conftest.$ac_ext >&5 6977 6978 ac_cv_type_long_long=no 6979fi 6980 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982fi 6983{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 6984echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 6985 6986# The cast to long int works around a bug in the HP C Compiler 6987# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6988# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6989# This bug is HP SR number 8606223364. 6990{ echo "$as_me:$LINENO: checking size of long long" >&5 6991echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 6992if test "${ac_cv_sizeof_long_long+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 if test "$cross_compiling" = yes; then 6996 # Depending upon the size, compute the lo and hi bounds. 6997cat >conftest.$ac_ext <<_ACEOF 6998/* confdefs.h. */ 6999_ACEOF 7000cat confdefs.h >>conftest.$ac_ext 7001cat >>conftest.$ac_ext <<_ACEOF 7002/* end confdefs.h. */ 7003$ac_includes_default 7004 typedef long long ac__type_sizeof_; 7005int 7006main () 7007{ 7008static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7009test_array [0] = 0 7010 7011 ; 7012 return 0; 7013} 7014_ACEOF 7015rm -f conftest.$ac_objext 7016if { (ac_try="$ac_compile" 7017case "(($ac_try" in 7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7019 *) ac_try_echo=$ac_try;; 7020esac 7021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7022 (eval "$ac_compile") 2>conftest.er1 7023 ac_status=$? 7024 grep -v '^ *+' conftest.er1 >conftest.err 7025 rm -f conftest.er1 7026 cat conftest.err >&5 7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); } && { 7029 test -z "$ac_c_werror_flag" || 7030 test ! -s conftest.err 7031 } && test -s conftest.$ac_objext; then 7032 ac_lo=0 ac_mid=0 7033 while :; do 7034 cat >conftest.$ac_ext <<_ACEOF 7035/* confdefs.h. */ 7036_ACEOF 7037cat confdefs.h >>conftest.$ac_ext 7038cat >>conftest.$ac_ext <<_ACEOF 7039/* end confdefs.h. */ 7040$ac_includes_default 7041 typedef long long ac__type_sizeof_; 7042int 7043main () 7044{ 7045static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7046test_array [0] = 0 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052rm -f conftest.$ac_objext 7053if { (ac_try="$ac_compile" 7054case "(($ac_try" in 7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7056 *) ac_try_echo=$ac_try;; 7057esac 7058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7059 (eval "$ac_compile") 2>conftest.er1 7060 ac_status=$? 7061 grep -v '^ *+' conftest.er1 >conftest.err 7062 rm -f conftest.er1 7063 cat conftest.err >&5 7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); } && { 7066 test -z "$ac_c_werror_flag" || 7067 test ! -s conftest.err 7068 } && test -s conftest.$ac_objext; then 7069 ac_hi=$ac_mid; break 7070else 7071 echo "$as_me: failed program was:" >&5 7072sed 's/^/| /' conftest.$ac_ext >&5 7073 7074 ac_lo=`expr $ac_mid + 1` 7075 if test $ac_lo -le $ac_mid; then 7076 ac_lo= ac_hi= 7077 break 7078 fi 7079 ac_mid=`expr 2 '*' $ac_mid + 1` 7080fi 7081 7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7083 done 7084else 7085 echo "$as_me: failed program was:" >&5 7086sed 's/^/| /' conftest.$ac_ext >&5 7087 7088 cat >conftest.$ac_ext <<_ACEOF 7089/* confdefs.h. */ 7090_ACEOF 7091cat confdefs.h >>conftest.$ac_ext 7092cat >>conftest.$ac_ext <<_ACEOF 7093/* end confdefs.h. */ 7094$ac_includes_default 7095 typedef long long ac__type_sizeof_; 7096int 7097main () 7098{ 7099static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7100test_array [0] = 0 7101 7102 ; 7103 return 0; 7104} 7105_ACEOF 7106rm -f conftest.$ac_objext 7107if { (ac_try="$ac_compile" 7108case "(($ac_try" in 7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7110 *) ac_try_echo=$ac_try;; 7111esac 7112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7113 (eval "$ac_compile") 2>conftest.er1 7114 ac_status=$? 7115 grep -v '^ *+' conftest.er1 >conftest.err 7116 rm -f conftest.er1 7117 cat conftest.err >&5 7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7119 (exit $ac_status); } && { 7120 test -z "$ac_c_werror_flag" || 7121 test ! -s conftest.err 7122 } && test -s conftest.$ac_objext; then 7123 ac_hi=-1 ac_mid=-1 7124 while :; do 7125 cat >conftest.$ac_ext <<_ACEOF 7126/* confdefs.h. */ 7127_ACEOF 7128cat confdefs.h >>conftest.$ac_ext 7129cat >>conftest.$ac_ext <<_ACEOF 7130/* end confdefs.h. */ 7131$ac_includes_default 7132 typedef long long ac__type_sizeof_; 7133int 7134main () 7135{ 7136static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7137test_array [0] = 0 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143rm -f conftest.$ac_objext 7144if { (ac_try="$ac_compile" 7145case "(($ac_try" in 7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7147 *) ac_try_echo=$ac_try;; 7148esac 7149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7150 (eval "$ac_compile") 2>conftest.er1 7151 ac_status=$? 7152 grep -v '^ *+' conftest.er1 >conftest.err 7153 rm -f conftest.er1 7154 cat conftest.err >&5 7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7156 (exit $ac_status); } && { 7157 test -z "$ac_c_werror_flag" || 7158 test ! -s conftest.err 7159 } && test -s conftest.$ac_objext; then 7160 ac_lo=$ac_mid; break 7161else 7162 echo "$as_me: failed program was:" >&5 7163sed 's/^/| /' conftest.$ac_ext >&5 7164 7165 ac_hi=`expr '(' $ac_mid ')' - 1` 7166 if test $ac_mid -le $ac_hi; then 7167 ac_lo= ac_hi= 7168 break 7169 fi 7170 ac_mid=`expr 2 '*' $ac_mid` 7171fi 7172 7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7174 done 7175else 7176 echo "$as_me: failed program was:" >&5 7177sed 's/^/| /' conftest.$ac_ext >&5 7178 7179 ac_lo= ac_hi= 7180fi 7181 7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7183fi 7184 7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7186# Binary search between lo and hi bounds. 7187while test "x$ac_lo" != "x$ac_hi"; do 7188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7189 cat >conftest.$ac_ext <<_ACEOF 7190/* confdefs.h. */ 7191_ACEOF 7192cat confdefs.h >>conftest.$ac_ext 7193cat >>conftest.$ac_ext <<_ACEOF 7194/* end confdefs.h. */ 7195$ac_includes_default 7196 typedef long long ac__type_sizeof_; 7197int 7198main () 7199{ 7200static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7201test_array [0] = 0 7202 7203 ; 7204 return 0; 7205} 7206_ACEOF 7207rm -f conftest.$ac_objext 7208if { (ac_try="$ac_compile" 7209case "(($ac_try" in 7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7211 *) ac_try_echo=$ac_try;; 7212esac 7213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7214 (eval "$ac_compile") 2>conftest.er1 7215 ac_status=$? 7216 grep -v '^ *+' conftest.er1 >conftest.err 7217 rm -f conftest.er1 7218 cat conftest.err >&5 7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7220 (exit $ac_status); } && { 7221 test -z "$ac_c_werror_flag" || 7222 test ! -s conftest.err 7223 } && test -s conftest.$ac_objext; then 7224 ac_hi=$ac_mid 7225else 7226 echo "$as_me: failed program was:" >&5 7227sed 's/^/| /' conftest.$ac_ext >&5 7228 7229 ac_lo=`expr '(' $ac_mid ')' + 1` 7230fi 7231 7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7233done 7234case $ac_lo in 7235?*) ac_cv_sizeof_long_long=$ac_lo;; 7236'') if test "$ac_cv_type_long_long" = yes; then 7237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 7238See \`config.log' for more details." >&5 7239echo "$as_me: error: cannot compute sizeof (long long) 7240See \`config.log' for more details." >&2;} 7241 { (exit 77); exit 77; }; } 7242 else 7243 ac_cv_sizeof_long_long=0 7244 fi ;; 7245esac 7246else 7247 cat >conftest.$ac_ext <<_ACEOF 7248/* confdefs.h. */ 7249_ACEOF 7250cat confdefs.h >>conftest.$ac_ext 7251cat >>conftest.$ac_ext <<_ACEOF 7252/* end confdefs.h. */ 7253$ac_includes_default 7254 typedef long long ac__type_sizeof_; 7255static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7256static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7257#include <stdio.h> 7258#include <stdlib.h> 7259int 7260main () 7261{ 7262 7263 FILE *f = fopen ("conftest.val", "w"); 7264 if (! f) 7265 return 1; 7266 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7267 { 7268 long int i = longval (); 7269 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7270 return 1; 7271 fprintf (f, "%ld\n", i); 7272 } 7273 else 7274 { 7275 unsigned long int i = ulongval (); 7276 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7277 return 1; 7278 fprintf (f, "%lu\n", i); 7279 } 7280 return ferror (f) || fclose (f) != 0; 7281 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286rm -f conftest$ac_exeext 7287if { (ac_try="$ac_link" 7288case "(($ac_try" in 7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7290 *) ac_try_echo=$ac_try;; 7291esac 7292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7293 (eval "$ac_link") 2>&5 7294 ac_status=$? 7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7297 { (case "(($ac_try" in 7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7299 *) ac_try_echo=$ac_try;; 7300esac 7301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7302 (eval "$ac_try") 2>&5 7303 ac_status=$? 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7305 (exit $ac_status); }; }; then 7306 ac_cv_sizeof_long_long=`cat conftest.val` 7307else 7308 echo "$as_me: program exited with status $ac_status" >&5 7309echo "$as_me: failed program was:" >&5 7310sed 's/^/| /' conftest.$ac_ext >&5 7311 7312( exit $ac_status ) 7313if test "$ac_cv_type_long_long" = yes; then 7314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 7315See \`config.log' for more details." >&5 7316echo "$as_me: error: cannot compute sizeof (long long) 7317See \`config.log' for more details." >&2;} 7318 { (exit 77); exit 77; }; } 7319 else 7320 ac_cv_sizeof_long_long=0 7321 fi 7322fi 7323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7324fi 7325rm -f conftest.val 7326fi 7327{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 7328echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 7329 7330 7331 7332cat >>confdefs.h <<_ACEOF 7333#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7334_ACEOF 7335 7336 7337 7338 7339 7340 { echo "$as_me:$LINENO: checking for addrinfo" >&5 7341echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } 7342 if test "${ac_cv_addrinfo+set}" = set; then 7343 echo $ECHO_N "(cached) $ECHO_C" >&6 7344else 7345 cat >conftest.$ac_ext <<_ACEOF 7346/* confdefs.h. */ 7347_ACEOF 7348cat confdefs.h >>conftest.$ac_ext 7349cat >>conftest.$ac_ext <<_ACEOF 7350/* end confdefs.h. */ 7351 7352# include <netdb.h> 7353int 7354main () 7355{ 7356struct addrinfo a 7357 ; 7358 return 0; 7359} 7360_ACEOF 7361rm -f conftest.$ac_objext 7362if { (ac_try="$ac_compile" 7363case "(($ac_try" in 7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7365 *) ac_try_echo=$ac_try;; 7366esac 7367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7368 (eval "$ac_compile") 2>conftest.er1 7369 ac_status=$? 7370 grep -v '^ *+' conftest.er1 >conftest.err 7371 rm -f conftest.er1 7372 cat conftest.err >&5 7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7374 (exit $ac_status); } && { 7375 test -z "$ac_c_werror_flag" || 7376 test ! -s conftest.err 7377 } && test -s conftest.$ac_objext; then 7378 ac_cv_addrinfo=yes 7379else 7380 echo "$as_me: failed program was:" >&5 7381sed 's/^/| /' conftest.$ac_ext >&5 7382 7383 ac_cv_addrinfo=no 7384fi 7385 7386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7387fi 7388 7389 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 7390echo "${ECHO_T}$ac_cv_addrinfo" >&6; } 7391 if test $ac_cv_addrinfo = yes; then 7392 cat >>confdefs.h <<\_ACEOF 7393#define HAVE_ADDRINFO 1 7394_ACEOF 7395 7396 else 7397 cat >>confdefs.h <<\_ACEOF 7398#define NEED_ADDRINFO_H 1 7399_ACEOF 7400 7401 fi 7402 7403if test "$ac_cv_addrinfo" = no; then 7404 missing_includes=yes 7405fi 7406 7407 7408 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 7409echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; } 7410 if test "${ac_cv_maxserv+set}" = set; then 7411 echo $ECHO_N "(cached) $ECHO_C" >&6 7412else 7413 cat >conftest.$ac_ext <<_ACEOF 7414/* confdefs.h. */ 7415_ACEOF 7416cat confdefs.h >>conftest.$ac_ext 7417cat >>conftest.$ac_ext <<_ACEOF 7418/* end confdefs.h. */ 7419#include <netdb.h> 7420#ifdef NI_MAXSERV 7421yes 7422#endif 7423_ACEOF 7424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7425 $EGREP "yes" >/dev/null 2>&1; then 7426 ac_cv_maxserv=yes 7427else 7428 ac_cv_maxserv=no 7429fi 7430rm -f conftest* 7431 7432fi 7433 7434 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 7435echo "${ECHO_T}$ac_cv_maxserv" >&6; } 7436 if test $ac_cv_maxserv != yes; then 7437 cat >>confdefs.h <<\_ACEOF 7438#define NEED_ADDRINFO_H 1 7439_ACEOF 7440 7441 fi 7442 7443if test "$ac_cv_maxserv" = no; then 7444 missing_includes=yes 7445fi 7446 7447 7448 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 7449echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; } 7450 if test "${ac_cv_namereqd+set}" = set; then 7451 echo $ECHO_N "(cached) $ECHO_C" >&6 7452else 7453 cat >conftest.$ac_ext <<_ACEOF 7454/* confdefs.h. */ 7455_ACEOF 7456cat confdefs.h >>conftest.$ac_ext 7457cat >>conftest.$ac_ext <<_ACEOF 7458/* end confdefs.h. */ 7459#include <netdb.h> 7460#ifdef NI_NOFQDN 7461yes 7462#endif 7463_ACEOF 7464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7465 $EGREP "yes" >/dev/null 2>&1; then 7466 ac_cv_namereqd=yes 7467else 7468 ac_cv_namereqd=no 7469fi 7470rm -f conftest* 7471 7472fi 7473 7474 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 7475echo "${ECHO_T}$ac_cv_namereqd" >&6; } 7476 if test $ac_cv_namereqd != yes; then 7477 cat >>confdefs.h <<\_ACEOF 7478#define NEED_ADDRINFO_H 1 7479_ACEOF 7480 7481 fi 7482 7483if test "$ac_cv_namereqd" = no; then 7484 missing_includes=yes 7485fi 7486 7487 7488 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 7489echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } 7490 if test "${ac_cv_sa_storage+set}" = set; then 7491 echo $ECHO_N "(cached) $ECHO_C" >&6 7492else 7493 cat >conftest.$ac_ext <<_ACEOF 7494/* confdefs.h. */ 7495_ACEOF 7496cat confdefs.h >>conftest.$ac_ext 7497cat >>conftest.$ac_ext <<_ACEOF 7498/* end confdefs.h. */ 7499 7500# include <sys/types.h> 7501# include <sys/socket.h> 7502int 7503main () 7504{ 7505struct sockaddr_storage s 7506 ; 7507 return 0; 7508} 7509_ACEOF 7510rm -f conftest.$ac_objext 7511if { (ac_try="$ac_compile" 7512case "(($ac_try" in 7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7514 *) ac_try_echo=$ac_try;; 7515esac 7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7517 (eval "$ac_compile") 2>conftest.er1 7518 ac_status=$? 7519 grep -v '^ *+' conftest.er1 >conftest.err 7520 rm -f conftest.er1 7521 cat conftest.err >&5 7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7523 (exit $ac_status); } && { 7524 test -z "$ac_c_werror_flag" || 7525 test ! -s conftest.err 7526 } && test -s conftest.$ac_objext; then 7527 ac_cv_sa_storage=yes 7528else 7529 echo "$as_me: failed program was:" >&5 7530sed 's/^/| /' conftest.$ac_ext >&5 7531 7532 ac_cv_sa_storage=no 7533fi 7534 7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7536fi 7537 7538 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 7539echo "${ECHO_T}$ac_cv_sa_storage" >&6; } 7540 if test $ac_cv_sa_storage = yes; then 7541 cat >>confdefs.h <<\_ACEOF 7542#define HAVE_SOCKADDR_STORAGE 1 7543_ACEOF 7544 7545 fi 7546 7547if test "$ac_cv_sa_storage" = no; then 7548 missing_includes=yes 7549fi 7550 7551 7552 ac_cv_addrsz=yes 7553 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5 7554echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; } 7555 if test "${ac_cv_inaddrsz+set}" = set; then 7556 echo $ECHO_N "(cached) $ECHO_C" >&6 7557else 7558 cat >conftest.$ac_ext <<_ACEOF 7559/* confdefs.h. */ 7560_ACEOF 7561cat confdefs.h >>conftest.$ac_ext 7562cat >>conftest.$ac_ext <<_ACEOF 7563/* end confdefs.h. */ 7564 7565# include <arpa/nameser.h> 7566int 7567main () 7568{ 7569int a = INADDRSZ 7570 ; 7571 return 0; 7572} 7573_ACEOF 7574rm -f conftest.$ac_objext 7575if { (ac_try="$ac_compile" 7576case "(($ac_try" in 7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7578 *) ac_try_echo=$ac_try;; 7579esac 7580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7581 (eval "$ac_compile") 2>conftest.er1 7582 ac_status=$? 7583 grep -v '^ *+' conftest.er1 >conftest.err 7584 rm -f conftest.er1 7585 cat conftest.err >&5 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7587 (exit $ac_status); } && { 7588 test -z "$ac_c_werror_flag" || 7589 test ! -s conftest.err 7590 } && test -s conftest.$ac_objext; then 7591 ac_cv_inaddrsz=yes 7592else 7593 echo "$as_me: failed program was:" >&5 7594sed 's/^/| /' conftest.$ac_ext >&5 7595 7596 ac_cv_inaddrsz=no 7597fi 7598 7599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7600fi 7601 7602 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 7603echo "${ECHO_T}$ac_cv_inaddrsz" >&6; } 7604 if test $ac_cv_inaddrsz = yes; then 7605 cat >>confdefs.h <<\_ACEOF 7606#define HAVE_INADDRSZ 1 7607_ACEOF 7608 7609 else 7610 ac_cv_addrsz=no 7611 fi 7612 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 7613echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; } 7614 if test "${ac_cv_in6addrsz+set}" = set; then 7615 echo $ECHO_N "(cached) $ECHO_C" >&6 7616else 7617 cat >conftest.$ac_ext <<_ACEOF 7618/* confdefs.h. */ 7619_ACEOF 7620cat confdefs.h >>conftest.$ac_ext 7621cat >>conftest.$ac_ext <<_ACEOF 7622/* end confdefs.h. */ 7623 7624# include <arpa/nameser.h> 7625int 7626main () 7627{ 7628int a = IN6ADDRSZ 7629 ; 7630 return 0; 7631} 7632_ACEOF 7633rm -f conftest.$ac_objext 7634if { (ac_try="$ac_compile" 7635case "(($ac_try" in 7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7637 *) ac_try_echo=$ac_try;; 7638esac 7639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7640 (eval "$ac_compile") 2>conftest.er1 7641 ac_status=$? 7642 grep -v '^ *+' conftest.er1 >conftest.err 7643 rm -f conftest.er1 7644 cat conftest.err >&5 7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7646 (exit $ac_status); } && { 7647 test -z "$ac_c_werror_flag" || 7648 test ! -s conftest.err 7649 } && test -s conftest.$ac_objext; then 7650 ac_cv_in6addrsz=yes 7651else 7652 echo "$as_me: failed program was:" >&5 7653sed 's/^/| /' conftest.$ac_ext >&5 7654 7655 ac_cv_in6addrsz=no 7656fi 7657 7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7659fi 7660 7661 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 7662echo "${ECHO_T}$ac_cv_in6addrsz" >&6; } 7663 if test $ac_cv_in6addrsz = yes; then 7664 cat >>confdefs.h <<\_ACEOF 7665#define HAVE_IN6ADDRSZ 1 7666_ACEOF 7667 7668 else 7669 ac_cv_addrsz=no 7670 fi 7671 7672if test "$ac_cv_addrsz" = no; then 7673 missing_includes=yes 7674fi 7675 7676 7677 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 7678echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; } 7679 if test "${ac_cv_res_inet6+set}" = set; then 7680 echo $ECHO_N "(cached) $ECHO_C" >&6 7681else 7682 cat >conftest.$ac_ext <<_ACEOF 7683/* confdefs.h. */ 7684_ACEOF 7685cat confdefs.h >>conftest.$ac_ext 7686cat >>conftest.$ac_ext <<_ACEOF 7687/* end confdefs.h. */ 7688 7689# include <sys/types.h> 7690# include <netinet/in.h> 7691# include <resolv.h> 7692int 7693main () 7694{ 7695int a = RES_USE_INET6 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700rm -f conftest.$ac_objext 7701if { (ac_try="$ac_compile" 7702case "(($ac_try" in 7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7704 *) ac_try_echo=$ac_try;; 7705esac 7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7707 (eval "$ac_compile") 2>conftest.er1 7708 ac_status=$? 7709 grep -v '^ *+' conftest.er1 >conftest.err 7710 rm -f conftest.er1 7711 cat conftest.err >&5 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); } && { 7714 test -z "$ac_c_werror_flag" || 7715 test ! -s conftest.err 7716 } && test -s conftest.$ac_objext; then 7717 ac_cv_res_inet6=yes 7718else 7719 echo "$as_me: failed program was:" >&5 7720sed 's/^/| /' conftest.$ac_ext >&5 7721 7722 ac_cv_res_inet6=no 7723fi 7724 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727 7728 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 7729echo "${ECHO_T}$ac_cv_res_inet6" >&6; } 7730 if test $ac_cv_res_inet6 = yes; then 7731 cat >>confdefs.h <<\_ACEOF 7732#define HAVE_RES_USE_INET6 1 7733_ACEOF 7734 7735 fi 7736 7737if test "$ac_cv_res_inet6" = no; then 7738 missing_includes=yes 7739fi 7740 7741 7742 { echo "$as_me:$LINENO: checking for res_state_ext" >&5 7743echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; } 7744 if test "${ac_cv_res_state_ext+set}" = set; then 7745 echo $ECHO_N "(cached) $ECHO_C" >&6 7746else 7747 cat >conftest.$ac_ext <<_ACEOF 7748/* confdefs.h. */ 7749_ACEOF 7750cat confdefs.h >>conftest.$ac_ext 7751cat >>conftest.$ac_ext <<_ACEOF 7752/* end confdefs.h. */ 7753 7754# include <sys/types.h> 7755# include <netinet/in.h> 7756# include <netinet6/in6.h> 7757# include <resolv.h> 7758int 7759main () 7760{ 7761struct __res_state_ext e 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766rm -f conftest.$ac_objext 7767if { (ac_try="$ac_compile" 7768case "(($ac_try" in 7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7770 *) ac_try_echo=$ac_try;; 7771esac 7772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7773 (eval "$ac_compile") 2>conftest.er1 7774 ac_status=$? 7775 grep -v '^ *+' conftest.er1 >conftest.err 7776 rm -f conftest.er1 7777 cat conftest.err >&5 7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7779 (exit $ac_status); } && { 7780 test -z "$ac_c_werror_flag" || 7781 test ! -s conftest.err 7782 } && test -s conftest.$ac_objext; then 7783 ac_cv_res_state_ext=yes 7784else 7785 echo "$as_me: failed program was:" >&5 7786sed 's/^/| /' conftest.$ac_ext >&5 7787 7788 ac_cv_res_state_ext=no 7789fi 7790 7791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7792fi 7793 7794 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 7795echo "${ECHO_T}$ac_cv_res_state_ext" >&6; } 7796 if test $ac_cv_res_state_ext = yes; then 7797 cat >>confdefs.h <<\_ACEOF 7798#define HAVE_RES_STATE_EXT 1 7799_ACEOF 7800 7801 fi 7802 7803if test "$ac_cv_res_state_ext" = no; then 7804 missing_includes=yes 7805fi 7806 7807 7808 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5 7809echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; } 7810 if test "${ac_cv_res_state+set}" = set; then 7811 echo $ECHO_N "(cached) $ECHO_C" >&6 7812else 7813 cat >conftest.$ac_ext <<_ACEOF 7814/* confdefs.h. */ 7815_ACEOF 7816cat confdefs.h >>conftest.$ac_ext 7817cat >>conftest.$ac_ext <<_ACEOF 7818/* end confdefs.h. */ 7819 7820# include <sys/types.h> 7821# include <netinet/in.h> 7822# include <netinet6/in6.h> 7823# include <resolv.h> 7824int 7825main () 7826{ 7827struct __res_state e; e.nsort = 0 7828 ; 7829 return 0; 7830} 7831_ACEOF 7832rm -f conftest.$ac_objext 7833if { (ac_try="$ac_compile" 7834case "(($ac_try" in 7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7836 *) ac_try_echo=$ac_try;; 7837esac 7838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7839 (eval "$ac_compile") 2>conftest.er1 7840 ac_status=$? 7841 grep -v '^ *+' conftest.er1 >conftest.err 7842 rm -f conftest.er1 7843 cat conftest.err >&5 7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7845 (exit $ac_status); } && { 7846 test -z "$ac_c_werror_flag" || 7847 test ! -s conftest.err 7848 } && test -s conftest.$ac_objext; then 7849 ac_cv_res_state=yes 7850else 7851 echo "$as_me: failed program was:" >&5 7852sed 's/^/| /' conftest.$ac_ext >&5 7853 7854 ac_cv_res_state=no 7855fi 7856 7857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7858fi 7859 7860 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 7861echo "${ECHO_T}$ac_cv_res_state" >&6; } 7862 if test $ac_cv_res_state = yes; then 7863 cat >>confdefs.h <<\_ACEOF 7864#define HAVE_NEW_RES_STATE 1 7865_ACEOF 7866 7867 fi 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 7878do 7879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7880{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7883 echo $ECHO_N "(cached) $ECHO_C" >&6 7884else 7885 cat >conftest.$ac_ext <<_ACEOF 7886/* confdefs.h. */ 7887_ACEOF 7888cat confdefs.h >>conftest.$ac_ext 7889cat >>conftest.$ac_ext <<_ACEOF 7890/* end confdefs.h. */ 7891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7892 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7893#define $ac_func innocuous_$ac_func 7894 7895/* System header to define __stub macros and hopefully few prototypes, 7896 which can conflict with char $ac_func (); below. 7897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7898 <limits.h> exists even on freestanding compilers. */ 7899 7900#ifdef __STDC__ 7901# include <limits.h> 7902#else 7903# include <assert.h> 7904#endif 7905 7906#undef $ac_func 7907 7908/* Override any GCC internal prototype to avoid an error. 7909 Use char because int might match the return type of a GCC 7910 builtin and then its argument prototype would still apply. */ 7911#ifdef __cplusplus 7912extern "C" 7913#endif 7914char $ac_func (); 7915/* The GNU C library defines this for functions which it implements 7916 to always fail with ENOSYS. Some functions are actually named 7917 something starting with __ and the normal name is an alias. */ 7918#if defined __stub_$ac_func || defined __stub___$ac_func 7919choke me 7920#endif 7921 7922int 7923main () 7924{ 7925return $ac_func (); 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930rm -f conftest.$ac_objext conftest$ac_exeext 7931if { (ac_try="$ac_link" 7932case "(($ac_try" in 7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7934 *) ac_try_echo=$ac_try;; 7935esac 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7937 (eval "$ac_link") 2>conftest.er1 7938 ac_status=$? 7939 grep -v '^ *+' conftest.er1 >conftest.err 7940 rm -f conftest.er1 7941 cat conftest.err >&5 7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7943 (exit $ac_status); } && { 7944 test -z "$ac_c_werror_flag" || 7945 test ! -s conftest.err 7946 } && test -s conftest$ac_exeext && 7947 $as_test_x conftest$ac_exeext; then 7948 eval "$as_ac_var=yes" 7949else 7950 echo "$as_me: failed program was:" >&5 7951sed 's/^/| /' conftest.$ac_ext >&5 7952 7953 eval "$as_ac_var=no" 7954fi 7955 7956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7957 conftest$ac_exeext conftest.$ac_ext 7958fi 7959ac_res=`eval echo '${'$as_ac_var'}'` 7960 { echo "$as_me:$LINENO: result: $ac_res" >&5 7961echo "${ECHO_T}$ac_res" >&6; } 7962if test `eval echo '${'$as_ac_var'}'` = yes; then 7963 cat >>confdefs.h <<_ACEOF 7964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7965_ACEOF 7966 7967else 7968 case " $LIBOBJS " in 7969 *" $ac_func.$ac_objext "* ) ;; 7970 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7971 ;; 7972esac 7973 7974fi 7975done 7976 7977 7978 7979for ac_func in strftime 7980do 7981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7982{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7985 echo $ECHO_N "(cached) $ECHO_C" >&6 7986else 7987 cat >conftest.$ac_ext <<_ACEOF 7988/* confdefs.h. */ 7989_ACEOF 7990cat confdefs.h >>conftest.$ac_ext 7991cat >>conftest.$ac_ext <<_ACEOF 7992/* end confdefs.h. */ 7993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7995#define $ac_func innocuous_$ac_func 7996 7997/* System header to define __stub macros and hopefully few prototypes, 7998 which can conflict with char $ac_func (); below. 7999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8000 <limits.h> exists even on freestanding compilers. */ 8001 8002#ifdef __STDC__ 8003# include <limits.h> 8004#else 8005# include <assert.h> 8006#endif 8007 8008#undef $ac_func 8009 8010/* Override any GCC internal prototype to avoid an error. 8011 Use char because int might match the return type of a GCC 8012 builtin and then its argument prototype would still apply. */ 8013#ifdef __cplusplus 8014extern "C" 8015#endif 8016char $ac_func (); 8017/* The GNU C library defines this for functions which it implements 8018 to always fail with ENOSYS. Some functions are actually named 8019 something starting with __ and the normal name is an alias. */ 8020#if defined __stub_$ac_func || defined __stub___$ac_func 8021choke me 8022#endif 8023 8024int 8025main () 8026{ 8027return $ac_func (); 8028 ; 8029 return 0; 8030} 8031_ACEOF 8032rm -f conftest.$ac_objext conftest$ac_exeext 8033if { (ac_try="$ac_link" 8034case "(($ac_try" in 8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8036 *) ac_try_echo=$ac_try;; 8037esac 8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8039 (eval "$ac_link") 2>conftest.er1 8040 ac_status=$? 8041 grep -v '^ *+' conftest.er1 >conftest.err 8042 rm -f conftest.er1 8043 cat conftest.err >&5 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); } && { 8046 test -z "$ac_c_werror_flag" || 8047 test ! -s conftest.err 8048 } && test -s conftest$ac_exeext && 8049 $as_test_x conftest$ac_exeext; then 8050 eval "$as_ac_var=yes" 8051else 8052 echo "$as_me: failed program was:" >&5 8053sed 's/^/| /' conftest.$ac_ext >&5 8054 8055 eval "$as_ac_var=no" 8056fi 8057 8058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8059 conftest$ac_exeext conftest.$ac_ext 8060fi 8061ac_res=`eval echo '${'$as_ac_var'}'` 8062 { echo "$as_me:$LINENO: result: $ac_res" >&5 8063echo "${ECHO_T}$ac_res" >&6; } 8064if test `eval echo '${'$as_ac_var'}'` = yes; then 8065 cat >>confdefs.h <<_ACEOF 8066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8067_ACEOF 8068 8069fi 8070done 8071 8072 8073 8074for ac_func in setlinebuf alarm 8075do 8076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8077{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8080 echo $ECHO_N "(cached) $ECHO_C" >&6 8081else 8082 cat >conftest.$ac_ext <<_ACEOF 8083/* confdefs.h. */ 8084_ACEOF 8085cat confdefs.h >>conftest.$ac_ext 8086cat >>conftest.$ac_ext <<_ACEOF 8087/* end confdefs.h. */ 8088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8090#define $ac_func innocuous_$ac_func 8091 8092/* System header to define __stub macros and hopefully few prototypes, 8093 which can conflict with char $ac_func (); below. 8094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8095 <limits.h> exists even on freestanding compilers. */ 8096 8097#ifdef __STDC__ 8098# include <limits.h> 8099#else 8100# include <assert.h> 8101#endif 8102 8103#undef $ac_func 8104 8105/* Override any GCC internal prototype to avoid an error. 8106 Use char because int might match the return type of a GCC 8107 builtin and then its argument prototype would still apply. */ 8108#ifdef __cplusplus 8109extern "C" 8110#endif 8111char $ac_func (); 8112/* The GNU C library defines this for functions which it implements 8113 to always fail with ENOSYS. Some functions are actually named 8114 something starting with __ and the normal name is an alias. */ 8115#if defined __stub_$ac_func || defined __stub___$ac_func 8116choke me 8117#endif 8118 8119int 8120main () 8121{ 8122return $ac_func (); 8123 ; 8124 return 0; 8125} 8126_ACEOF 8127rm -f conftest.$ac_objext conftest$ac_exeext 8128if { (ac_try="$ac_link" 8129case "(($ac_try" in 8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8131 *) ac_try_echo=$ac_try;; 8132esac 8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8134 (eval "$ac_link") 2>conftest.er1 8135 ac_status=$? 8136 grep -v '^ *+' conftest.er1 >conftest.err 8137 rm -f conftest.er1 8138 cat conftest.err >&5 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 (exit $ac_status); } && { 8141 test -z "$ac_c_werror_flag" || 8142 test ! -s conftest.err 8143 } && test -s conftest$ac_exeext && 8144 $as_test_x conftest$ac_exeext; then 8145 eval "$as_ac_var=yes" 8146else 8147 echo "$as_me: failed program was:" >&5 8148sed 's/^/| /' conftest.$ac_ext >&5 8149 8150 eval "$as_ac_var=no" 8151fi 8152 8153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8154 conftest$ac_exeext conftest.$ac_ext 8155fi 8156ac_res=`eval echo '${'$as_ac_var'}'` 8157 { echo "$as_me:$LINENO: result: $ac_res" >&5 8158echo "${ECHO_T}$ac_res" >&6; } 8159if test `eval echo '${'$as_ac_var'}'` = yes; then 8160 cat >>confdefs.h <<_ACEOF 8161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8162_ACEOF 8163 8164fi 8165done 8166 8167 8168needsnprintf=no 8169 8170 8171for ac_func in vsnprintf snprintf 8172do 8173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8174{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8177 echo $ECHO_N "(cached) $ECHO_C" >&6 8178else 8179 cat >conftest.$ac_ext <<_ACEOF 8180/* confdefs.h. */ 8181_ACEOF 8182cat confdefs.h >>conftest.$ac_ext 8183cat >>conftest.$ac_ext <<_ACEOF 8184/* end confdefs.h. */ 8185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8186 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8187#define $ac_func innocuous_$ac_func 8188 8189/* System header to define __stub macros and hopefully few prototypes, 8190 which can conflict with char $ac_func (); below. 8191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8192 <limits.h> exists even on freestanding compilers. */ 8193 8194#ifdef __STDC__ 8195# include <limits.h> 8196#else 8197# include <assert.h> 8198#endif 8199 8200#undef $ac_func 8201 8202/* Override any GCC internal prototype to avoid an error. 8203 Use char because int might match the return type of a GCC 8204 builtin and then its argument prototype would still apply. */ 8205#ifdef __cplusplus 8206extern "C" 8207#endif 8208char $ac_func (); 8209/* The GNU C library defines this for functions which it implements 8210 to always fail with ENOSYS. Some functions are actually named 8211 something starting with __ and the normal name is an alias. */ 8212#if defined __stub_$ac_func || defined __stub___$ac_func 8213choke me 8214#endif 8215 8216int 8217main () 8218{ 8219return $ac_func (); 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224rm -f conftest.$ac_objext conftest$ac_exeext 8225if { (ac_try="$ac_link" 8226case "(($ac_try" in 8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8228 *) ac_try_echo=$ac_try;; 8229esac 8230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8231 (eval "$ac_link") 2>conftest.er1 8232 ac_status=$? 8233 grep -v '^ *+' conftest.er1 >conftest.err 8234 rm -f conftest.er1 8235 cat conftest.err >&5 8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8237 (exit $ac_status); } && { 8238 test -z "$ac_c_werror_flag" || 8239 test ! -s conftest.err 8240 } && test -s conftest$ac_exeext && 8241 $as_test_x conftest$ac_exeext; then 8242 eval "$as_ac_var=yes" 8243else 8244 echo "$as_me: failed program was:" >&5 8245sed 's/^/| /' conftest.$ac_ext >&5 8246 8247 eval "$as_ac_var=no" 8248fi 8249 8250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8251 conftest$ac_exeext conftest.$ac_ext 8252fi 8253ac_res=`eval echo '${'$as_ac_var'}'` 8254 { echo "$as_me:$LINENO: result: $ac_res" >&5 8255echo "${ECHO_T}$ac_res" >&6; } 8256if test `eval echo '${'$as_ac_var'}'` = yes; then 8257 cat >>confdefs.h <<_ACEOF 8258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8259_ACEOF 8260 8261else 8262 needsnprintf=yes 8263fi 8264done 8265 8266if test $needsnprintf = yes; then 8267 case " $LIBOBJS " in 8268 *" snprintf.$ac_objext "* ) ;; 8269 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8270 ;; 8271esac 8272 8273fi 8274 8275 8276 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 8277echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 8278if test "${ac_cv_type_signal+set}" = set; then 8279 echo $ECHO_N "(cached) $ECHO_C" >&6 8280else 8281 cat >conftest.$ac_ext <<_ACEOF 8282/* confdefs.h. */ 8283_ACEOF 8284cat confdefs.h >>conftest.$ac_ext 8285cat >>conftest.$ac_ext <<_ACEOF 8286/* end confdefs.h. */ 8287#include <sys/types.h> 8288#include <signal.h> 8289 8290int 8291main () 8292{ 8293return *(signal (0, 0)) (0) == 1; 8294 ; 8295 return 0; 8296} 8297_ACEOF 8298rm -f conftest.$ac_objext 8299if { (ac_try="$ac_compile" 8300case "(($ac_try" in 8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8302 *) ac_try_echo=$ac_try;; 8303esac 8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8305 (eval "$ac_compile") 2>conftest.er1 8306 ac_status=$? 8307 grep -v '^ *+' conftest.er1 >conftest.err 8308 rm -f conftest.er1 8309 cat conftest.err >&5 8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 (exit $ac_status); } && { 8312 test -z "$ac_c_werror_flag" || 8313 test ! -s conftest.err 8314 } && test -s conftest.$ac_objext; then 8315 ac_cv_type_signal=int 8316else 8317 echo "$as_me: failed program was:" >&5 8318sed 's/^/| /' conftest.$ac_ext >&5 8319 8320 ac_cv_type_signal=void 8321fi 8322 8323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8324fi 8325{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 8326echo "${ECHO_T}$ac_cv_type_signal" >&6; } 8327 8328cat >>confdefs.h <<_ACEOF 8329#define RETSIGTYPE $ac_cv_type_signal 8330_ACEOF 8331 8332 8333 if test "$ac_cv_type_signal" = void ; then 8334 cat >>confdefs.h <<\_ACEOF 8335#define RETSIGVAL 8336_ACEOF 8337 8338 else 8339 cat >>confdefs.h <<\_ACEOF 8340#define RETSIGVAL (0) 8341_ACEOF 8342 8343 fi 8344 case "$host_os" in 8345 8346 irix*) 8347 cat >>confdefs.h <<\_ACEOF 8348#define _BSD_SIGNALS 1 8349_ACEOF 8350 8351 ;; 8352 8353 *) 8354 8355for ac_func in sigaction 8356do 8357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8358{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8361 echo $ECHO_N "(cached) $ECHO_C" >&6 8362else 8363 cat >conftest.$ac_ext <<_ACEOF 8364/* confdefs.h. */ 8365_ACEOF 8366cat confdefs.h >>conftest.$ac_ext 8367cat >>conftest.$ac_ext <<_ACEOF 8368/* end confdefs.h. */ 8369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8370 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8371#define $ac_func innocuous_$ac_func 8372 8373/* System header to define __stub macros and hopefully few prototypes, 8374 which can conflict with char $ac_func (); below. 8375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8376 <limits.h> exists even on freestanding compilers. */ 8377 8378#ifdef __STDC__ 8379# include <limits.h> 8380#else 8381# include <assert.h> 8382#endif 8383 8384#undef $ac_func 8385 8386/* Override any GCC internal prototype to avoid an error. 8387 Use char because int might match the return type of a GCC 8388 builtin and then its argument prototype would still apply. */ 8389#ifdef __cplusplus 8390extern "C" 8391#endif 8392char $ac_func (); 8393/* The GNU C library defines this for functions which it implements 8394 to always fail with ENOSYS. Some functions are actually named 8395 something starting with __ and the normal name is an alias. */ 8396#if defined __stub_$ac_func || defined __stub___$ac_func 8397choke me 8398#endif 8399 8400int 8401main () 8402{ 8403return $ac_func (); 8404 ; 8405 return 0; 8406} 8407_ACEOF 8408rm -f conftest.$ac_objext conftest$ac_exeext 8409if { (ac_try="$ac_link" 8410case "(($ac_try" in 8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8412 *) ac_try_echo=$ac_try;; 8413esac 8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8415 (eval "$ac_link") 2>conftest.er1 8416 ac_status=$? 8417 grep -v '^ *+' conftest.er1 >conftest.err 8418 rm -f conftest.er1 8419 cat conftest.err >&5 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 (exit $ac_status); } && { 8422 test -z "$ac_c_werror_flag" || 8423 test ! -s conftest.err 8424 } && test -s conftest$ac_exeext && 8425 $as_test_x conftest$ac_exeext; then 8426 eval "$as_ac_var=yes" 8427else 8428 echo "$as_me: failed program was:" >&5 8429sed 's/^/| /' conftest.$ac_ext >&5 8430 8431 eval "$as_ac_var=no" 8432fi 8433 8434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8435 conftest$ac_exeext conftest.$ac_ext 8436fi 8437ac_res=`eval echo '${'$as_ac_var'}'` 8438 { echo "$as_me:$LINENO: result: $ac_res" >&5 8439echo "${ECHO_T}$ac_res" >&6; } 8440if test `eval echo '${'$as_ac_var'}'` = yes; then 8441 cat >>confdefs.h <<_ACEOF 8442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8443_ACEOF 8444 8445fi 8446done 8447 8448 if test $ac_cv_func_sigaction = no ; then 8449 8450for ac_func in sigset 8451do 8452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8453{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8456 echo $ECHO_N "(cached) $ECHO_C" >&6 8457else 8458 cat >conftest.$ac_ext <<_ACEOF 8459/* confdefs.h. */ 8460_ACEOF 8461cat confdefs.h >>conftest.$ac_ext 8462cat >>conftest.$ac_ext <<_ACEOF 8463/* end confdefs.h. */ 8464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8466#define $ac_func innocuous_$ac_func 8467 8468/* System header to define __stub macros and hopefully few prototypes, 8469 which can conflict with char $ac_func (); below. 8470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8471 <limits.h> exists even on freestanding compilers. */ 8472 8473#ifdef __STDC__ 8474# include <limits.h> 8475#else 8476# include <assert.h> 8477#endif 8478 8479#undef $ac_func 8480 8481/* Override any GCC internal prototype to avoid an error. 8482 Use char because int might match the return type of a GCC 8483 builtin and then its argument prototype would still apply. */ 8484#ifdef __cplusplus 8485extern "C" 8486#endif 8487char $ac_func (); 8488/* The GNU C library defines this for functions which it implements 8489 to always fail with ENOSYS. Some functions are actually named 8490 something starting with __ and the normal name is an alias. */ 8491#if defined __stub_$ac_func || defined __stub___$ac_func 8492choke me 8493#endif 8494 8495int 8496main () 8497{ 8498return $ac_func (); 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503rm -f conftest.$ac_objext conftest$ac_exeext 8504if { (ac_try="$ac_link" 8505case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508esac 8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_link") 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } && { 8517 test -z "$ac_c_werror_flag" || 8518 test ! -s conftest.err 8519 } && test -s conftest$ac_exeext && 8520 $as_test_x conftest$ac_exeext; then 8521 eval "$as_ac_var=yes" 8522else 8523 echo "$as_me: failed program was:" >&5 8524sed 's/^/| /' conftest.$ac_ext >&5 8525 8526 eval "$as_ac_var=no" 8527fi 8528 8529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8530 conftest$ac_exeext conftest.$ac_ext 8531fi 8532ac_res=`eval echo '${'$as_ac_var'}'` 8533 { echo "$as_me:$LINENO: result: $ac_res" >&5 8534echo "${ECHO_T}$ac_res" >&6; } 8535if test `eval echo '${'$as_ac_var'}'` = yes; then 8536 cat >>confdefs.h <<_ACEOF 8537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8538_ACEOF 8539 8540fi 8541done 8542 8543 fi 8544 ;; 8545 esac 8546 8547{ echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 8548echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; } 8549if test "${ac_cv_search_dnet_htoa+set}" = set; then 8550 echo $ECHO_N "(cached) $ECHO_C" >&6 8551else 8552 ac_func_search_save_LIBS=$LIBS 8553cat >conftest.$ac_ext <<_ACEOF 8554/* confdefs.h. */ 8555_ACEOF 8556cat confdefs.h >>conftest.$ac_ext 8557cat >>conftest.$ac_ext <<_ACEOF 8558/* end confdefs.h. */ 8559 8560/* Override any GCC internal prototype to avoid an error. 8561 Use char because int might match the return type of a GCC 8562 builtin and then its argument prototype would still apply. */ 8563#ifdef __cplusplus 8564extern "C" 8565#endif 8566char dnet_htoa (); 8567int 8568main () 8569{ 8570return dnet_htoa (); 8571 ; 8572 return 0; 8573} 8574_ACEOF 8575for ac_lib in '' dnet; do 8576 if test -z "$ac_lib"; then 8577 ac_res="none required" 8578 else 8579 ac_res=-l$ac_lib 8580 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8581 fi 8582 rm -f conftest.$ac_objext conftest$ac_exeext 8583if { (ac_try="$ac_link" 8584case "(($ac_try" in 8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8586 *) ac_try_echo=$ac_try;; 8587esac 8588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8589 (eval "$ac_link") 2>conftest.er1 8590 ac_status=$? 8591 grep -v '^ *+' conftest.er1 >conftest.err 8592 rm -f conftest.er1 8593 cat conftest.err >&5 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); } && { 8596 test -z "$ac_c_werror_flag" || 8597 test ! -s conftest.err 8598 } && test -s conftest$ac_exeext && 8599 $as_test_x conftest$ac_exeext; then 8600 ac_cv_search_dnet_htoa=$ac_res 8601else 8602 echo "$as_me: failed program was:" >&5 8603sed 's/^/| /' conftest.$ac_ext >&5 8604 8605 8606fi 8607 8608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8609 conftest$ac_exeext 8610 if test "${ac_cv_search_dnet_htoa+set}" = set; then 8611 break 8612fi 8613done 8614if test "${ac_cv_search_dnet_htoa+set}" = set; then 8615 : 8616else 8617 ac_cv_search_dnet_htoa=no 8618fi 8619rm conftest.$ac_ext 8620LIBS=$ac_func_search_save_LIBS 8621fi 8622{ echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 8623echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; } 8624ac_res=$ac_cv_search_dnet_htoa 8625if test "$ac_res" != no; then 8626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8627 cat >>confdefs.h <<\_ACEOF 8628#define HAVE_DNET_HTOA 1 8629_ACEOF 8630 8631fi 8632 8633 8634 8635{ echo "$as_me:$LINENO: checking for main in -lrpc" >&5 8636echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; } 8637if test "${ac_cv_lib_rpc_main+set}" = set; then 8638 echo $ECHO_N "(cached) $ECHO_C" >&6 8639else 8640 ac_check_lib_save_LIBS=$LIBS 8641LIBS="-lrpc $LIBS" 8642cat >conftest.$ac_ext <<_ACEOF 8643/* confdefs.h. */ 8644_ACEOF 8645cat confdefs.h >>conftest.$ac_ext 8646cat >>conftest.$ac_ext <<_ACEOF 8647/* end confdefs.h. */ 8648 8649 8650int 8651main () 8652{ 8653return main (); 8654 ; 8655 return 0; 8656} 8657_ACEOF 8658rm -f conftest.$ac_objext conftest$ac_exeext 8659if { (ac_try="$ac_link" 8660case "(($ac_try" in 8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8662 *) ac_try_echo=$ac_try;; 8663esac 8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8665 (eval "$ac_link") 2>conftest.er1 8666 ac_status=$? 8667 grep -v '^ *+' conftest.er1 >conftest.err 8668 rm -f conftest.er1 8669 cat conftest.err >&5 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); } && { 8672 test -z "$ac_c_werror_flag" || 8673 test ! -s conftest.err 8674 } && test -s conftest$ac_exeext && 8675 $as_test_x conftest$ac_exeext; then 8676 ac_cv_lib_rpc_main=yes 8677else 8678 echo "$as_me: failed program was:" >&5 8679sed 's/^/| /' conftest.$ac_ext >&5 8680 8681 ac_cv_lib_rpc_main=no 8682fi 8683 8684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8685 conftest$ac_exeext conftest.$ac_ext 8686LIBS=$ac_check_lib_save_LIBS 8687fi 8688{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 8689echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; } 8690if test $ac_cv_lib_rpc_main = yes; then 8691 cat >>confdefs.h <<_ACEOF 8692#define HAVE_LIBRPC 1 8693_ACEOF 8694 8695 LIBS="-lrpc $LIBS" 8696 8697fi 8698 8699{ echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 8700echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; } 8701if test "${ac_cv_search_getrpcbynumber+set}" = set; then 8702 echo $ECHO_N "(cached) $ECHO_C" >&6 8703else 8704 ac_func_search_save_LIBS=$LIBS 8705cat >conftest.$ac_ext <<_ACEOF 8706/* confdefs.h. */ 8707_ACEOF 8708cat confdefs.h >>conftest.$ac_ext 8709cat >>conftest.$ac_ext <<_ACEOF 8710/* end confdefs.h. */ 8711 8712/* Override any GCC internal prototype to avoid an error. 8713 Use char because int might match the return type of a GCC 8714 builtin and then its argument prototype would still apply. */ 8715#ifdef __cplusplus 8716extern "C" 8717#endif 8718char getrpcbynumber (); 8719int 8720main () 8721{ 8722return getrpcbynumber (); 8723 ; 8724 return 0; 8725} 8726_ACEOF 8727for ac_lib in '' nsl; do 8728 if test -z "$ac_lib"; then 8729 ac_res="none required" 8730 else 8731 ac_res=-l$ac_lib 8732 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8733 fi 8734 rm -f conftest.$ac_objext conftest$ac_exeext 8735if { (ac_try="$ac_link" 8736case "(($ac_try" in 8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8738 *) ac_try_echo=$ac_try;; 8739esac 8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8741 (eval "$ac_link") 2>conftest.er1 8742 ac_status=$? 8743 grep -v '^ *+' conftest.er1 >conftest.err 8744 rm -f conftest.er1 8745 cat conftest.err >&5 8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8747 (exit $ac_status); } && { 8748 test -z "$ac_c_werror_flag" || 8749 test ! -s conftest.err 8750 } && test -s conftest$ac_exeext && 8751 $as_test_x conftest$ac_exeext; then 8752 ac_cv_search_getrpcbynumber=$ac_res 8753else 8754 echo "$as_me: failed program was:" >&5 8755sed 's/^/| /' conftest.$ac_ext >&5 8756 8757 8758fi 8759 8760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8761 conftest$ac_exeext 8762 if test "${ac_cv_search_getrpcbynumber+set}" = set; then 8763 break 8764fi 8765done 8766if test "${ac_cv_search_getrpcbynumber+set}" = set; then 8767 : 8768else 8769 ac_cv_search_getrpcbynumber=no 8770fi 8771rm conftest.$ac_ext 8772LIBS=$ac_func_search_save_LIBS 8773fi 8774{ echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 8775echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; } 8776ac_res=$ac_cv_search_getrpcbynumber 8777if test "$ac_res" != no; then 8778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8779 cat >>confdefs.h <<\_ACEOF 8780#define HAVE_GETRPCBYNUMBER 1 8781_ACEOF 8782 8783fi 8784 8785 8786 8787 8788 # Most operating systems have gethostbyname() in the default searched 8789 # libraries (i.e. libc): 8790 # Some OSes (eg. Solaris) place it in libnsl 8791 # Some strange OSes (SINIX) have it in libsocket: 8792 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 8793echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 8794if test "${ac_cv_search_gethostbyname+set}" = set; then 8795 echo $ECHO_N "(cached) $ECHO_C" >&6 8796else 8797 ac_func_search_save_LIBS=$LIBS 8798cat >conftest.$ac_ext <<_ACEOF 8799/* confdefs.h. */ 8800_ACEOF 8801cat confdefs.h >>conftest.$ac_ext 8802cat >>conftest.$ac_ext <<_ACEOF 8803/* end confdefs.h. */ 8804 8805/* Override any GCC internal prototype to avoid an error. 8806 Use char because int might match the return type of a GCC 8807 builtin and then its argument prototype would still apply. */ 8808#ifdef __cplusplus 8809extern "C" 8810#endif 8811char gethostbyname (); 8812int 8813main () 8814{ 8815return gethostbyname (); 8816 ; 8817 return 0; 8818} 8819_ACEOF 8820for ac_lib in '' nsl socket resolv; do 8821 if test -z "$ac_lib"; then 8822 ac_res="none required" 8823 else 8824 ac_res=-l$ac_lib 8825 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8826 fi 8827 rm -f conftest.$ac_objext conftest$ac_exeext 8828if { (ac_try="$ac_link" 8829case "(($ac_try" in 8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8831 *) ac_try_echo=$ac_try;; 8832esac 8833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8834 (eval "$ac_link") 2>conftest.er1 8835 ac_status=$? 8836 grep -v '^ *+' conftest.er1 >conftest.err 8837 rm -f conftest.er1 8838 cat conftest.err >&5 8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8840 (exit $ac_status); } && { 8841 test -z "$ac_c_werror_flag" || 8842 test ! -s conftest.err 8843 } && test -s conftest$ac_exeext && 8844 $as_test_x conftest$ac_exeext; then 8845 ac_cv_search_gethostbyname=$ac_res 8846else 8847 echo "$as_me: failed program was:" >&5 8848sed 's/^/| /' conftest.$ac_ext >&5 8849 8850 8851fi 8852 8853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8854 conftest$ac_exeext 8855 if test "${ac_cv_search_gethostbyname+set}" = set; then 8856 break 8857fi 8858done 8859if test "${ac_cv_search_gethostbyname+set}" = set; then 8860 : 8861else 8862 ac_cv_search_gethostbyname=no 8863fi 8864rm conftest.$ac_ext 8865LIBS=$ac_func_search_save_LIBS 8866fi 8867{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 8868echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 8869ac_res=$ac_cv_search_gethostbyname 8870if test "$ac_res" != no; then 8871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8872 8873fi 8874 8875 # Unfortunately libsocket sometimes depends on libnsl and 8876 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 8877 if test "$ac_cv_search_gethostbyname" = "no" 8878 then 8879 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 8880echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; } 8881if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 8882 echo $ECHO_N "(cached) $ECHO_C" >&6 8883else 8884 ac_check_lib_save_LIBS=$LIBS 8885LIBS="-lsocket -lnsl $LIBS" 8886cat >conftest.$ac_ext <<_ACEOF 8887/* confdefs.h. */ 8888_ACEOF 8889cat confdefs.h >>conftest.$ac_ext 8890cat >>conftest.$ac_ext <<_ACEOF 8891/* end confdefs.h. */ 8892 8893/* Override any GCC internal prototype to avoid an error. 8894 Use char because int might match the return type of a GCC 8895 builtin and then its argument prototype would still apply. */ 8896#ifdef __cplusplus 8897extern "C" 8898#endif 8899char gethostbyname (); 8900int 8901main () 8902{ 8903return gethostbyname (); 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908rm -f conftest.$ac_objext conftest$ac_exeext 8909if { (ac_try="$ac_link" 8910case "(($ac_try" in 8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8912 *) ac_try_echo=$ac_try;; 8913esac 8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8915 (eval "$ac_link") 2>conftest.er1 8916 ac_status=$? 8917 grep -v '^ *+' conftest.er1 >conftest.err 8918 rm -f conftest.er1 8919 cat conftest.err >&5 8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8921 (exit $ac_status); } && { 8922 test -z "$ac_c_werror_flag" || 8923 test ! -s conftest.err 8924 } && test -s conftest$ac_exeext && 8925 $as_test_x conftest$ac_exeext; then 8926 ac_cv_lib_socket_gethostbyname=yes 8927else 8928 echo "$as_me: failed program was:" >&5 8929sed 's/^/| /' conftest.$ac_ext >&5 8930 8931 ac_cv_lib_socket_gethostbyname=no 8932fi 8933 8934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8935 conftest$ac_exeext conftest.$ac_ext 8936LIBS=$ac_check_lib_save_LIBS 8937fi 8938{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 8939echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; } 8940if test $ac_cv_lib_socket_gethostbyname = yes; then 8941 LIBS="-lsocket -lnsl $LIBS" 8942fi 8943 8944 fi 8945 { echo "$as_me:$LINENO: checking for library containing socket" >&5 8946echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } 8947if test "${ac_cv_search_socket+set}" = set; then 8948 echo $ECHO_N "(cached) $ECHO_C" >&6 8949else 8950 ac_func_search_save_LIBS=$LIBS 8951cat >conftest.$ac_ext <<_ACEOF 8952/* confdefs.h. */ 8953_ACEOF 8954cat confdefs.h >>conftest.$ac_ext 8955cat >>conftest.$ac_ext <<_ACEOF 8956/* end confdefs.h. */ 8957 8958/* Override any GCC internal prototype to avoid an error. 8959 Use char because int might match the return type of a GCC 8960 builtin and then its argument prototype would still apply. */ 8961#ifdef __cplusplus 8962extern "C" 8963#endif 8964char socket (); 8965int 8966main () 8967{ 8968return socket (); 8969 ; 8970 return 0; 8971} 8972_ACEOF 8973for ac_lib in '' socket; do 8974 if test -z "$ac_lib"; then 8975 ac_res="none required" 8976 else 8977 ac_res=-l$ac_lib 8978 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8979 fi 8980 rm -f conftest.$ac_objext conftest$ac_exeext 8981if { (ac_try="$ac_link" 8982case "(($ac_try" in 8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8984 *) ac_try_echo=$ac_try;; 8985esac 8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8987 (eval "$ac_link") 2>conftest.er1 8988 ac_status=$? 8989 grep -v '^ *+' conftest.er1 >conftest.err 8990 rm -f conftest.er1 8991 cat conftest.err >&5 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8993 (exit $ac_status); } && { 8994 test -z "$ac_c_werror_flag" || 8995 test ! -s conftest.err 8996 } && test -s conftest$ac_exeext && 8997 $as_test_x conftest$ac_exeext; then 8998 ac_cv_search_socket=$ac_res 8999else 9000 echo "$as_me: failed program was:" >&5 9001sed 's/^/| /' conftest.$ac_ext >&5 9002 9003 9004fi 9005 9006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9007 conftest$ac_exeext 9008 if test "${ac_cv_search_socket+set}" = set; then 9009 break 9010fi 9011done 9012if test "${ac_cv_search_socket+set}" = set; then 9013 : 9014else 9015 ac_cv_search_socket=no 9016fi 9017rm conftest.$ac_ext 9018LIBS=$ac_func_search_save_LIBS 9019fi 9020{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 9021echo "${ECHO_T}$ac_cv_search_socket" >&6; } 9022ac_res=$ac_cv_search_socket 9023if test "$ac_res" != no; then 9024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9025 9026else 9027 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 9028echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 9029if test "${ac_cv_lib_socket_socket+set}" = set; then 9030 echo $ECHO_N "(cached) $ECHO_C" >&6 9031else 9032 ac_check_lib_save_LIBS=$LIBS 9033LIBS="-lsocket -lnsl $LIBS" 9034cat >conftest.$ac_ext <<_ACEOF 9035/* confdefs.h. */ 9036_ACEOF 9037cat confdefs.h >>conftest.$ac_ext 9038cat >>conftest.$ac_ext <<_ACEOF 9039/* end confdefs.h. */ 9040 9041/* Override any GCC internal prototype to avoid an error. 9042 Use char because int might match the return type of a GCC 9043 builtin and then its argument prototype would still apply. */ 9044#ifdef __cplusplus 9045extern "C" 9046#endif 9047char socket (); 9048int 9049main () 9050{ 9051return socket (); 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056rm -f conftest.$ac_objext conftest$ac_exeext 9057if { (ac_try="$ac_link" 9058case "(($ac_try" in 9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9060 *) ac_try_echo=$ac_try;; 9061esac 9062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9063 (eval "$ac_link") 2>conftest.er1 9064 ac_status=$? 9065 grep -v '^ *+' conftest.er1 >conftest.err 9066 rm -f conftest.er1 9067 cat conftest.err >&5 9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9069 (exit $ac_status); } && { 9070 test -z "$ac_c_werror_flag" || 9071 test ! -s conftest.err 9072 } && test -s conftest$ac_exeext && 9073 $as_test_x conftest$ac_exeext; then 9074 ac_cv_lib_socket_socket=yes 9075else 9076 echo "$as_me: failed program was:" >&5 9077sed 's/^/| /' conftest.$ac_ext >&5 9078 9079 ac_cv_lib_socket_socket=no 9080fi 9081 9082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9083 conftest$ac_exeext conftest.$ac_ext 9084LIBS=$ac_check_lib_save_LIBS 9085fi 9086{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 9087echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 9088if test $ac_cv_lib_socket_socket = yes; then 9089 LIBS="-lsocket -lnsl $LIBS" 9090fi 9091 9092fi 9093 9094 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 9095 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5 9096echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; } 9097if test "${ac_cv_search_putmsg+set}" = set; then 9098 echo $ECHO_N "(cached) $ECHO_C" >&6 9099else 9100 ac_func_search_save_LIBS=$LIBS 9101cat >conftest.$ac_ext <<_ACEOF 9102/* confdefs.h. */ 9103_ACEOF 9104cat confdefs.h >>conftest.$ac_ext 9105cat >>conftest.$ac_ext <<_ACEOF 9106/* end confdefs.h. */ 9107 9108/* Override any GCC internal prototype to avoid an error. 9109 Use char because int might match the return type of a GCC 9110 builtin and then its argument prototype would still apply. */ 9111#ifdef __cplusplus 9112extern "C" 9113#endif 9114char putmsg (); 9115int 9116main () 9117{ 9118return putmsg (); 9119 ; 9120 return 0; 9121} 9122_ACEOF 9123for ac_lib in '' str; do 9124 if test -z "$ac_lib"; then 9125 ac_res="none required" 9126 else 9127 ac_res=-l$ac_lib 9128 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9129 fi 9130 rm -f conftest.$ac_objext conftest$ac_exeext 9131if { (ac_try="$ac_link" 9132case "(($ac_try" in 9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9134 *) ac_try_echo=$ac_try;; 9135esac 9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9137 (eval "$ac_link") 2>conftest.er1 9138 ac_status=$? 9139 grep -v '^ *+' conftest.er1 >conftest.err 9140 rm -f conftest.er1 9141 cat conftest.err >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9143 (exit $ac_status); } && { 9144 test -z "$ac_c_werror_flag" || 9145 test ! -s conftest.err 9146 } && test -s conftest$ac_exeext && 9147 $as_test_x conftest$ac_exeext; then 9148 ac_cv_search_putmsg=$ac_res 9149else 9150 echo "$as_me: failed program was:" >&5 9151sed 's/^/| /' conftest.$ac_ext >&5 9152 9153 9154fi 9155 9156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9157 conftest$ac_exeext 9158 if test "${ac_cv_search_putmsg+set}" = set; then 9159 break 9160fi 9161done 9162if test "${ac_cv_search_putmsg+set}" = set; then 9163 : 9164else 9165 ac_cv_search_putmsg=no 9166fi 9167rm conftest.$ac_ext 9168LIBS=$ac_func_search_save_LIBS 9169fi 9170{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 9171echo "${ECHO_T}$ac_cv_search_putmsg" >&6; } 9172ac_res=$ac_cv_search_putmsg 9173if test "$ac_res" != no; then 9174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9175 9176fi 9177 9178 9179 9180 LBL_LIBS="$LIBS" 9181 pfopen=/usr/examples/packetfilter/pfopen.c 9182 if test -f $pfopen ; then 9183 9184for ac_func in pfopen 9185do 9186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9187{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9190 echo $ECHO_N "(cached) $ECHO_C" >&6 9191else 9192 cat >conftest.$ac_ext <<_ACEOF 9193/* confdefs.h. */ 9194_ACEOF 9195cat confdefs.h >>conftest.$ac_ext 9196cat >>conftest.$ac_ext <<_ACEOF 9197/* end confdefs.h. */ 9198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9199 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9200#define $ac_func innocuous_$ac_func 9201 9202/* System header to define __stub macros and hopefully few prototypes, 9203 which can conflict with char $ac_func (); below. 9204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9205 <limits.h> exists even on freestanding compilers. */ 9206 9207#ifdef __STDC__ 9208# include <limits.h> 9209#else 9210# include <assert.h> 9211#endif 9212 9213#undef $ac_func 9214 9215/* Override any GCC internal prototype to avoid an error. 9216 Use char because int might match the return type of a GCC 9217 builtin and then its argument prototype would still apply. */ 9218#ifdef __cplusplus 9219extern "C" 9220#endif 9221char $ac_func (); 9222/* The GNU C library defines this for functions which it implements 9223 to always fail with ENOSYS. Some functions are actually named 9224 something starting with __ and the normal name is an alias. */ 9225#if defined __stub_$ac_func || defined __stub___$ac_func 9226choke me 9227#endif 9228 9229int 9230main () 9231{ 9232return $ac_func (); 9233 ; 9234 return 0; 9235} 9236_ACEOF 9237rm -f conftest.$ac_objext conftest$ac_exeext 9238if { (ac_try="$ac_link" 9239case "(($ac_try" in 9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9241 *) ac_try_echo=$ac_try;; 9242esac 9243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9244 (eval "$ac_link") 2>conftest.er1 9245 ac_status=$? 9246 grep -v '^ *+' conftest.er1 >conftest.err 9247 rm -f conftest.er1 9248 cat conftest.err >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 (exit $ac_status); } && { 9251 test -z "$ac_c_werror_flag" || 9252 test ! -s conftest.err 9253 } && test -s conftest$ac_exeext && 9254 $as_test_x conftest$ac_exeext; then 9255 eval "$as_ac_var=yes" 9256else 9257 echo "$as_me: failed program was:" >&5 9258sed 's/^/| /' conftest.$ac_ext >&5 9259 9260 eval "$as_ac_var=no" 9261fi 9262 9263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9264 conftest$ac_exeext conftest.$ac_ext 9265fi 9266ac_res=`eval echo '${'$as_ac_var'}'` 9267 { echo "$as_me:$LINENO: result: $ac_res" >&5 9268echo "${ECHO_T}$ac_res" >&6; } 9269if test `eval echo '${'$as_ac_var'}'` = yes; then 9270 cat >>confdefs.h <<_ACEOF 9271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9272_ACEOF 9273 9274fi 9275done 9276 9277 if test $ac_cv_func_pfopen = "no" ; then 9278 { echo "$as_me:$LINENO: result: Using $pfopen" >&5 9279echo "${ECHO_T}Using $pfopen" >&6; } 9280 LIBS="$LIBS $pfopen" 9281 fi 9282 fi 9283 { echo "$as_me:$LINENO: checking for local pcap library" >&5 9284echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; } 9285 libpcap=FAIL 9286 lastdir=FAIL 9287 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 9288 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 9289 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 9290 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 9291 if test $lastdir = $basedir ; then 9292 continue; 9293 fi 9294 lastdir=$dir 9295 if test -r $dir/libpcap.a ; then 9296 libpcap=$dir/libpcap.a 9297 d=$dir 9298 fi 9299 done 9300 if test $libpcap = FAIL ; then 9301 { echo "$as_me:$LINENO: result: not found" >&5 9302echo "${ECHO_T}not found" >&6; } 9303 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5 9304echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; } 9305if test "${ac_cv_lib_pcap_main+set}" = set; then 9306 echo $ECHO_N "(cached) $ECHO_C" >&6 9307else 9308 ac_check_lib_save_LIBS=$LIBS 9309LIBS="-lpcap $LIBS" 9310cat >conftest.$ac_ext <<_ACEOF 9311/* confdefs.h. */ 9312_ACEOF 9313cat confdefs.h >>conftest.$ac_ext 9314cat >>conftest.$ac_ext <<_ACEOF 9315/* end confdefs.h. */ 9316 9317 9318int 9319main () 9320{ 9321return main (); 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326rm -f conftest.$ac_objext conftest$ac_exeext 9327if { (ac_try="$ac_link" 9328case "(($ac_try" in 9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9330 *) ac_try_echo=$ac_try;; 9331esac 9332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9333 (eval "$ac_link") 2>conftest.er1 9334 ac_status=$? 9335 grep -v '^ *+' conftest.er1 >conftest.err 9336 rm -f conftest.er1 9337 cat conftest.err >&5 9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9339 (exit $ac_status); } && { 9340 test -z "$ac_c_werror_flag" || 9341 test ! -s conftest.err 9342 } && test -s conftest$ac_exeext && 9343 $as_test_x conftest$ac_exeext; then 9344 ac_cv_lib_pcap_main=yes 9345else 9346 echo "$as_me: failed program was:" >&5 9347sed 's/^/| /' conftest.$ac_ext >&5 9348 9349 ac_cv_lib_pcap_main=no 9350fi 9351 9352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9353 conftest$ac_exeext conftest.$ac_ext 9354LIBS=$ac_check_lib_save_LIBS 9355fi 9356{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 9357echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; } 9358if test $ac_cv_lib_pcap_main = yes; then 9359 libpcap="-lpcap" 9360fi 9361 9362 if test $libpcap = FAIL ; then 9363 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 9364echo "$as_me: error: see the INSTALL doc for more info" >&2;} 9365 { (exit 1); exit 1; }; } 9366 fi 9367 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 9368echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; } 9369 if test \( ! -r /usr/local/include/pcap.h \) -a \ 9370 \( ! -r /usr/include/pcap.h \); then 9371 if test -r /usr/local/include/pcap/pcap.h; then 9372 d="/usr/local/include/pcap" 9373 elif test -r /usr/include/pcap/pcap.h; then 9374 d="/usr/include/pcap" 9375 fi 9376 fi 9377 if test -z "$d" ; then 9378 { echo "$as_me:$LINENO: result: not found" >&5 9379echo "${ECHO_T}not found" >&6; } 9380 else 9381 V_INCLS="-I$d $V_INCLS" 9382 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5 9383echo "${ECHO_T}found -- -I$d added" >&6; } 9384 fi 9385 else 9386 V_PCAPDEP=$libpcap 9387 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 9388 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 9389 if test -r $d/pcap.h; then 9390 V_INCLS="-I$d $V_INCLS" 9391 elif test -r $places/pcap.h; then 9392 V_INCLS="-I$places $V_INCLS" 9393 else 9394 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 9395echo "$as_me: error: cannot find pcap.h" >&2;} 9396 { (exit see INSTALL); exit see INSTALL; }; } 9397 fi 9398 { echo "$as_me:$LINENO: result: $libpcap" >&5 9399echo "${ECHO_T}$libpcap" >&6; } 9400 fi 9401 LIBS="$libpcap $LIBS" 9402 case "$host_os" in 9403 9404 aix*) 9405 pseexe="/lib/pse.exp" 9406 { echo "$as_me:$LINENO: checking for $pseexe" >&5 9407echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; } 9408 if test -f $pseexe ; then 9409 { echo "$as_me:$LINENO: result: yes" >&5 9410echo "${ECHO_T}yes" >&6; } 9411 LIBS="$LIBS -I:$pseexe" 9412 fi 9413 # 9414 # We need "-lodm" and "-lcfg", as libpcap requires them on 9415 # AIX, and we just build a static libpcap.a and thus can't 9416 # arrange that when you link with libpcap you automatically 9417 # link with those libraries. 9418 # 9419 LIBS="$LIBS -lodm -lcfg" 9420 ;; 9421 esac 9422 9423 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 9424echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; } 9425if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 9426 echo $ECHO_N "(cached) $ECHO_C" >&6 9427else 9428 cat >conftest.$ac_ext <<_ACEOF 9429/* confdefs.h. */ 9430_ACEOF 9431cat confdefs.h >>conftest.$ac_ext 9432cat >>conftest.$ac_ext <<_ACEOF 9433/* end confdefs.h. */ 9434/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks. 9435 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9436#define pcap_list_datalinks innocuous_pcap_list_datalinks 9437 9438/* System header to define __stub macros and hopefully few prototypes, 9439 which can conflict with char pcap_list_datalinks (); below. 9440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9441 <limits.h> exists even on freestanding compilers. */ 9442 9443#ifdef __STDC__ 9444# include <limits.h> 9445#else 9446# include <assert.h> 9447#endif 9448 9449#undef pcap_list_datalinks 9450 9451/* Override any GCC internal prototype to avoid an error. 9452 Use char because int might match the return type of a GCC 9453 builtin and then its argument prototype would still apply. */ 9454#ifdef __cplusplus 9455extern "C" 9456#endif 9457char pcap_list_datalinks (); 9458/* The GNU C library defines this for functions which it implements 9459 to always fail with ENOSYS. Some functions are actually named 9460 something starting with __ and the normal name is an alias. */ 9461#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks 9462choke me 9463#endif 9464 9465int 9466main () 9467{ 9468return pcap_list_datalinks (); 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473rm -f conftest.$ac_objext conftest$ac_exeext 9474if { (ac_try="$ac_link" 9475case "(($ac_try" in 9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9477 *) ac_try_echo=$ac_try;; 9478esac 9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9480 (eval "$ac_link") 2>conftest.er1 9481 ac_status=$? 9482 grep -v '^ *+' conftest.er1 >conftest.err 9483 rm -f conftest.er1 9484 cat conftest.err >&5 9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9486 (exit $ac_status); } && { 9487 test -z "$ac_c_werror_flag" || 9488 test ! -s conftest.err 9489 } && test -s conftest$ac_exeext && 9490 $as_test_x conftest$ac_exeext; then 9491 ac_cv_func_pcap_list_datalinks=yes 9492else 9493 echo "$as_me: failed program was:" >&5 9494sed 's/^/| /' conftest.$ac_ext >&5 9495 9496 ac_cv_func_pcap_list_datalinks=no 9497fi 9498 9499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 9503echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; } 9504if test $ac_cv_func_pcap_list_datalinks = yes; then 9505 cat >>confdefs.h <<\_ACEOF 9506#define HAVE_PCAP_LIST_DATALINKS 1 9507_ACEOF 9508 9509else 9510 9511 case " $LIBOBJS " in 9512 *" datalinks.$ac_objext "* ) ;; 9513 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 9514 ;; 9515esac 9516 9517 9518fi 9519 9520 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 9521echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; } 9522if test "${ac_cv_func_pcap_set_datalink+set}" = set; then 9523 echo $ECHO_N "(cached) $ECHO_C" >&6 9524else 9525 cat >conftest.$ac_ext <<_ACEOF 9526/* confdefs.h. */ 9527_ACEOF 9528cat confdefs.h >>conftest.$ac_ext 9529cat >>conftest.$ac_ext <<_ACEOF 9530/* end confdefs.h. */ 9531/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink. 9532 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9533#define pcap_set_datalink innocuous_pcap_set_datalink 9534 9535/* System header to define __stub macros and hopefully few prototypes, 9536 which can conflict with char pcap_set_datalink (); below. 9537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9538 <limits.h> exists even on freestanding compilers. */ 9539 9540#ifdef __STDC__ 9541# include <limits.h> 9542#else 9543# include <assert.h> 9544#endif 9545 9546#undef pcap_set_datalink 9547 9548/* Override any GCC internal prototype to avoid an error. 9549 Use char because int might match the return type of a GCC 9550 builtin and then its argument prototype would still apply. */ 9551#ifdef __cplusplus 9552extern "C" 9553#endif 9554char pcap_set_datalink (); 9555/* The GNU C library defines this for functions which it implements 9556 to always fail with ENOSYS. Some functions are actually named 9557 something starting with __ and the normal name is an alias. */ 9558#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink 9559choke me 9560#endif 9561 9562int 9563main () 9564{ 9565return pcap_set_datalink (); 9566 ; 9567 return 0; 9568} 9569_ACEOF 9570rm -f conftest.$ac_objext conftest$ac_exeext 9571if { (ac_try="$ac_link" 9572case "(($ac_try" in 9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9574 *) ac_try_echo=$ac_try;; 9575esac 9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9577 (eval "$ac_link") 2>conftest.er1 9578 ac_status=$? 9579 grep -v '^ *+' conftest.er1 >conftest.err 9580 rm -f conftest.er1 9581 cat conftest.err >&5 9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); } && { 9584 test -z "$ac_c_werror_flag" || 9585 test ! -s conftest.err 9586 } && test -s conftest$ac_exeext && 9587 $as_test_x conftest$ac_exeext; then 9588 ac_cv_func_pcap_set_datalink=yes 9589else 9590 echo "$as_me: failed program was:" >&5 9591sed 's/^/| /' conftest.$ac_ext >&5 9592 9593 ac_cv_func_pcap_set_datalink=no 9594fi 9595 9596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9597 conftest$ac_exeext conftest.$ac_ext 9598fi 9599{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 9600echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; } 9601if test $ac_cv_func_pcap_set_datalink = yes; then 9602 cat >>confdefs.h <<\_ACEOF 9603#define HAVE_PCAP_SET_DATALINK 1 9604_ACEOF 9605 9606fi 9607 9608 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 9609echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; } 9610if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 9611 echo $ECHO_N "(cached) $ECHO_C" >&6 9612else 9613 cat >conftest.$ac_ext <<_ACEOF 9614/* confdefs.h. */ 9615_ACEOF 9616cat confdefs.h >>conftest.$ac_ext 9617cat >>conftest.$ac_ext <<_ACEOF 9618/* end confdefs.h. */ 9619/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val. 9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9621#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val 9622 9623/* System header to define __stub macros and hopefully few prototypes, 9624 which can conflict with char pcap_datalink_name_to_val (); below. 9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9626 <limits.h> exists even on freestanding compilers. */ 9627 9628#ifdef __STDC__ 9629# include <limits.h> 9630#else 9631# include <assert.h> 9632#endif 9633 9634#undef pcap_datalink_name_to_val 9635 9636/* Override any GCC internal prototype to avoid an error. 9637 Use char because int might match the return type of a GCC 9638 builtin and then its argument prototype would still apply. */ 9639#ifdef __cplusplus 9640extern "C" 9641#endif 9642char pcap_datalink_name_to_val (); 9643/* The GNU C library defines this for functions which it implements 9644 to always fail with ENOSYS. Some functions are actually named 9645 something starting with __ and the normal name is an alias. */ 9646#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val 9647choke me 9648#endif 9649 9650int 9651main () 9652{ 9653return pcap_datalink_name_to_val (); 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658rm -f conftest.$ac_objext conftest$ac_exeext 9659if { (ac_try="$ac_link" 9660case "(($ac_try" in 9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9662 *) ac_try_echo=$ac_try;; 9663esac 9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9665 (eval "$ac_link") 2>conftest.er1 9666 ac_status=$? 9667 grep -v '^ *+' conftest.er1 >conftest.err 9668 rm -f conftest.er1 9669 cat conftest.err >&5 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9671 (exit $ac_status); } && { 9672 test -z "$ac_c_werror_flag" || 9673 test ! -s conftest.err 9674 } && test -s conftest$ac_exeext && 9675 $as_test_x conftest$ac_exeext; then 9676 ac_cv_func_pcap_datalink_name_to_val=yes 9677else 9678 echo "$as_me: failed program was:" >&5 9679sed 's/^/| /' conftest.$ac_ext >&5 9680 9681 ac_cv_func_pcap_datalink_name_to_val=no 9682fi 9683 9684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9685 conftest$ac_exeext conftest.$ac_ext 9686fi 9687{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 9688echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; } 9689if test $ac_cv_func_pcap_datalink_name_to_val = yes; then 9690 9691 cat >>confdefs.h <<\_ACEOF 9692#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 9693_ACEOF 9694 9695 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 9696echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; } 9697if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then 9698 echo $ECHO_N "(cached) $ECHO_C" >&6 9699else 9700 cat >conftest.$ac_ext <<_ACEOF 9701/* confdefs.h. */ 9702_ACEOF 9703cat confdefs.h >>conftest.$ac_ext 9704cat >>conftest.$ac_ext <<_ACEOF 9705/* end confdefs.h. */ 9706/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description. 9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9708#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description 9709 9710/* System header to define __stub macros and hopefully few prototypes, 9711 which can conflict with char pcap_datalink_val_to_description (); below. 9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9713 <limits.h> exists even on freestanding compilers. */ 9714 9715#ifdef __STDC__ 9716# include <limits.h> 9717#else 9718# include <assert.h> 9719#endif 9720 9721#undef pcap_datalink_val_to_description 9722 9723/* Override any GCC internal prototype to avoid an error. 9724 Use char because int might match the return type of a GCC 9725 builtin and then its argument prototype would still apply. */ 9726#ifdef __cplusplus 9727extern "C" 9728#endif 9729char pcap_datalink_val_to_description (); 9730/* The GNU C library defines this for functions which it implements 9731 to always fail with ENOSYS. Some functions are actually named 9732 something starting with __ and the normal name is an alias. */ 9733#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description 9734choke me 9735#endif 9736 9737int 9738main () 9739{ 9740return pcap_datalink_val_to_description (); 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745rm -f conftest.$ac_objext conftest$ac_exeext 9746if { (ac_try="$ac_link" 9747case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750esac 9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_link") 2>conftest.er1 9753 ac_status=$? 9754 grep -v '^ *+' conftest.er1 >conftest.err 9755 rm -f conftest.er1 9756 cat conftest.err >&5 9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); } && { 9759 test -z "$ac_c_werror_flag" || 9760 test ! -s conftest.err 9761 } && test -s conftest$ac_exeext && 9762 $as_test_x conftest$ac_exeext; then 9763 ac_cv_func_pcap_datalink_val_to_description=yes 9764else 9765 echo "$as_me: failed program was:" >&5 9766sed 's/^/| /' conftest.$ac_ext >&5 9767 9768 ac_cv_func_pcap_datalink_val_to_description=no 9769fi 9770 9771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9772 conftest$ac_exeext conftest.$ac_ext 9773fi 9774{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 9775echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; } 9776if test $ac_cv_func_pcap_datalink_val_to_description = yes; then 9777 cat >>confdefs.h <<\_ACEOF 9778#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 9779_ACEOF 9780 9781else 9782 9783 case " $LIBOBJS " in 9784 *" dlnames.$ac_objext "* ) ;; 9785 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 9786 ;; 9787esac 9788 9789 9790fi 9791 9792 9793else 9794 9795 case " $LIBOBJS " in 9796 *" dlnames.$ac_objext "* ) ;; 9797 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 9798 ;; 9799esac 9800 9801 9802fi 9803 9804 9805 9806for ac_func in pcap_breakloop 9807do 9808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9809{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9812 echo $ECHO_N "(cached) $ECHO_C" >&6 9813else 9814 cat >conftest.$ac_ext <<_ACEOF 9815/* confdefs.h. */ 9816_ACEOF 9817cat confdefs.h >>conftest.$ac_ext 9818cat >>conftest.$ac_ext <<_ACEOF 9819/* end confdefs.h. */ 9820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9822#define $ac_func innocuous_$ac_func 9823 9824/* System header to define __stub macros and hopefully few prototypes, 9825 which can conflict with char $ac_func (); below. 9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9827 <limits.h> exists even on freestanding compilers. */ 9828 9829#ifdef __STDC__ 9830# include <limits.h> 9831#else 9832# include <assert.h> 9833#endif 9834 9835#undef $ac_func 9836 9837/* Override any GCC internal prototype to avoid an error. 9838 Use char because int might match the return type of a GCC 9839 builtin and then its argument prototype would still apply. */ 9840#ifdef __cplusplus 9841extern "C" 9842#endif 9843char $ac_func (); 9844/* The GNU C library defines this for functions which it implements 9845 to always fail with ENOSYS. Some functions are actually named 9846 something starting with __ and the normal name is an alias. */ 9847#if defined __stub_$ac_func || defined __stub___$ac_func 9848choke me 9849#endif 9850 9851int 9852main () 9853{ 9854return $ac_func (); 9855 ; 9856 return 0; 9857} 9858_ACEOF 9859rm -f conftest.$ac_objext conftest$ac_exeext 9860if { (ac_try="$ac_link" 9861case "(($ac_try" in 9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9863 *) ac_try_echo=$ac_try;; 9864esac 9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9866 (eval "$ac_link") 2>conftest.er1 9867 ac_status=$? 9868 grep -v '^ *+' conftest.er1 >conftest.err 9869 rm -f conftest.er1 9870 cat conftest.err >&5 9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9872 (exit $ac_status); } && { 9873 test -z "$ac_c_werror_flag" || 9874 test ! -s conftest.err 9875 } && test -s conftest$ac_exeext && 9876 $as_test_x conftest$ac_exeext; then 9877 eval "$as_ac_var=yes" 9878else 9879 echo "$as_me: failed program was:" >&5 9880sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 eval "$as_ac_var=no" 9883fi 9884 9885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9886 conftest$ac_exeext conftest.$ac_ext 9887fi 9888ac_res=`eval echo '${'$as_ac_var'}'` 9889 { echo "$as_me:$LINENO: result: $ac_res" >&5 9890echo "${ECHO_T}$ac_res" >&6; } 9891if test `eval echo '${'$as_ac_var'}'` = yes; then 9892 cat >>confdefs.h <<_ACEOF 9893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9894_ACEOF 9895 9896fi 9897done 9898 9899 9900 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5 9901echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; } 9902if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then 9903 echo $ECHO_N "(cached) $ECHO_C" >&6 9904else 9905 cat >conftest.$ac_ext <<_ACEOF 9906/* confdefs.h. */ 9907_ACEOF 9908cat confdefs.h >>conftest.$ac_ext 9909cat >>conftest.$ac_ext <<_ACEOF 9910/* end confdefs.h. */ 9911/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell. 9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9913#define pcap_dump_ftell innocuous_pcap_dump_ftell 9914 9915/* System header to define __stub macros and hopefully few prototypes, 9916 which can conflict with char pcap_dump_ftell (); below. 9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9918 <limits.h> exists even on freestanding compilers. */ 9919 9920#ifdef __STDC__ 9921# include <limits.h> 9922#else 9923# include <assert.h> 9924#endif 9925 9926#undef pcap_dump_ftell 9927 9928/* Override any GCC internal prototype to avoid an error. 9929 Use char because int might match the return type of a GCC 9930 builtin and then its argument prototype would still apply. */ 9931#ifdef __cplusplus 9932extern "C" 9933#endif 9934char pcap_dump_ftell (); 9935/* The GNU C library defines this for functions which it implements 9936 to always fail with ENOSYS. Some functions are actually named 9937 something starting with __ and the normal name is an alias. */ 9938#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell 9939choke me 9940#endif 9941 9942int 9943main () 9944{ 9945return pcap_dump_ftell (); 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9957 (eval "$ac_link") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && { 9964 test -z "$ac_c_werror_flag" || 9965 test ! -s conftest.err 9966 } && test -s conftest$ac_exeext && 9967 $as_test_x conftest$ac_exeext; then 9968 ac_cv_func_pcap_dump_ftell=yes 9969else 9970 echo "$as_me: failed program was:" >&5 9971sed 's/^/| /' conftest.$ac_ext >&5 9972 9973 ac_cv_func_pcap_dump_ftell=no 9974fi 9975 9976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9977 conftest$ac_exeext conftest.$ac_ext 9978fi 9979{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5 9980echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; } 9981if test $ac_cv_func_pcap_dump_ftell = yes; then 9982 cat >>confdefs.h <<\_ACEOF 9983#define HAVE_PCAP_DUMP_FTELL 1 9984_ACEOF 9985 9986else 9987 9988 case " $LIBOBJS " in 9989 *" pcap_dump_ftell.$ac_objext "* ) ;; 9990 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 9991 ;; 9992esac 9993 9994 9995fi 9996 9997 9998 9999# 10000# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 10001# libraries (e.g., "-lsocket -lnsl" on Solaris). 10002# 10003# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 10004# use AC_CHECK_FUNC which doesn't let us specify the right #includes 10005# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 10006# resolver, and the way it defines inet_{ntop,pton} is rather strange; 10007# it does not ship with a libc symbol "inet_ntop()", it ships with 10008# "_inet_ntop()", and has a #define macro in one of the system headers 10009# to rename it. 10010# 10011{ echo "$as_me:$LINENO: checking for inet_ntop" >&5 10012echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } 10013cat >conftest.$ac_ext <<_ACEOF 10014/* confdefs.h. */ 10015_ACEOF 10016cat confdefs.h >>conftest.$ac_ext 10017cat >>conftest.$ac_ext <<_ACEOF 10018/* end confdefs.h. */ 10019#include <sys/types.h> 10020#include <sys/socket.h> 10021#include <netinet/in.h> 10022#include <arpa/inet.h> 10023int 10024main () 10025{ 10026char src[4], dst[128]; 10027inet_ntop(AF_INET, src, dst, sizeof(dst)); 10028 ; 10029 return 0; 10030} 10031_ACEOF 10032rm -f conftest.$ac_objext conftest$ac_exeext 10033if { (ac_try="$ac_link" 10034case "(($ac_try" in 10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10036 *) ac_try_echo=$ac_try;; 10037esac 10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10039 (eval "$ac_link") 2>conftest.er1 10040 ac_status=$? 10041 grep -v '^ *+' conftest.er1 >conftest.err 10042 rm -f conftest.er1 10043 cat conftest.err >&5 10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 (exit $ac_status); } && { 10046 test -z "$ac_c_werror_flag" || 10047 test ! -s conftest.err 10048 } && test -s conftest$ac_exeext && 10049 $as_test_x conftest$ac_exeext; then 10050 { echo "$as_me:$LINENO: result: yes" >&5 10051echo "${ECHO_T}yes" >&6; } 10052else 10053 echo "$as_me: failed program was:" >&5 10054sed 's/^/| /' conftest.$ac_ext >&5 10055 10056 { echo "$as_me:$LINENO: result: no" >&5 10057echo "${ECHO_T}no" >&6; } 10058 case " $LIBOBJS " in 10059 *" inet_ntop.$ac_objext "* ) ;; 10060 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 10061 ;; 10062esac 10063 10064fi 10065 10066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10067 conftest$ac_exeext conftest.$ac_ext 10068{ echo "$as_me:$LINENO: checking for inet_pton" >&5 10069echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } 10070cat >conftest.$ac_ext <<_ACEOF 10071/* confdefs.h. */ 10072_ACEOF 10073cat confdefs.h >>conftest.$ac_ext 10074cat >>conftest.$ac_ext <<_ACEOF 10075/* end confdefs.h. */ 10076#include <sys/types.h> 10077#include <sys/socket.h> 10078#include <netinet/in.h> 10079#include <arpa/inet.h> 10080int 10081main () 10082{ 10083char src[128], dst[4]; 10084inet_pton(AF_INET, src, dst); 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089rm -f conftest.$ac_objext conftest$ac_exeext 10090if { (ac_try="$ac_link" 10091case "(($ac_try" in 10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10093 *) ac_try_echo=$ac_try;; 10094esac 10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10096 (eval "$ac_link") 2>conftest.er1 10097 ac_status=$? 10098 grep -v '^ *+' conftest.er1 >conftest.err 10099 rm -f conftest.er1 10100 cat conftest.err >&5 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); } && { 10103 test -z "$ac_c_werror_flag" || 10104 test ! -s conftest.err 10105 } && test -s conftest$ac_exeext && 10106 $as_test_x conftest$ac_exeext; then 10107 { echo "$as_me:$LINENO: result: yes" >&5 10108echo "${ECHO_T}yes" >&6; } 10109else 10110 echo "$as_me: failed program was:" >&5 10111sed 's/^/| /' conftest.$ac_ext >&5 10112 10113 { echo "$as_me:$LINENO: result: no" >&5 10114echo "${ECHO_T}no" >&6; } 10115 case " $LIBOBJS " in 10116 *" inet_pton.$ac_objext "* ) ;; 10117 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 10118 ;; 10119esac 10120 10121fi 10122 10123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10124 conftest$ac_exeext conftest.$ac_ext 10125{ echo "$as_me:$LINENO: checking for inet_aton" >&5 10126echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 10127cat >conftest.$ac_ext <<_ACEOF 10128/* confdefs.h. */ 10129_ACEOF 10130cat confdefs.h >>conftest.$ac_ext 10131cat >>conftest.$ac_ext <<_ACEOF 10132/* end confdefs.h. */ 10133#include <sys/types.h> 10134#include <netinet/in.h> 10135#include <arpa/inet.h> 10136int 10137main () 10138{ 10139char src[128]; 10140struct in_addr dst; 10141inet_aton(src, &dst); 10142 ; 10143 return 0; 10144} 10145_ACEOF 10146rm -f conftest.$ac_objext conftest$ac_exeext 10147if { (ac_try="$ac_link" 10148case "(($ac_try" in 10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10150 *) ac_try_echo=$ac_try;; 10151esac 10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10153 (eval "$ac_link") 2>conftest.er1 10154 ac_status=$? 10155 grep -v '^ *+' conftest.er1 >conftest.err 10156 rm -f conftest.er1 10157 cat conftest.err >&5 10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10159 (exit $ac_status); } && { 10160 test -z "$ac_c_werror_flag" || 10161 test ! -s conftest.err 10162 } && test -s conftest$ac_exeext && 10163 $as_test_x conftest$ac_exeext; then 10164 { echo "$as_me:$LINENO: result: yes" >&5 10165echo "${ECHO_T}yes" >&6; } 10166else 10167 echo "$as_me: failed program was:" >&5 10168sed 's/^/| /' conftest.$ac_ext >&5 10169 10170 { echo "$as_me:$LINENO: result: no" >&5 10171echo "${ECHO_T}no" >&6; } 10172 case " $LIBOBJS " in 10173 *" inet_aton.$ac_objext "* ) ;; 10174 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 10175 ;; 10176esac 10177 10178fi 10179 10180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10181 conftest$ac_exeext conftest.$ac_ext 10182 10183# 10184# Check for these after AC_LBL_LIBPCAP, for the same reason. 10185# 10186# You are in a twisty little maze of UN*Xes, all different. 10187# Some might not have ether_ntohost(). 10188# Some might have it, but not declare it in any header file. 10189# Some might have it, but declare it in <netinet/if_ether.h>. 10190# Some might have it, but declare it in <netinet/ether.h> 10191# (And some might have it but document it as something declared in 10192# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 10193# 10194# Before you is a C compiler. 10195# 10196 10197for ac_func in ether_ntohost 10198do 10199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10200{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10203 echo $ECHO_N "(cached) $ECHO_C" >&6 10204else 10205 cat >conftest.$ac_ext <<_ACEOF 10206/* confdefs.h. */ 10207_ACEOF 10208cat confdefs.h >>conftest.$ac_ext 10209cat >>conftest.$ac_ext <<_ACEOF 10210/* end confdefs.h. */ 10211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10212 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10213#define $ac_func innocuous_$ac_func 10214 10215/* System header to define __stub macros and hopefully few prototypes, 10216 which can conflict with char $ac_func (); below. 10217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10218 <limits.h> exists even on freestanding compilers. */ 10219 10220#ifdef __STDC__ 10221# include <limits.h> 10222#else 10223# include <assert.h> 10224#endif 10225 10226#undef $ac_func 10227 10228/* Override any GCC internal prototype to avoid an error. 10229 Use char because int might match the return type of a GCC 10230 builtin and then its argument prototype would still apply. */ 10231#ifdef __cplusplus 10232extern "C" 10233#endif 10234char $ac_func (); 10235/* The GNU C library defines this for functions which it implements 10236 to always fail with ENOSYS. Some functions are actually named 10237 something starting with __ and the normal name is an alias. */ 10238#if defined __stub_$ac_func || defined __stub___$ac_func 10239choke me 10240#endif 10241 10242int 10243main () 10244{ 10245return $ac_func (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250rm -f conftest.$ac_objext conftest$ac_exeext 10251if { (ac_try="$ac_link" 10252case "(($ac_try" in 10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10254 *) ac_try_echo=$ac_try;; 10255esac 10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10257 (eval "$ac_link") 2>conftest.er1 10258 ac_status=$? 10259 grep -v '^ *+' conftest.er1 >conftest.err 10260 rm -f conftest.er1 10261 cat conftest.err >&5 10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10263 (exit $ac_status); } && { 10264 test -z "$ac_c_werror_flag" || 10265 test ! -s conftest.err 10266 } && test -s conftest$ac_exeext && 10267 $as_test_x conftest$ac_exeext; then 10268 eval "$as_ac_var=yes" 10269else 10270 echo "$as_me: failed program was:" >&5 10271sed 's/^/| /' conftest.$ac_ext >&5 10272 10273 eval "$as_ac_var=no" 10274fi 10275 10276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10277 conftest$ac_exeext conftest.$ac_ext 10278fi 10279ac_res=`eval echo '${'$as_ac_var'}'` 10280 { echo "$as_me:$LINENO: result: $ac_res" >&5 10281echo "${ECHO_T}$ac_res" >&6; } 10282if test `eval echo '${'$as_ac_var'}'` = yes; then 10283 cat >>confdefs.h <<_ACEOF 10284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10285_ACEOF 10286 10287 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 10288echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; } 10289if test "${ac_cv_buggy_ether_ntohost+set}" = set; then 10290 echo $ECHO_N "(cached) $ECHO_C" >&6 10291else 10292 10293 if test "$cross_compiling" = yes; then 10294 ac_cv_buggy_ether_ntohost="not while cross-compiling" 10295else 10296 cat >conftest.$ac_ext <<_ACEOF 10297/* confdefs.h. */ 10298_ACEOF 10299cat confdefs.h >>conftest.$ac_ext 10300cat >>conftest.$ac_ext <<_ACEOF 10301/* end confdefs.h. */ 10302 10303 #include <netdb.h> 10304 #include <sys/types.h> 10305 #include <sys/param.h> 10306 #include <sys/socket.h> 10307 10308 int 10309 main(int argc, char **argv) 10310 { 10311 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 10312 char name[MAXHOSTNAMELEN]; 10313 10314 ether_ntohost(name, (struct ether_addr *)ea); 10315 exit(0); 10316 } 10317 10318_ACEOF 10319rm -f conftest$ac_exeext 10320if { (ac_try="$ac_link" 10321case "(($ac_try" in 10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10323 *) ac_try_echo=$ac_try;; 10324esac 10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10326 (eval "$ac_link") 2>&5 10327 ac_status=$? 10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10330 { (case "(($ac_try" in 10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10332 *) ac_try_echo=$ac_try;; 10333esac 10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10335 (eval "$ac_try") 2>&5 10336 ac_status=$? 10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10338 (exit $ac_status); }; }; then 10339 ac_cv_buggy_ether_ntohost=no 10340else 10341 echo "$as_me: program exited with status $ac_status" >&5 10342echo "$as_me: failed program was:" >&5 10343sed 's/^/| /' conftest.$ac_ext >&5 10344 10345( exit $ac_status ) 10346ac_cv_buggy_ether_ntohost=yes 10347fi 10348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10349fi 10350 10351 10352fi 10353{ echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 10354echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; } 10355 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 10356 cat >>confdefs.h <<\_ACEOF 10357#define USE_ETHER_NTOHOST 1 10358_ACEOF 10359 10360 fi 10361 10362fi 10363done 10364 10365if test "$ac_cv_func_ether_ntohost" = yes -a \ 10366 "$ac_cv_buggy_ether_ntohost" = "no"; then 10367 # 10368 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 10369 # 10370 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 10371 # 10372 # Yes. Does it declare ether_ntohost()? 10373 # 10374 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 10375echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; } 10376if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 10377 echo $ECHO_N "(cached) $ECHO_C" >&6 10378else 10379 cat >conftest.$ac_ext <<_ACEOF 10380/* confdefs.h. */ 10381_ACEOF 10382cat confdefs.h >>conftest.$ac_ext 10383cat >>conftest.$ac_ext <<_ACEOF 10384/* end confdefs.h. */ 10385 10386#include <sys/types.h> 10387#include <sys/socket.h> 10388#include <netinet/in.h> 10389#include <arpa/inet.h> 10390struct mbuf; 10391struct rtentry; 10392#include <net/if.h> 10393#include <netinet/if_ether.h> 10394 10395 10396int 10397main () 10398{ 10399#ifndef ether_ntohost 10400 (void) ether_ntohost; 10401#endif 10402 10403 ; 10404 return 0; 10405} 10406_ACEOF 10407rm -f conftest.$ac_objext 10408if { (ac_try="$ac_compile" 10409case "(($ac_try" in 10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10411 *) ac_try_echo=$ac_try;; 10412esac 10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10414 (eval "$ac_compile") 2>conftest.er1 10415 ac_status=$? 10416 grep -v '^ *+' conftest.er1 >conftest.err 10417 rm -f conftest.er1 10418 cat conftest.err >&5 10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10420 (exit $ac_status); } && { 10421 test -z "$ac_c_werror_flag" || 10422 test ! -s conftest.err 10423 } && test -s conftest.$ac_objext; then 10424 ac_cv_have_decl_ether_ntohost=yes 10425else 10426 echo "$as_me: failed program was:" >&5 10427sed 's/^/| /' conftest.$ac_ext >&5 10428 10429 ac_cv_have_decl_ether_ntohost=no 10430fi 10431 10432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10433fi 10434{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 10435echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; } 10436if test $ac_cv_have_decl_ether_ntohost = yes; then 10437 10438 10439cat >>confdefs.h <<\_ACEOF 10440#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST 10441_ACEOF 10442 10443 10444fi 10445 10446 fi 10447 # 10448 # Did that succeed? 10449 # 10450 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 10451 # 10452 # No, how about <netinet/ether.h>, as on Linux? 10453 # 10454 10455for ac_header in netinet/ether.h 10456do 10457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10459 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10462 echo $ECHO_N "(cached) $ECHO_C" >&6 10463fi 10464ac_res=`eval echo '${'$as_ac_Header'}'` 10465 { echo "$as_me:$LINENO: result: $ac_res" >&5 10466echo "${ECHO_T}$ac_res" >&6; } 10467else 10468 # Is the header compilable? 10469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10471cat >conftest.$ac_ext <<_ACEOF 10472/* confdefs.h. */ 10473_ACEOF 10474cat confdefs.h >>conftest.$ac_ext 10475cat >>conftest.$ac_ext <<_ACEOF 10476/* end confdefs.h. */ 10477$ac_includes_default 10478#include <$ac_header> 10479_ACEOF 10480rm -f conftest.$ac_objext 10481if { (ac_try="$ac_compile" 10482case "(($ac_try" in 10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10484 *) ac_try_echo=$ac_try;; 10485esac 10486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10487 (eval "$ac_compile") 2>conftest.er1 10488 ac_status=$? 10489 grep -v '^ *+' conftest.er1 >conftest.err 10490 rm -f conftest.er1 10491 cat conftest.err >&5 10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); } && { 10494 test -z "$ac_c_werror_flag" || 10495 test ! -s conftest.err 10496 } && test -s conftest.$ac_objext; then 10497 ac_header_compiler=yes 10498else 10499 echo "$as_me: failed program was:" >&5 10500sed 's/^/| /' conftest.$ac_ext >&5 10501 10502 ac_header_compiler=no 10503fi 10504 10505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10507echo "${ECHO_T}$ac_header_compiler" >&6; } 10508 10509# Is the header present? 10510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10512cat >conftest.$ac_ext <<_ACEOF 10513/* confdefs.h. */ 10514_ACEOF 10515cat confdefs.h >>conftest.$ac_ext 10516cat >>conftest.$ac_ext <<_ACEOF 10517/* end confdefs.h. */ 10518#include <$ac_header> 10519_ACEOF 10520if { (ac_try="$ac_cpp conftest.$ac_ext" 10521case "(($ac_try" in 10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10523 *) ac_try_echo=$ac_try;; 10524esac 10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10527 ac_status=$? 10528 grep -v '^ *+' conftest.er1 >conftest.err 10529 rm -f conftest.er1 10530 cat conftest.err >&5 10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 (exit $ac_status); } >/dev/null && { 10533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10534 test ! -s conftest.err 10535 }; then 10536 ac_header_preproc=yes 10537else 10538 echo "$as_me: failed program was:" >&5 10539sed 's/^/| /' conftest.$ac_ext >&5 10540 10541 ac_header_preproc=no 10542fi 10543 10544rm -f conftest.err conftest.$ac_ext 10545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10546echo "${ECHO_T}$ac_header_preproc" >&6; } 10547 10548# So? What about this header? 10549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10550 yes:no: ) 10551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10555 ac_header_preproc=yes 10556 ;; 10557 no:yes:* ) 10558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10570 10571 ;; 10572esac 10573{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10576 echo $ECHO_N "(cached) $ECHO_C" >&6 10577else 10578 eval "$as_ac_Header=\$ac_header_preproc" 10579fi 10580ac_res=`eval echo '${'$as_ac_Header'}'` 10581 { echo "$as_me:$LINENO: result: $ac_res" >&5 10582echo "${ECHO_T}$ac_res" >&6; } 10583 10584fi 10585if test `eval echo '${'$as_ac_Header'}'` = yes; then 10586 cat >>confdefs.h <<_ACEOF 10587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10588_ACEOF 10589 10590fi 10591 10592done 10593 10594 if test "$ac_cv_header_netinet_ether_h" = yes; then 10595 # 10596 # We have it - does it declare ether_ntohost()? 10597 # Unset ac_cv_have_decl_ether_ntohost so we don't 10598 # treat the previous failure as a cached value and 10599 # suppress the next test. 10600 # 10601 unset ac_cv_have_decl_ether_ntohost 10602 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 10603echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; } 10604if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 10605 echo $ECHO_N "(cached) $ECHO_C" >&6 10606else 10607 cat >conftest.$ac_ext <<_ACEOF 10608/* confdefs.h. */ 10609_ACEOF 10610cat confdefs.h >>conftest.$ac_ext 10611cat >>conftest.$ac_ext <<_ACEOF 10612/* end confdefs.h. */ 10613 10614#include <netinet/ether.h> 10615 10616 10617int 10618main () 10619{ 10620#ifndef ether_ntohost 10621 (void) ether_ntohost; 10622#endif 10623 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628rm -f conftest.$ac_objext 10629if { (ac_try="$ac_compile" 10630case "(($ac_try" in 10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10632 *) ac_try_echo=$ac_try;; 10633esac 10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10635 (eval "$ac_compile") 2>conftest.er1 10636 ac_status=$? 10637 grep -v '^ *+' conftest.er1 >conftest.err 10638 rm -f conftest.er1 10639 cat conftest.err >&5 10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10641 (exit $ac_status); } && { 10642 test -z "$ac_c_werror_flag" || 10643 test ! -s conftest.err 10644 } && test -s conftest.$ac_objext; then 10645 ac_cv_have_decl_ether_ntohost=yes 10646else 10647 echo "$as_me: failed program was:" >&5 10648sed 's/^/| /' conftest.$ac_ext >&5 10649 10650 ac_cv_have_decl_ether_ntohost=no 10651fi 10652 10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10654fi 10655{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 10656echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; } 10657if test $ac_cv_have_decl_ether_ntohost = yes; then 10658 10659 10660cat >>confdefs.h <<\_ACEOF 10661#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 10662_ACEOF 10663 10664 10665fi 10666 10667 fi 10668 fi 10669 # 10670 # Is ether_ntohost() declared? 10671 # 10672 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 10673 # 10674 # No, we'll have to declare it ourselves. 10675 # Do we have "struct ether_addr"? 10676 # 10677 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5 10678echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; } 10679if test "${ac_cv_type_struct_ether_addr+set}" = set; then 10680 echo $ECHO_N "(cached) $ECHO_C" >&6 10681else 10682 cat >conftest.$ac_ext <<_ACEOF 10683/* confdefs.h. */ 10684_ACEOF 10685cat confdefs.h >>conftest.$ac_ext 10686cat >>conftest.$ac_ext <<_ACEOF 10687/* end confdefs.h. */ 10688 10689#include <sys/types.h> 10690#include <sys/socket.h> 10691#include <netinet/in.h> 10692#include <arpa/inet.h> 10693struct mbuf; 10694struct rtentry; 10695#include <net/if.h> 10696#include <netinet/if_ether.h> 10697 10698 10699typedef struct ether_addr ac__type_new_; 10700int 10701main () 10702{ 10703if ((ac__type_new_ *) 0) 10704 return 0; 10705if (sizeof (ac__type_new_)) 10706 return 0; 10707 ; 10708 return 0; 10709} 10710_ACEOF 10711rm -f conftest.$ac_objext 10712if { (ac_try="$ac_compile" 10713case "(($ac_try" in 10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10715 *) ac_try_echo=$ac_try;; 10716esac 10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10718 (eval "$ac_compile") 2>conftest.er1 10719 ac_status=$? 10720 grep -v '^ *+' conftest.er1 >conftest.err 10721 rm -f conftest.er1 10722 cat conftest.err >&5 10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10724 (exit $ac_status); } && { 10725 test -z "$ac_c_werror_flag" || 10726 test ! -s conftest.err 10727 } && test -s conftest.$ac_objext; then 10728 ac_cv_type_struct_ether_addr=yes 10729else 10730 echo "$as_me: failed program was:" >&5 10731sed 's/^/| /' conftest.$ac_ext >&5 10732 10733 ac_cv_type_struct_ether_addr=no 10734fi 10735 10736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10737fi 10738{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5 10739echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; } 10740if test $ac_cv_type_struct_ether_addr = yes; then 10741 10742cat >>confdefs.h <<_ACEOF 10743#define HAVE_STRUCT_ETHER_ADDR 1 10744_ACEOF 10745 10746 10747fi 10748 10749 10750cat >>confdefs.h <<\_ACEOF 10751#define HAVE_DECL_ETHER_NTOHOST 0 10752_ACEOF 10753 10754 else 10755 10756cat >>confdefs.h <<\_ACEOF 10757#define HAVE_DECL_ETHER_NTOHOST 1 10758_ACEOF 10759 10760 fi 10761fi 10762 10763# libdlpi is needed for Solaris 11 and later. 10764{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5 10765echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; } 10766if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then 10767 echo $ECHO_N "(cached) $ECHO_C" >&6 10768else 10769 ac_check_lib_save_LIBS=$LIBS 10770LIBS="-ldlpi -L/lib $LIBS" 10771cat >conftest.$ac_ext <<_ACEOF 10772/* confdefs.h. */ 10773_ACEOF 10774cat confdefs.h >>conftest.$ac_ext 10775cat >>conftest.$ac_ext <<_ACEOF 10776/* end confdefs.h. */ 10777 10778/* Override any GCC internal prototype to avoid an error. 10779 Use char because int might match the return type of a GCC 10780 builtin and then its argument prototype would still apply. */ 10781#ifdef __cplusplus 10782extern "C" 10783#endif 10784char dlpi_walk (); 10785int 10786main () 10787{ 10788return dlpi_walk (); 10789 ; 10790 return 0; 10791} 10792_ACEOF 10793rm -f conftest.$ac_objext conftest$ac_exeext 10794if { (ac_try="$ac_link" 10795case "(($ac_try" in 10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10797 *) ac_try_echo=$ac_try;; 10798esac 10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10800 (eval "$ac_link") 2>conftest.er1 10801 ac_status=$? 10802 grep -v '^ *+' conftest.er1 >conftest.err 10803 rm -f conftest.er1 10804 cat conftest.err >&5 10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10806 (exit $ac_status); } && { 10807 test -z "$ac_c_werror_flag" || 10808 test ! -s conftest.err 10809 } && test -s conftest$ac_exeext && 10810 $as_test_x conftest$ac_exeext; then 10811 ac_cv_lib_dlpi_dlpi_walk=yes 10812else 10813 echo "$as_me: failed program was:" >&5 10814sed 's/^/| /' conftest.$ac_ext >&5 10815 10816 ac_cv_lib_dlpi_dlpi_walk=no 10817fi 10818 10819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10820 conftest$ac_exeext conftest.$ac_ext 10821LIBS=$ac_check_lib_save_LIBS 10822fi 10823{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 10824echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; } 10825if test $ac_cv_lib_dlpi_dlpi_walk = yes; then 10826 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 10827fi 10828 10829 10830 10831 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 10832echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; } 10833 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 10834 echo $ECHO_N "(cached) $ECHO_C" >&6 10835else 10836 cat >conftest.$ac_ext <<_ACEOF 10837/* confdefs.h. */ 10838_ACEOF 10839cat confdefs.h >>conftest.$ac_ext 10840cat >>conftest.$ac_ext <<_ACEOF 10841/* end confdefs.h. */ 10842 10843# include <sys/types.h> 10844# include <sys/socket.h> 10845int 10846main () 10847{ 10848u_int i = sizeof(((struct sockaddr *)0)->sa_len) 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853rm -f conftest.$ac_objext 10854if { (ac_try="$ac_compile" 10855case "(($ac_try" in 10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10857 *) ac_try_echo=$ac_try;; 10858esac 10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10860 (eval "$ac_compile") 2>conftest.er1 10861 ac_status=$? 10862 grep -v '^ *+' conftest.er1 >conftest.err 10863 rm -f conftest.er1 10864 cat conftest.err >&5 10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10866 (exit $ac_status); } && { 10867 test -z "$ac_c_werror_flag" || 10868 test ! -s conftest.err 10869 } && test -s conftest.$ac_objext; then 10870 ac_cv_sockaddr_has_sa_len=yes 10871else 10872 echo "$as_me: failed program was:" >&5 10873sed 's/^/| /' conftest.$ac_ext >&5 10874 10875 ac_cv_sockaddr_has_sa_len=no 10876fi 10877 10878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10879fi 10880 10881 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 10882echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; } 10883 if test $ac_cv_sockaddr_has_sa_len = yes ; then 10884 cat >>confdefs.h <<\_ACEOF 10885#define HAVE_SOCKADDR_SA_LEN 1 10886_ACEOF 10887 10888 fi 10889 10890if test "$ac_cv_sockaddr_has_sa_len" = no; then 10891 missing_includes=yes 10892fi 10893 10894# 10895# Do we have the new open API? Check for pcap_create, and assume that, 10896# if we do, we also have pcap_activate() and the other new routines. 10897 10898for ac_func in pcap_create 10899do 10900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10901{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10904 echo $ECHO_N "(cached) $ECHO_C" >&6 10905else 10906 cat >conftest.$ac_ext <<_ACEOF 10907/* confdefs.h. */ 10908_ACEOF 10909cat confdefs.h >>conftest.$ac_ext 10910cat >>conftest.$ac_ext <<_ACEOF 10911/* end confdefs.h. */ 10912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10914#define $ac_func innocuous_$ac_func 10915 10916/* System header to define __stub macros and hopefully few prototypes, 10917 which can conflict with char $ac_func (); below. 10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10919 <limits.h> exists even on freestanding compilers. */ 10920 10921#ifdef __STDC__ 10922# include <limits.h> 10923#else 10924# include <assert.h> 10925#endif 10926 10927#undef $ac_func 10928 10929/* Override any GCC internal prototype to avoid an error. 10930 Use char because int might match the return type of a GCC 10931 builtin and then its argument prototype would still apply. */ 10932#ifdef __cplusplus 10933extern "C" 10934#endif 10935char $ac_func (); 10936/* The GNU C library defines this for functions which it implements 10937 to always fail with ENOSYS. Some functions are actually named 10938 something starting with __ and the normal name is an alias. */ 10939#if defined __stub_$ac_func || defined __stub___$ac_func 10940choke me 10941#endif 10942 10943int 10944main () 10945{ 10946return $ac_func (); 10947 ; 10948 return 0; 10949} 10950_ACEOF 10951rm -f conftest.$ac_objext conftest$ac_exeext 10952if { (ac_try="$ac_link" 10953case "(($ac_try" in 10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10955 *) ac_try_echo=$ac_try;; 10956esac 10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10958 (eval "$ac_link") 2>conftest.er1 10959 ac_status=$? 10960 grep -v '^ *+' conftest.er1 >conftest.err 10961 rm -f conftest.er1 10962 cat conftest.err >&5 10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10964 (exit $ac_status); } && { 10965 test -z "$ac_c_werror_flag" || 10966 test ! -s conftest.err 10967 } && test -s conftest$ac_exeext && 10968 $as_test_x conftest$ac_exeext; then 10969 eval "$as_ac_var=yes" 10970else 10971 echo "$as_me: failed program was:" >&5 10972sed 's/^/| /' conftest.$ac_ext >&5 10973 10974 eval "$as_ac_var=no" 10975fi 10976 10977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10978 conftest$ac_exeext conftest.$ac_ext 10979fi 10980ac_res=`eval echo '${'$as_ac_var'}'` 10981 { echo "$as_me:$LINENO: result: $ac_res" >&5 10982echo "${ECHO_T}$ac_res" >&6; } 10983if test `eval echo '${'$as_ac_var'}'` = yes; then 10984 cat >>confdefs.h <<_ACEOF 10985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10986_ACEOF 10987 10988fi 10989done 10990 10991 10992 10993 10994 10995for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 10996do 10997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10998{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11000if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11001 echo $ECHO_N "(cached) $ECHO_C" >&6 11002else 11003 cat >conftest.$ac_ext <<_ACEOF 11004/* confdefs.h. */ 11005_ACEOF 11006cat confdefs.h >>conftest.$ac_ext 11007cat >>conftest.$ac_ext <<_ACEOF 11008/* end confdefs.h. */ 11009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11010 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11011#define $ac_func innocuous_$ac_func 11012 11013/* System header to define __stub macros and hopefully few prototypes, 11014 which can conflict with char $ac_func (); below. 11015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11016 <limits.h> exists even on freestanding compilers. */ 11017 11018#ifdef __STDC__ 11019# include <limits.h> 11020#else 11021# include <assert.h> 11022#endif 11023 11024#undef $ac_func 11025 11026/* Override any GCC internal prototype to avoid an error. 11027 Use char because int might match the return type of a GCC 11028 builtin and then its argument prototype would still apply. */ 11029#ifdef __cplusplus 11030extern "C" 11031#endif 11032char $ac_func (); 11033/* The GNU C library defines this for functions which it implements 11034 to always fail with ENOSYS. Some functions are actually named 11035 something starting with __ and the normal name is an alias. */ 11036#if defined __stub_$ac_func || defined __stub___$ac_func 11037choke me 11038#endif 11039 11040int 11041main () 11042{ 11043return $ac_func (); 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048rm -f conftest.$ac_objext conftest$ac_exeext 11049if { (ac_try="$ac_link" 11050case "(($ac_try" in 11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11052 *) ac_try_echo=$ac_try;; 11053esac 11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11055 (eval "$ac_link") 2>conftest.er1 11056 ac_status=$? 11057 grep -v '^ *+' conftest.er1 >conftest.err 11058 rm -f conftest.er1 11059 cat conftest.err >&5 11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11061 (exit $ac_status); } && { 11062 test -z "$ac_c_werror_flag" || 11063 test ! -s conftest.err 11064 } && test -s conftest$ac_exeext && 11065 $as_test_x conftest$ac_exeext; then 11066 eval "$as_ac_var=yes" 11067else 11068 echo "$as_me: failed program was:" >&5 11069sed 's/^/| /' conftest.$ac_ext >&5 11070 11071 eval "$as_ac_var=no" 11072fi 11073 11074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11075 conftest$ac_exeext conftest.$ac_ext 11076fi 11077ac_res=`eval echo '${'$as_ac_var'}'` 11078 { echo "$as_me:$LINENO: result: $ac_res" >&5 11079echo "${ECHO_T}$ac_res" >&6; } 11080if test `eval echo '${'$as_ac_var'}'` = yes; then 11081 cat >>confdefs.h <<_ACEOF 11082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11083_ACEOF 11084 11085fi 11086done 11087 11088if test $ac_cv_func_pcap_findalldevs = "yes" ; then 11089 savedppflags="$CPPLAGS" 11090 CPPFLAGS="$CPPFLAGS $V_INCLS" 11091 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5 11092echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; } 11093if test "${ac_cv_type_pcap_if_t+set}" = set; then 11094 echo $ECHO_N "(cached) $ECHO_C" >&6 11095else 11096 cat >conftest.$ac_ext <<_ACEOF 11097/* confdefs.h. */ 11098_ACEOF 11099cat confdefs.h >>conftest.$ac_ext 11100cat >>conftest.$ac_ext <<_ACEOF 11101/* end confdefs.h. */ 11102#include <pcap.h> 11103 11104typedef pcap_if_t ac__type_new_; 11105int 11106main () 11107{ 11108if ((ac__type_new_ *) 0) 11109 return 0; 11110if (sizeof (ac__type_new_)) 11111 return 0; 11112 ; 11113 return 0; 11114} 11115_ACEOF 11116rm -f conftest.$ac_objext 11117if { (ac_try="$ac_compile" 11118case "(($ac_try" in 11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11120 *) ac_try_echo=$ac_try;; 11121esac 11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11123 (eval "$ac_compile") 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && { 11130 test -z "$ac_c_werror_flag" || 11131 test ! -s conftest.err 11132 } && test -s conftest.$ac_objext; then 11133 ac_cv_type_pcap_if_t=yes 11134else 11135 echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 ac_cv_type_pcap_if_t=no 11139fi 11140 11141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11142fi 11143{ echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 11144echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; } 11145if test $ac_cv_type_pcap_if_t = yes; then 11146 11147cat >>confdefs.h <<_ACEOF 11148#define HAVE_PCAP_IF_T 1 11149_ACEOF 11150 11151 11152fi 11153 11154 CPPFLAGS="$savedcppflags" 11155fi 11156 11157if test $ac_cv_func_pcap_lib_version = "no" ; then 11158 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 11159echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; } 11160 cat >conftest.$ac_ext <<_ACEOF 11161/* confdefs.h. */ 11162_ACEOF 11163cat confdefs.h >>conftest.$ac_ext 11164cat >>conftest.$ac_ext <<_ACEOF 11165/* end confdefs.h. */ 11166 11167int 11168main () 11169{ 11170 11171 extern char pcap_version[]; 11172 11173 return (int)pcap_version; 11174 11175 ; 11176 return 0; 11177} 11178_ACEOF 11179rm -f conftest.$ac_objext conftest$ac_exeext 11180if { (ac_try="$ac_link" 11181case "(($ac_try" in 11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11183 *) ac_try_echo=$ac_try;; 11184esac 11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11186 (eval "$ac_link") 2>conftest.er1 11187 ac_status=$? 11188 grep -v '^ *+' conftest.er1 >conftest.err 11189 rm -f conftest.er1 11190 cat conftest.err >&5 11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11192 (exit $ac_status); } && { 11193 test -z "$ac_c_werror_flag" || 11194 test ! -s conftest.err 11195 } && test -s conftest$ac_exeext && 11196 $as_test_x conftest$ac_exeext; then 11197 ac_lbl_cv_pcap_version_defined=yes 11198else 11199 echo "$as_me: failed program was:" >&5 11200sed 's/^/| /' conftest.$ac_ext >&5 11201 11202 ac_lbl_cv_pcap_version_defined=no 11203fi 11204 11205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11206 conftest$ac_exeext conftest.$ac_ext 11207 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 11208 { echo "$as_me:$LINENO: result: yes" >&5 11209echo "${ECHO_T}yes" >&6; } 11210 cat >>confdefs.h <<\_ACEOF 11211#define HAVE_PCAP_VERSION 1 11212_ACEOF 11213 11214 else 11215 { echo "$as_me:$LINENO: result: no" >&5 11216echo "${ECHO_T}no" >&6; } 11217 fi 11218fi 11219{ echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 11220echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; } 11221cat >conftest.$ac_ext <<_ACEOF 11222/* confdefs.h. */ 11223_ACEOF 11224cat confdefs.h >>conftest.$ac_ext 11225cat >>conftest.$ac_ext <<_ACEOF 11226/* end confdefs.h. */ 11227 11228int 11229main () 11230{ 11231 11232 extern int pcap_debug; 11233 11234 return pcap_debug; 11235 11236 ; 11237 return 0; 11238} 11239_ACEOF 11240rm -f conftest.$ac_objext conftest$ac_exeext 11241if { (ac_try="$ac_link" 11242case "(($ac_try" in 11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11244 *) ac_try_echo=$ac_try;; 11245esac 11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11247 (eval "$ac_link") 2>conftest.er1 11248 ac_status=$? 11249 grep -v '^ *+' conftest.er1 >conftest.err 11250 rm -f conftest.er1 11251 cat conftest.err >&5 11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 (exit $ac_status); } && { 11254 test -z "$ac_c_werror_flag" || 11255 test ! -s conftest.err 11256 } && test -s conftest$ac_exeext && 11257 $as_test_x conftest$ac_exeext; then 11258 ac_lbl_cv_pcap_debug_defined=yes 11259else 11260 echo "$as_me: failed program was:" >&5 11261sed 's/^/| /' conftest.$ac_ext >&5 11262 11263 ac_lbl_cv_pcap_debug_defined=no 11264fi 11265 11266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11267 conftest$ac_exeext conftest.$ac_ext 11268if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 11269 { echo "$as_me:$LINENO: result: yes" >&5 11270echo "${ECHO_T}yes" >&6; } 11271 cat >>confdefs.h <<\_ACEOF 11272#define HAVE_PCAP_DEBUG 1 11273_ACEOF 11274 11275else 11276 { echo "$as_me:$LINENO: result: no" >&5 11277echo "${ECHO_T}no" >&6; } 11278 # 11279 # OK, what about "yydebug"? 11280 # 11281 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 11282echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; } 11283 cat >conftest.$ac_ext <<_ACEOF 11284/* confdefs.h. */ 11285_ACEOF 11286cat confdefs.h >>conftest.$ac_ext 11287cat >>conftest.$ac_ext <<_ACEOF 11288/* end confdefs.h. */ 11289 11290int 11291main () 11292{ 11293 11294 extern int yydebug; 11295 11296 return yydebug; 11297 11298 ; 11299 return 0; 11300} 11301_ACEOF 11302rm -f conftest.$ac_objext conftest$ac_exeext 11303if { (ac_try="$ac_link" 11304case "(($ac_try" in 11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11306 *) ac_try_echo=$ac_try;; 11307esac 11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11309 (eval "$ac_link") 2>conftest.er1 11310 ac_status=$? 11311 grep -v '^ *+' conftest.er1 >conftest.err 11312 rm -f conftest.er1 11313 cat conftest.err >&5 11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11315 (exit $ac_status); } && { 11316 test -z "$ac_c_werror_flag" || 11317 test ! -s conftest.err 11318 } && test -s conftest$ac_exeext && 11319 $as_test_x conftest$ac_exeext; then 11320 ac_lbl_cv_yydebug_defined=yes 11321else 11322 echo "$as_me: failed program was:" >&5 11323sed 's/^/| /' conftest.$ac_ext >&5 11324 11325 ac_lbl_cv_yydebug_defined=no 11326fi 11327 11328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11329 conftest$ac_exeext conftest.$ac_ext 11330 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 11331 { echo "$as_me:$LINENO: result: yes" >&5 11332echo "${ECHO_T}yes" >&6; } 11333 cat >>confdefs.h <<\_ACEOF 11334#define HAVE_YYDEBUG 1 11335_ACEOF 11336 11337 else 11338 { echo "$as_me:$LINENO: result: no" >&5 11339echo "${ECHO_T}no" >&6; } 11340 fi 11341fi 11342 11343for ac_func in bpf_dump 11344do 11345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11346{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11348if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11349 echo $ECHO_N "(cached) $ECHO_C" >&6 11350else 11351 cat >conftest.$ac_ext <<_ACEOF 11352/* confdefs.h. */ 11353_ACEOF 11354cat confdefs.h >>conftest.$ac_ext 11355cat >>conftest.$ac_ext <<_ACEOF 11356/* end confdefs.h. */ 11357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11359#define $ac_func innocuous_$ac_func 11360 11361/* System header to define __stub macros and hopefully few prototypes, 11362 which can conflict with char $ac_func (); below. 11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11364 <limits.h> exists even on freestanding compilers. */ 11365 11366#ifdef __STDC__ 11367# include <limits.h> 11368#else 11369# include <assert.h> 11370#endif 11371 11372#undef $ac_func 11373 11374/* Override any GCC internal prototype to avoid an error. 11375 Use char because int might match the return type of a GCC 11376 builtin and then its argument prototype would still apply. */ 11377#ifdef __cplusplus 11378extern "C" 11379#endif 11380char $ac_func (); 11381/* The GNU C library defines this for functions which it implements 11382 to always fail with ENOSYS. Some functions are actually named 11383 something starting with __ and the normal name is an alias. */ 11384#if defined __stub_$ac_func || defined __stub___$ac_func 11385choke me 11386#endif 11387 11388int 11389main () 11390{ 11391return $ac_func (); 11392 ; 11393 return 0; 11394} 11395_ACEOF 11396rm -f conftest.$ac_objext conftest$ac_exeext 11397if { (ac_try="$ac_link" 11398case "(($ac_try" in 11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11400 *) ac_try_echo=$ac_try;; 11401esac 11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11403 (eval "$ac_link") 2>conftest.er1 11404 ac_status=$? 11405 grep -v '^ *+' conftest.er1 >conftest.err 11406 rm -f conftest.er1 11407 cat conftest.err >&5 11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); } && { 11410 test -z "$ac_c_werror_flag" || 11411 test ! -s conftest.err 11412 } && test -s conftest$ac_exeext && 11413 $as_test_x conftest$ac_exeext; then 11414 eval "$as_ac_var=yes" 11415else 11416 echo "$as_me: failed program was:" >&5 11417sed 's/^/| /' conftest.$ac_ext >&5 11418 11419 eval "$as_ac_var=no" 11420fi 11421 11422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11423 conftest$ac_exeext conftest.$ac_ext 11424fi 11425ac_res=`eval echo '${'$as_ac_var'}'` 11426 { echo "$as_me:$LINENO: result: $ac_res" >&5 11427echo "${ECHO_T}$ac_res" >&6; } 11428if test `eval echo '${'$as_ac_var'}'` = yes; then 11429 cat >>confdefs.h <<_ACEOF 11430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11431_ACEOF 11432 11433else 11434 case " $LIBOBJS " in 11435 *" $ac_func.$ac_objext "* ) ;; 11436 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11437 ;; 11438esac 11439 11440fi 11441done 11442 11443 11444V_GROUP=0 11445if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 11446 V_GROUP=wheel 11447fi 11448case "$host_os" in 11449 11450aix*) 11451 cat >>confdefs.h <<\_ACEOF 11452#define _SUN 1 11453_ACEOF 11454 11455 ;; 11456 11457irix*) 11458 V_GROUP=sys 11459 ;; 11460 11461osf*) 11462 V_GROUP=system 11463 ;; 11464 11465solaris*) 11466 V_GROUP=sys 11467 ;; 11468esac 11469 11470if test -f /dev/bpf0 ; then 11471 V_GROUP=bpf 11472fi 11473 11474# 11475# Check for some headers introduced in later versions of libpcap 11476# and used by some printers. 11477# 11478savedcppflags="$CPPFLAGS" 11479CPPFLAGS="$CPPFLAGS $V_INCLS" 11480 11481for ac_header in pcap/bluetooth.h 11482do 11483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11488 echo $ECHO_N "(cached) $ECHO_C" >&6 11489fi 11490ac_res=`eval echo '${'$as_ac_Header'}'` 11491 { echo "$as_me:$LINENO: result: $ac_res" >&5 11492echo "${ECHO_T}$ac_res" >&6; } 11493else 11494 # Is the header compilable? 11495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11497cat >conftest.$ac_ext <<_ACEOF 11498/* confdefs.h. */ 11499_ACEOF 11500cat confdefs.h >>conftest.$ac_ext 11501cat >>conftest.$ac_ext <<_ACEOF 11502/* end confdefs.h. */ 11503$ac_includes_default 11504#include <$ac_header> 11505_ACEOF 11506rm -f conftest.$ac_objext 11507if { (ac_try="$ac_compile" 11508case "(($ac_try" in 11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11510 *) ac_try_echo=$ac_try;; 11511esac 11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11513 (eval "$ac_compile") 2>conftest.er1 11514 ac_status=$? 11515 grep -v '^ *+' conftest.er1 >conftest.err 11516 rm -f conftest.er1 11517 cat conftest.err >&5 11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11519 (exit $ac_status); } && { 11520 test -z "$ac_c_werror_flag" || 11521 test ! -s conftest.err 11522 } && test -s conftest.$ac_objext; then 11523 ac_header_compiler=yes 11524else 11525 echo "$as_me: failed program was:" >&5 11526sed 's/^/| /' conftest.$ac_ext >&5 11527 11528 ac_header_compiler=no 11529fi 11530 11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11533echo "${ECHO_T}$ac_header_compiler" >&6; } 11534 11535# Is the header present? 11536{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11538cat >conftest.$ac_ext <<_ACEOF 11539/* confdefs.h. */ 11540_ACEOF 11541cat confdefs.h >>conftest.$ac_ext 11542cat >>conftest.$ac_ext <<_ACEOF 11543/* end confdefs.h. */ 11544#include <$ac_header> 11545_ACEOF 11546if { (ac_try="$ac_cpp conftest.$ac_ext" 11547case "(($ac_try" in 11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11549 *) ac_try_echo=$ac_try;; 11550esac 11551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11553 ac_status=$? 11554 grep -v '^ *+' conftest.er1 >conftest.err 11555 rm -f conftest.er1 11556 cat conftest.err >&5 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11558 (exit $ac_status); } >/dev/null && { 11559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11560 test ! -s conftest.err 11561 }; then 11562 ac_header_preproc=yes 11563else 11564 echo "$as_me: failed program was:" >&5 11565sed 's/^/| /' conftest.$ac_ext >&5 11566 11567 ac_header_preproc=no 11568fi 11569 11570rm -f conftest.err conftest.$ac_ext 11571{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11572echo "${ECHO_T}$ac_header_preproc" >&6; } 11573 11574# So? What about this header? 11575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11576 yes:no: ) 11577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11581 ac_header_preproc=yes 11582 ;; 11583 no:yes:* ) 11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11591echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11596 11597 ;; 11598esac 11599{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11602 echo $ECHO_N "(cached) $ECHO_C" >&6 11603else 11604 eval "$as_ac_Header=\$ac_header_preproc" 11605fi 11606ac_res=`eval echo '${'$as_ac_Header'}'` 11607 { echo "$as_me:$LINENO: result: $ac_res" >&5 11608echo "${ECHO_T}$ac_res" >&6; } 11609 11610fi 11611if test `eval echo '${'$as_ac_Header'}'` = yes; then 11612 cat >>confdefs.h <<_ACEOF 11613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11614_ACEOF 11615 11616fi 11617 11618done 11619 11620CPPFLAGS="$savedcppflags" 11621 11622 11623for ac_header in sys/bitypes.h 11624do 11625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11630 echo $ECHO_N "(cached) $ECHO_C" >&6 11631fi 11632ac_res=`eval echo '${'$as_ac_Header'}'` 11633 { echo "$as_me:$LINENO: result: $ac_res" >&5 11634echo "${ECHO_T}$ac_res" >&6; } 11635else 11636 # Is the header compilable? 11637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11639cat >conftest.$ac_ext <<_ACEOF 11640/* confdefs.h. */ 11641_ACEOF 11642cat confdefs.h >>conftest.$ac_ext 11643cat >>conftest.$ac_ext <<_ACEOF 11644/* end confdefs.h. */ 11645$ac_includes_default 11646#include <$ac_header> 11647_ACEOF 11648rm -f conftest.$ac_objext 11649if { (ac_try="$ac_compile" 11650case "(($ac_try" in 11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11652 *) ac_try_echo=$ac_try;; 11653esac 11654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11655 (eval "$ac_compile") 2>conftest.er1 11656 ac_status=$? 11657 grep -v '^ *+' conftest.er1 >conftest.err 11658 rm -f conftest.er1 11659 cat conftest.err >&5 11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11661 (exit $ac_status); } && { 11662 test -z "$ac_c_werror_flag" || 11663 test ! -s conftest.err 11664 } && test -s conftest.$ac_objext; then 11665 ac_header_compiler=yes 11666else 11667 echo "$as_me: failed program was:" >&5 11668sed 's/^/| /' conftest.$ac_ext >&5 11669 11670 ac_header_compiler=no 11671fi 11672 11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11675echo "${ECHO_T}$ac_header_compiler" >&6; } 11676 11677# Is the header present? 11678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11680cat >conftest.$ac_ext <<_ACEOF 11681/* confdefs.h. */ 11682_ACEOF 11683cat confdefs.h >>conftest.$ac_ext 11684cat >>conftest.$ac_ext <<_ACEOF 11685/* end confdefs.h. */ 11686#include <$ac_header> 11687_ACEOF 11688if { (ac_try="$ac_cpp conftest.$ac_ext" 11689case "(($ac_try" in 11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11691 *) ac_try_echo=$ac_try;; 11692esac 11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11695 ac_status=$? 11696 grep -v '^ *+' conftest.er1 >conftest.err 11697 rm -f conftest.er1 11698 cat conftest.err >&5 11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11700 (exit $ac_status); } >/dev/null && { 11701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11702 test ! -s conftest.err 11703 }; then 11704 ac_header_preproc=yes 11705else 11706 echo "$as_me: failed program was:" >&5 11707sed 's/^/| /' conftest.$ac_ext >&5 11708 11709 ac_header_preproc=no 11710fi 11711 11712rm -f conftest.err conftest.$ac_ext 11713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11714echo "${ECHO_T}$ac_header_preproc" >&6; } 11715 11716# So? What about this header? 11717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11718 yes:no: ) 11719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11723 ac_header_preproc=yes 11724 ;; 11725 no:yes:* ) 11726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11738 11739 ;; 11740esac 11741{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11744 echo $ECHO_N "(cached) $ECHO_C" >&6 11745else 11746 eval "$as_ac_Header=\$ac_header_preproc" 11747fi 11748ac_res=`eval echo '${'$as_ac_Header'}'` 11749 { echo "$as_me:$LINENO: result: $ac_res" >&5 11750echo "${ECHO_T}$ac_res" >&6; } 11751 11752fi 11753if test `eval echo '${'$as_ac_Header'}'` = yes; then 11754 cat >>confdefs.h <<_ACEOF 11755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11756_ACEOF 11757 11758fi 11759 11760done 11761 11762 11763{ echo "$as_me:$LINENO: checking for int8_t" >&5 11764echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } 11765if test "${ac_cv_type_int8_t+set}" = set; then 11766 echo $ECHO_N "(cached) $ECHO_C" >&6 11767else 11768 cat >conftest.$ac_ext <<_ACEOF 11769/* confdefs.h. */ 11770_ACEOF 11771cat confdefs.h >>conftest.$ac_ext 11772cat >>conftest.$ac_ext <<_ACEOF 11773/* end confdefs.h. */ 11774$ac_includes_default 11775typedef int8_t ac__type_new_; 11776int 11777main () 11778{ 11779if ((ac__type_new_ *) 0) 11780 return 0; 11781if (sizeof (ac__type_new_)) 11782 return 0; 11783 ; 11784 return 0; 11785} 11786_ACEOF 11787rm -f conftest.$ac_objext 11788if { (ac_try="$ac_compile" 11789case "(($ac_try" in 11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11791 *) ac_try_echo=$ac_try;; 11792esac 11793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11794 (eval "$ac_compile") 2>conftest.er1 11795 ac_status=$? 11796 grep -v '^ *+' conftest.er1 >conftest.err 11797 rm -f conftest.er1 11798 cat conftest.err >&5 11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); } && { 11801 test -z "$ac_c_werror_flag" || 11802 test ! -s conftest.err 11803 } && test -s conftest.$ac_objext; then 11804 ac_cv_type_int8_t=yes 11805else 11806 echo "$as_me: failed program was:" >&5 11807sed 's/^/| /' conftest.$ac_ext >&5 11808 11809 ac_cv_type_int8_t=no 11810fi 11811 11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11813fi 11814{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11815echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } 11816if test $ac_cv_type_int8_t = yes; then 11817 : 11818else 11819 11820cat >>confdefs.h <<\_ACEOF 11821#define int8_t signed char 11822_ACEOF 11823 11824fi 11825 11826{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 11827echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } 11828if test "${ac_cv_type_u_int8_t+set}" = set; then 11829 echo $ECHO_N "(cached) $ECHO_C" >&6 11830else 11831 cat >conftest.$ac_ext <<_ACEOF 11832/* confdefs.h. */ 11833_ACEOF 11834cat confdefs.h >>conftest.$ac_ext 11835cat >>conftest.$ac_ext <<_ACEOF 11836/* end confdefs.h. */ 11837$ac_includes_default 11838#ifdef HAVE_SYS_BITYPES_H 11839#include <sys/bitypes.h> 11840#endif 11841 11842typedef u_int8_t ac__type_new_; 11843int 11844main () 11845{ 11846if ((ac__type_new_ *) 0) 11847 return 0; 11848if (sizeof (ac__type_new_)) 11849 return 0; 11850 ; 11851 return 0; 11852} 11853_ACEOF 11854rm -f conftest.$ac_objext 11855if { (ac_try="$ac_compile" 11856case "(($ac_try" in 11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11858 *) ac_try_echo=$ac_try;; 11859esac 11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11861 (eval "$ac_compile") 2>conftest.er1 11862 ac_status=$? 11863 grep -v '^ *+' conftest.er1 >conftest.err 11864 rm -f conftest.er1 11865 cat conftest.err >&5 11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11867 (exit $ac_status); } && { 11868 test -z "$ac_c_werror_flag" || 11869 test ! -s conftest.err 11870 } && test -s conftest.$ac_objext; then 11871 ac_cv_type_u_int8_t=yes 11872else 11873 echo "$as_me: failed program was:" >&5 11874sed 's/^/| /' conftest.$ac_ext >&5 11875 11876 ac_cv_type_u_int8_t=no 11877fi 11878 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11880fi 11881{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 11882echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } 11883if test $ac_cv_type_u_int8_t = yes; then 11884 : 11885else 11886 11887cat >>confdefs.h <<\_ACEOF 11888#define u_int8_t unsigned char 11889_ACEOF 11890 11891fi 11892 11893{ echo "$as_me:$LINENO: checking for int16_t" >&5 11894echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } 11895if test "${ac_cv_type_int16_t+set}" = set; then 11896 echo $ECHO_N "(cached) $ECHO_C" >&6 11897else 11898 cat >conftest.$ac_ext <<_ACEOF 11899/* confdefs.h. */ 11900_ACEOF 11901cat confdefs.h >>conftest.$ac_ext 11902cat >>conftest.$ac_ext <<_ACEOF 11903/* end confdefs.h. */ 11904$ac_includes_default 11905typedef int16_t ac__type_new_; 11906int 11907main () 11908{ 11909if ((ac__type_new_ *) 0) 11910 return 0; 11911if (sizeof (ac__type_new_)) 11912 return 0; 11913 ; 11914 return 0; 11915} 11916_ACEOF 11917rm -f conftest.$ac_objext 11918if { (ac_try="$ac_compile" 11919case "(($ac_try" in 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11921 *) ac_try_echo=$ac_try;; 11922esac 11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11924 (eval "$ac_compile") 2>conftest.er1 11925 ac_status=$? 11926 grep -v '^ *+' conftest.er1 >conftest.err 11927 rm -f conftest.er1 11928 cat conftest.err >&5 11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11930 (exit $ac_status); } && { 11931 test -z "$ac_c_werror_flag" || 11932 test ! -s conftest.err 11933 } && test -s conftest.$ac_objext; then 11934 ac_cv_type_int16_t=yes 11935else 11936 echo "$as_me: failed program was:" >&5 11937sed 's/^/| /' conftest.$ac_ext >&5 11938 11939 ac_cv_type_int16_t=no 11940fi 11941 11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11943fi 11944{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11945echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } 11946if test $ac_cv_type_int16_t = yes; then 11947 : 11948else 11949 11950cat >>confdefs.h <<\_ACEOF 11951#define int16_t short 11952_ACEOF 11953 11954fi 11955 11956{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 11957echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } 11958if test "${ac_cv_type_u_int16_t+set}" = set; then 11959 echo $ECHO_N "(cached) $ECHO_C" >&6 11960else 11961 cat >conftest.$ac_ext <<_ACEOF 11962/* confdefs.h. */ 11963_ACEOF 11964cat confdefs.h >>conftest.$ac_ext 11965cat >>conftest.$ac_ext <<_ACEOF 11966/* end confdefs.h. */ 11967$ac_includes_default 11968#ifdef HAVE_SYS_BITYPES_H 11969#include <sys/bitypes.h> 11970#endif 11971 11972typedef u_int16_t ac__type_new_; 11973int 11974main () 11975{ 11976if ((ac__type_new_ *) 0) 11977 return 0; 11978if (sizeof (ac__type_new_)) 11979 return 0; 11980 ; 11981 return 0; 11982} 11983_ACEOF 11984rm -f conftest.$ac_objext 11985if { (ac_try="$ac_compile" 11986case "(($ac_try" in 11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11988 *) ac_try_echo=$ac_try;; 11989esac 11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11991 (eval "$ac_compile") 2>conftest.er1 11992 ac_status=$? 11993 grep -v '^ *+' conftest.er1 >conftest.err 11994 rm -f conftest.er1 11995 cat conftest.err >&5 11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11997 (exit $ac_status); } && { 11998 test -z "$ac_c_werror_flag" || 11999 test ! -s conftest.err 12000 } && test -s conftest.$ac_objext; then 12001 ac_cv_type_u_int16_t=yes 12002else 12003 echo "$as_me: failed program was:" >&5 12004sed 's/^/| /' conftest.$ac_ext >&5 12005 12006 ac_cv_type_u_int16_t=no 12007fi 12008 12009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12010fi 12011{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 12012echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } 12013if test $ac_cv_type_u_int16_t = yes; then 12014 : 12015else 12016 12017cat >>confdefs.h <<\_ACEOF 12018#define u_int16_t unsigned short 12019_ACEOF 12020 12021fi 12022 12023{ echo "$as_me:$LINENO: checking for int32_t" >&5 12024echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } 12025if test "${ac_cv_type_int32_t+set}" = set; then 12026 echo $ECHO_N "(cached) $ECHO_C" >&6 12027else 12028 cat >conftest.$ac_ext <<_ACEOF 12029/* confdefs.h. */ 12030_ACEOF 12031cat confdefs.h >>conftest.$ac_ext 12032cat >>conftest.$ac_ext <<_ACEOF 12033/* end confdefs.h. */ 12034$ac_includes_default 12035typedef int32_t ac__type_new_; 12036int 12037main () 12038{ 12039if ((ac__type_new_ *) 0) 12040 return 0; 12041if (sizeof (ac__type_new_)) 12042 return 0; 12043 ; 12044 return 0; 12045} 12046_ACEOF 12047rm -f conftest.$ac_objext 12048if { (ac_try="$ac_compile" 12049case "(($ac_try" in 12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12051 *) ac_try_echo=$ac_try;; 12052esac 12053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12054 (eval "$ac_compile") 2>conftest.er1 12055 ac_status=$? 12056 grep -v '^ *+' conftest.er1 >conftest.err 12057 rm -f conftest.er1 12058 cat conftest.err >&5 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); } && { 12061 test -z "$ac_c_werror_flag" || 12062 test ! -s conftest.err 12063 } && test -s conftest.$ac_objext; then 12064 ac_cv_type_int32_t=yes 12065else 12066 echo "$as_me: failed program was:" >&5 12067sed 's/^/| /' conftest.$ac_ext >&5 12068 12069 ac_cv_type_int32_t=no 12070fi 12071 12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12073fi 12074{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 12075echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } 12076if test $ac_cv_type_int32_t = yes; then 12077 : 12078else 12079 12080cat >>confdefs.h <<\_ACEOF 12081#define int32_t int 12082_ACEOF 12083 12084fi 12085 12086{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 12087echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 12088if test "${ac_cv_type_u_int32_t+set}" = set; then 12089 echo $ECHO_N "(cached) $ECHO_C" >&6 12090else 12091 cat >conftest.$ac_ext <<_ACEOF 12092/* confdefs.h. */ 12093_ACEOF 12094cat confdefs.h >>conftest.$ac_ext 12095cat >>conftest.$ac_ext <<_ACEOF 12096/* end confdefs.h. */ 12097$ac_includes_default 12098#ifdef HAVE_SYS_BITYPES_H 12099#include <sys/bitypes.h> 12100#endif 12101 12102typedef u_int32_t ac__type_new_; 12103int 12104main () 12105{ 12106if ((ac__type_new_ *) 0) 12107 return 0; 12108if (sizeof (ac__type_new_)) 12109 return 0; 12110 ; 12111 return 0; 12112} 12113_ACEOF 12114rm -f conftest.$ac_objext 12115if { (ac_try="$ac_compile" 12116case "(($ac_try" in 12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12118 *) ac_try_echo=$ac_try;; 12119esac 12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12121 (eval "$ac_compile") 2>conftest.er1 12122 ac_status=$? 12123 grep -v '^ *+' conftest.er1 >conftest.err 12124 rm -f conftest.er1 12125 cat conftest.err >&5 12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12127 (exit $ac_status); } && { 12128 test -z "$ac_c_werror_flag" || 12129 test ! -s conftest.err 12130 } && test -s conftest.$ac_objext; then 12131 ac_cv_type_u_int32_t=yes 12132else 12133 echo "$as_me: failed program was:" >&5 12134sed 's/^/| /' conftest.$ac_ext >&5 12135 12136 ac_cv_type_u_int32_t=no 12137fi 12138 12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12140fi 12141{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 12142echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 12143if test $ac_cv_type_u_int32_t = yes; then 12144 : 12145else 12146 12147cat >>confdefs.h <<\_ACEOF 12148#define u_int32_t unsigned int 12149_ACEOF 12150 12151fi 12152 12153{ echo "$as_me:$LINENO: checking for int64_t" >&5 12154echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 12155if test "${ac_cv_type_int64_t+set}" = set; then 12156 echo $ECHO_N "(cached) $ECHO_C" >&6 12157else 12158 cat >conftest.$ac_ext <<_ACEOF 12159/* confdefs.h. */ 12160_ACEOF 12161cat confdefs.h >>conftest.$ac_ext 12162cat >>conftest.$ac_ext <<_ACEOF 12163/* end confdefs.h. */ 12164$ac_includes_default 12165typedef int64_t ac__type_new_; 12166int 12167main () 12168{ 12169if ((ac__type_new_ *) 0) 12170 return 0; 12171if (sizeof (ac__type_new_)) 12172 return 0; 12173 ; 12174 return 0; 12175} 12176_ACEOF 12177rm -f conftest.$ac_objext 12178if { (ac_try="$ac_compile" 12179case "(($ac_try" in 12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12181 *) ac_try_echo=$ac_try;; 12182esac 12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12184 (eval "$ac_compile") 2>conftest.er1 12185 ac_status=$? 12186 grep -v '^ *+' conftest.er1 >conftest.err 12187 rm -f conftest.er1 12188 cat conftest.err >&5 12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12190 (exit $ac_status); } && { 12191 test -z "$ac_c_werror_flag" || 12192 test ! -s conftest.err 12193 } && test -s conftest.$ac_objext; then 12194 ac_cv_type_int64_t=yes 12195else 12196 echo "$as_me: failed program was:" >&5 12197sed 's/^/| /' conftest.$ac_ext >&5 12198 12199 ac_cv_type_int64_t=no 12200fi 12201 12202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12203fi 12204{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 12205echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 12206if test $ac_cv_type_int64_t = yes; then 12207 : 12208else 12209 12210cat >>confdefs.h <<\_ACEOF 12211#define int64_t long long 12212_ACEOF 12213 12214fi 12215 12216{ echo "$as_me:$LINENO: checking for u_int64_t" >&5 12217echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 12218if test "${ac_cv_type_u_int64_t+set}" = set; then 12219 echo $ECHO_N "(cached) $ECHO_C" >&6 12220else 12221 cat >conftest.$ac_ext <<_ACEOF 12222/* confdefs.h. */ 12223_ACEOF 12224cat confdefs.h >>conftest.$ac_ext 12225cat >>conftest.$ac_ext <<_ACEOF 12226/* end confdefs.h. */ 12227$ac_includes_default 12228#ifdef HAVE_SYS_BITYPES_H 12229#include <sys/bitypes.h> 12230#endif 12231 12232typedef u_int64_t ac__type_new_; 12233int 12234main () 12235{ 12236if ((ac__type_new_ *) 0) 12237 return 0; 12238if (sizeof (ac__type_new_)) 12239 return 0; 12240 ; 12241 return 0; 12242} 12243_ACEOF 12244rm -f conftest.$ac_objext 12245if { (ac_try="$ac_compile" 12246case "(($ac_try" in 12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12248 *) ac_try_echo=$ac_try;; 12249esac 12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12251 (eval "$ac_compile") 2>conftest.er1 12252 ac_status=$? 12253 grep -v '^ *+' conftest.er1 >conftest.err 12254 rm -f conftest.er1 12255 cat conftest.err >&5 12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12257 (exit $ac_status); } && { 12258 test -z "$ac_c_werror_flag" || 12259 test ! -s conftest.err 12260 } && test -s conftest.$ac_objext; then 12261 ac_cv_type_u_int64_t=yes 12262else 12263 echo "$as_me: failed program was:" >&5 12264sed 's/^/| /' conftest.$ac_ext >&5 12265 12266 ac_cv_type_u_int64_t=no 12267fi 12268 12269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12270fi 12271{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 12272echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 12273if test $ac_cv_type_u_int64_t = yes; then 12274 : 12275else 12276 12277cat >>confdefs.h <<\_ACEOF 12278#define u_int64_t unsigned long long 12279_ACEOF 12280 12281fi 12282 12283 12284# 12285# We can't just check for <inttypes.h> - some systems have one that 12286# doesn't define all the PRI[doxu]64 macros. 12287# 12288 12289for ac_header in inttypes.h 12290do 12291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12296 echo $ECHO_N "(cached) $ECHO_C" >&6 12297fi 12298ac_res=`eval echo '${'$as_ac_Header'}'` 12299 { echo "$as_me:$LINENO: result: $ac_res" >&5 12300echo "${ECHO_T}$ac_res" >&6; } 12301else 12302 # Is the header compilable? 12303{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12305cat >conftest.$ac_ext <<_ACEOF 12306/* confdefs.h. */ 12307_ACEOF 12308cat confdefs.h >>conftest.$ac_ext 12309cat >>conftest.$ac_ext <<_ACEOF 12310/* end confdefs.h. */ 12311$ac_includes_default 12312#include <$ac_header> 12313_ACEOF 12314rm -f conftest.$ac_objext 12315if { (ac_try="$ac_compile" 12316case "(($ac_try" in 12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12318 *) ac_try_echo=$ac_try;; 12319esac 12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12321 (eval "$ac_compile") 2>conftest.er1 12322 ac_status=$? 12323 grep -v '^ *+' conftest.er1 >conftest.err 12324 rm -f conftest.er1 12325 cat conftest.err >&5 12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12327 (exit $ac_status); } && { 12328 test -z "$ac_c_werror_flag" || 12329 test ! -s conftest.err 12330 } && test -s conftest.$ac_objext; then 12331 ac_header_compiler=yes 12332else 12333 echo "$as_me: failed program was:" >&5 12334sed 's/^/| /' conftest.$ac_ext >&5 12335 12336 ac_header_compiler=no 12337fi 12338 12339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12340{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12341echo "${ECHO_T}$ac_header_compiler" >&6; } 12342 12343# Is the header present? 12344{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12346cat >conftest.$ac_ext <<_ACEOF 12347/* confdefs.h. */ 12348_ACEOF 12349cat confdefs.h >>conftest.$ac_ext 12350cat >>conftest.$ac_ext <<_ACEOF 12351/* end confdefs.h. */ 12352#include <$ac_header> 12353_ACEOF 12354if { (ac_try="$ac_cpp conftest.$ac_ext" 12355case "(($ac_try" in 12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12357 *) ac_try_echo=$ac_try;; 12358esac 12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12361 ac_status=$? 12362 grep -v '^ *+' conftest.er1 >conftest.err 12363 rm -f conftest.er1 12364 cat conftest.err >&5 12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12366 (exit $ac_status); } >/dev/null && { 12367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12368 test ! -s conftest.err 12369 }; then 12370 ac_header_preproc=yes 12371else 12372 echo "$as_me: failed program was:" >&5 12373sed 's/^/| /' conftest.$ac_ext >&5 12374 12375 ac_header_preproc=no 12376fi 12377 12378rm -f conftest.err conftest.$ac_ext 12379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12380echo "${ECHO_T}$ac_header_preproc" >&6; } 12381 12382# So? What about this header? 12383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12384 yes:no: ) 12385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12389 ac_header_preproc=yes 12390 ;; 12391 no:yes:* ) 12392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12404 12405 ;; 12406esac 12407{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12410 echo $ECHO_N "(cached) $ECHO_C" >&6 12411else 12412 eval "$as_ac_Header=\$ac_header_preproc" 12413fi 12414ac_res=`eval echo '${'$as_ac_Header'}'` 12415 { echo "$as_me:$LINENO: result: $ac_res" >&5 12416echo "${ECHO_T}$ac_res" >&6; } 12417 12418fi 12419if test `eval echo '${'$as_ac_Header'}'` = yes; then 12420 cat >>confdefs.h <<_ACEOF 12421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12422_ACEOF 12423 12424 # 12425 # OK, we have inttypes.h, but does it define those macros? 12426 # 12427 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 12428echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; } 12429 cat >conftest.$ac_ext <<_ACEOF 12430 12431 /* confdefs.h. */ 12432_ACEOF 12433cat confdefs.h >>conftest.$ac_ext 12434cat >>conftest.$ac_ext <<_ACEOF 12435/* end confdefs.h. */ 12436 12437 #include <inttypes.h> 12438 #include <stdio.h> 12439 #include <sys/types.h> 12440 #ifdef HAVE_SYS_BITYPES_H 12441 #include <sys/bitypes.h> 12442 #endif 12443 12444 main() 12445 { 12446 printf("%" PRId64 "\n", (u_int64_t)1); 12447 printf("%" PRIo64 "\n", (u_int64_t)1); 12448 printf("%" PRIx64 "\n", (u_int64_t)1); 12449 printf("%" PRIu64 "\n", (u_int64_t)1); 12450 } 12451 12452 12453_ACEOF 12454rm -f conftest.$ac_objext 12455if { (ac_try="$ac_compile" 12456case "(($ac_try" in 12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12458 *) ac_try_echo=$ac_try;; 12459esac 12460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12461 (eval "$ac_compile") 2>conftest.er1 12462 ac_status=$? 12463 grep -v '^ *+' conftest.er1 >conftest.err 12464 rm -f conftest.er1 12465 cat conftest.err >&5 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); } && { 12468 test -z "$ac_c_werror_flag" || 12469 test ! -s conftest.err 12470 } && test -s conftest.$ac_objext; then 12471 12472 { echo "$as_me:$LINENO: result: yes" >&5 12473echo "${ECHO_T}yes" >&6; } 12474 ac_lbl_inttypes_h_defines_formats=yes 12475 12476else 12477 echo "$as_me: failed program was:" >&5 12478sed 's/^/| /' conftest.$ac_ext >&5 12479 12480 12481 { echo "$as_me:$LINENO: result: no" >&5 12482echo "${ECHO_T}no" >&6; } 12483 ac_lbl_inttypes_h_defines_formats=no 12484 12485fi 12486 12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12488 12489else 12490 12491 # 12492 # We don't have inttypes.h, so it obviously can't define those 12493 # macros. 12494 # 12495 ac_lbl_inttypes_h_defines_formats=no 12496 12497fi 12498 12499done 12500 12501if test "$ac_lbl_inttypes_h_defines_formats" = no; then 12502 12503 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5 12504echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; } 12505 if test "$cross_compiling" = yes; then 12506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12507See \`config.log' for more details." >&5 12508echo "$as_me: error: cannot run test program while cross compiling 12509See \`config.log' for more details." >&2;} 12510 { (exit 1); exit 1; }; } 12511else 12512 cat >conftest.$ac_ext <<_ACEOF 12513 12514 /* confdefs.h. */ 12515_ACEOF 12516cat confdefs.h >>conftest.$ac_ext 12517cat >>conftest.$ac_ext <<_ACEOF 12518/* end confdefs.h. */ 12519 12520# ifdef HAVE_INTTYPES_H 12521 #include <inttypes.h> 12522# endif 12523# ifdef HAVE_SYS_BITYPES_H 12524 #include <sys/bitypes.h> 12525# endif 12526 #include <stdio.h> 12527 #include <sys/types.h> 12528 12529 main() 12530 { 12531 u_int64_t t = 1; 12532 char strbuf[16+1]; 12533 sprintf(strbuf, "%016lx", t << 32); 12534 if (strcmp(strbuf, "0000000100000000") == 0) 12535 exit(0); 12536 else 12537 exit(1); 12538 } 12539 12540 12541_ACEOF 12542rm -f conftest$ac_exeext 12543if { (ac_try="$ac_link" 12544case "(($ac_try" in 12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12546 *) ac_try_echo=$ac_try;; 12547esac 12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12549 (eval "$ac_link") 2>&5 12550 ac_status=$? 12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12553 { (case "(($ac_try" in 12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12555 *) ac_try_echo=$ac_try;; 12556esac 12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12558 (eval "$ac_try") 2>&5 12559 ac_status=$? 12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12561 (exit $ac_status); }; }; then 12562 12563 cat >>confdefs.h <<\_ACEOF 12564#define PRId64 "ld" 12565_ACEOF 12566 12567 cat >>confdefs.h <<\_ACEOF 12568#define PRIo64 "lo" 12569_ACEOF 12570 12571 cat >>confdefs.h <<\_ACEOF 12572#define PRIx64 "lx" 12573_ACEOF 12574 12575 cat >>confdefs.h <<\_ACEOF 12576#define PRIu64 "lu" 12577_ACEOF 12578 12579 { echo "$as_me:$LINENO: result: yes" >&5 12580echo "${ECHO_T}yes" >&6; } 12581 12582else 12583 echo "$as_me: program exited with status $ac_status" >&5 12584echo "$as_me: failed program was:" >&5 12585sed 's/^/| /' conftest.$ac_ext >&5 12586 12587( exit $ac_status ) 12588 12589 { echo "$as_me:$LINENO: result: no" >&5 12590echo "${ECHO_T}no" >&6; } 12591 12592 12593 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5 12594echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; } 12595 if test "$cross_compiling" = yes; then 12596 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12597See \`config.log' for more details." >&5 12598echo "$as_me: error: cannot run test program while cross compiling 12599See \`config.log' for more details." >&2;} 12600 { (exit 1); exit 1; }; } 12601else 12602 cat >conftest.$ac_ext <<_ACEOF 12603 12604 /* confdefs.h. */ 12605_ACEOF 12606cat confdefs.h >>conftest.$ac_ext 12607cat >>conftest.$ac_ext <<_ACEOF 12608/* end confdefs.h. */ 12609 12610# ifdef HAVE_INTTYPES_H 12611 #include <inttypes.h> 12612# endif 12613# ifdef HAVE_SYS_BITYPES_H 12614 #include <sys/bitypes.h> 12615# endif 12616 #include <stdio.h> 12617 #include <sys/types.h> 12618 12619 main() 12620 { 12621 u_int64_t t = 1; 12622 char strbuf[16+1]; 12623 sprintf(strbuf, "%016llx", t << 32); 12624 if (strcmp(strbuf, "0000000100000000") == 0) 12625 exit(0); 12626 else 12627 exit(1); 12628 } 12629 12630 12631_ACEOF 12632rm -f conftest$ac_exeext 12633if { (ac_try="$ac_link" 12634case "(($ac_try" in 12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12636 *) ac_try_echo=$ac_try;; 12637esac 12638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12639 (eval "$ac_link") 2>&5 12640 ac_status=$? 12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12643 { (case "(($ac_try" in 12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12645 *) ac_try_echo=$ac_try;; 12646esac 12647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12648 (eval "$ac_try") 2>&5 12649 ac_status=$? 12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12651 (exit $ac_status); }; }; then 12652 12653 cat >>confdefs.h <<\_ACEOF 12654#define PRId64 "lld" 12655_ACEOF 12656 12657 cat >>confdefs.h <<\_ACEOF 12658#define PRIo64 "llo" 12659_ACEOF 12660 12661 cat >>confdefs.h <<\_ACEOF 12662#define PRIx64 "llx" 12663_ACEOF 12664 12665 cat >>confdefs.h <<\_ACEOF 12666#define PRIu64 "llu" 12667_ACEOF 12668 12669 { echo "$as_me:$LINENO: result: yes" >&5 12670echo "${ECHO_T}yes" >&6; } 12671 12672else 12673 echo "$as_me: program exited with status $ac_status" >&5 12674echo "$as_me: failed program was:" >&5 12675sed 's/^/| /' conftest.$ac_ext >&5 12676 12677( exit $ac_status ) 12678 12679 { echo "$as_me:$LINENO: result: no" >&5 12680echo "${ECHO_T}no" >&6; } 12681 12682 12683 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5 12684echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; } 12685 if test "$cross_compiling" = yes; then 12686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12687See \`config.log' for more details." >&5 12688echo "$as_me: error: cannot run test program while cross compiling 12689See \`config.log' for more details." >&2;} 12690 { (exit 1); exit 1; }; } 12691else 12692 cat >conftest.$ac_ext <<_ACEOF 12693 12694 /* confdefs.h. */ 12695_ACEOF 12696cat confdefs.h >>conftest.$ac_ext 12697cat >>conftest.$ac_ext <<_ACEOF 12698/* end confdefs.h. */ 12699 12700# ifdef HAVE_INTTYPES_H 12701 #include <inttypes.h> 12702# endif 12703# ifdef HAVE_SYS_BITYPES_H 12704 #include <sys/bitypes.h> 12705# endif 12706 #include <stdio.h> 12707 #include <sys/types.h> 12708 12709 main() 12710 { 12711 u_int64_t t = 1; 12712 char strbuf[16+1]; 12713 sprintf(strbuf, "%016Lx", t << 32); 12714 if (strcmp(strbuf, "0000000100000000") == 0) 12715 exit(0); 12716 else 12717 exit(1); 12718 } 12719 12720 12721_ACEOF 12722rm -f conftest$ac_exeext 12723if { (ac_try="$ac_link" 12724case "(($ac_try" in 12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12726 *) ac_try_echo=$ac_try;; 12727esac 12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12729 (eval "$ac_link") 2>&5 12730 ac_status=$? 12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12733 { (case "(($ac_try" in 12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12735 *) ac_try_echo=$ac_try;; 12736esac 12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12738 (eval "$ac_try") 2>&5 12739 ac_status=$? 12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12741 (exit $ac_status); }; }; then 12742 12743 cat >>confdefs.h <<\_ACEOF 12744#define PRId64 "Ld" 12745_ACEOF 12746 12747 cat >>confdefs.h <<\_ACEOF 12748#define PRIo64 "Lo" 12749_ACEOF 12750 12751 cat >>confdefs.h <<\_ACEOF 12752#define PRIx64 "Lx" 12753_ACEOF 12754 12755 cat >>confdefs.h <<\_ACEOF 12756#define PRIu64 "Lu" 12757_ACEOF 12758 12759 { echo "$as_me:$LINENO: result: yes" >&5 12760echo "${ECHO_T}yes" >&6; } 12761 12762else 12763 echo "$as_me: program exited with status $ac_status" >&5 12764echo "$as_me: failed program was:" >&5 12765sed 's/^/| /' conftest.$ac_ext >&5 12766 12767( exit $ac_status ) 12768 12769 { echo "$as_me:$LINENO: result: no" >&5 12770echo "${ECHO_T}no" >&6; } 12771 12772 12773 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5 12774echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; } 12775 if test "$cross_compiling" = yes; then 12776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12777See \`config.log' for more details." >&5 12778echo "$as_me: error: cannot run test program while cross compiling 12779See \`config.log' for more details." >&2;} 12780 { (exit 1); exit 1; }; } 12781else 12782 cat >conftest.$ac_ext <<_ACEOF 12783 12784 /* confdefs.h. */ 12785_ACEOF 12786cat confdefs.h >>conftest.$ac_ext 12787cat >>conftest.$ac_ext <<_ACEOF 12788/* end confdefs.h. */ 12789 12790# ifdef HAVE_INTTYPES_H 12791 #include <inttypes.h> 12792# endif 12793# ifdef HAVE_SYS_BITYPES_H 12794 #include <sys/bitypes.h> 12795# endif 12796 #include <stdio.h> 12797 #include <sys/types.h> 12798 12799 main() 12800 { 12801 u_int64_t t = 1; 12802 char strbuf[16+1]; 12803 sprintf(strbuf, "%016qx", t << 32); 12804 if (strcmp(strbuf, "0000000100000000") == 0) 12805 exit(0); 12806 else 12807 exit(1); 12808 } 12809 12810 12811_ACEOF 12812rm -f conftest$ac_exeext 12813if { (ac_try="$ac_link" 12814case "(($ac_try" in 12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12816 *) ac_try_echo=$ac_try;; 12817esac 12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12819 (eval "$ac_link") 2>&5 12820 ac_status=$? 12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12823 { (case "(($ac_try" in 12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12825 *) ac_try_echo=$ac_try;; 12826esac 12827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12828 (eval "$ac_try") 2>&5 12829 ac_status=$? 12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12831 (exit $ac_status); }; }; then 12832 12833 cat >>confdefs.h <<\_ACEOF 12834#define PRId64 "qd" 12835_ACEOF 12836 12837 cat >>confdefs.h <<\_ACEOF 12838#define PRIo64 "qo" 12839_ACEOF 12840 12841 cat >>confdefs.h <<\_ACEOF 12842#define PRIx64 "qx" 12843_ACEOF 12844 12845 cat >>confdefs.h <<\_ACEOF 12846#define PRIu64 "qu" 12847_ACEOF 12848 12849 { echo "$as_me:$LINENO: result: yes" >&5 12850echo "${ECHO_T}yes" >&6; } 12851 12852else 12853 echo "$as_me: program exited with status $ac_status" >&5 12854echo "$as_me: failed program was:" >&5 12855sed 's/^/| /' conftest.$ac_ext >&5 12856 12857( exit $ac_status ) 12858 12859 { echo "$as_me:$LINENO: result: no" >&5 12860echo "${ECHO_T}no" >&6; } 12861 12862 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5 12863echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;} 12864 { (exit 1); exit 1; }; } 12865 12866 12867fi 12868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12869fi 12870 12871 12872 12873 12874 12875fi 12876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12877fi 12878 12879 12880 12881 12882 12883fi 12884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12885fi 12886 12887 12888 12889 12890 12891fi 12892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12893fi 12894 12895 12896 12897fi 12898 12899if test -n "$ac_tool_prefix"; then 12900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12901set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12902{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12904if test "${ac_cv_prog_RANLIB+set}" = set; then 12905 echo $ECHO_N "(cached) $ECHO_C" >&6 12906else 12907 if test -n "$RANLIB"; then 12908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12909else 12910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12911for as_dir in $PATH 12912do 12913 IFS=$as_save_IFS 12914 test -z "$as_dir" && as_dir=. 12915 for ac_exec_ext in '' $ac_executable_extensions; do 12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12919 break 2 12920 fi 12921done 12922done 12923IFS=$as_save_IFS 12924 12925fi 12926fi 12927RANLIB=$ac_cv_prog_RANLIB 12928if test -n "$RANLIB"; then 12929 { echo "$as_me:$LINENO: result: $RANLIB" >&5 12930echo "${ECHO_T}$RANLIB" >&6; } 12931else 12932 { echo "$as_me:$LINENO: result: no" >&5 12933echo "${ECHO_T}no" >&6; } 12934fi 12935 12936 12937fi 12938if test -z "$ac_cv_prog_RANLIB"; then 12939 ac_ct_RANLIB=$RANLIB 12940 # Extract the first word of "ranlib", so it can be a program name with args. 12941set dummy ranlib; ac_word=$2 12942{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 12945 echo $ECHO_N "(cached) $ECHO_C" >&6 12946else 12947 if test -n "$ac_ct_RANLIB"; then 12948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12949else 12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12951for as_dir in $PATH 12952do 12953 IFS=$as_save_IFS 12954 test -z "$as_dir" && as_dir=. 12955 for ac_exec_ext in '' $ac_executable_extensions; do 12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12957 ac_cv_prog_ac_ct_RANLIB="ranlib" 12958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12959 break 2 12960 fi 12961done 12962done 12963IFS=$as_save_IFS 12964 12965fi 12966fi 12967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12968if test -n "$ac_ct_RANLIB"; then 12969 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 12970echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 12971else 12972 { echo "$as_me:$LINENO: result: no" >&5 12973echo "${ECHO_T}no" >&6; } 12974fi 12975 12976 if test "x$ac_ct_RANLIB" = x; then 12977 RANLIB=":" 12978 else 12979 case $cross_compiling:$ac_tool_warned in 12980yes:) 12981{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 12982whose name does not start with the host triplet. If you think this 12983configuration is useful to you, please write to autoconf@gnu.org." >&5 12984echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 12985whose name does not start with the host triplet. If you think this 12986configuration is useful to you, please write to autoconf@gnu.org." >&2;} 12987ac_tool_warned=yes ;; 12988esac 12989 RANLIB=$ac_ct_RANLIB 12990 fi 12991else 12992 RANLIB="$ac_cv_prog_RANLIB" 12993fi 12994 12995 12996rm -f os-proto.h 12997 if test "${LBL_CFLAGS+set}" = set; then 12998 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 12999 fi 13000 if test -f .devel ; then 13001 if test "$GCC" = yes ; then 13002 if test "${LBL_CFLAGS+set}" != set; then 13003 if test "$ac_cv_prog_cc_g" = yes ; then 13004 V_CCOPT="-g $V_CCOPT" 13005 fi 13006 V_CCOPT="$V_CCOPT -Wall" 13007 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 13008 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W" 13009 fi 13010 fi 13011 else 13012 case "$host_os" in 13013 13014 irix6*) 13015 V_CCOPT="$V_CCOPT -n32" 13016 ;; 13017 13018 *) 13019 ;; 13020 esac 13021 fi 13022 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 13023 name="lbl/os-$os.h" 13024 if test -f $name ; then 13025 ln -s $name os-proto.h 13026 cat >>confdefs.h <<\_ACEOF 13027#define HAVE_OS_PROTO_H 1 13028_ACEOF 13029 13030 else 13031 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 13032echo "$as_me: WARNING: can't find $name" >&2;} 13033 fi 13034 fi 13035 13036{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 13037echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; } 13038 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 13039 echo $ECHO_N "(cached) $ECHO_C" >&6 13040else 13041 cat >conftest.$ac_ext <<_ACEOF 13042/* confdefs.h. */ 13043_ACEOF 13044cat confdefs.h >>conftest.$ac_ext 13045cat >>conftest.$ac_ext <<_ACEOF 13046/* end confdefs.h. */ 13047 13048# include <sys/types.h> 13049# include <sys/socket.h> 13050int 13051main () 13052{ 13053u_int i = sizeof(((struct sockaddr *)0)->sa_len) 13054 ; 13055 return 0; 13056} 13057_ACEOF 13058rm -f conftest.$ac_objext 13059if { (ac_try="$ac_compile" 13060case "(($ac_try" in 13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13062 *) ac_try_echo=$ac_try;; 13063esac 13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13065 (eval "$ac_compile") 2>conftest.er1 13066 ac_status=$? 13067 grep -v '^ *+' conftest.er1 >conftest.err 13068 rm -f conftest.er1 13069 cat conftest.err >&5 13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13071 (exit $ac_status); } && { 13072 test -z "$ac_c_werror_flag" || 13073 test ! -s conftest.err 13074 } && test -s conftest.$ac_objext; then 13075 ac_cv_lbl_sockaddr_has_sa_len=yes 13076else 13077 echo "$as_me: failed program was:" >&5 13078sed 's/^/| /' conftest.$ac_ext >&5 13079 13080 ac_cv_lbl_sockaddr_has_sa_len=no 13081fi 13082 13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13084fi 13085 13086 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 13087echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; } 13088 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 13089 cat >>confdefs.h <<\_ACEOF 13090#define HAVE_SOCKADDR_SA_LEN 1 13091_ACEOF 13092 13093 fi 13094 13095{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 13096echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; } 13097 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 13098 echo $ECHO_N "(cached) $ECHO_C" >&6 13099else 13100 case "$host_cpu" in 13101 13102 # 13103 # These are CPU types where: 13104 # 13105 # the CPU faults on an unaligned access, but at least some 13106 # OSes that support that CPU catch the fault and simulate 13107 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 13108 # the simulation is slow, so we don't want to use it; 13109 # 13110 # the CPU, I infer (from the old 13111 # 13112 # XXX: should also check that they don't do weird things (like on arm) 13113 # 13114 # comment) doesn't fault on unaligned accesses, but doesn't 13115 # do a normal unaligned fetch, either (e.g., presumably, ARM); 13116 # 13117 # for whatever reason, the test program doesn't work 13118 # (this has been claimed to be the case for several of those 13119 # CPUs - I don't know what the problem is; the problem 13120 # was reported as "the test program dumps core" for SuperH, 13121 # but that's what the test program is *supposed* to do - 13122 # it dumps core before it writes anything, so the test 13123 # for an empty output file should find an empty output 13124 # file and conclude that unaligned accesses don't work). 13125 # 13126 # This run-time test won't work if you're cross-compiling, so 13127 # in order to support cross-compiling for a particular CPU, 13128 # we have to wire in the list of CPU types anyway, as far as 13129 # I know, so perhaps we should just have a set of CPUs on 13130 # which we know it doesn't work, a set of CPUs on which we 13131 # know it does work, and have the script just fail on other 13132 # cpu types and update it when such a failure occurs. 13133 # 13134 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) 13135 ac_cv_lbl_unaligned_fail=yes 13136 ;; 13137 13138 *) 13139 cat >conftest.c <<EOF 13140# include <sys/types.h> 13141# include <sys/wait.h> 13142# include <stdio.h> 13143 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 13144 main() { 13145 unsigned int i; 13146 pid_t pid; 13147 int status; 13148 /* avoid "core dumped" message */ 13149 pid = fork(); 13150 if (pid < 0) 13151 exit(2); 13152 if (pid > 0) { 13153 /* parent */ 13154 pid = waitpid(pid, &status, 0); 13155 if (pid < 0) 13156 exit(3); 13157 exit(!WIFEXITED(status)); 13158 } 13159 /* child */ 13160 i = *(unsigned int *)&a[1]; 13161 printf("%d\n", i); 13162 exit(0); 13163 } 13164EOF 13165 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 13166 conftest.c $LIBS >/dev/null 2>&1 13167 if test ! -x conftest ; then 13168 ac_cv_lbl_unaligned_fail=yes 13169 else 13170 ./conftest >conftest.out 13171 if test ! -s conftest.out ; then 13172 ac_cv_lbl_unaligned_fail=yes 13173 else 13174 ac_cv_lbl_unaligned_fail=no 13175 fi 13176 fi 13177 rm -f conftest* core core.conftest 13178 ;; 13179 esac 13180fi 13181 13182 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 13183echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; } 13184 if test $ac_cv_lbl_unaligned_fail = yes ; then 13185 cat >>confdefs.h <<\_ACEOF 13186#define LBL_ALIGN 1 13187_ACEOF 13188 13189 fi 13190 13191 13192 { echo "$as_me:$LINENO: checking for h_errno" >&5 13193echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; } 13194 if test "${ac_cv_var_h_errno+set}" = set; then 13195 echo $ECHO_N "(cached) $ECHO_C" >&6 13196else 13197 cat >conftest.$ac_ext <<_ACEOF 13198/* confdefs.h. */ 13199_ACEOF 13200cat confdefs.h >>conftest.$ac_ext 13201cat >>conftest.$ac_ext <<_ACEOF 13202/* end confdefs.h. */ 13203 13204# include <sys/types.h> 13205# include <netdb.h> 13206int 13207main () 13208{ 13209int foo = h_errno; 13210 ; 13211 return 0; 13212} 13213_ACEOF 13214rm -f conftest.$ac_objext 13215if { (ac_try="$ac_compile" 13216case "(($ac_try" in 13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13218 *) ac_try_echo=$ac_try;; 13219esac 13220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13221 (eval "$ac_compile") 2>conftest.er1 13222 ac_status=$? 13223 grep -v '^ *+' conftest.er1 >conftest.err 13224 rm -f conftest.er1 13225 cat conftest.err >&5 13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13227 (exit $ac_status); } && { 13228 test -z "$ac_c_werror_flag" || 13229 test ! -s conftest.err 13230 } && test -s conftest.$ac_objext; then 13231 ac_cv_var_h_errno=yes 13232else 13233 echo "$as_me: failed program was:" >&5 13234sed 's/^/| /' conftest.$ac_ext >&5 13235 13236 ac_cv_var_h_errno=no 13237fi 13238 13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13240fi 13241 13242 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 13243echo "${ECHO_T}$ac_cv_var_h_errno" >&6; } 13244 if test "$ac_cv_var_h_errno" = "yes"; then 13245 cat >>confdefs.h <<\_ACEOF 13246#define HAVE_H_ERRNO 1 13247_ACEOF 13248 13249 fi 13250 13251 13252# Check for SSLeay 13253{ echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5 13254echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; } 13255# Specify location for both includes and libraries. 13256want_libcrypto=youmama 13257 13258# Check whether --with-crypto was given. 13259if test "${with_crypto+set}" = set; then 13260 withval=$with_crypto; 13261 if test $withval = no 13262 then 13263 want_libcrypto=no 13264 { echo "$as_me:$LINENO: result: no" >&5 13265echo "${ECHO_T}no" >&6; } 13266 elif test $withval = yes 13267 then 13268 want_libcrypto=yes 13269 { echo "$as_me:$LINENO: result: yes" >&5 13270echo "${ECHO_T}yes" >&6; } 13271 else 13272 want_libcrypto=yes 13273 { echo "$as_me:$LINENO: result: yes" >&5 13274echo "${ECHO_T}yes" >&6; } 13275 crypto_dir=$withval 13276 fi 13277 13278else 13279 13280 # 13281 # Use libcrypto if it's present, otherwise don't. 13282 # 13283 want_libcrypto=ifavailable 13284 { echo "$as_me:$LINENO: result: yes, if available" >&5 13285echo "${ECHO_T}yes, if available" >&6; } 13286 13287fi 13288 13289if test "$want_libcrypto" != "no"; then 13290 ac_cv_ssleay_path=no 13291 incdir=no 13292 if test "x$crypto_dir" = x; then 13293 # 13294 # Location not specified; check the default locations. 13295 # 13296 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5 13297echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; } 13298 dirs="/usr /usr/local /usr/local/ssl /usr/pkg" 13299 if test "x${host_alias}" != x; then 13300 dirs="/usr/${host_alias} $dirs" 13301 fi 13302 for dir in $dirs; do 13303 13304 # 13305 # XXX - is there a better way to check if a given library is 13306 # in a given directory than checking each of the possible 13307 # shared library suffixes? 13308 # 13309 # Are there any other suffixes we need to look for? Do we 13310 # have to worry about ".so.{version}"? 13311 # 13312 # Or should we just look for "libcrypto.*"? 13313 # 13314 if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \ 13315 -f "$dir/lib/libcrypto.so" -o \ 13316 -f "$dir/lib/libcrypto.sl" -o \ 13317 -f "$dir/lib/libcrypto.dylib" \); then 13318 ac_cv_ssleay_path="$dir" 13319 fi 13320 13321 # 13322 # Make sure we have the headers as well. 13323 # 13324 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then 13325 incdir="-I$dir/include" 13326 fi 13327 13328 13329 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 13330 break; 13331 else 13332 ac_cv_ssleay_path=no 13333 incdir=no 13334 fi 13335 done 13336 if test "$ac_cv_ssleay_path" != no; then 13337 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 13338echo "${ECHO_T}$ac_cv_ssleay_path" >&6; } 13339 fi 13340 else 13341 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5 13342echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; } 13343 13344 # 13345 # XXX - is there a better way to check if a given library is 13346 # in a given directory than checking each of the possible 13347 # shared library suffixes? 13348 # 13349 # Are there any other suffixes we need to look for? Do we 13350 # have to worry about ".so.{version}"? 13351 # 13352 # Or should we just look for "libcrypto.*"? 13353 # 13354 if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \ 13355 -f "$crypto_dir/lib/libcrypto.so" -o \ 13356 -f "$crypto_dir/lib/libcrypto.sl" -o \ 13357 -f "$crypto_dir/lib/libcrypto.dylib" \); then 13358 ac_cv_ssleay_path="$crypto_dir" 13359 fi 13360 13361 # 13362 # Make sure we have the headers as well. 13363 # 13364 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then 13365 incdir="-I$crypto_dir/include" 13366 fi 13367 13368 if test "$ac_cv_ssleay_path" != no; then 13369 { echo "$as_me:$LINENO: result: found" >&5 13370echo "${ECHO_T}found" >&6; } 13371 fi 13372 fi 13373 if test "$ac_cv_ssleay_path" != no; then 13374 V_INCLS="$V_INCLS $incdir" 13375 LDFLAGS="-L$dir/lib $LDFLAGS" 13376 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 13377 LIBS="$LIBS -lRSAglue" 13378 fi 13379 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 13380 LIBS="$LIBS -lrsaref" 13381 fi 13382 13383{ echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 13384echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } 13385if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 13386 echo $ECHO_N "(cached) $ECHO_C" >&6 13387else 13388 ac_check_lib_save_LIBS=$LIBS 13389LIBS="-lcrypto $LIBS" 13390cat >conftest.$ac_ext <<_ACEOF 13391/* confdefs.h. */ 13392_ACEOF 13393cat confdefs.h >>conftest.$ac_ext 13394cat >>conftest.$ac_ext <<_ACEOF 13395/* end confdefs.h. */ 13396 13397/* Override any GCC internal prototype to avoid an error. 13398 Use char because int might match the return type of a GCC 13399 builtin and then its argument prototype would still apply. */ 13400#ifdef __cplusplus 13401extern "C" 13402#endif 13403char DES_cbc_encrypt (); 13404int 13405main () 13406{ 13407return DES_cbc_encrypt (); 13408 ; 13409 return 0; 13410} 13411_ACEOF 13412rm -f conftest.$ac_objext conftest$ac_exeext 13413if { (ac_try="$ac_link" 13414case "(($ac_try" in 13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13416 *) ac_try_echo=$ac_try;; 13417esac 13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13419 (eval "$ac_link") 2>conftest.er1 13420 ac_status=$? 13421 grep -v '^ *+' conftest.er1 >conftest.err 13422 rm -f conftest.er1 13423 cat conftest.err >&5 13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13425 (exit $ac_status); } && { 13426 test -z "$ac_c_werror_flag" || 13427 test ! -s conftest.err 13428 } && test -s conftest$ac_exeext && 13429 $as_test_x conftest$ac_exeext; then 13430 ac_cv_lib_crypto_DES_cbc_encrypt=yes 13431else 13432 echo "$as_me: failed program was:" >&5 13433sed 's/^/| /' conftest.$ac_ext >&5 13434 13435 ac_cv_lib_crypto_DES_cbc_encrypt=no 13436fi 13437 13438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13439 conftest$ac_exeext conftest.$ac_ext 13440LIBS=$ac_check_lib_save_LIBS 13441fi 13442{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 13443echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; } 13444if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 13445 cat >>confdefs.h <<_ACEOF 13446#define HAVE_LIBCRYPTO 1 13447_ACEOF 13448 13449 LIBS="-lcrypto $LIBS" 13450 13451fi 13452 13453 13454 CPPFLAGS="$CPPFLAGS $V_INCLS" 13455 13456for ac_header in openssl/evp.h 13457do 13458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13460 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13463 echo $ECHO_N "(cached) $ECHO_C" >&6 13464fi 13465ac_res=`eval echo '${'$as_ac_Header'}'` 13466 { echo "$as_me:$LINENO: result: $ac_res" >&5 13467echo "${ECHO_T}$ac_res" >&6; } 13468else 13469 # Is the header compilable? 13470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13472cat >conftest.$ac_ext <<_ACEOF 13473/* confdefs.h. */ 13474_ACEOF 13475cat confdefs.h >>conftest.$ac_ext 13476cat >>conftest.$ac_ext <<_ACEOF 13477/* end confdefs.h. */ 13478$ac_includes_default 13479#include <$ac_header> 13480_ACEOF 13481rm -f conftest.$ac_objext 13482if { (ac_try="$ac_compile" 13483case "(($ac_try" in 13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13485 *) ac_try_echo=$ac_try;; 13486esac 13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13488 (eval "$ac_compile") 2>conftest.er1 13489 ac_status=$? 13490 grep -v '^ *+' conftest.er1 >conftest.err 13491 rm -f conftest.er1 13492 cat conftest.err >&5 13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13494 (exit $ac_status); } && { 13495 test -z "$ac_c_werror_flag" || 13496 test ! -s conftest.err 13497 } && test -s conftest.$ac_objext; then 13498 ac_header_compiler=yes 13499else 13500 echo "$as_me: failed program was:" >&5 13501sed 's/^/| /' conftest.$ac_ext >&5 13502 13503 ac_header_compiler=no 13504fi 13505 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13508echo "${ECHO_T}$ac_header_compiler" >&6; } 13509 13510# Is the header present? 13511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13513cat >conftest.$ac_ext <<_ACEOF 13514/* confdefs.h. */ 13515_ACEOF 13516cat confdefs.h >>conftest.$ac_ext 13517cat >>conftest.$ac_ext <<_ACEOF 13518/* end confdefs.h. */ 13519#include <$ac_header> 13520_ACEOF 13521if { (ac_try="$ac_cpp conftest.$ac_ext" 13522case "(($ac_try" in 13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13524 *) ac_try_echo=$ac_try;; 13525esac 13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13528 ac_status=$? 13529 grep -v '^ *+' conftest.er1 >conftest.err 13530 rm -f conftest.er1 13531 cat conftest.err >&5 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); } >/dev/null && { 13534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13535 test ! -s conftest.err 13536 }; then 13537 ac_header_preproc=yes 13538else 13539 echo "$as_me: failed program was:" >&5 13540sed 's/^/| /' conftest.$ac_ext >&5 13541 13542 ac_header_preproc=no 13543fi 13544 13545rm -f conftest.err conftest.$ac_ext 13546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13547echo "${ECHO_T}$ac_header_preproc" >&6; } 13548 13549# So? What about this header? 13550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13551 yes:no: ) 13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13556 ac_header_preproc=yes 13557 ;; 13558 no:yes:* ) 13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13571 13572 ;; 13573esac 13574{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13577 echo $ECHO_N "(cached) $ECHO_C" >&6 13578else 13579 eval "$as_ac_Header=\$ac_header_preproc" 13580fi 13581ac_res=`eval echo '${'$as_ac_Header'}'` 13582 { echo "$as_me:$LINENO: result: $ac_res" >&5 13583echo "${ECHO_T}$ac_res" >&6; } 13584 13585fi 13586if test `eval echo '${'$as_ac_Header'}'` = yes; then 13587 cat >>confdefs.h <<_ACEOF 13588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13589_ACEOF 13590 13591fi 13592 13593done 13594 13595 else 13596 # 13597 # Not found. Did the user explicitly ask for it? 13598 # 13599 { echo "$as_me:$LINENO: result: not found" >&5 13600echo "${ECHO_T}not found" >&6; } 13601 if test "$want_libcrypto" = yes; then 13602 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5 13603echo "$as_me: error: SSLeay not found" >&2;} 13604 { (exit 1); exit 1; }; } 13605 fi 13606 fi 13607fi 13608 13609if test "$missing_includes" = "yes"; then 13610 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 13611 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 13612fi 13613 13614 13615 13616 13617 13618 13619 13620 13621# Find a good install program. We prefer a C program (faster), 13622# so one script is as good as another. But avoid the broken or 13623# incompatible versions: 13624# SysV /etc/install, /usr/sbin/install 13625# SunOS /usr/etc/install 13626# IRIX /sbin/install 13627# AIX /bin/install 13628# AmigaOS /C/install, which installs bootblocks on floppy discs 13629# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 13630# AFS /usr/afsws/bin/install, which mishandles nonexistent args 13631# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 13632# OS/2's system install, which has a completely different semantic 13633# ./install, which can be erroneously created by make from ./install.sh. 13634{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 13635echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 13636if test -z "$INSTALL"; then 13637if test "${ac_cv_path_install+set}" = set; then 13638 echo $ECHO_N "(cached) $ECHO_C" >&6 13639else 13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13641for as_dir in $PATH 13642do 13643 IFS=$as_save_IFS 13644 test -z "$as_dir" && as_dir=. 13645 # Account for people who put trailing slashes in PATH elements. 13646case $as_dir/ in 13647 ./ | .// | /cC/* | \ 13648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 13649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 13650 /usr/ucb/* ) ;; 13651 *) 13652 # OSF1 and SCO ODT 3.0 have their own names for install. 13653 # Don't use installbsd from OSF since it installs stuff as root 13654 # by default. 13655 for ac_prog in ginstall scoinst install; do 13656 for ac_exec_ext in '' $ac_executable_extensions; do 13657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 13658 if test $ac_prog = install && 13659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13660 # AIX install. It has an incompatible calling convention. 13661 : 13662 elif test $ac_prog = install && 13663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13664 # program-specific install script used by HP pwplus--don't use. 13665 : 13666 else 13667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 13668 break 3 13669 fi 13670 fi 13671 done 13672 done 13673 ;; 13674esac 13675done 13676IFS=$as_save_IFS 13677 13678 13679fi 13680 if test "${ac_cv_path_install+set}" = set; then 13681 INSTALL=$ac_cv_path_install 13682 else 13683 # As a last resort, use the slow shell script. Don't cache a 13684 # value for INSTALL within a source directory, because that will 13685 # break other packages using the cache if that directory is 13686 # removed, or if the value is a relative name. 13687 INSTALL=$ac_install_sh 13688 fi 13689fi 13690{ echo "$as_me:$LINENO: result: $INSTALL" >&5 13691echo "${ECHO_T}$INSTALL" >&6; } 13692 13693# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 13694# It thinks the first close brace ends the variable substitution. 13695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 13696 13697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 13698 13699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 13700 13701 13702ac_config_headers="$ac_config_headers config.h" 13703 13704 13705ac_config_commands="$ac_config_commands default-1" 13706 13707ac_config_files="$ac_config_files Makefile" 13708 13709cat >confcache <<\_ACEOF 13710# This file is a shell script that caches the results of configure 13711# tests run on this system so they can be shared between configure 13712# scripts and configure runs, see configure's option --config-cache. 13713# It is not useful on other systems. If it contains results you don't 13714# want to keep, you may remove or edit it. 13715# 13716# config.status only pays attention to the cache file if you give it 13717# the --recheck option to rerun configure. 13718# 13719# `ac_cv_env_foo' variables (set or unset) will be overridden when 13720# loading this file, other *unset* `ac_cv_foo' will be assigned the 13721# following values. 13722 13723_ACEOF 13724 13725# The following way of writing the cache mishandles newlines in values, 13726# but we know of no workaround that is simple, portable, and efficient. 13727# So, we kill variables containing newlines. 13728# Ultrix sh set writes to stderr and can't be redirected directly, 13729# and sets the high bit in the cache file unless we assign to the vars. 13730( 13731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13732 eval ac_val=\$$ac_var 13733 case $ac_val in #( 13734 *${as_nl}*) 13735 case $ac_var in #( 13736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13737echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13738 esac 13739 case $ac_var in #( 13740 _ | IFS | as_nl) ;; #( 13741 *) $as_unset $ac_var ;; 13742 esac ;; 13743 esac 13744 done 13745 13746 (set) 2>&1 | 13747 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13748 *${as_nl}ac_space=\ *) 13749 # `set' does not quote correctly, so add quotes (double-quote 13750 # substitution turns \\\\ into \\, and sed turns \\ into \). 13751 sed -n \ 13752 "s/'/'\\\\''/g; 13753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13754 ;; #( 13755 *) 13756 # `set' quotes correctly as required by POSIX, so do not add quotes. 13757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13758 ;; 13759 esac | 13760 sort 13761) | 13762 sed ' 13763 /^ac_cv_env_/b end 13764 t clear 13765 :clear 13766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13767 t end 13768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13769 :end' >>confcache 13770if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13771 if test -w "$cache_file"; then 13772 test "x$cache_file" != "x/dev/null" && 13773 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 13774echo "$as_me: updating cache $cache_file" >&6;} 13775 cat confcache >$cache_file 13776 else 13777 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13778echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13779 fi 13780fi 13781rm -f confcache 13782 13783test "x$prefix" = xNONE && prefix=$ac_default_prefix 13784# Let make expand exec_prefix. 13785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13786 13787DEFS=-DHAVE_CONFIG_H 13788 13789ac_libobjs= 13790ac_ltlibobjs= 13791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13792 # 1. Remove the extension, and $U if already installed. 13793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13794 ac_i=`echo "$ac_i" | sed "$ac_script"` 13795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13796 # will be set to the directory where LIBOBJS objects are built. 13797 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13798 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13799done 13800LIBOBJS=$ac_libobjs 13801 13802LTLIBOBJS=$ac_ltlibobjs 13803 13804 13805 13806: ${CONFIG_STATUS=./config.status} 13807ac_clean_files_save=$ac_clean_files 13808ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13809{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13810echo "$as_me: creating $CONFIG_STATUS" >&6;} 13811cat >$CONFIG_STATUS <<_ACEOF 13812#! $SHELL 13813# Generated by $as_me. 13814# Run this file to recreate the current configuration. 13815# Compiler output produced by configure, useful for debugging 13816# configure, is in config.log if it exists. 13817 13818debug=false 13819ac_cs_recheck=false 13820ac_cs_silent=false 13821SHELL=\${CONFIG_SHELL-$SHELL} 13822_ACEOF 13823 13824cat >>$CONFIG_STATUS <<\_ACEOF 13825## --------------------- ## 13826## M4sh Initialization. ## 13827## --------------------- ## 13828 13829# Be more Bourne compatible 13830DUALCASE=1; export DUALCASE # for MKS sh 13831if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13832 emulate sh 13833 NULLCMD=: 13834 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13835 # is contrary to our usage. Disable this feature. 13836 alias -g '${1+"$@"}'='"$@"' 13837 setopt NO_GLOB_SUBST 13838else 13839 case `(set -o) 2>/dev/null` in 13840 *posix*) set -o posix ;; 13841esac 13842 13843fi 13844 13845 13846 13847 13848# PATH needs CR 13849# Avoid depending upon Character Ranges. 13850as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13851as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13852as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13853as_cr_digits='0123456789' 13854as_cr_alnum=$as_cr_Letters$as_cr_digits 13855 13856# The user is always right. 13857if test "${PATH_SEPARATOR+set}" != set; then 13858 echo "#! /bin/sh" >conf$$.sh 13859 echo "exit 0" >>conf$$.sh 13860 chmod +x conf$$.sh 13861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13862 PATH_SEPARATOR=';' 13863 else 13864 PATH_SEPARATOR=: 13865 fi 13866 rm -f conf$$.sh 13867fi 13868 13869# Support unset when possible. 13870if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13871 as_unset=unset 13872else 13873 as_unset=false 13874fi 13875 13876 13877# IFS 13878# We need space, tab and new line, in precisely that order. Quoting is 13879# there to prevent editors from complaining about space-tab. 13880# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13881# splitting by setting IFS to empty value.) 13882as_nl=' 13883' 13884IFS=" "" $as_nl" 13885 13886# Find who we are. Look in the path if we contain no directory separator. 13887case $0 in 13888 *[\\/]* ) as_myself=$0 ;; 13889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13890for as_dir in $PATH 13891do 13892 IFS=$as_save_IFS 13893 test -z "$as_dir" && as_dir=. 13894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13895done 13896IFS=$as_save_IFS 13897 13898 ;; 13899esac 13900# We did not find ourselves, most probably we were run as `sh COMMAND' 13901# in which case we are not to be found in the path. 13902if test "x$as_myself" = x; then 13903 as_myself=$0 13904fi 13905if test ! -f "$as_myself"; then 13906 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13907 { (exit 1); exit 1; } 13908fi 13909 13910# Work around bugs in pre-3.0 UWIN ksh. 13911for as_var in ENV MAIL MAILPATH 13912do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13913done 13914PS1='$ ' 13915PS2='> ' 13916PS4='+ ' 13917 13918# NLS nuisances. 13919for as_var in \ 13920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13922 LC_TELEPHONE LC_TIME 13923do 13924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13925 eval $as_var=C; export $as_var 13926 else 13927 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13928 fi 13929done 13930 13931# Required to use basename. 13932if expr a : '\(a\)' >/dev/null 2>&1 && 13933 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13934 as_expr=expr 13935else 13936 as_expr=false 13937fi 13938 13939if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13940 as_basename=basename 13941else 13942 as_basename=false 13943fi 13944 13945 13946# Name of the executable. 13947as_me=`$as_basename -- "$0" || 13948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13949 X"$0" : 'X\(//\)$' \| \ 13950 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13951echo X/"$0" | 13952 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13953 s//\1/ 13954 q 13955 } 13956 /^X\/\(\/\/\)$/{ 13957 s//\1/ 13958 q 13959 } 13960 /^X\/\(\/\).*/{ 13961 s//\1/ 13962 q 13963 } 13964 s/.*/./; q'` 13965 13966# CDPATH. 13967$as_unset CDPATH 13968 13969 13970 13971 as_lineno_1=$LINENO 13972 as_lineno_2=$LINENO 13973 test "x$as_lineno_1" != "x$as_lineno_2" && 13974 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13975 13976 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13977 # uniformly replaced by the line number. The first 'sed' inserts a 13978 # line-number line after each line using $LINENO; the second 'sed' 13979 # does the real work. The second script uses 'N' to pair each 13980 # line-number line with the line containing $LINENO, and appends 13981 # trailing '-' during substitution so that $LINENO is not a special 13982 # case at line end. 13983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13984 # scripts with optimization help from Paolo Bonzini. Blame Lee 13985 # E. McMahon (1931-1989) for sed's syntax. :-) 13986 sed -n ' 13987 p 13988 /[$]LINENO/= 13989 ' <$as_myself | 13990 sed ' 13991 s/[$]LINENO.*/&-/ 13992 t lineno 13993 b 13994 :lineno 13995 N 13996 :loop 13997 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13998 t loop 13999 s/-\n.*// 14000 ' >$as_me.lineno && 14001 chmod +x "$as_me.lineno" || 14002 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14003 { (exit 1); exit 1; }; } 14004 14005 # Don't try to exec as it changes $[0], causing all sort of problems 14006 # (the dirname of $[0] is not the place where we might find the 14007 # original and so on. Autoconf is especially sensitive to this). 14008 . "./$as_me.lineno" 14009 # Exit status is that of the last command. 14010 exit 14011} 14012 14013 14014if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14015 as_dirname=dirname 14016else 14017 as_dirname=false 14018fi 14019 14020ECHO_C= ECHO_N= ECHO_T= 14021case `echo -n x` in 14022-n*) 14023 case `echo 'x\c'` in 14024 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14025 *) ECHO_C='\c';; 14026 esac;; 14027*) 14028 ECHO_N='-n';; 14029esac 14030 14031if expr a : '\(a\)' >/dev/null 2>&1 && 14032 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14033 as_expr=expr 14034else 14035 as_expr=false 14036fi 14037 14038rm -f conf$$ conf$$.exe conf$$.file 14039if test -d conf$$.dir; then 14040 rm -f conf$$.dir/conf$$.file 14041else 14042 rm -f conf$$.dir 14043 mkdir conf$$.dir 14044fi 14045echo >conf$$.file 14046if ln -s conf$$.file conf$$ 2>/dev/null; then 14047 as_ln_s='ln -s' 14048 # ... but there are two gotchas: 14049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14051 # In both cases, we have to default to `cp -p'. 14052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14053 as_ln_s='cp -p' 14054elif ln conf$$.file conf$$ 2>/dev/null; then 14055 as_ln_s=ln 14056else 14057 as_ln_s='cp -p' 14058fi 14059rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14060rmdir conf$$.dir 2>/dev/null 14061 14062if mkdir -p . 2>/dev/null; then 14063 as_mkdir_p=: 14064else 14065 test -d ./-p && rmdir ./-p 14066 as_mkdir_p=false 14067fi 14068 14069if test -x / >/dev/null 2>&1; then 14070 as_test_x='test -x' 14071else 14072 if ls -dL / >/dev/null 2>&1; then 14073 as_ls_L_option=L 14074 else 14075 as_ls_L_option= 14076 fi 14077 as_test_x=' 14078 eval sh -c '\'' 14079 if test -d "$1"; then 14080 test -d "$1/."; 14081 else 14082 case $1 in 14083 -*)set "./$1";; 14084 esac; 14085 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14086 ???[sx]*):;;*)false;;esac;fi 14087 '\'' sh 14088 ' 14089fi 14090as_executable_p=$as_test_x 14091 14092# Sed expression to map a string onto a valid CPP name. 14093as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14094 14095# Sed expression to map a string onto a valid variable name. 14096as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14097 14098 14099exec 6>&1 14100 14101# Save the log message, to keep $[0] and so on meaningful, and to 14102# report actual input values of CONFIG_FILES etc. instead of their 14103# values after options handling. 14104ac_log=" 14105This file was extended by $as_me, which was 14106generated by GNU Autoconf 2.61. Invocation command line was 14107 14108 CONFIG_FILES = $CONFIG_FILES 14109 CONFIG_HEADERS = $CONFIG_HEADERS 14110 CONFIG_LINKS = $CONFIG_LINKS 14111 CONFIG_COMMANDS = $CONFIG_COMMANDS 14112 $ $0 $@ 14113 14114on `(hostname || uname -n) 2>/dev/null | sed 1q` 14115" 14116 14117_ACEOF 14118 14119cat >>$CONFIG_STATUS <<_ACEOF 14120# Files that config.status was made for. 14121config_files="$ac_config_files" 14122config_headers="$ac_config_headers" 14123config_commands="$ac_config_commands" 14124 14125_ACEOF 14126 14127cat >>$CONFIG_STATUS <<\_ACEOF 14128ac_cs_usage="\ 14129\`$as_me' instantiates files from templates according to the 14130current configuration. 14131 14132Usage: $0 [OPTIONS] [FILE]... 14133 14134 -h, --help print this help, then exit 14135 -V, --version print version number and configuration settings, then exit 14136 -q, --quiet do not print progress messages 14137 -d, --debug don't remove temporary files 14138 --recheck update $as_me by reconfiguring in the same conditions 14139 --file=FILE[:TEMPLATE] 14140 instantiate the configuration file FILE 14141 --header=FILE[:TEMPLATE] 14142 instantiate the configuration header FILE 14143 14144Configuration files: 14145$config_files 14146 14147Configuration headers: 14148$config_headers 14149 14150Configuration commands: 14151$config_commands 14152 14153Report bugs to <bug-autoconf@gnu.org>." 14154 14155_ACEOF 14156cat >>$CONFIG_STATUS <<_ACEOF 14157ac_cs_version="\\ 14158config.status 14159configured by $0, generated by GNU Autoconf 2.61, 14160 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14161 14162Copyright (C) 2006 Free Software Foundation, Inc. 14163This config.status script is free software; the Free Software Foundation 14164gives unlimited permission to copy, distribute and modify it." 14165 14166ac_pwd='$ac_pwd' 14167srcdir='$srcdir' 14168INSTALL='$INSTALL' 14169_ACEOF 14170 14171cat >>$CONFIG_STATUS <<\_ACEOF 14172# If no file are specified by the user, then we need to provide default 14173# value. By we need to know if files were specified by the user. 14174ac_need_defaults=: 14175while test $# != 0 14176do 14177 case $1 in 14178 --*=*) 14179 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14181 ac_shift=: 14182 ;; 14183 *) 14184 ac_option=$1 14185 ac_optarg=$2 14186 ac_shift=shift 14187 ;; 14188 esac 14189 14190 case $ac_option in 14191 # Handling of the options. 14192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14193 ac_cs_recheck=: ;; 14194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14195 echo "$ac_cs_version"; exit ;; 14196 --debug | --debu | --deb | --de | --d | -d ) 14197 debug=: ;; 14198 --file | --fil | --fi | --f ) 14199 $ac_shift 14200 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14201 ac_need_defaults=false;; 14202 --header | --heade | --head | --hea ) 14203 $ac_shift 14204 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14205 ac_need_defaults=false;; 14206 --he | --h) 14207 # Conflict between --help and --header 14208 { echo "$as_me: error: ambiguous option: $1 14209Try \`$0 --help' for more information." >&2 14210 { (exit 1); exit 1; }; };; 14211 --help | --hel | -h ) 14212 echo "$ac_cs_usage"; exit ;; 14213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14214 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14215 ac_cs_silent=: ;; 14216 14217 # This is an error. 14218 -*) { echo "$as_me: error: unrecognized option: $1 14219Try \`$0 --help' for more information." >&2 14220 { (exit 1); exit 1; }; } ;; 14221 14222 *) ac_config_targets="$ac_config_targets $1" 14223 ac_need_defaults=false ;; 14224 14225 esac 14226 shift 14227done 14228 14229ac_configure_extra_args= 14230 14231if $ac_cs_silent; then 14232 exec 6>/dev/null 14233 ac_configure_extra_args="$ac_configure_extra_args --silent" 14234fi 14235 14236_ACEOF 14237cat >>$CONFIG_STATUS <<_ACEOF 14238if \$ac_cs_recheck; then 14239 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14240 CONFIG_SHELL=$SHELL 14241 export CONFIG_SHELL 14242 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14243fi 14244 14245_ACEOF 14246cat >>$CONFIG_STATUS <<\_ACEOF 14247exec 5>>config.log 14248{ 14249 echo 14250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14251## Running $as_me. ## 14252_ASBOX 14253 echo "$ac_log" 14254} >&5 14255 14256_ACEOF 14257cat >>$CONFIG_STATUS <<_ACEOF 14258# 14259# INIT-COMMANDS 14260# 14261 14262 14263_ACEOF 14264 14265cat >>$CONFIG_STATUS <<\_ACEOF 14266 14267# Handling of arguments. 14268for ac_config_target in $ac_config_targets 14269do 14270 case $ac_config_target in 14271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14272 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14274 14275 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14276echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14277 { (exit 1); exit 1; }; };; 14278 esac 14279done 14280 14281 14282# If the user did not use the arguments to specify the items to instantiate, 14283# then the envvar interface is used. Set only those that are not. 14284# We use the long form for the default assignment because of an extremely 14285# bizarre bug on SunOS 4.1.3. 14286if $ac_need_defaults; then 14287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14290fi 14291 14292# Have a temporary directory for convenience. Make it in the build tree 14293# simply because there is no reason against having it here, and in addition, 14294# creating and moving files from /tmp can sometimes cause problems. 14295# Hook for its removal unless debugging. 14296# Note that there is a small window in which the directory will not be cleaned: 14297# after its creation but before its name has been assigned to `$tmp'. 14298$debug || 14299{ 14300 tmp= 14301 trap 'exit_status=$? 14302 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14303' 0 14304 trap '{ (exit 1); exit 1; }' 1 2 13 15 14305} 14306# Create a (secure) tmp directory for tmp files. 14307 14308{ 14309 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14310 test -n "$tmp" && test -d "$tmp" 14311} || 14312{ 14313 tmp=./conf$$-$RANDOM 14314 (umask 077 && mkdir "$tmp") 14315} || 14316{ 14317 echo "$me: cannot create a temporary directory in ." >&2 14318 { (exit 1); exit 1; } 14319} 14320 14321# 14322# Set up the sed scripts for CONFIG_FILES section. 14323# 14324 14325# No need to generate the scripts if there are no CONFIG_FILES. 14326# This happens for instance when ./config.status config.h 14327if test -n "$CONFIG_FILES"; then 14328 14329_ACEOF 14330 14331 14332 14333ac_delim='%!_!# ' 14334for ac_last_try in false false false false false :; do 14335 cat >conf$$subs.sed <<_ACEOF 14336SHELL!$SHELL$ac_delim 14337PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14338PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14339PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14340PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14341PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14342PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14343exec_prefix!$exec_prefix$ac_delim 14344prefix!$prefix$ac_delim 14345program_transform_name!$program_transform_name$ac_delim 14346bindir!$bindir$ac_delim 14347sbindir!$sbindir$ac_delim 14348libexecdir!$libexecdir$ac_delim 14349datarootdir!$datarootdir$ac_delim 14350datadir!$datadir$ac_delim 14351sysconfdir!$sysconfdir$ac_delim 14352sharedstatedir!$sharedstatedir$ac_delim 14353localstatedir!$localstatedir$ac_delim 14354includedir!$includedir$ac_delim 14355oldincludedir!$oldincludedir$ac_delim 14356docdir!$docdir$ac_delim 14357infodir!$infodir$ac_delim 14358htmldir!$htmldir$ac_delim 14359dvidir!$dvidir$ac_delim 14360pdfdir!$pdfdir$ac_delim 14361psdir!$psdir$ac_delim 14362libdir!$libdir$ac_delim 14363localedir!$localedir$ac_delim 14364mandir!$mandir$ac_delim 14365DEFS!$DEFS$ac_delim 14366ECHO_C!$ECHO_C$ac_delim 14367ECHO_N!$ECHO_N$ac_delim 14368ECHO_T!$ECHO_T$ac_delim 14369LIBS!$LIBS$ac_delim 14370build_alias!$build_alias$ac_delim 14371host_alias!$host_alias$ac_delim 14372target_alias!$target_alias$ac_delim 14373build!$build$ac_delim 14374build_cpu!$build_cpu$ac_delim 14375build_vendor!$build_vendor$ac_delim 14376build_os!$build_os$ac_delim 14377host!$host$ac_delim 14378host_cpu!$host_cpu$ac_delim 14379host_vendor!$host_vendor$ac_delim 14380host_os!$host_os$ac_delim 14381SHLICC2!$SHLICC2$ac_delim 14382CC!$CC$ac_delim 14383CFLAGS!$CFLAGS$ac_delim 14384LDFLAGS!$LDFLAGS$ac_delim 14385CPPFLAGS!$CPPFLAGS$ac_delim 14386ac_ct_CC!$ac_ct_CC$ac_delim 14387EXEEXT!$EXEEXT$ac_delim 14388OBJEXT!$OBJEXT$ac_delim 14389CPP!$CPP$ac_delim 14390GREP!$GREP$ac_delim 14391EGREP!$EGREP$ac_delim 14392LIBOBJS!$LIBOBJS$ac_delim 14393RANLIB!$RANLIB$ac_delim 14394V_CCOPT!$V_CCOPT$ac_delim 14395V_DEFS!$V_DEFS$ac_delim 14396V_GROUP!$V_GROUP$ac_delim 14397V_INCLS!$V_INCLS$ac_delim 14398V_PCAPDEP!$V_PCAPDEP$ac_delim 14399LOCALSRC!$LOCALSRC$ac_delim 14400INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 14401INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14402INSTALL_DATA!$INSTALL_DATA$ac_delim 14403LTLIBOBJS!$LTLIBOBJS$ac_delim 14404_ACEOF 14405 14406 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then 14407 break 14408 elif $ac_last_try; then 14409 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14410echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14411 { (exit 1); exit 1; }; } 14412 else 14413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14414 fi 14415done 14416 14417ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14418if test -n "$ac_eof"; then 14419 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14420 ac_eof=`expr $ac_eof + 1` 14421fi 14422 14423cat >>$CONFIG_STATUS <<_ACEOF 14424cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14426_ACEOF 14427sed ' 14428s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14429s/^/s,@/; s/!/@,|#_!!_#|/ 14430:n 14431t n 14432s/'"$ac_delim"'$/,g/; t 14433s/$/\\/; p 14434N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14435' >>$CONFIG_STATUS <conf$$subs.sed 14436rm -f conf$$subs.sed 14437cat >>$CONFIG_STATUS <<_ACEOF 14438:end 14439s/|#_!!_#|//g 14440CEOF$ac_eof 14441_ACEOF 14442 14443 14444# VPATH may cause trouble with some makes, so we remove $(srcdir), 14445# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14446# trailing colons and then remove the whole line if VPATH becomes empty 14447# (actually we leave an empty line to preserve line numbers). 14448if test "x$srcdir" = x.; then 14449 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14450s/:*\$(srcdir):*/:/ 14451s/:*\${srcdir}:*/:/ 14452s/:*@srcdir@:*/:/ 14453s/^\([^=]*=[ ]*\):*/\1/ 14454s/:*$// 14455s/^[^=]*=[ ]*$// 14456}' 14457fi 14458 14459cat >>$CONFIG_STATUS <<\_ACEOF 14460fi # test -n "$CONFIG_FILES" 14461 14462 14463for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 14464do 14465 case $ac_tag in 14466 :[FHLC]) ac_mode=$ac_tag; continue;; 14467 esac 14468 case $ac_mode$ac_tag in 14469 :[FHL]*:*);; 14470 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14471echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14472 { (exit 1); exit 1; }; };; 14473 :[FH]-) ac_tag=-:-;; 14474 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14475 esac 14476 ac_save_IFS=$IFS 14477 IFS=: 14478 set x $ac_tag 14479 IFS=$ac_save_IFS 14480 shift 14481 ac_file=$1 14482 shift 14483 14484 case $ac_mode in 14485 :L) ac_source=$1;; 14486 :[FH]) 14487 ac_file_inputs= 14488 for ac_f 14489 do 14490 case $ac_f in 14491 -) ac_f="$tmp/stdin";; 14492 *) # Look for the file first in the build tree, then in the source tree 14493 # (if the path is not absolute). The absolute path cannot be DOS-style, 14494 # because $ac_f cannot contain `:'. 14495 test -f "$ac_f" || 14496 case $ac_f in 14497 [\\/$]*) false;; 14498 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14499 esac || 14500 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14501echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14502 { (exit 1); exit 1; }; };; 14503 esac 14504 ac_file_inputs="$ac_file_inputs $ac_f" 14505 done 14506 14507 # Let's still pretend it is `configure' which instantiates (i.e., don't 14508 # use $as_me), people would be surprised to read: 14509 # /* config.h. Generated by config.status. */ 14510 configure_input="Generated from "`IFS=: 14511 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14512 if test x"$ac_file" != x-; then 14513 configure_input="$ac_file. $configure_input" 14514 { echo "$as_me:$LINENO: creating $ac_file" >&5 14515echo "$as_me: creating $ac_file" >&6;} 14516 fi 14517 14518 case $ac_tag in 14519 *:-:* | *:-) cat >"$tmp/stdin";; 14520 esac 14521 ;; 14522 esac 14523 14524 ac_dir=`$as_dirname -- "$ac_file" || 14525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14526 X"$ac_file" : 'X\(//\)[^/]' \| \ 14527 X"$ac_file" : 'X\(//\)$' \| \ 14528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14529echo X"$ac_file" | 14530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14531 s//\1/ 14532 q 14533 } 14534 /^X\(\/\/\)[^/].*/{ 14535 s//\1/ 14536 q 14537 } 14538 /^X\(\/\/\)$/{ 14539 s//\1/ 14540 q 14541 } 14542 /^X\(\/\).*/{ 14543 s//\1/ 14544 q 14545 } 14546 s/.*/./; q'` 14547 { as_dir="$ac_dir" 14548 case $as_dir in #( 14549 -*) as_dir=./$as_dir;; 14550 esac 14551 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14552 as_dirs= 14553 while :; do 14554 case $as_dir in #( 14555 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14556 *) as_qdir=$as_dir;; 14557 esac 14558 as_dirs="'$as_qdir' $as_dirs" 14559 as_dir=`$as_dirname -- "$as_dir" || 14560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14561 X"$as_dir" : 'X\(//\)[^/]' \| \ 14562 X"$as_dir" : 'X\(//\)$' \| \ 14563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14564echo X"$as_dir" | 14565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14566 s//\1/ 14567 q 14568 } 14569 /^X\(\/\/\)[^/].*/{ 14570 s//\1/ 14571 q 14572 } 14573 /^X\(\/\/\)$/{ 14574 s//\1/ 14575 q 14576 } 14577 /^X\(\/\).*/{ 14578 s//\1/ 14579 q 14580 } 14581 s/.*/./; q'` 14582 test -d "$as_dir" && break 14583 done 14584 test -z "$as_dirs" || eval "mkdir $as_dirs" 14585 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14586echo "$as_me: error: cannot create directory $as_dir" >&2;} 14587 { (exit 1); exit 1; }; }; } 14588 ac_builddir=. 14589 14590case "$ac_dir" in 14591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14592*) 14593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14594 # A ".." for each directory in $ac_dir_suffix. 14595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14596 case $ac_top_builddir_sub in 14597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14599 esac ;; 14600esac 14601ac_abs_top_builddir=$ac_pwd 14602ac_abs_builddir=$ac_pwd$ac_dir_suffix 14603# for backward compatibility: 14604ac_top_builddir=$ac_top_build_prefix 14605 14606case $srcdir in 14607 .) # We are building in place. 14608 ac_srcdir=. 14609 ac_top_srcdir=$ac_top_builddir_sub 14610 ac_abs_top_srcdir=$ac_pwd ;; 14611 [\\/]* | ?:[\\/]* ) # Absolute name. 14612 ac_srcdir=$srcdir$ac_dir_suffix; 14613 ac_top_srcdir=$srcdir 14614 ac_abs_top_srcdir=$srcdir ;; 14615 *) # Relative name. 14616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14617 ac_top_srcdir=$ac_top_build_prefix$srcdir 14618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14619esac 14620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14621 14622 14623 case $ac_mode in 14624 :F) 14625 # 14626 # CONFIG_FILE 14627 # 14628 14629 case $INSTALL in 14630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14632 esac 14633_ACEOF 14634 14635cat >>$CONFIG_STATUS <<\_ACEOF 14636# If the template does not know about datarootdir, expand it. 14637# FIXME: This hack should be removed a few years after 2.60. 14638ac_datarootdir_hack=; ac_datarootdir_seen= 14639 14640case `sed -n '/datarootdir/ { 14641 p 14642 q 14643} 14644/@datadir@/p 14645/@docdir@/p 14646/@infodir@/p 14647/@localedir@/p 14648/@mandir@/p 14649' $ac_file_inputs` in 14650*datarootdir*) ac_datarootdir_seen=yes;; 14651*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14652 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14653echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14654_ACEOF 14655cat >>$CONFIG_STATUS <<_ACEOF 14656 ac_datarootdir_hack=' 14657 s&@datadir@&$datadir&g 14658 s&@docdir@&$docdir&g 14659 s&@infodir@&$infodir&g 14660 s&@localedir@&$localedir&g 14661 s&@mandir@&$mandir&g 14662 s&\\\${datarootdir}&$datarootdir&g' ;; 14663esac 14664_ACEOF 14665 14666# Neutralize VPATH when `$srcdir' = `.'. 14667# Shell code in configure.ac might set extrasub. 14668# FIXME: do we really want to maintain this feature? 14669cat >>$CONFIG_STATUS <<_ACEOF 14670 sed "$ac_vpsub 14671$extrasub 14672_ACEOF 14673cat >>$CONFIG_STATUS <<\_ACEOF 14674:t 14675/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14676s&@configure_input@&$configure_input&;t t 14677s&@top_builddir@&$ac_top_builddir_sub&;t t 14678s&@srcdir@&$ac_srcdir&;t t 14679s&@abs_srcdir@&$ac_abs_srcdir&;t t 14680s&@top_srcdir@&$ac_top_srcdir&;t t 14681s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14682s&@builddir@&$ac_builddir&;t t 14683s&@abs_builddir@&$ac_abs_builddir&;t t 14684s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14685s&@INSTALL@&$ac_INSTALL&;t t 14686$ac_datarootdir_hack 14687" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 14688 14689test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14690 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14692 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14693which seems to be undefined. Please make sure it is defined." >&5 14694echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14695which seems to be undefined. Please make sure it is defined." >&2;} 14696 14697 rm -f "$tmp/stdin" 14698 case $ac_file in 14699 -) cat "$tmp/out"; rm -f "$tmp/out";; 14700 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14701 esac 14702 ;; 14703 :H) 14704 # 14705 # CONFIG_HEADER 14706 # 14707_ACEOF 14708 14709# Transform confdefs.h into a sed script `conftest.defines', that 14710# substitutes the proper values into config.h.in to produce config.h. 14711rm -f conftest.defines conftest.tail 14712# First, append a space to every undef/define line, to ease matching. 14713echo 's/$/ /' >conftest.defines 14714# Then, protect against being on the right side of a sed subst, or in 14715# an unquoted here document, in config.status. If some macros were 14716# called several times there might be several #defines for the same 14717# symbol, which is useless. But do not sort them, since the last 14718# AC_DEFINE must be honored. 14719ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14720# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 14721# NAME is the cpp macro being defined, VALUE is the value it is being given. 14722# PARAMS is the parameter list in the macro definition--in most cases, it's 14723# just an empty string. 14724ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 14725ac_dB='\\)[ (].*,\\1define\\2' 14726ac_dC=' ' 14727ac_dD=' ,' 14728 14729uniq confdefs.h | 14730 sed -n ' 14731 t rset 14732 :rset 14733 s/^[ ]*#[ ]*define[ ][ ]*// 14734 t ok 14735 d 14736 :ok 14737 s/[\\&,]/\\&/g 14738 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 14739 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 14740 ' >>conftest.defines 14741 14742# Remove the space that was appended to ease matching. 14743# Then replace #undef with comments. This is necessary, for 14744# example, in the case of _POSIX_SOURCE, which is predefined and required 14745# on some systems where configure will not decide to define it. 14746# (The regexp can be short, since the line contains either #define or #undef.) 14747echo 's/ $// 14748s,^[ #]*u.*,/* & */,' >>conftest.defines 14749 14750# Break up conftest.defines: 14751ac_max_sed_lines=50 14752 14753# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 14754# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 14755# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 14756# et cetera. 14757ac_in='$ac_file_inputs' 14758ac_out='"$tmp/out1"' 14759ac_nxt='"$tmp/out2"' 14760 14761while : 14762do 14763 # Write a here document: 14764 cat >>$CONFIG_STATUS <<_ACEOF 14765 # First, check the format of the line: 14766 cat >"\$tmp/defines.sed" <<\\CEOF 14767/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 14768/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 14769b 14770:def 14771_ACEOF 14772 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 14773 echo 'CEOF 14774 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 14775 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 14776 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 14777 grep . conftest.tail >/dev/null || break 14778 rm -f conftest.defines 14779 mv conftest.tail conftest.defines 14780done 14781rm -f conftest.defines conftest.tail 14782 14783echo "ac_result=$ac_in" >>$CONFIG_STATUS 14784cat >>$CONFIG_STATUS <<\_ACEOF 14785 if test x"$ac_file" != x-; then 14786 echo "/* $configure_input */" >"$tmp/config.h" 14787 cat "$ac_result" >>"$tmp/config.h" 14788 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 14789 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14790echo "$as_me: $ac_file is unchanged" >&6;} 14791 else 14792 rm -f $ac_file 14793 mv "$tmp/config.h" $ac_file 14794 fi 14795 else 14796 echo "/* $configure_input */" 14797 cat "$ac_result" 14798 fi 14799 rm -f "$tmp/out12" 14800 ;; 14801 14802 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 14803echo "$as_me: executing $ac_file commands" >&6;} 14804 ;; 14805 esac 14806 14807 14808 case $ac_file$ac_mode in 14809 "default-1":C) if test -f .devel; then 14810 echo timestamp > stamp-h 14811 cat Makefile-devel-adds >> Makefile 14812 make depend 14813fi ;; 14814 14815 esac 14816done # for ac_tag 14817 14818 14819{ (exit 0); exit 0; } 14820_ACEOF 14821chmod +x $CONFIG_STATUS 14822ac_clean_files=$ac_clean_files_save 14823 14824 14825# configure is writing to config.log, and then calls config.status. 14826# config.status does its own redirection, appending to config.log. 14827# Unfortunately, on DOS this fails, as config.log is still kept open 14828# by configure, so config.status won't be able to write to it; its 14829# output is simply discarded. So we exec the FD to /dev/null, 14830# effectively closing config.log, so it can be properly (re)opened and 14831# appended to by config.status. When coming back to configure, we 14832# need to make the FD available again. 14833if test "$no_create" != yes; then 14834 ac_cs_success=: 14835 ac_config_status_args= 14836 test "$silent" = yes && 14837 ac_config_status_args="$ac_config_status_args --quiet" 14838 exec 5>/dev/null 14839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14840 exec 5>>config.log 14841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14842 # would make configure fail if this is the last instruction. 14843 $ac_cs_success || { (exit 1); exit 1; } 14844fi 14845 14846exit 0 14847