1#! /bin/sh 2# From configure.in Revision: 1.204 . 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 674PCAP_CONFIG 675RANLIB 676V_CCOPT 677V_DEFS 678V_GROUP 679V_INCLS 680V_PCAPDEP 681LOCALSRC 682MAN_FILE_FORMATS 683MAN_MISC_INFO 684INSTALL_PROGRAM 685INSTALL_SCRIPT 686INSTALL_DATA 687LTLIBOBJS' 688ac_subst_files='' 689 ac_precious_vars='build_alias 690host_alias 691target_alias 692CC 693CFLAGS 694LDFLAGS 695LIBS 696CPPFLAGS 697CPP' 698 699 700# Initialize some variables set by options. 701ac_init_help= 702ac_init_version=false 703# The variables have the same names as the options, with 704# dashes changed to underlines. 705cache_file=/dev/null 706exec_prefix=NONE 707no_create= 708no_recursion= 709prefix=NONE 710program_prefix=NONE 711program_suffix=NONE 712program_transform_name=s,x,x, 713silent= 714site= 715srcdir= 716verbose= 717x_includes=NONE 718x_libraries=NONE 719 720# Installation directory options. 721# These are left unexpanded so users can "make install exec_prefix=/foo" 722# and all the variables that are supposed to be based on exec_prefix 723# by default will actually change. 724# Use braces instead of parens because sh, perl, etc. also accept them. 725# (The list follows the same order as the GNU Coding Standards.) 726bindir='${exec_prefix}/bin' 727sbindir='${exec_prefix}/sbin' 728libexecdir='${exec_prefix}/libexec' 729datarootdir='${prefix}/share' 730datadir='${datarootdir}' 731sysconfdir='${prefix}/etc' 732sharedstatedir='${prefix}/com' 733localstatedir='${prefix}/var' 734includedir='${prefix}/include' 735oldincludedir='/usr/include' 736docdir='${datarootdir}/doc/${PACKAGE}' 737infodir='${datarootdir}/info' 738htmldir='${docdir}' 739dvidir='${docdir}' 740pdfdir='${docdir}' 741psdir='${docdir}' 742libdir='${exec_prefix}/lib' 743localedir='${datarootdir}/locale' 744mandir='${datarootdir}/man' 745 746ac_prev= 747ac_dashdash= 748for ac_option 749do 750 # If the previous option needs an argument, assign it. 751 if test -n "$ac_prev"; then 752 eval $ac_prev=\$ac_option 753 ac_prev= 754 continue 755 fi 756 757 case $ac_option in 758 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 759 *) ac_optarg=yes ;; 760 esac 761 762 # Accept the important Cygnus configure options, so we can diagnose typos. 763 764 case $ac_dashdash$ac_option in 765 --) 766 ac_dashdash=yes ;; 767 768 -bindir | --bindir | --bindi | --bind | --bin | --bi) 769 ac_prev=bindir ;; 770 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 771 bindir=$ac_optarg ;; 772 773 -build | --build | --buil | --bui | --bu) 774 ac_prev=build_alias ;; 775 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 776 build_alias=$ac_optarg ;; 777 778 -cache-file | --cache-file | --cache-fil | --cache-fi \ 779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 780 ac_prev=cache_file ;; 781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 783 cache_file=$ac_optarg ;; 784 785 --config-cache | -C) 786 cache_file=config.cache ;; 787 788 -datadir | --datadir | --datadi | --datad) 789 ac_prev=datadir ;; 790 -datadir=* | --datadir=* | --datadi=* | --datad=*) 791 datadir=$ac_optarg ;; 792 793 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 794 | --dataroo | --dataro | --datar) 795 ac_prev=datarootdir ;; 796 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 797 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 798 datarootdir=$ac_optarg ;; 799 800 -disable-* | --disable-*) 801 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 802 # Reject names that are not valid shell variable names. 803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 805 { (exit 1); exit 1; }; } 806 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 807 eval enable_$ac_feature=no ;; 808 809 -docdir | --docdir | --docdi | --doc | --do) 810 ac_prev=docdir ;; 811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 812 docdir=$ac_optarg ;; 813 814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 815 ac_prev=dvidir ;; 816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 817 dvidir=$ac_optarg ;; 818 819 -enable-* | --enable-*) 820 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 821 # Reject names that are not valid shell variable names. 822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 824 { (exit 1); exit 1; }; } 825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 826 eval enable_$ac_feature=\$ac_optarg ;; 827 828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 830 | --exec | --exe | --ex) 831 ac_prev=exec_prefix ;; 832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 834 | --exec=* | --exe=* | --ex=*) 835 exec_prefix=$ac_optarg ;; 836 837 -gas | --gas | --ga | --g) 838 # Obsolete; use --with-gas. 839 with_gas=yes ;; 840 841 -help | --help | --hel | --he | -h) 842 ac_init_help=long ;; 843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 844 ac_init_help=recursive ;; 845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 846 ac_init_help=short ;; 847 848 -host | --host | --hos | --ho) 849 ac_prev=host_alias ;; 850 -host=* | --host=* | --hos=* | --ho=*) 851 host_alias=$ac_optarg ;; 852 853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 854 ac_prev=htmldir ;; 855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 856 | --ht=*) 857 htmldir=$ac_optarg ;; 858 859 -includedir | --includedir | --includedi | --included | --include \ 860 | --includ | --inclu | --incl | --inc) 861 ac_prev=includedir ;; 862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 863 | --includ=* | --inclu=* | --incl=* | --inc=*) 864 includedir=$ac_optarg ;; 865 866 -infodir | --infodir | --infodi | --infod | --info | --inf) 867 ac_prev=infodir ;; 868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 869 infodir=$ac_optarg ;; 870 871 -libdir | --libdir | --libdi | --libd) 872 ac_prev=libdir ;; 873 -libdir=* | --libdir=* | --libdi=* | --libd=*) 874 libdir=$ac_optarg ;; 875 876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 877 | --libexe | --libex | --libe) 878 ac_prev=libexecdir ;; 879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 880 | --libexe=* | --libex=* | --libe=*) 881 libexecdir=$ac_optarg ;; 882 883 -localedir | --localedir | --localedi | --localed | --locale) 884 ac_prev=localedir ;; 885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 886 localedir=$ac_optarg ;; 887 888 -localstatedir | --localstatedir | --localstatedi | --localstated \ 889 | --localstate | --localstat | --localsta | --localst | --locals) 890 ac_prev=localstatedir ;; 891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 893 localstatedir=$ac_optarg ;; 894 895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 896 ac_prev=mandir ;; 897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 898 mandir=$ac_optarg ;; 899 900 -nfp | --nfp | --nf) 901 # Obsolete; use --without-fp. 902 with_fp=no ;; 903 904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 905 | --no-cr | --no-c | -n) 906 no_create=yes ;; 907 908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 910 no_recursion=yes ;; 911 912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 914 | --oldin | --oldi | --old | --ol | --o) 915 ac_prev=oldincludedir ;; 916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 919 oldincludedir=$ac_optarg ;; 920 921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 922 ac_prev=prefix ;; 923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 924 prefix=$ac_optarg ;; 925 926 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 927 | --program-pre | --program-pr | --program-p) 928 ac_prev=program_prefix ;; 929 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 931 program_prefix=$ac_optarg ;; 932 933 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 934 | --program-suf | --program-su | --program-s) 935 ac_prev=program_suffix ;; 936 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 938 program_suffix=$ac_optarg ;; 939 940 -program-transform-name | --program-transform-name \ 941 | --program-transform-nam | --program-transform-na \ 942 | --program-transform-n | --program-transform- \ 943 | --program-transform | --program-transfor \ 944 | --program-transfo | --program-transf \ 945 | --program-trans | --program-tran \ 946 | --progr-tra | --program-tr | --program-t) 947 ac_prev=program_transform_name ;; 948 -program-transform-name=* | --program-transform-name=* \ 949 | --program-transform-nam=* | --program-transform-na=* \ 950 | --program-transform-n=* | --program-transform-=* \ 951 | --program-transform=* | --program-transfor=* \ 952 | --program-transfo=* | --program-transf=* \ 953 | --program-trans=* | --program-tran=* \ 954 | --progr-tra=* | --program-tr=* | --program-t=*) 955 program_transform_name=$ac_optarg ;; 956 957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 958 ac_prev=pdfdir ;; 959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 960 pdfdir=$ac_optarg ;; 961 962 -psdir | --psdir | --psdi | --psd | --ps) 963 ac_prev=psdir ;; 964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 965 psdir=$ac_optarg ;; 966 967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 968 | -silent | --silent | --silen | --sile | --sil) 969 silent=yes ;; 970 971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 972 ac_prev=sbindir ;; 973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 974 | --sbi=* | --sb=*) 975 sbindir=$ac_optarg ;; 976 977 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 979 | --sharedst | --shareds | --shared | --share | --shar \ 980 | --sha | --sh) 981 ac_prev=sharedstatedir ;; 982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 985 | --sha=* | --sh=*) 986 sharedstatedir=$ac_optarg ;; 987 988 -site | --site | --sit) 989 ac_prev=site ;; 990 -site=* | --site=* | --sit=*) 991 site=$ac_optarg ;; 992 993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 994 ac_prev=srcdir ;; 995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 996 srcdir=$ac_optarg ;; 997 998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 999 | --syscon | --sysco | --sysc | --sys | --sy) 1000 ac_prev=sysconfdir ;; 1001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1003 sysconfdir=$ac_optarg ;; 1004 1005 -target | --target | --targe | --targ | --tar | --ta | --t) 1006 ac_prev=target_alias ;; 1007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1008 target_alias=$ac_optarg ;; 1009 1010 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1011 verbose=yes ;; 1012 1013 -version | --version | --versio | --versi | --vers | -V) 1014 ac_init_version=: ;; 1015 1016 -with-* | --with-*) 1017 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1020 { echo "$as_me: error: invalid package name: $ac_package" >&2 1021 { (exit 1); exit 1; }; } 1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1023 eval with_$ac_package=\$ac_optarg ;; 1024 1025 -without-* | --without-*) 1026 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1029 { echo "$as_me: error: invalid package name: $ac_package" >&2 1030 { (exit 1); exit 1; }; } 1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1032 eval with_$ac_package=no ;; 1033 1034 --x) 1035 # Obsolete; use --with-x. 1036 with_x=yes ;; 1037 1038 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1039 | --x-incl | --x-inc | --x-in | --x-i) 1040 ac_prev=x_includes ;; 1041 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1042 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1043 x_includes=$ac_optarg ;; 1044 1045 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1046 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1047 ac_prev=x_libraries ;; 1048 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1049 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1050 x_libraries=$ac_optarg ;; 1051 1052 -*) { echo "$as_me: error: unrecognized option: $ac_option 1053Try \`$0 --help' for more information." >&2 1054 { (exit 1); exit 1; }; } 1055 ;; 1056 1057 *=*) 1058 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1059 # Reject names that are not valid shell variable names. 1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1062 { (exit 1); exit 1; }; } 1063 eval $ac_envvar=\$ac_optarg 1064 export $ac_envvar ;; 1065 1066 *) 1067 # FIXME: should be removed in autoconf 3.0. 1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1072 ;; 1073 1074 esac 1075done 1076 1077if test -n "$ac_prev"; then 1078 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1079 { echo "$as_me: error: missing argument to $ac_option" >&2 1080 { (exit 1); exit 1; }; } 1081fi 1082 1083# Be sure to have absolute directory names. 1084for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1085 datadir sysconfdir sharedstatedir localstatedir includedir \ 1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1087 libdir localedir mandir 1088do 1089 eval ac_val=\$$ac_var 1090 case $ac_val in 1091 [\\/$]* | ?:[\\/]* ) continue;; 1092 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1093 esac 1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1095 { (exit 1); exit 1; }; } 1096done 1097 1098# There might be people who depend on the old broken behavior: `$host' 1099# used to hold the argument of --host etc. 1100# FIXME: To remove some day. 1101build=$build_alias 1102host=$host_alias 1103target=$target_alias 1104 1105# FIXME: To remove some day. 1106if test "x$host_alias" != x; then 1107 if test "x$build_alias" = x; then 1108 cross_compiling=maybe 1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1110 If a cross compiler is detected then cross compile mode will be used." >&2 1111 elif test "x$build_alias" != "x$host_alias"; then 1112 cross_compiling=yes 1113 fi 1114fi 1115 1116ac_tool_prefix= 1117test -n "$host_alias" && ac_tool_prefix=$host_alias- 1118 1119test "$silent" = yes && exec 6>/dev/null 1120 1121 1122ac_pwd=`pwd` && test -n "$ac_pwd" && 1123ac_ls_di=`ls -di .` && 1124ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1125 { echo "$as_me: error: Working directory cannot be determined" >&2 1126 { (exit 1); exit 1; }; } 1127test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1128 { echo "$as_me: error: pwd does not report name of working directory" >&2 1129 { (exit 1); exit 1; }; } 1130 1131 1132# Find the source files, if location was not specified. 1133if test -z "$srcdir"; then 1134 ac_srcdir_defaulted=yes 1135 # Try the directory containing this script, then the parent directory. 1136 ac_confdir=`$as_dirname -- "$0" || 1137$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1138 X"$0" : 'X\(//\)[^/]' \| \ 1139 X"$0" : 'X\(//\)$' \| \ 1140 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1141echo X"$0" | 1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1143 s//\1/ 1144 q 1145 } 1146 /^X\(\/\/\)[^/].*/{ 1147 s//\1/ 1148 q 1149 } 1150 /^X\(\/\/\)$/{ 1151 s//\1/ 1152 q 1153 } 1154 /^X\(\/\).*/{ 1155 s//\1/ 1156 q 1157 } 1158 s/.*/./; q'` 1159 srcdir=$ac_confdir 1160 if test ! -r "$srcdir/$ac_unique_file"; then 1161 srcdir=.. 1162 fi 1163else 1164 ac_srcdir_defaulted=no 1165fi 1166if test ! -r "$srcdir/$ac_unique_file"; then 1167 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1169 { (exit 1); exit 1; }; } 1170fi 1171ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1172ac_abs_confdir=`( 1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1174 { (exit 1); exit 1; }; } 1175 pwd)` 1176# When building in place, set srcdir=. 1177if test "$ac_abs_confdir" = "$ac_pwd"; then 1178 srcdir=. 1179fi 1180# Remove unnecessary trailing slashes from srcdir. 1181# Double slashes in file names in object file debugging info 1182# mess up M-x gdb in Emacs. 1183case $srcdir in 1184*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1185esac 1186for ac_var in $ac_precious_vars; do 1187 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1188 eval ac_env_${ac_var}_value=\$${ac_var} 1189 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1190 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1191done 1192 1193# 1194# Report the --help message. 1195# 1196if test "$ac_init_help" = "long"; then 1197 # Omit some internal or obsolete options to make the list less imposing. 1198 # This message is too long to be a string in the A/UX 3.1 sh. 1199 cat <<_ACEOF 1200\`configure' configures this package to adapt to many kinds of systems. 1201 1202Usage: $0 [OPTION]... [VAR=VALUE]... 1203 1204To assign environment variables (e.g., CC, CFLAGS...), specify them as 1205VAR=VALUE. See below for descriptions of some of the useful variables. 1206 1207Defaults for the options are specified in brackets. 1208 1209Configuration: 1210 -h, --help display this help and exit 1211 --help=short display options specific to this package 1212 --help=recursive display the short help of all the included packages 1213 -V, --version display version information and exit 1214 -q, --quiet, --silent do not print \`checking...' messages 1215 --cache-file=FILE cache test results in FILE [disabled] 1216 -C, --config-cache alias for \`--cache-file=config.cache' 1217 -n, --no-create do not create output files 1218 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1219 1220Installation directories: 1221 --prefix=PREFIX install architecture-independent files in PREFIX 1222 [$ac_default_prefix] 1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1224 [PREFIX] 1225 1226By default, \`make install' will install all the files in 1227\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1228an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1229for instance \`--prefix=\$HOME'. 1230 1231For better control, use the options below. 1232 1233Fine tuning of the installation directories: 1234 --bindir=DIR user executables [EPREFIX/bin] 1235 --sbindir=DIR system admin executables [EPREFIX/sbin] 1236 --libexecdir=DIR program executables [EPREFIX/libexec] 1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1240 --libdir=DIR object code libraries [EPREFIX/lib] 1241 --includedir=DIR C header files [PREFIX/include] 1242 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1245 --infodir=DIR info documentation [DATAROOTDIR/info] 1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1247 --mandir=DIR man documentation [DATAROOTDIR/man] 1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1249 --htmldir=DIR html documentation [DOCDIR] 1250 --dvidir=DIR dvi documentation [DOCDIR] 1251 --pdfdir=DIR pdf documentation [DOCDIR] 1252 --psdir=DIR ps documentation [DOCDIR] 1253_ACEOF 1254 1255 cat <<\_ACEOF 1256 1257System types: 1258 --build=BUILD configure for building on BUILD [guessed] 1259 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1260_ACEOF 1261fi 1262 1263if test -n "$ac_init_help"; then 1264 1265 cat <<\_ACEOF 1266 1267Optional Features: 1268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1270 --disable-universal don't build universal on OS X 1271 --enable-smb enable possibly-buggy SMB printer default=yes 1272 --disable-smb disable possibly-buggy SMB printer 1273 --enable-ipv6 enable ipv6 (with ipv4) support 1274 --disable-ipv6 disable ipv6 support 1275 1276Optional Packages: 1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1279 --without-gcc don't use gcc 1280 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes 1281 --without-smi don't link with libsmi 1282 --with-user=USERNAME drop privileges by default to USERNAME 1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1284 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if 1285 supplied). [default=yes, if available] 1286 1287Some influential environment variables: 1288 CC C compiler command 1289 CFLAGS C compiler flags 1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1291 nonstandard directory <lib dir> 1292 LIBS libraries to pass to the linker, e.g. -l<library> 1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1294 you have headers in a nonstandard directory <include dir> 1295 CPP C preprocessor 1296 1297Use these variables to override the choices made by `configure' or to help 1298it to find libraries and programs with nonstandard names/locations. 1299 1300_ACEOF 1301ac_status=$? 1302fi 1303 1304if test "$ac_init_help" = "recursive"; then 1305 # If there are subdirs, report their specific --help. 1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1307 test -d "$ac_dir" || continue 1308 ac_builddir=. 1309 1310case "$ac_dir" in 1311.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1312*) 1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1314 # A ".." for each directory in $ac_dir_suffix. 1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1316 case $ac_top_builddir_sub in 1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1319 esac ;; 1320esac 1321ac_abs_top_builddir=$ac_pwd 1322ac_abs_builddir=$ac_pwd$ac_dir_suffix 1323# for backward compatibility: 1324ac_top_builddir=$ac_top_build_prefix 1325 1326case $srcdir in 1327 .) # We are building in place. 1328 ac_srcdir=. 1329 ac_top_srcdir=$ac_top_builddir_sub 1330 ac_abs_top_srcdir=$ac_pwd ;; 1331 [\\/]* | ?:[\\/]* ) # Absolute name. 1332 ac_srcdir=$srcdir$ac_dir_suffix; 1333 ac_top_srcdir=$srcdir 1334 ac_abs_top_srcdir=$srcdir ;; 1335 *) # Relative name. 1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1337 ac_top_srcdir=$ac_top_build_prefix$srcdir 1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1339esac 1340ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1341 1342 cd "$ac_dir" || { ac_status=$?; continue; } 1343 # Check for guested configure. 1344 if test -f "$ac_srcdir/configure.gnu"; then 1345 echo && 1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1347 elif test -f "$ac_srcdir/configure"; then 1348 echo && 1349 $SHELL "$ac_srcdir/configure" --help=recursive 1350 else 1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1352 fi || ac_status=$? 1353 cd "$ac_pwd" || { ac_status=$?; break; } 1354 done 1355fi 1356 1357test -n "$ac_init_help" && exit $ac_status 1358if $ac_init_version; then 1359 cat <<\_ACEOF 1360configure 1361generated by GNU Autoconf 2.61 1362 1363Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1365This configure script is free software; the Free Software Foundation 1366gives unlimited permission to copy, distribute and modify it. 1367_ACEOF 1368 exit 1369fi 1370cat >config.log <<_ACEOF 1371This file contains any messages produced by compilers while 1372running configure, to aid debugging if configure makes a mistake. 1373 1374It was created by $as_me, which was 1375generated by GNU Autoconf 2.61. Invocation command line was 1376 1377 $ $0 $@ 1378 1379_ACEOF 1380exec 5>>config.log 1381{ 1382cat <<_ASUNAME 1383## --------- ## 1384## Platform. ## 1385## --------- ## 1386 1387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1388uname -m = `(uname -m) 2>/dev/null || echo unknown` 1389uname -r = `(uname -r) 2>/dev/null || echo unknown` 1390uname -s = `(uname -s) 2>/dev/null || echo unknown` 1391uname -v = `(uname -v) 2>/dev/null || echo unknown` 1392 1393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1394/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1395 1396/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1397/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1399/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1400/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1401/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1402/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1403 1404_ASUNAME 1405 1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1407for as_dir in $PATH 1408do 1409 IFS=$as_save_IFS 1410 test -z "$as_dir" && as_dir=. 1411 echo "PATH: $as_dir" 1412done 1413IFS=$as_save_IFS 1414 1415} >&5 1416 1417cat >&5 <<_ACEOF 1418 1419 1420## ----------- ## 1421## Core tests. ## 1422## ----------- ## 1423 1424_ACEOF 1425 1426 1427# Keep a trace of the command line. 1428# Strip out --no-create and --no-recursion so they do not pile up. 1429# Strip out --silent because we don't want to record it for future runs. 1430# Also quote any args containing shell meta-characters. 1431# Make two passes to allow for proper duplicate-argument suppression. 1432ac_configure_args= 1433ac_configure_args0= 1434ac_configure_args1= 1435ac_must_keep_next=false 1436for ac_pass in 1 2 1437do 1438 for ac_arg 1439 do 1440 case $ac_arg in 1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1443 | -silent | --silent | --silen | --sile | --sil) 1444 continue ;; 1445 *\'*) 1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1447 esac 1448 case $ac_pass in 1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1450 2) 1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1452 if test $ac_must_keep_next = true; then 1453 ac_must_keep_next=false # Got value, back to normal. 1454 else 1455 case $ac_arg in 1456 *=* | --config-cache | -C | -disable-* | --disable-* \ 1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1459 | -with-* | --with-* | -without-* | --without-* | --x) 1460 case "$ac_configure_args0 " in 1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1462 esac 1463 ;; 1464 -* ) ac_must_keep_next=true ;; 1465 esac 1466 fi 1467 ac_configure_args="$ac_configure_args '$ac_arg'" 1468 ;; 1469 esac 1470 done 1471done 1472$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1473$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1474 1475# When interrupted or exit'd, cleanup temporary files, and complete 1476# config.log. We remove comments because anyway the quotes in there 1477# would cause problems or look ugly. 1478# WARNING: Use '\'' to represent an apostrophe within the trap. 1479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1480trap 'exit_status=$? 1481 # Save into config.log some information that might help in debugging. 1482 { 1483 echo 1484 1485 cat <<\_ASBOX 1486## ---------------- ## 1487## Cache variables. ## 1488## ---------------- ## 1489_ASBOX 1490 echo 1491 # The following way of writing the cache mishandles newlines in values, 1492( 1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1494 eval ac_val=\$$ac_var 1495 case $ac_val in #( 1496 *${as_nl}*) 1497 case $ac_var in #( 1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1499echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1500 esac 1501 case $ac_var in #( 1502 _ | IFS | as_nl) ;; #( 1503 *) $as_unset $ac_var ;; 1504 esac ;; 1505 esac 1506 done 1507 (set) 2>&1 | 1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1509 *${as_nl}ac_space=\ *) 1510 sed -n \ 1511 "s/'\''/'\''\\\\'\'''\''/g; 1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1513 ;; #( 1514 *) 1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1516 ;; 1517 esac | 1518 sort 1519) 1520 echo 1521 1522 cat <<\_ASBOX 1523## ----------------- ## 1524## Output variables. ## 1525## ----------------- ## 1526_ASBOX 1527 echo 1528 for ac_var in $ac_subst_vars 1529 do 1530 eval ac_val=\$$ac_var 1531 case $ac_val in 1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1533 esac 1534 echo "$ac_var='\''$ac_val'\''" 1535 done | sort 1536 echo 1537 1538 if test -n "$ac_subst_files"; then 1539 cat <<\_ASBOX 1540## ------------------- ## 1541## File substitutions. ## 1542## ------------------- ## 1543_ASBOX 1544 echo 1545 for ac_var in $ac_subst_files 1546 do 1547 eval ac_val=\$$ac_var 1548 case $ac_val in 1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1550 esac 1551 echo "$ac_var='\''$ac_val'\''" 1552 done | sort 1553 echo 1554 fi 1555 1556 if test -s confdefs.h; then 1557 cat <<\_ASBOX 1558## ----------- ## 1559## confdefs.h. ## 1560## ----------- ## 1561_ASBOX 1562 echo 1563 cat confdefs.h 1564 echo 1565 fi 1566 test "$ac_signal" != 0 && 1567 echo "$as_me: caught signal $ac_signal" 1568 echo "$as_me: exit $exit_status" 1569 } >&5 1570 rm -f core *.core core.conftest.* && 1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1572 exit $exit_status 1573' 0 1574for ac_signal in 1 2 13 15; do 1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1576done 1577ac_signal=0 1578 1579# confdefs.h avoids OS command line length limits that DEFS can exceed. 1580rm -f -r conftest* confdefs.h 1581 1582# Predefined preprocessor variables. 1583 1584cat >>confdefs.h <<_ACEOF 1585#define PACKAGE_NAME "$PACKAGE_NAME" 1586_ACEOF 1587 1588 1589cat >>confdefs.h <<_ACEOF 1590#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1591_ACEOF 1592 1593 1594cat >>confdefs.h <<_ACEOF 1595#define PACKAGE_VERSION "$PACKAGE_VERSION" 1596_ACEOF 1597 1598 1599cat >>confdefs.h <<_ACEOF 1600#define PACKAGE_STRING "$PACKAGE_STRING" 1601_ACEOF 1602 1603 1604cat >>confdefs.h <<_ACEOF 1605#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1606_ACEOF 1607 1608 1609# Let the site file select an alternate cache file if it wants to. 1610# Prefer explicitly selected file to automatically selected ones. 1611if test -n "$CONFIG_SITE"; then 1612 set x "$CONFIG_SITE" 1613elif test "x$prefix" != xNONE; then 1614 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1615else 1616 set x "$ac_default_prefix/share/config.site" \ 1617 "$ac_default_prefix/etc/config.site" 1618fi 1619shift 1620for ac_site_file 1621do 1622 if test -r "$ac_site_file"; then 1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1624echo "$as_me: loading site script $ac_site_file" >&6;} 1625 sed 's/^/| /' "$ac_site_file" >&5 1626 . "$ac_site_file" 1627 fi 1628done 1629 1630if test -r "$cache_file"; then 1631 # Some versions of bash will fail to source /dev/null (special 1632 # files actually), so we avoid doing that. 1633 if test -f "$cache_file"; then 1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1635echo "$as_me: loading cache $cache_file" >&6;} 1636 case $cache_file in 1637 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1638 *) . "./$cache_file";; 1639 esac 1640 fi 1641else 1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1643echo "$as_me: creating cache $cache_file" >&6;} 1644 >$cache_file 1645fi 1646 1647# Check that the precious variables saved in the cache have kept the same 1648# value. 1649ac_cache_corrupted=false 1650for ac_var in $ac_precious_vars; do 1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1652 eval ac_new_set=\$ac_env_${ac_var}_set 1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1654 eval ac_new_val=\$ac_env_${ac_var}_value 1655 case $ac_old_set,$ac_new_set in 1656 set,) 1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1658echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1659 ac_cache_corrupted=: ;; 1660 ,set) 1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1662echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1663 ac_cache_corrupted=: ;; 1664 ,);; 1665 *) 1666 if test "x$ac_old_val" != "x$ac_new_val"; then 1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1668echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1670echo "$as_me: former value: $ac_old_val" >&2;} 1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1672echo "$as_me: current value: $ac_new_val" >&2;} 1673 ac_cache_corrupted=: 1674 fi;; 1675 esac 1676 # Pass precious variables to config.status. 1677 if test "$ac_new_set" = set; then 1678 case $ac_new_val in 1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1680 *) ac_arg=$ac_var=$ac_new_val ;; 1681 esac 1682 case " $ac_configure_args " in 1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1685 esac 1686 fi 1687done 1688if $ac_cache_corrupted; then 1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1690echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1692echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1693 { (exit 1); exit 1; }; } 1694fi 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712ac_ext=c 1713ac_cpp='$CPP $CPPFLAGS' 1714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1716ac_compiler_gnu=$ac_cv_c_compiler_gnu 1717 1718 1719 1720ac_aux_dir= 1721for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1722 if test -f "$ac_dir/install-sh"; then 1723 ac_aux_dir=$ac_dir 1724 ac_install_sh="$ac_aux_dir/install-sh -c" 1725 break 1726 elif test -f "$ac_dir/install.sh"; then 1727 ac_aux_dir=$ac_dir 1728 ac_install_sh="$ac_aux_dir/install.sh -c" 1729 break 1730 elif test -f "$ac_dir/shtool"; then 1731 ac_aux_dir=$ac_dir 1732 ac_install_sh="$ac_aux_dir/shtool install -c" 1733 break 1734 fi 1735done 1736if test -z "$ac_aux_dir"; then 1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1738echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1739 { (exit 1); exit 1; }; } 1740fi 1741 1742# These three variables are undocumented and unsupported, 1743# and are intended to be withdrawn in a future Autoconf release. 1744# They can cause serious problems if a builder's source tree is in a directory 1745# whose full name contains unusual characters. 1746ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1747ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1748ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1749 1750 1751# Make sure we can run config.sub. 1752$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1754echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1755 { (exit 1); exit 1; }; } 1756 1757{ echo "$as_me:$LINENO: checking build system type" >&5 1758echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1759if test "${ac_cv_build+set}" = set; then 1760 echo $ECHO_N "(cached) $ECHO_C" >&6 1761else 1762 ac_build_alias=$build_alias 1763test "x$ac_build_alias" = x && 1764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1765test "x$ac_build_alias" = x && 1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1767echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1768 { (exit 1); exit 1; }; } 1769ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1771echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1772 { (exit 1); exit 1; }; } 1773 1774fi 1775{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1776echo "${ECHO_T}$ac_cv_build" >&6; } 1777case $ac_cv_build in 1778*-*-*) ;; 1779*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1780echo "$as_me: error: invalid value of canonical build" >&2;} 1781 { (exit 1); exit 1; }; };; 1782esac 1783build=$ac_cv_build 1784ac_save_IFS=$IFS; IFS='-' 1785set x $ac_cv_build 1786shift 1787build_cpu=$1 1788build_vendor=$2 1789shift; shift 1790# Remember, the first character of IFS is used to create $*, 1791# except with old shells: 1792build_os=$* 1793IFS=$ac_save_IFS 1794case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1795 1796 1797{ echo "$as_me:$LINENO: checking host system type" >&5 1798echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1799if test "${ac_cv_host+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801else 1802 if test "x$host_alias" = x; then 1803 ac_cv_host=$ac_cv_build 1804else 1805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1807echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1808 { (exit 1); exit 1; }; } 1809fi 1810 1811fi 1812{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1813echo "${ECHO_T}$ac_cv_host" >&6; } 1814case $ac_cv_host in 1815*-*-*) ;; 1816*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1817echo "$as_me: error: invalid value of canonical host" >&2;} 1818 { (exit 1); exit 1; }; };; 1819esac 1820host=$ac_cv_host 1821ac_save_IFS=$IFS; IFS='-' 1822set x $ac_cv_host 1823shift 1824host_cpu=$1 1825host_vendor=$2 1826shift; shift 1827# Remember, the first character of IFS is used to create $*, 1828# except with old shells: 1829host_os=$* 1830IFS=$ac_save_IFS 1831case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841# Check whether --with-gcc was given. 1842if test "${with_gcc+set}" = set; then 1843 withval=$with_gcc; 1844fi 1845 1846 V_CCOPT="-O" 1847 V_INCLS="" 1848 if test "${srcdir}" != "." ; then 1849 V_INCLS="-I$srcdir" 1850 fi 1851 if test "${CFLAGS+set}" = set; then 1852 LBL_CFLAGS="$CFLAGS" 1853 fi 1854 if test -z "$CC" ; then 1855 case "$host_os" in 1856 1857 bsdi*) 1858 # Extract the first word of "shlicc2", so it can be a program name with args. 1859set dummy shlicc2; ac_word=$2 1860{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1862if test "${ac_cv_prog_SHLICC2+set}" = set; then 1863 echo $ECHO_N "(cached) $ECHO_C" >&6 1864else 1865 if test -n "$SHLICC2"; then 1866 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1867else 1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1869for as_dir in $PATH 1870do 1871 IFS=$as_save_IFS 1872 test -z "$as_dir" && as_dir=. 1873 for ac_exec_ext in '' $ac_executable_extensions; do 1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1875 ac_cv_prog_SHLICC2="yes" 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1877 break 2 1878 fi 1879done 1880done 1881IFS=$as_save_IFS 1882 1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1884fi 1885fi 1886SHLICC2=$ac_cv_prog_SHLICC2 1887if test -n "$SHLICC2"; then 1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5 1889echo "${ECHO_T}$SHLICC2" >&6; } 1890else 1891 { echo "$as_me:$LINENO: result: no" >&5 1892echo "${ECHO_T}no" >&6; } 1893fi 1894 1895 1896 if test $SHLICC2 = yes ; then 1897 CC=shlicc2 1898 export CC 1899 fi 1900 ;; 1901 esac 1902 fi 1903 if test -z "$CC" -a "$with_gcc" = no ; then 1904 CC=cc 1905 export CC 1906 fi 1907 1908ac_ext=c 1909ac_cpp='$CPP $CPPFLAGS' 1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1912ac_compiler_gnu=$ac_cv_c_compiler_gnu 1913if test -n "$ac_tool_prefix"; then 1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1915set dummy ${ac_tool_prefix}gcc; ac_word=$2 1916{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1918if test "${ac_cv_prog_CC+set}" = set; then 1919 echo $ECHO_N "(cached) $ECHO_C" >&6 1920else 1921 if test -n "$CC"; then 1922 ac_cv_prog_CC="$CC" # Let the user override the test. 1923else 1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1925for as_dir in $PATH 1926do 1927 IFS=$as_save_IFS 1928 test -z "$as_dir" && as_dir=. 1929 for ac_exec_ext in '' $ac_executable_extensions; do 1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1931 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1933 break 2 1934 fi 1935done 1936done 1937IFS=$as_save_IFS 1938 1939fi 1940fi 1941CC=$ac_cv_prog_CC 1942if test -n "$CC"; then 1943 { echo "$as_me:$LINENO: result: $CC" >&5 1944echo "${ECHO_T}$CC" >&6; } 1945else 1946 { echo "$as_me:$LINENO: result: no" >&5 1947echo "${ECHO_T}no" >&6; } 1948fi 1949 1950 1951fi 1952if test -z "$ac_cv_prog_CC"; then 1953 ac_ct_CC=$CC 1954 # Extract the first word of "gcc", so it can be a program name with args. 1955set dummy gcc; ac_word=$2 1956{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1958if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1959 echo $ECHO_N "(cached) $ECHO_C" >&6 1960else 1961 if test -n "$ac_ct_CC"; then 1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1963else 1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1965for as_dir in $PATH 1966do 1967 IFS=$as_save_IFS 1968 test -z "$as_dir" && as_dir=. 1969 for ac_exec_ext in '' $ac_executable_extensions; do 1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1971 ac_cv_prog_ac_ct_CC="gcc" 1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1973 break 2 1974 fi 1975done 1976done 1977IFS=$as_save_IFS 1978 1979fi 1980fi 1981ac_ct_CC=$ac_cv_prog_ac_ct_CC 1982if test -n "$ac_ct_CC"; then 1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1984echo "${ECHO_T}$ac_ct_CC" >&6; } 1985else 1986 { echo "$as_me:$LINENO: result: no" >&5 1987echo "${ECHO_T}no" >&6; } 1988fi 1989 1990 if test "x$ac_ct_CC" = x; then 1991 CC="" 1992 else 1993 case $cross_compiling:$ac_tool_warned in 1994yes:) 1995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1996whose name does not start with the host triplet. If you think this 1997configuration is useful to you, please write to autoconf@gnu.org." >&5 1998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1999whose name does not start with the host triplet. If you think this 2000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2001ac_tool_warned=yes ;; 2002esac 2003 CC=$ac_ct_CC 2004 fi 2005else 2006 CC="$ac_cv_prog_CC" 2007fi 2008 2009if test -z "$CC"; then 2010 if test -n "$ac_tool_prefix"; then 2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2012set dummy ${ac_tool_prefix}cc; ac_word=$2 2013{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2015if test "${ac_cv_prog_CC+set}" = set; then 2016 echo $ECHO_N "(cached) $ECHO_C" >&6 2017else 2018 if test -n "$CC"; then 2019 ac_cv_prog_CC="$CC" # Let the user override the test. 2020else 2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2022for as_dir in $PATH 2023do 2024 IFS=$as_save_IFS 2025 test -z "$as_dir" && as_dir=. 2026 for ac_exec_ext in '' $ac_executable_extensions; do 2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2028 ac_cv_prog_CC="${ac_tool_prefix}cc" 2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2030 break 2 2031 fi 2032done 2033done 2034IFS=$as_save_IFS 2035 2036fi 2037fi 2038CC=$ac_cv_prog_CC 2039if test -n "$CC"; then 2040 { echo "$as_me:$LINENO: result: $CC" >&5 2041echo "${ECHO_T}$CC" >&6; } 2042else 2043 { echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6; } 2045fi 2046 2047 2048 fi 2049fi 2050if test -z "$CC"; then 2051 # Extract the first word of "cc", so it can be a program name with args. 2052set dummy cc; ac_word=$2 2053{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2055if test "${ac_cv_prog_CC+set}" = set; then 2056 echo $ECHO_N "(cached) $ECHO_C" >&6 2057else 2058 if test -n "$CC"; then 2059 ac_cv_prog_CC="$CC" # Let the user override the test. 2060else 2061 ac_prog_rejected=no 2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2063for as_dir in $PATH 2064do 2065 IFS=$as_save_IFS 2066 test -z "$as_dir" && as_dir=. 2067 for ac_exec_ext in '' $ac_executable_extensions; do 2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2070 ac_prog_rejected=yes 2071 continue 2072 fi 2073 ac_cv_prog_CC="cc" 2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2075 break 2 2076 fi 2077done 2078done 2079IFS=$as_save_IFS 2080 2081if test $ac_prog_rejected = yes; then 2082 # We found a bogon in the path, so make sure we never use it. 2083 set dummy $ac_cv_prog_CC 2084 shift 2085 if test $# != 0; then 2086 # We chose a different compiler from the bogus one. 2087 # However, it has the same basename, so the bogon will be chosen 2088 # first if we set CC to just the basename; use the full file name. 2089 shift 2090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2091 fi 2092fi 2093fi 2094fi 2095CC=$ac_cv_prog_CC 2096if test -n "$CC"; then 2097 { echo "$as_me:$LINENO: result: $CC" >&5 2098echo "${ECHO_T}$CC" >&6; } 2099else 2100 { echo "$as_me:$LINENO: result: no" >&5 2101echo "${ECHO_T}no" >&6; } 2102fi 2103 2104 2105fi 2106if test -z "$CC"; then 2107 if test -n "$ac_tool_prefix"; then 2108 for ac_prog in cl.exe 2109 do 2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2111set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2112{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2114if test "${ac_cv_prog_CC+set}" = set; then 2115 echo $ECHO_N "(cached) $ECHO_C" >&6 2116else 2117 if test -n "$CC"; then 2118 ac_cv_prog_CC="$CC" # Let the user override the test. 2119else 2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 for ac_exec_ext in '' $ac_executable_extensions; do 2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2129 break 2 2130 fi 2131done 2132done 2133IFS=$as_save_IFS 2134 2135fi 2136fi 2137CC=$ac_cv_prog_CC 2138if test -n "$CC"; then 2139 { echo "$as_me:$LINENO: result: $CC" >&5 2140echo "${ECHO_T}$CC" >&6; } 2141else 2142 { echo "$as_me:$LINENO: result: no" >&5 2143echo "${ECHO_T}no" >&6; } 2144fi 2145 2146 2147 test -n "$CC" && break 2148 done 2149fi 2150if test -z "$CC"; then 2151 ac_ct_CC=$CC 2152 for ac_prog in cl.exe 2153do 2154 # Extract the first word of "$ac_prog", so it can be a program name with args. 2155set dummy $ac_prog; ac_word=$2 2156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2158if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 if test -n "$ac_ct_CC"; then 2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2163else 2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165for as_dir in $PATH 2166do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2171 ac_cv_prog_ac_ct_CC="$ac_prog" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175done 2176done 2177IFS=$as_save_IFS 2178 2179fi 2180fi 2181ac_ct_CC=$ac_cv_prog_ac_ct_CC 2182if test -n "$ac_ct_CC"; then 2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2184echo "${ECHO_T}$ac_ct_CC" >&6; } 2185else 2186 { echo "$as_me:$LINENO: result: no" >&5 2187echo "${ECHO_T}no" >&6; } 2188fi 2189 2190 2191 test -n "$ac_ct_CC" && break 2192done 2193 2194 if test "x$ac_ct_CC" = x; then 2195 CC="" 2196 else 2197 case $cross_compiling:$ac_tool_warned in 2198yes:) 2199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2200whose name does not start with the host triplet. If you think this 2201configuration is useful to you, please write to autoconf@gnu.org." >&5 2202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2203whose name does not start with the host triplet. If you think this 2204configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2205ac_tool_warned=yes ;; 2206esac 2207 CC=$ac_ct_CC 2208 fi 2209fi 2210 2211fi 2212 2213 2214test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2215See \`config.log' for more details." >&5 2216echo "$as_me: error: no acceptable C compiler found in \$PATH 2217See \`config.log' for more details." >&2;} 2218 { (exit 1); exit 1; }; } 2219 2220# Provide some information about the compiler. 2221echo "$as_me:$LINENO: checking for C compiler version" >&5 2222ac_compiler=`set X $ac_compile; echo $2` 2223{ (ac_try="$ac_compiler --version >&5" 2224case "(($ac_try" in 2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2226 *) ac_try_echo=$ac_try;; 2227esac 2228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2229 (eval "$ac_compiler --version >&5") 2>&5 2230 ac_status=$? 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); } 2233{ (ac_try="$ac_compiler -v >&5" 2234case "(($ac_try" in 2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2236 *) ac_try_echo=$ac_try;; 2237esac 2238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2239 (eval "$ac_compiler -v >&5") 2>&5 2240 ac_status=$? 2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2242 (exit $ac_status); } 2243{ (ac_try="$ac_compiler -V >&5" 2244case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247esac 2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2249 (eval "$ac_compiler -V >&5") 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); } 2253 2254cat >conftest.$ac_ext <<_ACEOF 2255/* confdefs.h. */ 2256_ACEOF 2257cat confdefs.h >>conftest.$ac_ext 2258cat >>conftest.$ac_ext <<_ACEOF 2259/* end confdefs.h. */ 2260 2261int 2262main () 2263{ 2264 2265 ; 2266 return 0; 2267} 2268_ACEOF 2269ac_clean_files_save=$ac_clean_files 2270ac_clean_files="$ac_clean_files a.out a.exe b.out" 2271# Try to create an executable without -o first, disregard a.out. 2272# It will help us diagnose broken compilers, and finding out an intuition 2273# of exeext. 2274{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2275echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2276ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2277# 2278# List of possible output files, starting from the most likely. 2279# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2280# only as a last resort. b.out is created by i960 compilers. 2281ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2282# 2283# The IRIX 6 linker writes into existing files which may not be 2284# executable, retaining their permissions. Remove them first so a 2285# subsequent execution test works. 2286ac_rmfiles= 2287for ac_file in $ac_files 2288do 2289 case $ac_file in 2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2292 esac 2293done 2294rm -f $ac_rmfiles 2295 2296if { (ac_try="$ac_link_default" 2297case "(($ac_try" in 2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2299 *) ac_try_echo=$ac_try;; 2300esac 2301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2302 (eval "$ac_link_default") 2>&5 2303 ac_status=$? 2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2305 (exit $ac_status); }; then 2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2307# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2308# in a Makefile. We should not override ac_cv_exeext if it was cached, 2309# so that the user can short-circuit this test for compilers unknown to 2310# Autoconf. 2311for ac_file in $ac_files '' 2312do 2313 test -f "$ac_file" || continue 2314 case $ac_file in 2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2316 ;; 2317 [ab].out ) 2318 # We found the default executable, but exeext='' is most 2319 # certainly right. 2320 break;; 2321 *.* ) 2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2323 then :; else 2324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2325 fi 2326 # We set ac_cv_exeext here because the later test for it is not 2327 # safe: cross compilers may not add the suffix if given an `-o' 2328 # argument, so we may need to know it at that point already. 2329 # Even if this section looks crufty: it has the advantage of 2330 # actually working. 2331 break;; 2332 * ) 2333 break;; 2334 esac 2335done 2336test "$ac_cv_exeext" = no && ac_cv_exeext= 2337 2338else 2339 ac_file='' 2340fi 2341 2342{ echo "$as_me:$LINENO: result: $ac_file" >&5 2343echo "${ECHO_T}$ac_file" >&6; } 2344if test -z "$ac_file"; then 2345 echo "$as_me: failed program was:" >&5 2346sed 's/^/| /' conftest.$ac_ext >&5 2347 2348{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2349See \`config.log' for more details." >&5 2350echo "$as_me: error: C compiler cannot create executables 2351See \`config.log' for more details." >&2;} 2352 { (exit 77); exit 77; }; } 2353fi 2354 2355ac_exeext=$ac_cv_exeext 2356 2357# Check that the compiler produces executables we can run. If not, either 2358# the compiler is broken, or we cross compile. 2359{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2360echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2361# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2362# If not cross compiling, check that we can run a simple program. 2363if test "$cross_compiling" != yes; then 2364 if { ac_try='./$ac_file' 2365 { (case "(($ac_try" in 2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2367 *) ac_try_echo=$ac_try;; 2368esac 2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2370 (eval "$ac_try") 2>&5 2371 ac_status=$? 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2373 (exit $ac_status); }; }; then 2374 cross_compiling=no 2375 else 2376 if test "$cross_compiling" = maybe; then 2377 cross_compiling=yes 2378 else 2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2380If you meant to cross compile, use \`--host'. 2381See \`config.log' for more details." >&5 2382echo "$as_me: error: cannot run C compiled programs. 2383If you meant to cross compile, use \`--host'. 2384See \`config.log' for more details." >&2;} 2385 { (exit 1); exit 1; }; } 2386 fi 2387 fi 2388fi 2389{ echo "$as_me:$LINENO: result: yes" >&5 2390echo "${ECHO_T}yes" >&6; } 2391 2392rm -f a.out a.exe conftest$ac_cv_exeext b.out 2393ac_clean_files=$ac_clean_files_save 2394# Check that the compiler produces executables we can run. If not, either 2395# the compiler is broken, or we cross compile. 2396{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2397echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2398{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2399echo "${ECHO_T}$cross_compiling" >&6; } 2400 2401{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2402echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2403if { (ac_try="$ac_link" 2404case "(($ac_try" in 2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2406 *) ac_try_echo=$ac_try;; 2407esac 2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2409 (eval "$ac_link") 2>&5 2410 ac_status=$? 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); }; then 2413 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2415# work properly (i.e., refer to `conftest.exe'), while it won't with 2416# `rm'. 2417for ac_file in conftest.exe conftest conftest.*; do 2418 test -f "$ac_file" || continue 2419 case $ac_file in 2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2422 break;; 2423 * ) break;; 2424 esac 2425done 2426else 2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2428See \`config.log' for more details." >&5 2429echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2430See \`config.log' for more details." >&2;} 2431 { (exit 1); exit 1; }; } 2432fi 2433 2434rm -f conftest$ac_cv_exeext 2435{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2436echo "${ECHO_T}$ac_cv_exeext" >&6; } 2437 2438rm -f conftest.$ac_ext 2439EXEEXT=$ac_cv_exeext 2440ac_exeext=$EXEEXT 2441{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2442echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2443if test "${ac_cv_objext+set}" = set; then 2444 echo $ECHO_N "(cached) $ECHO_C" >&6 2445else 2446 cat >conftest.$ac_ext <<_ACEOF 2447/* confdefs.h. */ 2448_ACEOF 2449cat confdefs.h >>conftest.$ac_ext 2450cat >>conftest.$ac_ext <<_ACEOF 2451/* end confdefs.h. */ 2452 2453int 2454main () 2455{ 2456 2457 ; 2458 return 0; 2459} 2460_ACEOF 2461rm -f conftest.o conftest.obj 2462if { (ac_try="$ac_compile" 2463case "(($ac_try" in 2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2465 *) ac_try_echo=$ac_try;; 2466esac 2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2468 (eval "$ac_compile") 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; then 2472 for ac_file in conftest.o conftest.obj conftest.*; do 2473 test -f "$ac_file" || continue; 2474 case $ac_file in 2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2477 break;; 2478 esac 2479done 2480else 2481 echo "$as_me: failed program was:" >&5 2482sed 's/^/| /' conftest.$ac_ext >&5 2483 2484{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2485See \`config.log' for more details." >&5 2486echo "$as_me: error: cannot compute suffix of object files: cannot compile 2487See \`config.log' for more details." >&2;} 2488 { (exit 1); exit 1; }; } 2489fi 2490 2491rm -f conftest.$ac_cv_objext conftest.$ac_ext 2492fi 2493{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2494echo "${ECHO_T}$ac_cv_objext" >&6; } 2495OBJEXT=$ac_cv_objext 2496ac_objext=$OBJEXT 2497{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2498echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2499if test "${ac_cv_c_compiler_gnu+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 cat >conftest.$ac_ext <<_ACEOF 2503/* confdefs.h. */ 2504_ACEOF 2505cat confdefs.h >>conftest.$ac_ext 2506cat >>conftest.$ac_ext <<_ACEOF 2507/* end confdefs.h. */ 2508 2509int 2510main () 2511{ 2512#ifndef __GNUC__ 2513 choke me 2514#endif 2515 2516 ; 2517 return 0; 2518} 2519_ACEOF 2520rm -f conftest.$ac_objext 2521if { (ac_try="$ac_compile" 2522case "(($ac_try" in 2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2524 *) ac_try_echo=$ac_try;; 2525esac 2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2527 (eval "$ac_compile") 2>conftest.er1 2528 ac_status=$? 2529 grep -v '^ *+' conftest.er1 >conftest.err 2530 rm -f conftest.er1 2531 cat conftest.err >&5 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2533 (exit $ac_status); } && { 2534 test -z "$ac_c_werror_flag" || 2535 test ! -s conftest.err 2536 } && test -s conftest.$ac_objext; then 2537 ac_compiler_gnu=yes 2538else 2539 echo "$as_me: failed program was:" >&5 2540sed 's/^/| /' conftest.$ac_ext >&5 2541 2542 ac_compiler_gnu=no 2543fi 2544 2545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2546ac_cv_c_compiler_gnu=$ac_compiler_gnu 2547 2548fi 2549{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2550echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2551GCC=`test $ac_compiler_gnu = yes && echo yes` 2552ac_test_CFLAGS=${CFLAGS+set} 2553ac_save_CFLAGS=$CFLAGS 2554{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2555echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2556if test "${ac_cv_prog_cc_g+set}" = set; then 2557 echo $ECHO_N "(cached) $ECHO_C" >&6 2558else 2559 ac_save_c_werror_flag=$ac_c_werror_flag 2560 ac_c_werror_flag=yes 2561 ac_cv_prog_cc_g=no 2562 CFLAGS="-g" 2563 cat >conftest.$ac_ext <<_ACEOF 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569 2570int 2571main () 2572{ 2573 2574 ; 2575 return 0; 2576} 2577_ACEOF 2578rm -f conftest.$ac_objext 2579if { (ac_try="$ac_compile" 2580case "(($ac_try" in 2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2582 *) ac_try_echo=$ac_try;; 2583esac 2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2585 (eval "$ac_compile") 2>conftest.er1 2586 ac_status=$? 2587 grep -v '^ *+' conftest.er1 >conftest.err 2588 rm -f conftest.er1 2589 cat conftest.err >&5 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); } && { 2592 test -z "$ac_c_werror_flag" || 2593 test ! -s conftest.err 2594 } && test -s conftest.$ac_objext; then 2595 ac_cv_prog_cc_g=yes 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600 CFLAGS="" 2601 cat >conftest.$ac_ext <<_ACEOF 2602/* confdefs.h. */ 2603_ACEOF 2604cat confdefs.h >>conftest.$ac_ext 2605cat >>conftest.$ac_ext <<_ACEOF 2606/* end confdefs.h. */ 2607 2608int 2609main () 2610{ 2611 2612 ; 2613 return 0; 2614} 2615_ACEOF 2616rm -f conftest.$ac_objext 2617if { (ac_try="$ac_compile" 2618case "(($ac_try" in 2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2620 *) ac_try_echo=$ac_try;; 2621esac 2622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2623 (eval "$ac_compile") 2>conftest.er1 2624 ac_status=$? 2625 grep -v '^ *+' conftest.er1 >conftest.err 2626 rm -f conftest.er1 2627 cat conftest.err >&5 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); } && { 2630 test -z "$ac_c_werror_flag" || 2631 test ! -s conftest.err 2632 } && test -s conftest.$ac_objext; then 2633 : 2634else 2635 echo "$as_me: failed program was:" >&5 2636sed 's/^/| /' conftest.$ac_ext >&5 2637 2638 ac_c_werror_flag=$ac_save_c_werror_flag 2639 CFLAGS="-g" 2640 cat >conftest.$ac_ext <<_ACEOF 2641/* confdefs.h. */ 2642_ACEOF 2643cat confdefs.h >>conftest.$ac_ext 2644cat >>conftest.$ac_ext <<_ACEOF 2645/* end confdefs.h. */ 2646 2647int 2648main () 2649{ 2650 2651 ; 2652 return 0; 2653} 2654_ACEOF 2655rm -f conftest.$ac_objext 2656if { (ac_try="$ac_compile" 2657case "(($ac_try" in 2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2659 *) ac_try_echo=$ac_try;; 2660esac 2661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2662 (eval "$ac_compile") 2>conftest.er1 2663 ac_status=$? 2664 grep -v '^ *+' conftest.er1 >conftest.err 2665 rm -f conftest.er1 2666 cat conftest.err >&5 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); } && { 2669 test -z "$ac_c_werror_flag" || 2670 test ! -s conftest.err 2671 } && test -s conftest.$ac_objext; then 2672 ac_cv_prog_cc_g=yes 2673else 2674 echo "$as_me: failed program was:" >&5 2675sed 's/^/| /' conftest.$ac_ext >&5 2676 2677 2678fi 2679 2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681fi 2682 2683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2684fi 2685 2686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2687 ac_c_werror_flag=$ac_save_c_werror_flag 2688fi 2689{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2690echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2691if test "$ac_test_CFLAGS" = set; then 2692 CFLAGS=$ac_save_CFLAGS 2693elif test $ac_cv_prog_cc_g = yes; then 2694 if test "$GCC" = yes; then 2695 CFLAGS="-g -O2" 2696 else 2697 CFLAGS="-g" 2698 fi 2699else 2700 if test "$GCC" = yes; then 2701 CFLAGS="-O2" 2702 else 2703 CFLAGS= 2704 fi 2705fi 2706{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2707echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2708if test "${ac_cv_prog_cc_c89+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 ac_cv_prog_cc_c89=no 2712ac_save_CC=$CC 2713cat >conftest.$ac_ext <<_ACEOF 2714/* confdefs.h. */ 2715_ACEOF 2716cat confdefs.h >>conftest.$ac_ext 2717cat >>conftest.$ac_ext <<_ACEOF 2718/* end confdefs.h. */ 2719#include <stdarg.h> 2720#include <stdio.h> 2721#include <sys/types.h> 2722#include <sys/stat.h> 2723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2724struct buf { int x; }; 2725FILE * (*rcsopen) (struct buf *, struct stat *, int); 2726static char *e (p, i) 2727 char **p; 2728 int i; 2729{ 2730 return p[i]; 2731} 2732static char *f (char * (*g) (char **, int), char **p, ...) 2733{ 2734 char *s; 2735 va_list v; 2736 va_start (v,p); 2737 s = g (p, va_arg (v,int)); 2738 va_end (v); 2739 return s; 2740} 2741 2742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2743 function prototypes and stuff, but not '\xHH' hex character constants. 2744 These don't provoke an error unfortunately, instead are silently treated 2745 as 'x'. The following induces an error, until -std is added to get 2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2747 array size at least. It's necessary to write '\x00'==0 to get something 2748 that's true only with -std. */ 2749int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2750 2751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2752 inside strings and character constants. */ 2753#define FOO(x) 'x' 2754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2755 2756int test (int i, double x); 2757struct s1 {int (*f) (int a);}; 2758struct s2 {int (*f) (double a);}; 2759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2760int argc; 2761char **argv; 2762int 2763main () 2764{ 2765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2766 ; 2767 return 0; 2768} 2769_ACEOF 2770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2772do 2773 CC="$ac_save_CC $ac_arg" 2774 rm -f conftest.$ac_objext 2775if { (ac_try="$ac_compile" 2776case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779esac 2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2781 (eval "$ac_compile") 2>conftest.er1 2782 ac_status=$? 2783 grep -v '^ *+' conftest.er1 >conftest.err 2784 rm -f conftest.er1 2785 cat conftest.err >&5 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } && { 2788 test -z "$ac_c_werror_flag" || 2789 test ! -s conftest.err 2790 } && test -s conftest.$ac_objext; then 2791 ac_cv_prog_cc_c89=$ac_arg 2792else 2793 echo "$as_me: failed program was:" >&5 2794sed 's/^/| /' conftest.$ac_ext >&5 2795 2796 2797fi 2798 2799rm -f core conftest.err conftest.$ac_objext 2800 test "x$ac_cv_prog_cc_c89" != "xno" && break 2801done 2802rm -f conftest.$ac_ext 2803CC=$ac_save_CC 2804 2805fi 2806# AC_CACHE_VAL 2807case "x$ac_cv_prog_cc_c89" in 2808 x) 2809 { echo "$as_me:$LINENO: result: none needed" >&5 2810echo "${ECHO_T}none needed" >&6; } ;; 2811 xno) 2812 { echo "$as_me:$LINENO: result: unsupported" >&5 2813echo "${ECHO_T}unsupported" >&6; } ;; 2814 *) 2815 CC="$CC $ac_cv_prog_cc_c89" 2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2817echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2818esac 2819 2820 2821ac_ext=c 2822ac_cpp='$CPP $CPPFLAGS' 2823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2825ac_compiler_gnu=$ac_cv_c_compiler_gnu 2826 2827 2828 2829 2830 2831 if test "$GCC" = yes ; then 2832 if test "$SHLICC2" = yes ; then 2833 ac_cv_lbl_gcc_vers=2 2834 V_CCOPT="-O2" 2835 else 2836 { echo "$as_me:$LINENO: checking gcc version" >&5 2837echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } 2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2839 echo $ECHO_N "(cached) $ECHO_C" >&6 2840else 2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2842 sed -e '/^gcc version /!d' \ 2843 -e 's/^gcc version //' \ 2844 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2845 -e 's/\..*//'` 2846fi 2847 2848 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2849echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; } 2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2851 V_CCOPT="-O2" 2852 fi 2853 fi 2854 else 2855 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2856echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; } 2857 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 2861cat >conftest.$ac_ext <<_ACEOF 2862/* confdefs.h. */ 2863_ACEOF 2864cat confdefs.h >>conftest.$ac_ext 2865cat >>conftest.$ac_ext <<_ACEOF 2866/* end confdefs.h. */ 2867#include <sys/types.h> 2868int 2869main () 2870{ 2871int frob(int, char *) 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876rm -f conftest.$ac_objext 2877if { (ac_try="$ac_compile" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2883 (eval "$ac_compile") 2>conftest.er1 2884 ac_status=$? 2885 grep -v '^ *+' conftest.er1 >conftest.err 2886 rm -f conftest.er1 2887 cat conftest.err >&5 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); } && { 2890 test -z "$ac_c_werror_flag" || 2891 test ! -s conftest.err 2892 } && test -s conftest.$ac_objext; then 2893 ac_cv_lbl_cc_ansi_prototypes=yes 2894else 2895 echo "$as_me: failed program was:" >&5 2896sed 's/^/| /' conftest.$ac_ext >&5 2897 2898 ac_cv_lbl_cc_ansi_prototypes=no 2899fi 2900 2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2902fi 2903 2904 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2905echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; } 2906 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2907 case "$host_os" in 2908 2909 hpux*) 2910 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2911echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; } 2912 savedcflags="$CFLAGS" 2913 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2914 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2915 echo $ECHO_N "(cached) $ECHO_C" >&6 2916else 2917 cat >conftest.$ac_ext <<_ACEOF 2918/* confdefs.h. */ 2919_ACEOF 2920cat confdefs.h >>conftest.$ac_ext 2921cat >>conftest.$ac_ext <<_ACEOF 2922/* end confdefs.h. */ 2923#include <sys/types.h> 2924int 2925main () 2926{ 2927int frob(int, char *) 2928 ; 2929 return 0; 2930} 2931_ACEOF 2932rm -f conftest.$ac_objext 2933if { (ac_try="$ac_compile" 2934case "(($ac_try" in 2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2936 *) ac_try_echo=$ac_try;; 2937esac 2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2939 (eval "$ac_compile") 2>conftest.er1 2940 ac_status=$? 2941 grep -v '^ *+' conftest.er1 >conftest.err 2942 rm -f conftest.er1 2943 cat conftest.err >&5 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } && { 2946 test -z "$ac_c_werror_flag" || 2947 test ! -s conftest.err 2948 } && test -s conftest.$ac_objext; then 2949 ac_cv_lbl_cc_hpux_cc_aa=yes 2950else 2951 echo "$as_me: failed program was:" >&5 2952sed 's/^/| /' conftest.$ac_ext >&5 2953 2954 ac_cv_lbl_cc_hpux_cc_aa=no 2955fi 2956 2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2958fi 2959 2960 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2961echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 2962 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2963 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2964echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2965 { (exit 1); exit 1; }; } 2966 fi 2967 CFLAGS="$savedcflags" 2968 V_CCOPT="-Aa $V_CCOPT" 2969 2970cat >>confdefs.h <<\_ACEOF 2971#define _HPUX_SOURCE 1 2972_ACEOF 2973 2974 ;; 2975 2976 osf*) 2977 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5 2978echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; } 2979 savedcflags="$CFLAGS" 2980 CFLAGS="-std1" 2981 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then 2982 echo $ECHO_N "(cached) $ECHO_C" >&6 2983else 2984 cat >conftest.$ac_ext <<_ACEOF 2985/* confdefs.h. */ 2986_ACEOF 2987cat confdefs.h >>conftest.$ac_ext 2988cat >>conftest.$ac_ext <<_ACEOF 2989/* end confdefs.h. */ 2990#include <sys/types.h> 2991int 2992main () 2993{ 2994int frob(int, char *) 2995 ; 2996 return 0; 2997} 2998_ACEOF 2999rm -f conftest.$ac_objext 3000if { (ac_try="$ac_compile" 3001case "(($ac_try" in 3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3003 *) ac_try_echo=$ac_try;; 3004esac 3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3006 (eval "$ac_compile") 2>conftest.er1 3007 ac_status=$? 3008 grep -v '^ *+' conftest.er1 >conftest.err 3009 rm -f conftest.er1 3010 cat conftest.err >&5 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); } && { 3013 test -z "$ac_c_werror_flag" || 3014 test ! -s conftest.err 3015 } && test -s conftest.$ac_objext; then 3016 ac_cv_lbl_cc_osf1_cc_std1=yes 3017else 3018 echo "$as_me: failed program was:" >&5 3019sed 's/^/| /' conftest.$ac_ext >&5 3020 3021 ac_cv_lbl_cc_osf1_cc_std1=no 3022fi 3023 3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3025fi 3026 3027 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5 3028echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; } 3029 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then 3030 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 3031echo "$as_me: error: see the INSTALL doc for more info" >&2;} 3032 { (exit 1); exit 1; }; } 3033 fi 3034 CFLAGS="$savedcflags" 3035 V_CCOPT="-std1 $V_CCOPT" 3036 ;; 3037 3038 *) 3039 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 3040echo "$as_me: error: see the INSTALL doc for more info" >&2;} 3041 { (exit 1); exit 1; }; } 3042 ;; 3043 esac 3044 fi 3045 V_INCLS="$V_INCLS -I/usr/local/include" 3046 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3047 3048 case "$host_os" in 3049 3050 irix*) 3051 V_CCOPT="$V_CCOPT -xansi -signed -O" 3052 ;; 3053 3054 osf*) 3055 # 3056 # Presumed to be DEC OSF/1, Digital UNIX, or 3057 # Tru64 UNIX. 3058 # 3059 V_CCOPT="$V_CCOPT -O" 3060 ;; 3061 3062 ultrix*) 3063 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 3064echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; } 3065 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 cat >conftest.$ac_ext <<_ACEOF 3069/* confdefs.h. */ 3070_ACEOF 3071cat confdefs.h >>conftest.$ac_ext 3072cat >>conftest.$ac_ext <<_ACEOF 3073/* end confdefs.h. */ 3074#include <sys/types.h> 3075int 3076main () 3077{ 3078struct a { int b; }; 3079 void c(const struct a *) 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.$ac_objext 3085if { (ac_try="$ac_compile" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_compile") 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } && { 3098 test -z "$ac_c_werror_flag" || 3099 test ! -s conftest.err 3100 } && test -s conftest.$ac_objext; then 3101 ac_cv_lbl_cc_const_proto=yes 3102else 3103 echo "$as_me: failed program was:" >&5 3104sed 's/^/| /' conftest.$ac_ext >&5 3105 3106 ac_cv_lbl_cc_const_proto=no 3107fi 3108 3109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3110fi 3111 3112 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 3113echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; } 3114 if test $ac_cv_lbl_cc_const_proto = no ; then 3115 3116cat >>confdefs.h <<\_ACEOF 3117#define const 3118_ACEOF 3119 3120 fi 3121 ;; 3122 esac 3123 fi 3124 3125{ echo "$as_me:$LINENO: checking for inline" >&5 3126echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 3127 save_CFLAGS="$CFLAGS" 3128 CFLAGS="$V_CCOPT" 3129 if test "${ac_cv_lbl_inline+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 3133 ac_cv_lbl_inline="" 3134 ac_lbl_cc_inline=no 3135 for ac_lbl_inline in inline __inline__ __inline 3136 do 3137 cat >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#define inline $ac_lbl_inline 3144 static inline struct iltest *foo(void); 3145 struct iltest { 3146 int iltest1; 3147 int iltest2; 3148 }; 3149 3150 static inline struct iltest * 3151 foo() 3152 { 3153 static struct iltest xxx; 3154 3155 return &xxx; 3156 } 3157int 3158main () 3159{ 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165rm -f conftest.$ac_objext 3166if { (ac_try="$ac_compile" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3172 (eval "$ac_compile") 2>conftest.er1 3173 ac_status=$? 3174 grep -v '^ *+' conftest.er1 >conftest.err 3175 rm -f conftest.er1 3176 cat conftest.err >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); } && { 3179 test -z "$ac_c_werror_flag" || 3180 test ! -s conftest.err 3181 } && test -s conftest.$ac_objext; then 3182 ac_lbl_cc_inline=yes 3183else 3184 echo "$as_me: failed program was:" >&5 3185sed 's/^/| /' conftest.$ac_ext >&5 3186 3187 3188fi 3189 3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3191 if test "$ac_lbl_cc_inline" = yes ; then 3192 break; 3193 fi 3194 done 3195 if test "$ac_lbl_cc_inline" = yes ; then 3196 ac_cv_lbl_inline=$ac_lbl_inline 3197 fi 3198fi 3199 3200 CFLAGS="$save_CFLAGS" 3201 if test ! -z "$ac_cv_lbl_inline" ; then 3202 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 3203echo "${ECHO_T}$ac_cv_lbl_inline" >&6; } 3204 else 3205 { echo "$as_me:$LINENO: result: no" >&5 3206echo "${ECHO_T}no" >&6; } 3207 fi 3208 3209cat >>confdefs.h <<_ACEOF 3210#define inline $ac_cv_lbl_inline 3211_ACEOF 3212 3213 3214{ echo "$as_me:$LINENO: checking for __attribute__" >&5 3215echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } 3216if test "${ac_cv___attribute__+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 3220cat >conftest.$ac_ext <<_ACEOF 3221 3222 /* confdefs.h. */ 3223_ACEOF 3224cat confdefs.h >>conftest.$ac_ext 3225cat >>conftest.$ac_ext <<_ACEOF 3226/* end confdefs.h. */ 3227 3228#include <stdlib.h> 3229 3230static void foo(void) __attribute__ ((noreturn)); 3231 3232static void 3233foo(void) 3234{ 3235 exit(1); 3236} 3237 3238int 3239main(int argc, char **argv) 3240{ 3241 foo(); 3242} 3243 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_compile") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } && { 3259 test -z "$ac_c_werror_flag" || 3260 test ! -s conftest.err 3261 } && test -s conftest.$ac_objext; then 3262 ac_cv___attribute__=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 ac_cv___attribute__=no 3268fi 3269 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271fi 3272 3273if test "$ac_cv___attribute__" = "yes"; then 3274 3275cat >>confdefs.h <<\_ACEOF 3276#define HAVE___ATTRIBUTE__ 1 3277_ACEOF 3278 3279 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3280else 3281 V_DEFS="$V_DEFS -D_U_=\"\"" 3282fi 3283{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3284echo "${ECHO_T}$ac_cv___attribute__" >&6; } 3285 3286if test "$ac_cv___attribute__" = "yes"; then 3287 3288{ echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5 3289echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; } 3290if test "${ac_cv___attribute___format_function_pointer+set}" = set; then 3291 echo $ECHO_N "(cached) $ECHO_C" >&6 3292else 3293 3294cat >conftest.$ac_ext <<_ACEOF 3295 3296 /* confdefs.h. */ 3297_ACEOF 3298cat confdefs.h >>conftest.$ac_ext 3299cat >>conftest.$ac_ext <<_ACEOF 3300/* end confdefs.h. */ 3301 3302#include <stdlib.h> 3303 3304extern int (*foo)(const char *fmt, ...) 3305 __attribute__ ((format (printf, 1, 2))); 3306 3307int 3308main(int argc, char **argv) 3309{ 3310 (*foo)("%s", "test"); 3311} 3312 3313_ACEOF 3314rm -f conftest.$ac_objext 3315if { (ac_try="$ac_compile" 3316case "(($ac_try" in 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3318 *) ac_try_echo=$ac_try;; 3319esac 3320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3321 (eval "$ac_compile") 2>conftest.er1 3322 ac_status=$? 3323 grep -v '^ *+' conftest.er1 >conftest.err 3324 rm -f conftest.er1 3325 cat conftest.err >&5 3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); } && { 3328 test -z "$ac_c_werror_flag" || 3329 test ! -s conftest.err 3330 } && test -s conftest.$ac_objext; then 3331 ac_cv___attribute___format_function_pointer=yes 3332else 3333 echo "$as_me: failed program was:" >&5 3334sed 's/^/| /' conftest.$ac_ext >&5 3335 3336 ac_cv___attribute___format_function_pointer=no 3337fi 3338 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340fi 3341 3342if test "$ac_cv___attribute___format_function_pointer" = "yes"; then 3343 3344cat >>confdefs.h <<\_ACEOF 3345#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1 3346_ACEOF 3347 3348fi 3349{ echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5 3350echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; } 3351 3352fi 3353ac_ext=c 3354ac_cpp='$CPP $CPPFLAGS' 3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3357ac_compiler_gnu=$ac_cv_c_compiler_gnu 3358{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3359echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3360# On Suns, sometimes $CPP names a directory. 3361if test -n "$CPP" && test -d "$CPP"; then 3362 CPP= 3363fi 3364if test -z "$CPP"; then 3365 if test "${ac_cv_prog_CPP+set}" = set; then 3366 echo $ECHO_N "(cached) $ECHO_C" >&6 3367else 3368 # Double quotes because CPP needs to be expanded 3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3370 do 3371 ac_preproc_ok=false 3372for ac_c_preproc_warn_flag in '' yes 3373do 3374 # Use a header file that comes with gcc, so configuring glibc 3375 # with a fresh cross-compiler works. 3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3377 # <limits.h> exists even on freestanding compilers. 3378 # On the NeXT, cc -E runs the code through the compiler's parser, 3379 # not just through cpp. "Syntax error" is here to catch this case. 3380 cat >conftest.$ac_ext <<_ACEOF 3381/* confdefs.h. */ 3382_ACEOF 3383cat confdefs.h >>conftest.$ac_ext 3384cat >>conftest.$ac_ext <<_ACEOF 3385/* end confdefs.h. */ 3386#ifdef __STDC__ 3387# include <limits.h> 3388#else 3389# include <assert.h> 3390#endif 3391 Syntax error 3392_ACEOF 3393if { (ac_try="$ac_cpp conftest.$ac_ext" 3394case "(($ac_try" in 3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3396 *) ac_try_echo=$ac_try;; 3397esac 3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3400 ac_status=$? 3401 grep -v '^ *+' conftest.er1 >conftest.err 3402 rm -f conftest.er1 3403 cat conftest.err >&5 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } >/dev/null && { 3406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3407 test ! -s conftest.err 3408 }; then 3409 : 3410else 3411 echo "$as_me: failed program was:" >&5 3412sed 's/^/| /' conftest.$ac_ext >&5 3413 3414 # Broken: fails on valid input. 3415continue 3416fi 3417 3418rm -f conftest.err conftest.$ac_ext 3419 3420 # OK, works on sane cases. Now check whether nonexistent headers 3421 # can be detected and how. 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428#include <ac_nonexistent.h> 3429_ACEOF 3430if { (ac_try="$ac_cpp conftest.$ac_ext" 3431case "(($ac_try" in 3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3433 *) ac_try_echo=$ac_try;; 3434esac 3435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3437 ac_status=$? 3438 grep -v '^ *+' conftest.er1 >conftest.err 3439 rm -f conftest.er1 3440 cat conftest.err >&5 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); } >/dev/null && { 3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3444 test ! -s conftest.err 3445 }; then 3446 # Broken: success on invalid input. 3447continue 3448else 3449 echo "$as_me: failed program was:" >&5 3450sed 's/^/| /' conftest.$ac_ext >&5 3451 3452 # Passes both tests. 3453ac_preproc_ok=: 3454break 3455fi 3456 3457rm -f conftest.err conftest.$ac_ext 3458 3459done 3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3461rm -f conftest.err conftest.$ac_ext 3462if $ac_preproc_ok; then 3463 break 3464fi 3465 3466 done 3467 ac_cv_prog_CPP=$CPP 3468 3469fi 3470 CPP=$ac_cv_prog_CPP 3471else 3472 ac_cv_prog_CPP=$CPP 3473fi 3474{ echo "$as_me:$LINENO: result: $CPP" >&5 3475echo "${ECHO_T}$CPP" >&6; } 3476ac_preproc_ok=false 3477for ac_c_preproc_warn_flag in '' yes 3478do 3479 # Use a header file that comes with gcc, so configuring glibc 3480 # with a fresh cross-compiler works. 3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3482 # <limits.h> exists even on freestanding compilers. 3483 # On the NeXT, cc -E runs the code through the compiler's parser, 3484 # not just through cpp. "Syntax error" is here to catch this case. 3485 cat >conftest.$ac_ext <<_ACEOF 3486/* confdefs.h. */ 3487_ACEOF 3488cat confdefs.h >>conftest.$ac_ext 3489cat >>conftest.$ac_ext <<_ACEOF 3490/* end confdefs.h. */ 3491#ifdef __STDC__ 3492# include <limits.h> 3493#else 3494# include <assert.h> 3495#endif 3496 Syntax error 3497_ACEOF 3498if { (ac_try="$ac_cpp conftest.$ac_ext" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3505 ac_status=$? 3506 grep -v '^ *+' conftest.er1 >conftest.err 3507 rm -f conftest.er1 3508 cat conftest.err >&5 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); } >/dev/null && { 3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3512 test ! -s conftest.err 3513 }; then 3514 : 3515else 3516 echo "$as_me: failed program was:" >&5 3517sed 's/^/| /' conftest.$ac_ext >&5 3518 3519 # Broken: fails on valid input. 3520continue 3521fi 3522 3523rm -f conftest.err conftest.$ac_ext 3524 3525 # OK, works on sane cases. Now check whether nonexistent headers 3526 # can be detected and how. 3527 cat >conftest.$ac_ext <<_ACEOF 3528/* confdefs.h. */ 3529_ACEOF 3530cat confdefs.h >>conftest.$ac_ext 3531cat >>conftest.$ac_ext <<_ACEOF 3532/* end confdefs.h. */ 3533#include <ac_nonexistent.h> 3534_ACEOF 3535if { (ac_try="$ac_cpp conftest.$ac_ext" 3536case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3542 ac_status=$? 3543 grep -v '^ *+' conftest.er1 >conftest.err 3544 rm -f conftest.er1 3545 cat conftest.err >&5 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); } >/dev/null && { 3548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3549 test ! -s conftest.err 3550 }; then 3551 # Broken: success on invalid input. 3552continue 3553else 3554 echo "$as_me: failed program was:" >&5 3555sed 's/^/| /' conftest.$ac_ext >&5 3556 3557 # Passes both tests. 3558ac_preproc_ok=: 3559break 3560fi 3561 3562rm -f conftest.err conftest.$ac_ext 3563 3564done 3565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3566rm -f conftest.err conftest.$ac_ext 3567if $ac_preproc_ok; then 3568 : 3569else 3570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3571See \`config.log' for more details." >&5 3572echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3573See \`config.log' for more details." >&2;} 3574 { (exit 1); exit 1; }; } 3575fi 3576 3577ac_ext=c 3578ac_cpp='$CPP $CPPFLAGS' 3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582 3583 3584{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3585echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3586if test "${ac_cv_path_GREP+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 # Extract the first word of "grep ggrep" to use in msg output 3590if test -z "$GREP"; then 3591set dummy grep ggrep; ac_prog_name=$2 3592if test "${ac_cv_path_GREP+set}" = set; then 3593 echo $ECHO_N "(cached) $ECHO_C" >&6 3594else 3595 ac_path_GREP_found=false 3596# Loop through the user's path and test for each of PROGNAME-LIST 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3599do 3600 IFS=$as_save_IFS 3601 test -z "$as_dir" && as_dir=. 3602 for ac_prog in grep ggrep; do 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3606 # Check for GNU ac_path_GREP and select it if it is found. 3607 # Check for GNU $ac_path_GREP 3608case `"$ac_path_GREP" --version 2>&1` in 3609*GNU*) 3610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3611*) 3612 ac_count=0 3613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3614 while : 3615 do 3616 cat "conftest.in" "conftest.in" >"conftest.tmp" 3617 mv "conftest.tmp" "conftest.in" 3618 cp "conftest.in" "conftest.nl" 3619 echo 'GREP' >> "conftest.nl" 3620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3622 ac_count=`expr $ac_count + 1` 3623 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3624 # Best one so far, save it but keep looking for a better one 3625 ac_cv_path_GREP="$ac_path_GREP" 3626 ac_path_GREP_max=$ac_count 3627 fi 3628 # 10*(2^10) chars as input seems more than enough 3629 test $ac_count -gt 10 && break 3630 done 3631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3632esac 3633 3634 3635 $ac_path_GREP_found && break 3 3636 done 3637done 3638 3639done 3640IFS=$as_save_IFS 3641 3642 3643fi 3644 3645GREP="$ac_cv_path_GREP" 3646if test -z "$GREP"; then 3647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3648echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3649 { (exit 1); exit 1; }; } 3650fi 3651 3652else 3653 ac_cv_path_GREP=$GREP 3654fi 3655 3656 3657fi 3658{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3659echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3660 GREP="$ac_cv_path_GREP" 3661 3662 3663{ echo "$as_me:$LINENO: checking for egrep" >&5 3664echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3665if test "${ac_cv_path_EGREP+set}" = set; then 3666 echo $ECHO_N "(cached) $ECHO_C" >&6 3667else 3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3669 then ac_cv_path_EGREP="$GREP -E" 3670 else 3671 # Extract the first word of "egrep" to use in msg output 3672if test -z "$EGREP"; then 3673set dummy egrep; ac_prog_name=$2 3674if test "${ac_cv_path_EGREP+set}" = set; then 3675 echo $ECHO_N "(cached) $ECHO_C" >&6 3676else 3677 ac_path_EGREP_found=false 3678# Loop through the user's path and test for each of PROGNAME-LIST 3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3681do 3682 IFS=$as_save_IFS 3683 test -z "$as_dir" && as_dir=. 3684 for ac_prog in egrep; do 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3688 # Check for GNU ac_path_EGREP and select it if it is found. 3689 # Check for GNU $ac_path_EGREP 3690case `"$ac_path_EGREP" --version 2>&1` in 3691*GNU*) 3692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3693*) 3694 ac_count=0 3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3696 while : 3697 do 3698 cat "conftest.in" "conftest.in" >"conftest.tmp" 3699 mv "conftest.tmp" "conftest.in" 3700 cp "conftest.in" "conftest.nl" 3701 echo 'EGREP' >> "conftest.nl" 3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3704 ac_count=`expr $ac_count + 1` 3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3706 # Best one so far, save it but keep looking for a better one 3707 ac_cv_path_EGREP="$ac_path_EGREP" 3708 ac_path_EGREP_max=$ac_count 3709 fi 3710 # 10*(2^10) chars as input seems more than enough 3711 test $ac_count -gt 10 && break 3712 done 3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3714esac 3715 3716 3717 $ac_path_EGREP_found && break 3 3718 done 3719done 3720 3721done 3722IFS=$as_save_IFS 3723 3724 3725fi 3726 3727EGREP="$ac_cv_path_EGREP" 3728if test -z "$EGREP"; then 3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3730echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3731 { (exit 1); exit 1; }; } 3732fi 3733 3734else 3735 ac_cv_path_EGREP=$EGREP 3736fi 3737 3738 3739 fi 3740fi 3741{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3742echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3743 EGREP="$ac_cv_path_EGREP" 3744 3745 3746{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3748if test "${ac_cv_header_stdc+set}" = set; then 3749 echo $ECHO_N "(cached) $ECHO_C" >&6 3750else 3751 cat >conftest.$ac_ext <<_ACEOF 3752/* confdefs.h. */ 3753_ACEOF 3754cat confdefs.h >>conftest.$ac_ext 3755cat >>conftest.$ac_ext <<_ACEOF 3756/* end confdefs.h. */ 3757#include <stdlib.h> 3758#include <stdarg.h> 3759#include <string.h> 3760#include <float.h> 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770rm -f conftest.$ac_objext 3771if { (ac_try="$ac_compile" 3772case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3777 (eval "$ac_compile") 2>conftest.er1 3778 ac_status=$? 3779 grep -v '^ *+' conftest.er1 >conftest.err 3780 rm -f conftest.er1 3781 cat conftest.err >&5 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); } && { 3784 test -z "$ac_c_werror_flag" || 3785 test ! -s conftest.err 3786 } && test -s conftest.$ac_objext; then 3787 ac_cv_header_stdc=yes 3788else 3789 echo "$as_me: failed program was:" >&5 3790sed 's/^/| /' conftest.$ac_ext >&5 3791 3792 ac_cv_header_stdc=no 3793fi 3794 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796 3797if test $ac_cv_header_stdc = yes; then 3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3799 cat >conftest.$ac_ext <<_ACEOF 3800/* confdefs.h. */ 3801_ACEOF 3802cat confdefs.h >>conftest.$ac_ext 3803cat >>conftest.$ac_ext <<_ACEOF 3804/* end confdefs.h. */ 3805#include <string.h> 3806 3807_ACEOF 3808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3809 $EGREP "memchr" >/dev/null 2>&1; then 3810 : 3811else 3812 ac_cv_header_stdc=no 3813fi 3814rm -f -r conftest* 3815 3816fi 3817 3818if test $ac_cv_header_stdc = yes; then 3819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3820 cat >conftest.$ac_ext <<_ACEOF 3821/* confdefs.h. */ 3822_ACEOF 3823cat confdefs.h >>conftest.$ac_ext 3824cat >>conftest.$ac_ext <<_ACEOF 3825/* end confdefs.h. */ 3826#include <stdlib.h> 3827 3828_ACEOF 3829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3830 $EGREP "free" >/dev/null 2>&1; then 3831 : 3832else 3833 ac_cv_header_stdc=no 3834fi 3835rm -f -r conftest* 3836 3837fi 3838 3839if test $ac_cv_header_stdc = yes; then 3840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3841 if test "$cross_compiling" = yes; then 3842 : 3843else 3844 cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850#include <ctype.h> 3851#include <stdlib.h> 3852#if ((' ' & 0x0FF) == 0x020) 3853# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3854# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3855#else 3856# define ISLOWER(c) \ 3857 (('a' <= (c) && (c) <= 'i') \ 3858 || ('j' <= (c) && (c) <= 'r') \ 3859 || ('s' <= (c) && (c) <= 'z')) 3860# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3861#endif 3862 3863#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3864int 3865main () 3866{ 3867 int i; 3868 for (i = 0; i < 256; i++) 3869 if (XOR (islower (i), ISLOWER (i)) 3870 || toupper (i) != TOUPPER (i)) 3871 return 2; 3872 return 0; 3873} 3874_ACEOF 3875rm -f conftest$ac_exeext 3876if { (ac_try="$ac_link" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3882 (eval "$ac_link") 2>&5 3883 ac_status=$? 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3886 { (case "(($ac_try" in 3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3888 *) ac_try_echo=$ac_try;; 3889esac 3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3891 (eval "$ac_try") 2>&5 3892 ac_status=$? 3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3894 (exit $ac_status); }; }; then 3895 : 3896else 3897 echo "$as_me: program exited with status $ac_status" >&5 3898echo "$as_me: failed program was:" >&5 3899sed 's/^/| /' conftest.$ac_ext >&5 3900 3901( exit $ac_status ) 3902ac_cv_header_stdc=no 3903fi 3904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3905fi 3906 3907 3908fi 3909fi 3910{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3911echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3912if test $ac_cv_header_stdc = yes; then 3913 3914cat >>confdefs.h <<\_ACEOF 3915#define STDC_HEADERS 1 3916_ACEOF 3917 3918fi 3919 3920# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3931 inttypes.h stdint.h unistd.h 3932do 3933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3934{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3937 echo $ECHO_N "(cached) $ECHO_C" >&6 3938else 3939 cat >conftest.$ac_ext <<_ACEOF 3940/* confdefs.h. */ 3941_ACEOF 3942cat confdefs.h >>conftest.$ac_ext 3943cat >>conftest.$ac_ext <<_ACEOF 3944/* end confdefs.h. */ 3945$ac_includes_default 3946 3947#include <$ac_header> 3948_ACEOF 3949rm -f conftest.$ac_objext 3950if { (ac_try="$ac_compile" 3951case "(($ac_try" in 3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3953 *) ac_try_echo=$ac_try;; 3954esac 3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3956 (eval "$ac_compile") 2>conftest.er1 3957 ac_status=$? 3958 grep -v '^ *+' conftest.er1 >conftest.err 3959 rm -f conftest.er1 3960 cat conftest.err >&5 3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3962 (exit $ac_status); } && { 3963 test -z "$ac_c_werror_flag" || 3964 test ! -s conftest.err 3965 } && test -s conftest.$ac_objext; then 3966 eval "$as_ac_Header=yes" 3967else 3968 echo "$as_me: failed program was:" >&5 3969sed 's/^/| /' conftest.$ac_ext >&5 3970 3971 eval "$as_ac_Header=no" 3972fi 3973 3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3975fi 3976ac_res=`eval echo '${'$as_ac_Header'}'` 3977 { echo "$as_me:$LINENO: result: $ac_res" >&5 3978echo "${ECHO_T}$ac_res" >&6; } 3979if test `eval echo '${'$as_ac_Header'}'` = yes; then 3980 cat >>confdefs.h <<_ACEOF 3981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3982_ACEOF 3983 3984fi 3985 3986done 3987 3988 3989 3990 3991 3992 3993for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h 3994do 3995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3997 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4000 echo $ECHO_N "(cached) $ECHO_C" >&6 4001fi 4002ac_res=`eval echo '${'$as_ac_Header'}'` 4003 { echo "$as_me:$LINENO: result: $ac_res" >&5 4004echo "${ECHO_T}$ac_res" >&6; } 4005else 4006 # Is the header compilable? 4007{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4009cat >conftest.$ac_ext <<_ACEOF 4010/* confdefs.h. */ 4011_ACEOF 4012cat confdefs.h >>conftest.$ac_ext 4013cat >>conftest.$ac_ext <<_ACEOF 4014/* end confdefs.h. */ 4015$ac_includes_default 4016#include <$ac_header> 4017_ACEOF 4018rm -f conftest.$ac_objext 4019if { (ac_try="$ac_compile" 4020case "(($ac_try" in 4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4022 *) ac_try_echo=$ac_try;; 4023esac 4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4025 (eval "$ac_compile") 2>conftest.er1 4026 ac_status=$? 4027 grep -v '^ *+' conftest.er1 >conftest.err 4028 rm -f conftest.er1 4029 cat conftest.err >&5 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); } && { 4032 test -z "$ac_c_werror_flag" || 4033 test ! -s conftest.err 4034 } && test -s conftest.$ac_objext; then 4035 ac_header_compiler=yes 4036else 4037 echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040 ac_header_compiler=no 4041fi 4042 4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4044{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4045echo "${ECHO_T}$ac_header_compiler" >&6; } 4046 4047# Is the header present? 4048{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4050cat >conftest.$ac_ext <<_ACEOF 4051/* confdefs.h. */ 4052_ACEOF 4053cat confdefs.h >>conftest.$ac_ext 4054cat >>conftest.$ac_ext <<_ACEOF 4055/* end confdefs.h. */ 4056#include <$ac_header> 4057_ACEOF 4058if { (ac_try="$ac_cpp conftest.$ac_ext" 4059case "(($ac_try" in 4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4061 *) ac_try_echo=$ac_try;; 4062esac 4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4065 ac_status=$? 4066 grep -v '^ *+' conftest.er1 >conftest.err 4067 rm -f conftest.er1 4068 cat conftest.err >&5 4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4070 (exit $ac_status); } >/dev/null && { 4071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4072 test ! -s conftest.err 4073 }; then 4074 ac_header_preproc=yes 4075else 4076 echo "$as_me: failed program was:" >&5 4077sed 's/^/| /' conftest.$ac_ext >&5 4078 4079 ac_header_preproc=no 4080fi 4081 4082rm -f conftest.err conftest.$ac_ext 4083{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4084echo "${ECHO_T}$ac_header_preproc" >&6; } 4085 4086# So? What about this header? 4087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4088 yes:no: ) 4089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4093 ac_header_preproc=yes 4094 ;; 4095 no:yes:* ) 4096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4108 4109 ;; 4110esac 4111{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4114 echo $ECHO_N "(cached) $ECHO_C" >&6 4115else 4116 eval "$as_ac_Header=\$ac_header_preproc" 4117fi 4118ac_res=`eval echo '${'$as_ac_Header'}'` 4119 { echo "$as_me:$LINENO: result: $ac_res" >&5 4120echo "${ECHO_T}$ac_res" >&6; } 4121 4122fi 4123if test `eval echo '${'$as_ac_Header'}'` = yes; then 4124 cat >>confdefs.h <<_ACEOF 4125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4126_ACEOF 4127 4128fi 4129 4130done 4131 4132 4133for ac_header in net/pfvar.h 4134do 4135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4136{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4139 echo $ECHO_N "(cached) $ECHO_C" >&6 4140else 4141 cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147#include <sys/types.h> 4148#include <sys/socket.h> 4149#include <net/if.h> 4150 4151#include <$ac_header> 4152_ACEOF 4153rm -f conftest.$ac_objext 4154if { (ac_try="$ac_compile" 4155case "(($ac_try" in 4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4157 *) ac_try_echo=$ac_try;; 4158esac 4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4160 (eval "$ac_compile") 2>conftest.er1 4161 ac_status=$? 4162 grep -v '^ *+' conftest.er1 >conftest.err 4163 rm -f conftest.er1 4164 cat conftest.err >&5 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); } && { 4167 test -z "$ac_c_werror_flag" || 4168 test ! -s conftest.err 4169 } && test -s conftest.$ac_objext; then 4170 eval "$as_ac_Header=yes" 4171else 4172 echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175 eval "$as_ac_Header=no" 4176fi 4177 4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4179fi 4180ac_res=`eval echo '${'$as_ac_Header'}'` 4181 { echo "$as_me:$LINENO: result: $ac_res" >&5 4182echo "${ECHO_T}$ac_res" >&6; } 4183if test `eval echo '${'$as_ac_Header'}'` = yes; then 4184 cat >>confdefs.h <<_ACEOF 4185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4186_ACEOF 4187 4188fi 4189 4190done 4191 4192if test "$ac_cv_header_net_pfvar_h" = yes; then 4193 LOCALSRC="print-pflog.c $LOCALSRC" 4194fi 4195 4196for ac_header in netinet/if_ether.h 4197do 4198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4199{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4202 echo $ECHO_N "(cached) $ECHO_C" >&6 4203else 4204 cat >conftest.$ac_ext <<_ACEOF 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#include <sys/types.h> 4211#include <sys/socket.h> 4212 4213#include <$ac_header> 4214_ACEOF 4215rm -f conftest.$ac_objext 4216if { (ac_try="$ac_compile" 4217case "(($ac_try" in 4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4219 *) ac_try_echo=$ac_try;; 4220esac 4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4222 (eval "$ac_compile") 2>conftest.er1 4223 ac_status=$? 4224 grep -v '^ *+' conftest.er1 >conftest.err 4225 rm -f conftest.er1 4226 cat conftest.err >&5 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); } && { 4229 test -z "$ac_c_werror_flag" || 4230 test ! -s conftest.err 4231 } && test -s conftest.$ac_objext; then 4232 eval "$as_ac_Header=yes" 4233else 4234 echo "$as_me: failed program was:" >&5 4235sed 's/^/| /' conftest.$ac_ext >&5 4236 4237 eval "$as_ac_Header=no" 4238fi 4239 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241fi 4242ac_res=`eval echo '${'$as_ac_Header'}'` 4243 { echo "$as_me:$LINENO: result: $ac_res" >&5 4244echo "${ECHO_T}$ac_res" >&6; } 4245if test `eval echo '${'$as_ac_Header'}'` = yes; then 4246 cat >>confdefs.h <<_ACEOF 4247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4248_ACEOF 4249 4250fi 4251 4252done 4253 4254if test "$ac_cv_header_netinet_if_ether_h" != yes; then 4255 # 4256 # The simple test didn't work. 4257 # Do we need to include <net/if.h> first? 4258 # Unset ac_cv_header_netinet_if_ether_h so we don't 4259 # treat the previous failure as a cached value and 4260 # suppress the next test. 4261 # 4262 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 4263echo "$as_me: Rechecking with some additional includes" >&6;} 4264 unset ac_cv_header_netinet_if_ether_h 4265 4266for ac_header in netinet/if_ether.h 4267do 4268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4269{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4272 echo $ECHO_N "(cached) $ECHO_C" >&6 4273else 4274 cat >conftest.$ac_ext <<_ACEOF 4275/* confdefs.h. */ 4276_ACEOF 4277cat confdefs.h >>conftest.$ac_ext 4278cat >>conftest.$ac_ext <<_ACEOF 4279/* end confdefs.h. */ 4280#include <sys/types.h> 4281#include <sys/socket.h> 4282#include <netinet/in.h> 4283struct mbuf; 4284struct rtentry; 4285#include <net/if.h> 4286 4287#include <$ac_header> 4288_ACEOF 4289rm -f conftest.$ac_objext 4290if { (ac_try="$ac_compile" 4291case "(($ac_try" in 4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4293 *) ac_try_echo=$ac_try;; 4294esac 4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4296 (eval "$ac_compile") 2>conftest.er1 4297 ac_status=$? 4298 grep -v '^ *+' conftest.er1 >conftest.err 4299 rm -f conftest.er1 4300 cat conftest.err >&5 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4302 (exit $ac_status); } && { 4303 test -z "$ac_c_werror_flag" || 4304 test ! -s conftest.err 4305 } && test -s conftest.$ac_objext; then 4306 eval "$as_ac_Header=yes" 4307else 4308 echo "$as_me: failed program was:" >&5 4309sed 's/^/| /' conftest.$ac_ext >&5 4310 4311 eval "$as_ac_Header=no" 4312fi 4313 4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4315fi 4316ac_res=`eval echo '${'$as_ac_Header'}'` 4317 { echo "$as_me:$LINENO: result: $ac_res" >&5 4318echo "${ECHO_T}$ac_res" >&6; } 4319if test `eval echo '${'$as_ac_Header'}'` = yes; then 4320 cat >>confdefs.h <<_ACEOF 4321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4322_ACEOF 4323 4324fi 4325 4326done 4327 4328fi 4329 4330{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4331echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 4332if test "${ac_cv_header_time+set}" = set; then 4333 echo $ECHO_N "(cached) $ECHO_C" >&6 4334else 4335 cat >conftest.$ac_ext <<_ACEOF 4336/* confdefs.h. */ 4337_ACEOF 4338cat confdefs.h >>conftest.$ac_ext 4339cat >>conftest.$ac_ext <<_ACEOF 4340/* end confdefs.h. */ 4341#include <sys/types.h> 4342#include <sys/time.h> 4343#include <time.h> 4344 4345int 4346main () 4347{ 4348if ((struct tm *) 0) 4349return 0; 4350 ; 4351 return 0; 4352} 4353_ACEOF 4354rm -f conftest.$ac_objext 4355if { (ac_try="$ac_compile" 4356case "(($ac_try" in 4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4358 *) ac_try_echo=$ac_try;; 4359esac 4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4361 (eval "$ac_compile") 2>conftest.er1 4362 ac_status=$? 4363 grep -v '^ *+' conftest.er1 >conftest.err 4364 rm -f conftest.er1 4365 cat conftest.err >&5 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); } && { 4368 test -z "$ac_c_werror_flag" || 4369 test ! -s conftest.err 4370 } && test -s conftest.$ac_objext; then 4371 ac_cv_header_time=yes 4372else 4373 echo "$as_me: failed program was:" >&5 4374sed 's/^/| /' conftest.$ac_ext >&5 4375 4376 ac_cv_header_time=no 4377fi 4378 4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4380fi 4381{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4382echo "${ECHO_T}$ac_cv_header_time" >&6; } 4383if test $ac_cv_header_time = yes; then 4384 4385cat >>confdefs.h <<\_ACEOF 4386#define TIME_WITH_SYS_TIME 1 4387_ACEOF 4388 4389fi 4390 4391 4392case "$host_os" in 4393 4394darwin*) 4395 # Check whether --enable-universal was given. 4396if test "${enable_universal+set}" = set; then 4397 enableval=$enable_universal; 4398fi 4399 4400 if test "$enable_universal" != "no"; then 4401 case "$host_os" in 4402 4403 darwin9.*) 4404 # 4405 # Leopard. Build for x86 and 32-bit PowerPC, with 4406 # x86 first. (That's what Apple does.) 4407 # 4408 V_CCOPT="$V_CCOPT -arch i386 -arch ppc" 4409 LDFLAGS="$LDFLAGS -arch i386 -arch ppc" 4410 ;; 4411 4412 darwin10.*) 4413 # 4414 # Snow Leopard. Build for x86-64 and x86, with 4415 # x86-64 first. (That's what Apple does.) 4416 # 4417 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 4418 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 4419 ;; 4420 esac 4421 fi 4422 ;; 4423 4424linux*) 4425 { echo "$as_me:$LINENO: checking Linux kernel version" >&5 4426echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; } 4427 if test "$cross_compiling" = yes; then 4428 if test "${ac_cv_linux_vers+set}" = set; then 4429 echo $ECHO_N "(cached) $ECHO_C" >&6 4430else 4431 ac_cv_linux_vers=unknown 4432fi 4433 4434 else 4435 if test "${ac_cv_linux_vers+set}" = set; then 4436 echo $ECHO_N "(cached) $ECHO_C" >&6 4437else 4438 ac_cv_linux_vers=`uname -r 2>&1 | \ 4439 sed -n -e '$s/.* //' -e '$s/\..*//p'` 4440fi 4441 4442 fi 4443 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 4444echo "${ECHO_T}$ac_cv_linux_vers" >&6; } 4445 if test $ac_cv_linux_vers = unknown ; then 4446 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 4447echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 4448 { (exit 1); exit 1; }; } 4449 fi 4450 if test $ac_cv_linux_vers -lt 2 ; then 4451 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 4452echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 4453 { (exit 1); exit 1; }; } 4454 fi 4455 ;; 4456 4457*) 4458 ;; 4459esac 4460 4461 4462 4463# Check whether --with-smi was given. 4464if test "${with_smi+set}" = set; then 4465 withval=$with_smi; 4466else 4467 with_smi=yes 4468fi 4469 4470 4471if test "x$with_smi" != "xno" ; then 4472 4473for ac_header in smi.h 4474do 4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4477 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481fi 4482ac_res=`eval echo '${'$as_ac_Header'}'` 4483 { echo "$as_me:$LINENO: result: $ac_res" >&5 4484echo "${ECHO_T}$ac_res" >&6; } 4485else 4486 # Is the header compilable? 4487{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4489cat >conftest.$ac_ext <<_ACEOF 4490/* confdefs.h. */ 4491_ACEOF 4492cat confdefs.h >>conftest.$ac_ext 4493cat >>conftest.$ac_ext <<_ACEOF 4494/* end confdefs.h. */ 4495$ac_includes_default 4496#include <$ac_header> 4497_ACEOF 4498rm -f conftest.$ac_objext 4499if { (ac_try="$ac_compile" 4500case "(($ac_try" in 4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4502 *) ac_try_echo=$ac_try;; 4503esac 4504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4505 (eval "$ac_compile") 2>conftest.er1 4506 ac_status=$? 4507 grep -v '^ *+' conftest.er1 >conftest.err 4508 rm -f conftest.er1 4509 cat conftest.err >&5 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } && { 4512 test -z "$ac_c_werror_flag" || 4513 test ! -s conftest.err 4514 } && test -s conftest.$ac_objext; then 4515 ac_header_compiler=yes 4516else 4517 echo "$as_me: failed program was:" >&5 4518sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 ac_header_compiler=no 4521fi 4522 4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4524{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4525echo "${ECHO_T}$ac_header_compiler" >&6; } 4526 4527# Is the header present? 4528{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4530cat >conftest.$ac_ext <<_ACEOF 4531/* confdefs.h. */ 4532_ACEOF 4533cat confdefs.h >>conftest.$ac_ext 4534cat >>conftest.$ac_ext <<_ACEOF 4535/* end confdefs.h. */ 4536#include <$ac_header> 4537_ACEOF 4538if { (ac_try="$ac_cpp conftest.$ac_ext" 4539case "(($ac_try" in 4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4541 *) ac_try_echo=$ac_try;; 4542esac 4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4545 ac_status=$? 4546 grep -v '^ *+' conftest.er1 >conftest.err 4547 rm -f conftest.er1 4548 cat conftest.err >&5 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); } >/dev/null && { 4551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4552 test ! -s conftest.err 4553 }; then 4554 ac_header_preproc=yes 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559 ac_header_preproc=no 4560fi 4561 4562rm -f conftest.err conftest.$ac_ext 4563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4564echo "${ECHO_T}$ac_header_preproc" >&6; } 4565 4566# So? What about this header? 4567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4568 yes:no: ) 4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4573 ac_header_preproc=yes 4574 ;; 4575 no:yes:* ) 4576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4588 4589 ;; 4590esac 4591{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4594 echo $ECHO_N "(cached) $ECHO_C" >&6 4595else 4596 eval "$as_ac_Header=\$ac_header_preproc" 4597fi 4598ac_res=`eval echo '${'$as_ac_Header'}'` 4599 { echo "$as_me:$LINENO: result: $ac_res" >&5 4600echo "${ECHO_T}$ac_res" >&6; } 4601 4602fi 4603if test `eval echo '${'$as_ac_Header'}'` = yes; then 4604 cat >>confdefs.h <<_ACEOF 4605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4606_ACEOF 4607 4608fi 4609 4610done 4611 4612 4613{ echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 4614echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; } 4615if test "${ac_cv_lib_smi_smiInit+set}" = set; then 4616 echo $ECHO_N "(cached) $ECHO_C" >&6 4617else 4618 ac_check_lib_save_LIBS=$LIBS 4619LIBS="-lsmi $LIBS" 4620cat >conftest.$ac_ext <<_ACEOF 4621/* confdefs.h. */ 4622_ACEOF 4623cat confdefs.h >>conftest.$ac_ext 4624cat >>conftest.$ac_ext <<_ACEOF 4625/* end confdefs.h. */ 4626 4627/* Override any GCC internal prototype to avoid an error. 4628 Use char because int might match the return type of a GCC 4629 builtin and then its argument prototype would still apply. */ 4630#ifdef __cplusplus 4631extern "C" 4632#endif 4633char smiInit (); 4634int 4635main () 4636{ 4637return smiInit (); 4638 ; 4639 return 0; 4640} 4641_ACEOF 4642rm -f conftest.$ac_objext conftest$ac_exeext 4643if { (ac_try="$ac_link" 4644case "(($ac_try" in 4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4646 *) ac_try_echo=$ac_try;; 4647esac 4648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4649 (eval "$ac_link") 2>conftest.er1 4650 ac_status=$? 4651 grep -v '^ *+' conftest.er1 >conftest.err 4652 rm -f conftest.er1 4653 cat conftest.err >&5 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4655 (exit $ac_status); } && { 4656 test -z "$ac_c_werror_flag" || 4657 test ! -s conftest.err 4658 } && test -s conftest$ac_exeext && 4659 $as_test_x conftest$ac_exeext; then 4660 ac_cv_lib_smi_smiInit=yes 4661else 4662 echo "$as_me: failed program was:" >&5 4663sed 's/^/| /' conftest.$ac_ext >&5 4664 4665 ac_cv_lib_smi_smiInit=no 4666fi 4667 4668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4669 conftest$ac_exeext conftest.$ac_ext 4670LIBS=$ac_check_lib_save_LIBS 4671fi 4672{ echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 4673echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; } 4674if test $ac_cv_lib_smi_smiInit = yes; then 4675 cat >>confdefs.h <<_ACEOF 4676#define HAVE_LIBSMI 1 4677_ACEOF 4678 4679 LIBS="-lsmi $LIBS" 4680 4681fi 4682 4683if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 4684then 4685{ echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 4686echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; } 4687 if test "$cross_compiling" = yes; then 4688 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5 4689echo "${ECHO_T}not when cross-compiling" >&6; } 4690 libsmi=no 4691 4692else 4693 cat >conftest.$ac_ext <<_ACEOF 4694/* confdefs.h. */ 4695_ACEOF 4696cat confdefs.h >>conftest.$ac_ext 4697cat >>conftest.$ac_ext <<_ACEOF 4698/* end confdefs.h. */ 4699 /* libsmi available check */ 4700#include <smi.h> 4701main() 4702{ 4703 int current, revision, age, n; 4704 const int required = 2; 4705 if (smiInit("")) 4706 exit(1); 4707 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4708 exit(2); 4709 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4710 if (n != 3) 4711 exit(3); 4712 if (required < current - age || required > current) 4713 exit(4); 4714 exit(0); 4715} 4716 4717_ACEOF 4718rm -f conftest$ac_exeext 4719if { (ac_try="$ac_link" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4725 (eval "$ac_link") 2>&5 4726 ac_status=$? 4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4729 { (case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4734 (eval "$ac_try") 2>&5 4735 ac_status=$? 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4737 (exit $ac_status); }; }; then 4738 { echo "$as_me:$LINENO: result: yes" >&5 4739echo "${ECHO_T}yes" >&6; } 4740 cat >>confdefs.h <<\_ACEOF 4741#define LIBSMI 1 4742_ACEOF 4743 4744 libsmi=yes 4745else 4746 echo "$as_me: program exited with status $ac_status" >&5 4747echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750( exit $ac_status ) 4751 case $? in 4752 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5 4753echo "${ECHO_T}no - smiInit failed" >&6; } ;; 4754 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 4755echo "${ECHO_T}no - header/library version mismatch" >&6; } ;; 4756 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5 4757echo "${ECHO_T}no - can't determine library version" >&6; } ;; 4758 4) { echo "$as_me:$LINENO: result: no - too old" >&5 4759echo "${ECHO_T}no - too old" >&6; } ;; 4760 *) { echo "$as_me:$LINENO: result: no" >&5 4761echo "${ECHO_T}no" >&6; } ;; 4762 esac 4763 libsmi=no 4764fi 4765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4766fi 4767 4768 4769fi 4770fi 4771 4772{ echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 4773echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; } 4774# Check whether --enable-smb was given. 4775if test "${enable_smb+set}" = set; then 4776 enableval=$enable_smb; 4777else 4778 enableval=yes 4779fi 4780 4781case "$enableval" in 4782yes) { echo "$as_me:$LINENO: result: yes" >&5 4783echo "${ECHO_T}yes" >&6; } 4784 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 4785echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 4786 cat >>confdefs.h <<\_ACEOF 4787#define TCPDUMP_DO_SMB 1 4788_ACEOF 4789 4790 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4791 ;; 4792*) { echo "$as_me:$LINENO: result: no" >&5 4793echo "${ECHO_T}no" >&6; } 4794 ;; 4795esac 4796 4797 4798# Check whether --with-user was given. 4799if test "${with_user+set}" = set; then 4800 withval=$with_user; 4801fi 4802 4803{ echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 4804echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; } 4805if test ! -z "$with_user" ; then 4806 cat >>confdefs.h <<_ACEOF 4807#define WITH_USER "$withval" 4808_ACEOF 4809 4810 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4811echo "${ECHO_T}to \"$withval\"" >&6; } 4812else 4813 { echo "$as_me:$LINENO: result: no" >&5 4814echo "${ECHO_T}no" >&6; } 4815fi 4816 4817 4818# Check whether --with-chroot was given. 4819if test "${with_chroot+set}" = set; then 4820 withval=$with_chroot; 4821fi 4822 4823{ echo "$as_me:$LINENO: checking whether to chroot" >&5 4824echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; } 4825if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then 4826 cat >>confdefs.h <<_ACEOF 4827#define WITH_CHROOT "$withval" 4828_ACEOF 4829 4830 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5 4831echo "${ECHO_T}to \"$withval\"" >&6; } 4832else 4833 { echo "$as_me:$LINENO: result: no" >&5 4834echo "${ECHO_T}no" >&6; } 4835fi 4836 4837{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 4838echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; } 4839# Check whether --enable-ipv6 was given. 4840if test "${enable_ipv6+set}" = set; then 4841 enableval=$enable_ipv6; case "$enableval" in 4842yes) { echo "$as_me:$LINENO: result: yes" >&5 4843echo "${ECHO_T}yes" >&6; } 4844 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 print-babel.c $LOCALSRC" 4845 cat >>confdefs.h <<\_ACEOF 4846#define INET6 1 4847_ACEOF 4848 4849 ipv6=yes 4850 ;; 4851*) 4852 { echo "$as_me:$LINENO: result: no" >&5 4853echo "${ECHO_T}no" >&6; } 4854 ipv6=no 4855 ;; 4856 esac 4857else 4858 if test "$cross_compiling" = yes; then 4859 { echo "$as_me:$LINENO: result: no" >&5 4860echo "${ECHO_T}no" >&6; } 4861 ipv6=no 4862 4863else 4864 cat >conftest.$ac_ext <<_ACEOF 4865/* confdefs.h. */ 4866_ACEOF 4867cat confdefs.h >>conftest.$ac_ext 4868cat >>conftest.$ac_ext <<_ACEOF 4869/* end confdefs.h. */ 4870 /* AF_INET6 available check */ 4871#include <sys/types.h> 4872#include <sys/socket.h> 4873main() 4874{ 4875 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 4876 exit(1); 4877 else 4878 exit(0); 4879} 4880 4881_ACEOF 4882rm -f conftest$ac_exeext 4883if { (ac_try="$ac_link" 4884case "(($ac_try" in 4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4886 *) ac_try_echo=$ac_try;; 4887esac 4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4889 (eval "$ac_link") 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4893 { (case "(($ac_try" in 4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4895 *) ac_try_echo=$ac_try;; 4896esac 4897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4898 (eval "$ac_try") 2>&5 4899 ac_status=$? 4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4901 (exit $ac_status); }; }; then 4902 { echo "$as_me:$LINENO: result: yes" >&5 4903echo "${ECHO_T}yes" >&6; } 4904 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 print-babel.c $LOCALSRC" 4905 cat >>confdefs.h <<\_ACEOF 4906#define INET6 1 4907_ACEOF 4908 4909 ipv6=yes 4910else 4911 echo "$as_me: program exited with status $ac_status" >&5 4912echo "$as_me: failed program was:" >&5 4913sed 's/^/| /' conftest.$ac_ext >&5 4914 4915( exit $ac_status ) 4916 { echo "$as_me:$LINENO: result: no" >&5 4917echo "${ECHO_T}no" >&6; } 4918 ipv6=no 4919fi 4920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4921fi 4922 4923 4924fi 4925 4926 4927ipv6type=unknown 4928ipv6lib=none 4929ipv6trylibc=no 4930 4931if test "$ipv6" = "yes"; then 4932 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 4933echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } 4934 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 4935 case $i in 4936 inria) 4937 cat >conftest.$ac_ext <<_ACEOF 4938/* confdefs.h. */ 4939_ACEOF 4940cat confdefs.h >>conftest.$ac_ext 4941cat >>conftest.$ac_ext <<_ACEOF 4942/* end confdefs.h. */ 4943#include <netinet/in.h> 4944#ifdef IPV6_INRIA_VERSION 4945yes 4946#endif 4947_ACEOF 4948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4949 $EGREP "yes" >/dev/null 2>&1; then 4950 ipv6type=$i; 4951 CFLAGS="-DINET6 $CFLAGS" 4952fi 4953rm -f -r conftest* 4954 4955 ;; 4956 kame) 4957 cat >conftest.$ac_ext <<_ACEOF 4958/* confdefs.h. */ 4959_ACEOF 4960cat confdefs.h >>conftest.$ac_ext 4961cat >>conftest.$ac_ext <<_ACEOF 4962/* end confdefs.h. */ 4963#include <netinet/in.h> 4964#ifdef __KAME__ 4965yes 4966#endif 4967_ACEOF 4968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4969 $EGREP "yes" >/dev/null 2>&1; then 4970 ipv6type=$i; 4971 ipv6lib=inet6; 4972 ipv6libdir=/usr/local/v6/lib; 4973 ipv6trylibc=yes; 4974 CFLAGS="-DINET6 $CFLAGS" 4975fi 4976rm -f -r conftest* 4977 4978 ;; 4979 linux-glibc) 4980 cat >conftest.$ac_ext <<_ACEOF 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986#include <features.h> 4987#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 4988yes 4989#endif 4990_ACEOF 4991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4992 $EGREP "yes" >/dev/null 2>&1; then 4993 ipv6type=$i; 4994 CFLAGS="-DINET6 $CFLAGS" 4995fi 4996rm -f -r conftest* 4997 4998 ;; 4999 linux-libinet6) 5000 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 5001 ipv6type=$i 5002 ipv6lib=inet6 5003 ipv6libdir=/usr/inet6/lib 5004 ipv6trylibc=yes; 5005 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 5006 fi 5007 ;; 5008 toshiba) 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#include <sys/param.h> 5016#ifdef _TOSHIBA_INET6 5017yes 5018#endif 5019_ACEOF 5020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5021 $EGREP "yes" >/dev/null 2>&1; then 5022 ipv6type=$i; 5023 ipv6lib=inet6; 5024 ipv6libdir=/usr/local/v6/lib; 5025 CFLAGS="-DINET6 $CFLAGS" 5026fi 5027rm -f -r conftest* 5028 5029 ;; 5030 v6d) 5031 cat >conftest.$ac_ext <<_ACEOF 5032/* confdefs.h. */ 5033_ACEOF 5034cat confdefs.h >>conftest.$ac_ext 5035cat >>conftest.$ac_ext <<_ACEOF 5036/* end confdefs.h. */ 5037#include </usr/local/v6/include/sys/v6config.h> 5038#ifdef __V6D__ 5039yes 5040#endif 5041_ACEOF 5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5043 $EGREP "yes" >/dev/null 2>&1; then 5044 ipv6type=$i; 5045 ipv6lib=v6; 5046 ipv6libdir=/usr/local/v6/lib; 5047 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5048fi 5049rm -f -r conftest* 5050 5051 ;; 5052 zeta) 5053 cat >conftest.$ac_ext <<_ACEOF 5054/* confdefs.h. */ 5055_ACEOF 5056cat confdefs.h >>conftest.$ac_ext 5057cat >>conftest.$ac_ext <<_ACEOF 5058/* end confdefs.h. */ 5059#include <sys/param.h> 5060#ifdef _ZETA_MINAMI_INET6 5061yes 5062#endif 5063_ACEOF 5064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5065 $EGREP "yes" >/dev/null 2>&1; then 5066 ipv6type=$i; 5067 ipv6lib=inet6; 5068 ipv6libdir=/usr/local/v6/lib; 5069 CFLAGS="-DINET6 $CFLAGS" 5070fi 5071rm -f -r conftest* 5072 5073 ;; 5074 esac 5075 if test "$ipv6type" != "unknown"; then 5076 break 5077 fi 5078 done 5079 { echo "$as_me:$LINENO: result: $ipv6type" >&5 5080echo "${ECHO_T}$ipv6type" >&6; } 5081fi 5082 5083if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 5084 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 5085 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 5086 echo "You have $ipv6lib library, using it" 5087 else 5088 if test "$ipv6trylibc" = "yes"; then 5089 echo "You do not have $ipv6lib library, using libc" 5090 else 5091 echo 'Fatal: no $ipv6lib library found. cannot continue.' 5092 echo "You need to fetch lib$ipv6lib.a from appropriate" 5093 echo 'ipv6 kit and compile beforehand.' 5094 exit 1 5095 fi 5096 fi 5097fi 5098 5099 5100if test "$ipv6" = "yes"; then 5101 # 5102 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 5103 # function in libc; there are "ngetaddrinfo()" and 5104 # "ogetaddrinfo()" functions, and <netdb.h> #defines 5105 # "getaddrinfo" to be either "ngetaddrinfo" or 5106 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 5107 # or _XOPEN_SOURCE_EXTENDED are defined or not. 5108 # 5109 # So this test doesn't work on Tru64 5.1, and possibly 5110 # on other 5.x releases. This causes the configure 5111 # script to become confused, and results in libpcap 5112 # being unbuildable. 5113 # 5114 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 5115echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; } 5116if test "${ac_cv_search_getaddrinfo+set}" = set; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118else 5119 ac_func_search_save_LIBS=$LIBS 5120cat >conftest.$ac_ext <<_ACEOF 5121/* confdefs.h. */ 5122_ACEOF 5123cat confdefs.h >>conftest.$ac_ext 5124cat >>conftest.$ac_ext <<_ACEOF 5125/* end confdefs.h. */ 5126 5127/* Override any GCC internal prototype to avoid an error. 5128 Use char because int might match the return type of a GCC 5129 builtin and then its argument prototype would still apply. */ 5130#ifdef __cplusplus 5131extern "C" 5132#endif 5133char getaddrinfo (); 5134int 5135main () 5136{ 5137return getaddrinfo (); 5138 ; 5139 return 0; 5140} 5141_ACEOF 5142for ac_lib in '' socket; do 5143 if test -z "$ac_lib"; then 5144 ac_res="none required" 5145 else 5146 ac_res=-l$ac_lib 5147 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5148 fi 5149 rm -f conftest.$ac_objext conftest$ac_exeext 5150if { (ac_try="$ac_link" 5151case "(($ac_try" in 5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5153 *) ac_try_echo=$ac_try;; 5154esac 5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5156 (eval "$ac_link") 2>conftest.er1 5157 ac_status=$? 5158 grep -v '^ *+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); } && { 5163 test -z "$ac_c_werror_flag" || 5164 test ! -s conftest.err 5165 } && test -s conftest$ac_exeext && 5166 $as_test_x conftest$ac_exeext; then 5167 ac_cv_search_getaddrinfo=$ac_res 5168else 5169 echo "$as_me: failed program was:" >&5 5170sed 's/^/| /' conftest.$ac_ext >&5 5171 5172 5173fi 5174 5175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5176 conftest$ac_exeext 5177 if test "${ac_cv_search_getaddrinfo+set}" = set; then 5178 break 5179fi 5180done 5181if test "${ac_cv_search_getaddrinfo+set}" = set; then 5182 : 5183else 5184 ac_cv_search_getaddrinfo=no 5185fi 5186rm conftest.$ac_ext 5187LIBS=$ac_func_search_save_LIBS 5188fi 5189{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 5190echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; } 5191ac_res=$ac_cv_search_getaddrinfo 5192if test "$ac_res" != no; then 5193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5194 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 5195echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } 5196 if test "${td_cv_buggygetaddrinfo+set}" = set; then 5197 echo $ECHO_N "(cached) $ECHO_C" >&6 5198else 5199 if test "$cross_compiling" = yes; then 5200 td_cv_buggygetaddrinfo=yes 5201else 5202 cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208 5209#include <sys/types.h> 5210#include <netdb.h> 5211#include <string.h> 5212#include <sys/socket.h> 5213#include <netinet/in.h> 5214 5215main() 5216{ 5217 int passive, gaierr, inet4 = 0, inet6 = 0; 5218 struct addrinfo hints, *ai, *aitop; 5219 char straddr[INET6_ADDRSTRLEN], strport[16]; 5220 5221 for (passive = 0; passive <= 1; passive++) { 5222 memset(&hints, 0, sizeof(hints)); 5223 hints.ai_family = AF_UNSPEC; 5224 hints.ai_flags = passive ? AI_PASSIVE : 0; 5225 hints.ai_socktype = SOCK_STREAM; 5226 hints.ai_protocol = IPPROTO_TCP; 5227 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 5228 (void)gai_strerror(gaierr); 5229 goto bad; 5230 } 5231 for (ai = aitop; ai; ai = ai->ai_next) { 5232 if (ai->ai_addr == NULL || 5233 ai->ai_addrlen == 0 || 5234 getnameinfo(ai->ai_addr, ai->ai_addrlen, 5235 straddr, sizeof(straddr), strport, sizeof(strport), 5236 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 5237 goto bad; 5238 } 5239 switch (ai->ai_family) { 5240 case AF_INET: 5241 if (strcmp(strport, "54321") != 0) { 5242 goto bad; 5243 } 5244 if (passive) { 5245 if (strcmp(straddr, "0.0.0.0") != 0) { 5246 goto bad; 5247 } 5248 } else { 5249 if (strcmp(straddr, "127.0.0.1") != 0) { 5250 goto bad; 5251 } 5252 } 5253 inet4++; 5254 break; 5255 case AF_INET6: 5256 if (strcmp(strport, "54321") != 0) { 5257 goto bad; 5258 } 5259 if (passive) { 5260 if (strcmp(straddr, "::") != 0) { 5261 goto bad; 5262 } 5263 } else { 5264 if (strcmp(straddr, "::1") != 0) { 5265 goto bad; 5266 } 5267 } 5268 inet6++; 5269 break; 5270 case AF_UNSPEC: 5271 goto bad; 5272 break; 5273#ifdef AF_UNIX 5274 case AF_UNIX: 5275#else 5276#ifdef AF_LOCAL 5277 case AF_LOCAL: 5278#endif 5279#endif 5280 default: 5281 /* another family support? */ 5282 break; 5283 } 5284 } 5285 } 5286 5287 /* supported family should be 2, unsupported family should be 0 */ 5288 if (!(inet4 == 0 || inet4 == 2)) 5289 goto bad; 5290 if (!(inet6 == 0 || inet6 == 2)) 5291 goto bad; 5292 5293 if (aitop) 5294 freeaddrinfo(aitop); 5295 exit(0); 5296 5297 bad: 5298 if (aitop) 5299 freeaddrinfo(aitop); 5300 exit(1); 5301} 5302 5303_ACEOF 5304rm -f conftest$ac_exeext 5305if { (ac_try="$ac_link" 5306case "(($ac_try" in 5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5308 *) ac_try_echo=$ac_try;; 5309esac 5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5311 (eval "$ac_link") 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5315 { (case "(($ac_try" in 5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5317 *) ac_try_echo=$ac_try;; 5318esac 5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5320 (eval "$ac_try") 2>&5 5321 ac_status=$? 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); }; }; then 5324 td_cv_buggygetaddrinfo=no 5325else 5326 echo "$as_me: program exited with status $ac_status" >&5 5327echo "$as_me: failed program was:" >&5 5328sed 's/^/| /' conftest.$ac_ext >&5 5329 5330( exit $ac_status ) 5331td_cv_buggygetaddrinfo=yes 5332fi 5333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5334fi 5335 5336 5337fi 5338 5339 if test "$td_cv_buggygetaddrinfo" = no; then 5340 { echo "$as_me:$LINENO: result: good" >&5 5341echo "${ECHO_T}good" >&6; } 5342 else 5343 { echo "$as_me:$LINENO: result: buggy" >&5 5344echo "${ECHO_T}buggy" >&6; } 5345 fi 5346 5347 if test "$td_cv_buggygetaddrinfo" = "yes"; then 5348 # 5349 # XXX - it doesn't appear that "ipv6type" can ever be 5350 # set to "linux". Should this be testing for 5351 # "linux-glibc", or for that *or* "linux-libinet6"? 5352 # If the latter, note that "linux-libinet6" is also 5353 # the type given to some non-Linux OSes. 5354 # 5355 if test "$ipv6type" != "linux"; then 5356 echo 'Fatal: You must get working getaddrinfo() function.' 5357 echo ' or you can specify "--disable-ipv6"'. 5358 exit 1 5359 else 5360 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 5361 echo ' Better upgrade your system library to newest version' 5362 echo ' of GNU C library (aka glibc).' 5363 fi 5364 fi 5365 5366fi 5367 5368 5369for ac_func in getnameinfo 5370do 5371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5372{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5375 echo $ECHO_N "(cached) $ECHO_C" >&6 5376else 5377 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5385#define $ac_func innocuous_$ac_func 5386 5387/* System header to define __stub macros and hopefully few prototypes, 5388 which can conflict with char $ac_func (); below. 5389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5390 <limits.h> exists even on freestanding compilers. */ 5391 5392#ifdef __STDC__ 5393# include <limits.h> 5394#else 5395# include <assert.h> 5396#endif 5397 5398#undef $ac_func 5399 5400/* Override any GCC internal prototype to avoid an error. 5401 Use char because int might match the return type of a GCC 5402 builtin and then its argument prototype would still apply. */ 5403#ifdef __cplusplus 5404extern "C" 5405#endif 5406char $ac_func (); 5407/* The GNU C library defines this for functions which it implements 5408 to always fail with ENOSYS. Some functions are actually named 5409 something starting with __ and the normal name is an alias. */ 5410#if defined __stub_$ac_func || defined __stub___$ac_func 5411choke me 5412#endif 5413 5414int 5415main () 5416{ 5417return $ac_func (); 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422rm -f conftest.$ac_objext conftest$ac_exeext 5423if { (ac_try="$ac_link" 5424case "(($ac_try" in 5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5426 *) ac_try_echo=$ac_try;; 5427esac 5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5429 (eval "$ac_link") 2>conftest.er1 5430 ac_status=$? 5431 grep -v '^ *+' conftest.er1 >conftest.err 5432 rm -f conftest.er1 5433 cat conftest.err >&5 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); } && { 5436 test -z "$ac_c_werror_flag" || 5437 test ! -s conftest.err 5438 } && test -s conftest$ac_exeext && 5439 $as_test_x conftest$ac_exeext; then 5440 eval "$as_ac_var=yes" 5441else 5442 echo "$as_me: failed program was:" >&5 5443sed 's/^/| /' conftest.$ac_ext >&5 5444 5445 eval "$as_ac_var=no" 5446fi 5447 5448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5449 conftest$ac_exeext conftest.$ac_ext 5450fi 5451ac_res=`eval echo '${'$as_ac_var'}'` 5452 { echo "$as_me:$LINENO: result: $ac_res" >&5 5453echo "${ECHO_T}$ac_res" >&6; } 5454if test `eval echo '${'$as_ac_var'}'` = yes; then 5455 cat >>confdefs.h <<_ACEOF 5456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5457_ACEOF 5458 5459else 5460 case " $LIBOBJS " in 5461 *" $ac_func.$ac_objext "* ) ;; 5462 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5463 ;; 5464esac 5465 5466fi 5467done 5468 5469 5470fi 5471 5472{ echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 5473echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; } 5474if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 5475 echo $ECHO_N "(cached) $ECHO_C" >&6 5476else 5477 cat >conftest.$ac_ext <<_ACEOF 5478/* confdefs.h. */ 5479_ACEOF 5480cat confdefs.h >>conftest.$ac_ext 5481cat >>conftest.$ac_ext <<_ACEOF 5482/* end confdefs.h. */ 5483#include <netdnet/dnetdb.h> 5484 5485_ACEOF 5486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5487 $EGREP "dnet_htoa" >/dev/null 2>&1; then 5488 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 5489else 5490 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 5491fi 5492rm -f -r conftest* 5493 5494fi 5495{ echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 5496echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; } 5497if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 5498 cat >>confdefs.h <<\_ACEOF 5499#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 5500_ACEOF 5501 5502fi 5503 5504 5505 { echo "$as_me:$LINENO: checking for addrinfo" >&5 5506echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } 5507 if test "${ac_cv_addrinfo+set}" = set; then 5508 echo $ECHO_N "(cached) $ECHO_C" >&6 5509else 5510 cat >conftest.$ac_ext <<_ACEOF 5511/* confdefs.h. */ 5512_ACEOF 5513cat confdefs.h >>conftest.$ac_ext 5514cat >>conftest.$ac_ext <<_ACEOF 5515/* end confdefs.h. */ 5516 5517# include <netdb.h> 5518int 5519main () 5520{ 5521struct addrinfo a 5522 ; 5523 return 0; 5524} 5525_ACEOF 5526rm -f conftest.$ac_objext 5527if { (ac_try="$ac_compile" 5528case "(($ac_try" in 5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5530 *) ac_try_echo=$ac_try;; 5531esac 5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5533 (eval "$ac_compile") 2>conftest.er1 5534 ac_status=$? 5535 grep -v '^ *+' conftest.er1 >conftest.err 5536 rm -f conftest.er1 5537 cat conftest.err >&5 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } && { 5540 test -z "$ac_c_werror_flag" || 5541 test ! -s conftest.err 5542 } && test -s conftest.$ac_objext; then 5543 ac_cv_addrinfo=yes 5544else 5545 echo "$as_me: failed program was:" >&5 5546sed 's/^/| /' conftest.$ac_ext >&5 5547 5548 ac_cv_addrinfo=no 5549fi 5550 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552fi 5553 5554 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 5555echo "${ECHO_T}$ac_cv_addrinfo" >&6; } 5556 if test $ac_cv_addrinfo = yes; then 5557 cat >>confdefs.h <<\_ACEOF 5558#define HAVE_ADDRINFO 1 5559_ACEOF 5560 5561 else 5562 cat >>confdefs.h <<\_ACEOF 5563#define NEED_ADDRINFO_H 1 5564_ACEOF 5565 5566 fi 5567 5568if test "$ac_cv_addrinfo" = no; then 5569 missing_includes=yes 5570fi 5571 5572 5573 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 5574echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; } 5575 if test "${ac_cv_maxserv+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577else 5578 cat >conftest.$ac_ext <<_ACEOF 5579/* confdefs.h. */ 5580_ACEOF 5581cat confdefs.h >>conftest.$ac_ext 5582cat >>conftest.$ac_ext <<_ACEOF 5583/* end confdefs.h. */ 5584#include <netdb.h> 5585#ifdef NI_MAXSERV 5586yes 5587#endif 5588_ACEOF 5589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5590 $EGREP "yes" >/dev/null 2>&1; then 5591 ac_cv_maxserv=yes 5592else 5593 ac_cv_maxserv=no 5594fi 5595rm -f -r conftest* 5596 5597fi 5598 5599 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 5600echo "${ECHO_T}$ac_cv_maxserv" >&6; } 5601 if test $ac_cv_maxserv != yes; then 5602 cat >>confdefs.h <<\_ACEOF 5603#define NEED_ADDRINFO_H 1 5604_ACEOF 5605 5606 fi 5607 5608if test "$ac_cv_maxserv" = no; then 5609 missing_includes=yes 5610fi 5611 5612 5613 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 5614echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; } 5615 if test "${ac_cv_namereqd+set}" = set; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 cat >conftest.$ac_ext <<_ACEOF 5619/* confdefs.h. */ 5620_ACEOF 5621cat confdefs.h >>conftest.$ac_ext 5622cat >>conftest.$ac_ext <<_ACEOF 5623/* end confdefs.h. */ 5624#include <netdb.h> 5625#ifdef NI_NOFQDN 5626yes 5627#endif 5628_ACEOF 5629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5630 $EGREP "yes" >/dev/null 2>&1; then 5631 ac_cv_namereqd=yes 5632else 5633 ac_cv_namereqd=no 5634fi 5635rm -f -r conftest* 5636 5637fi 5638 5639 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 5640echo "${ECHO_T}$ac_cv_namereqd" >&6; } 5641 if test $ac_cv_namereqd != yes; then 5642 cat >>confdefs.h <<\_ACEOF 5643#define NEED_ADDRINFO_H 1 5644_ACEOF 5645 5646 fi 5647 5648if test "$ac_cv_namereqd" = no; then 5649 missing_includes=yes 5650fi 5651 5652 5653 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 5654echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } 5655 if test "${ac_cv_sa_storage+set}" = set; then 5656 echo $ECHO_N "(cached) $ECHO_C" >&6 5657else 5658 cat >conftest.$ac_ext <<_ACEOF 5659/* confdefs.h. */ 5660_ACEOF 5661cat confdefs.h >>conftest.$ac_ext 5662cat >>conftest.$ac_ext <<_ACEOF 5663/* end confdefs.h. */ 5664 5665# include <sys/types.h> 5666# include <sys/socket.h> 5667int 5668main () 5669{ 5670struct sockaddr_storage s 5671 ; 5672 return 0; 5673} 5674_ACEOF 5675rm -f conftest.$ac_objext 5676if { (ac_try="$ac_compile" 5677case "(($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_compile") 2>conftest.er1 5683 ac_status=$? 5684 grep -v '^ *+' conftest.er1 >conftest.err 5685 rm -f conftest.er1 5686 cat conftest.err >&5 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); } && { 5689 test -z "$ac_c_werror_flag" || 5690 test ! -s conftest.err 5691 } && test -s conftest.$ac_objext; then 5692 ac_cv_sa_storage=yes 5693else 5694 echo "$as_me: failed program was:" >&5 5695sed 's/^/| /' conftest.$ac_ext >&5 5696 5697 ac_cv_sa_storage=no 5698fi 5699 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5701fi 5702 5703 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 5704echo "${ECHO_T}$ac_cv_sa_storage" >&6; } 5705 if test $ac_cv_sa_storage = yes; then 5706 cat >>confdefs.h <<\_ACEOF 5707#define HAVE_SOCKADDR_STORAGE 1 5708_ACEOF 5709 5710 fi 5711 5712if test "$ac_cv_sa_storage" = no; then 5713 missing_includes=yes 5714fi 5715 5716 5717 5718 5719 5720 5721 5722for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 5723do 5724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5725{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5728 echo $ECHO_N "(cached) $ECHO_C" >&6 5729else 5730 cat >conftest.$ac_ext <<_ACEOF 5731/* confdefs.h. */ 5732_ACEOF 5733cat confdefs.h >>conftest.$ac_ext 5734cat >>conftest.$ac_ext <<_ACEOF 5735/* end confdefs.h. */ 5736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5737 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5738#define $ac_func innocuous_$ac_func 5739 5740/* System header to define __stub macros and hopefully few prototypes, 5741 which can conflict with char $ac_func (); below. 5742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5743 <limits.h> exists even on freestanding compilers. */ 5744 5745#ifdef __STDC__ 5746# include <limits.h> 5747#else 5748# include <assert.h> 5749#endif 5750 5751#undef $ac_func 5752 5753/* Override any GCC internal prototype to avoid an error. 5754 Use char because int might match the return type of a GCC 5755 builtin and then its argument prototype would still apply. */ 5756#ifdef __cplusplus 5757extern "C" 5758#endif 5759char $ac_func (); 5760/* The GNU C library defines this for functions which it implements 5761 to always fail with ENOSYS. Some functions are actually named 5762 something starting with __ and the normal name is an alias. */ 5763#if defined __stub_$ac_func || defined __stub___$ac_func 5764choke me 5765#endif 5766 5767int 5768main () 5769{ 5770return $ac_func (); 5771 ; 5772 return 0; 5773} 5774_ACEOF 5775rm -f conftest.$ac_objext conftest$ac_exeext 5776if { (ac_try="$ac_link" 5777case "(($ac_try" in 5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5779 *) ac_try_echo=$ac_try;; 5780esac 5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5782 (eval "$ac_link") 2>conftest.er1 5783 ac_status=$? 5784 grep -v '^ *+' conftest.er1 >conftest.err 5785 rm -f conftest.er1 5786 cat conftest.err >&5 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); } && { 5789 test -z "$ac_c_werror_flag" || 5790 test ! -s conftest.err 5791 } && test -s conftest$ac_exeext && 5792 $as_test_x conftest$ac_exeext; then 5793 eval "$as_ac_var=yes" 5794else 5795 echo "$as_me: failed program was:" >&5 5796sed 's/^/| /' conftest.$ac_ext >&5 5797 5798 eval "$as_ac_var=no" 5799fi 5800 5801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5802 conftest$ac_exeext conftest.$ac_ext 5803fi 5804ac_res=`eval echo '${'$as_ac_var'}'` 5805 { echo "$as_me:$LINENO: result: $ac_res" >&5 5806echo "${ECHO_T}$ac_res" >&6; } 5807if test `eval echo '${'$as_ac_var'}'` = yes; then 5808 cat >>confdefs.h <<_ACEOF 5809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5810_ACEOF 5811 5812else 5813 case " $LIBOBJS " in 5814 *" $ac_func.$ac_objext "* ) ;; 5815 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5816 ;; 5817esac 5818 5819fi 5820done 5821 5822 5823 5824 5825 5826for ac_func in fork vfork strftime 5827do 5828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5829{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5832 echo $ECHO_N "(cached) $ECHO_C" >&6 5833else 5834 cat >conftest.$ac_ext <<_ACEOF 5835/* confdefs.h. */ 5836_ACEOF 5837cat confdefs.h >>conftest.$ac_ext 5838cat >>conftest.$ac_ext <<_ACEOF 5839/* end confdefs.h. */ 5840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5842#define $ac_func innocuous_$ac_func 5843 5844/* System header to define __stub macros and hopefully few prototypes, 5845 which can conflict with char $ac_func (); below. 5846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5847 <limits.h> exists even on freestanding compilers. */ 5848 5849#ifdef __STDC__ 5850# include <limits.h> 5851#else 5852# include <assert.h> 5853#endif 5854 5855#undef $ac_func 5856 5857/* Override any GCC internal prototype to avoid an error. 5858 Use char because int might match the return type of a GCC 5859 builtin and then its argument prototype would still apply. */ 5860#ifdef __cplusplus 5861extern "C" 5862#endif 5863char $ac_func (); 5864/* The GNU C library defines this for functions which it implements 5865 to always fail with ENOSYS. Some functions are actually named 5866 something starting with __ and the normal name is an alias. */ 5867#if defined __stub_$ac_func || defined __stub___$ac_func 5868choke me 5869#endif 5870 5871int 5872main () 5873{ 5874return $ac_func (); 5875 ; 5876 return 0; 5877} 5878_ACEOF 5879rm -f conftest.$ac_objext conftest$ac_exeext 5880if { (ac_try="$ac_link" 5881case "(($ac_try" in 5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5883 *) ac_try_echo=$ac_try;; 5884esac 5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5886 (eval "$ac_link") 2>conftest.er1 5887 ac_status=$? 5888 grep -v '^ *+' conftest.er1 >conftest.err 5889 rm -f conftest.er1 5890 cat conftest.err >&5 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); } && { 5893 test -z "$ac_c_werror_flag" || 5894 test ! -s conftest.err 5895 } && test -s conftest$ac_exeext && 5896 $as_test_x conftest$ac_exeext; then 5897 eval "$as_ac_var=yes" 5898else 5899 echo "$as_me: failed program was:" >&5 5900sed 's/^/| /' conftest.$ac_ext >&5 5901 5902 eval "$as_ac_var=no" 5903fi 5904 5905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5906 conftest$ac_exeext conftest.$ac_ext 5907fi 5908ac_res=`eval echo '${'$as_ac_var'}'` 5909 { echo "$as_me:$LINENO: result: $ac_res" >&5 5910echo "${ECHO_T}$ac_res" >&6; } 5911if test `eval echo '${'$as_ac_var'}'` = yes; then 5912 cat >>confdefs.h <<_ACEOF 5913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5914_ACEOF 5915 5916fi 5917done 5918 5919 5920 5921for ac_func in setlinebuf alarm 5922do 5923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5924{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5927 echo $ECHO_N "(cached) $ECHO_C" >&6 5928else 5929 cat >conftest.$ac_ext <<_ACEOF 5930/* confdefs.h. */ 5931_ACEOF 5932cat confdefs.h >>conftest.$ac_ext 5933cat >>conftest.$ac_ext <<_ACEOF 5934/* end confdefs.h. */ 5935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5937#define $ac_func innocuous_$ac_func 5938 5939/* System header to define __stub macros and hopefully few prototypes, 5940 which can conflict with char $ac_func (); below. 5941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5942 <limits.h> exists even on freestanding compilers. */ 5943 5944#ifdef __STDC__ 5945# include <limits.h> 5946#else 5947# include <assert.h> 5948#endif 5949 5950#undef $ac_func 5951 5952/* Override any GCC internal prototype to avoid an error. 5953 Use char because int might match the return type of a GCC 5954 builtin and then its argument prototype would still apply. */ 5955#ifdef __cplusplus 5956extern "C" 5957#endif 5958char $ac_func (); 5959/* The GNU C library defines this for functions which it implements 5960 to always fail with ENOSYS. Some functions are actually named 5961 something starting with __ and the normal name is an alias. */ 5962#if defined __stub_$ac_func || defined __stub___$ac_func 5963choke me 5964#endif 5965 5966int 5967main () 5968{ 5969return $ac_func (); 5970 ; 5971 return 0; 5972} 5973_ACEOF 5974rm -f conftest.$ac_objext conftest$ac_exeext 5975if { (ac_try="$ac_link" 5976case "(($ac_try" in 5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5978 *) ac_try_echo=$ac_try;; 5979esac 5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5981 (eval "$ac_link") 2>conftest.er1 5982 ac_status=$? 5983 grep -v '^ *+' conftest.er1 >conftest.err 5984 rm -f conftest.er1 5985 cat conftest.err >&5 5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); } && { 5988 test -z "$ac_c_werror_flag" || 5989 test ! -s conftest.err 5990 } && test -s conftest$ac_exeext && 5991 $as_test_x conftest$ac_exeext; then 5992 eval "$as_ac_var=yes" 5993else 5994 echo "$as_me: failed program was:" >&5 5995sed 's/^/| /' conftest.$ac_ext >&5 5996 5997 eval "$as_ac_var=no" 5998fi 5999 6000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6001 conftest$ac_exeext conftest.$ac_ext 6002fi 6003ac_res=`eval echo '${'$as_ac_var'}'` 6004 { echo "$as_me:$LINENO: result: $ac_res" >&5 6005echo "${ECHO_T}$ac_res" >&6; } 6006if test `eval echo '${'$as_ac_var'}'` = yes; then 6007 cat >>confdefs.h <<_ACEOF 6008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6009_ACEOF 6010 6011fi 6012done 6013 6014 6015needsnprintf=no 6016 6017 6018for ac_func in vsnprintf snprintf 6019do 6020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6021{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6024 echo $ECHO_N "(cached) $ECHO_C" >&6 6025else 6026 cat >conftest.$ac_ext <<_ACEOF 6027/* confdefs.h. */ 6028_ACEOF 6029cat confdefs.h >>conftest.$ac_ext 6030cat >>conftest.$ac_ext <<_ACEOF 6031/* end confdefs.h. */ 6032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6034#define $ac_func innocuous_$ac_func 6035 6036/* System header to define __stub macros and hopefully few prototypes, 6037 which can conflict with char $ac_func (); below. 6038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6039 <limits.h> exists even on freestanding compilers. */ 6040 6041#ifdef __STDC__ 6042# include <limits.h> 6043#else 6044# include <assert.h> 6045#endif 6046 6047#undef $ac_func 6048 6049/* Override any GCC internal prototype to avoid an error. 6050 Use char because int might match the return type of a GCC 6051 builtin and then its argument prototype would still apply. */ 6052#ifdef __cplusplus 6053extern "C" 6054#endif 6055char $ac_func (); 6056/* The GNU C library defines this for functions which it implements 6057 to always fail with ENOSYS. Some functions are actually named 6058 something starting with __ and the normal name is an alias. */ 6059#if defined __stub_$ac_func || defined __stub___$ac_func 6060choke me 6061#endif 6062 6063int 6064main () 6065{ 6066return $ac_func (); 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071rm -f conftest.$ac_objext 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>conftest.er1 6079 ac_status=$? 6080 grep -v '^ *+' conftest.er1 >conftest.err 6081 rm -f conftest.er1 6082 cat conftest.err >&5 6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6084 (exit $ac_status); } && { 6085 test -z "$ac_c_werror_flag" || 6086 test ! -s conftest.err 6087 } && test -s conftest$ac_exeext && 6088 $as_test_x conftest$ac_exeext; then 6089 eval "$as_ac_var=yes" 6090else 6091 echo "$as_me: failed program was:" >&5 6092sed 's/^/| /' conftest.$ac_ext >&5 6093 6094 eval "$as_ac_var=no" 6095fi 6096 6097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6098 conftest$ac_exeext conftest.$ac_ext 6099fi 6100ac_res=`eval echo '${'$as_ac_var'}'` 6101 { echo "$as_me:$LINENO: result: $ac_res" >&5 6102echo "${ECHO_T}$ac_res" >&6; } 6103if test `eval echo '${'$as_ac_var'}'` = yes; then 6104 cat >>confdefs.h <<_ACEOF 6105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6106_ACEOF 6107 6108else 6109 needsnprintf=yes 6110fi 6111done 6112 6113if test $needsnprintf = yes; then 6114 case " $LIBOBJS " in 6115 *" snprintf.$ac_objext "* ) ;; 6116 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 6117 ;; 6118esac 6119 6120fi 6121 6122 6123 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 6124echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 6125if test "${ac_cv_type_signal+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 cat >conftest.$ac_ext <<_ACEOF 6129/* confdefs.h. */ 6130_ACEOF 6131cat confdefs.h >>conftest.$ac_ext 6132cat >>conftest.$ac_ext <<_ACEOF 6133/* end confdefs.h. */ 6134#include <sys/types.h> 6135#include <signal.h> 6136 6137int 6138main () 6139{ 6140return *(signal (0, 0)) (0) == 1; 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest.$ac_objext 6146if { (ac_try="$ac_compile" 6147case "(($ac_try" in 6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6149 *) ac_try_echo=$ac_try;; 6150esac 6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6152 (eval "$ac_compile") 2>conftest.er1 6153 ac_status=$? 6154 grep -v '^ *+' conftest.er1 >conftest.err 6155 rm -f conftest.er1 6156 cat conftest.err >&5 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); } && { 6159 test -z "$ac_c_werror_flag" || 6160 test ! -s conftest.err 6161 } && test -s conftest.$ac_objext; then 6162 ac_cv_type_signal=int 6163else 6164 echo "$as_me: failed program was:" >&5 6165sed 's/^/| /' conftest.$ac_ext >&5 6166 6167 ac_cv_type_signal=void 6168fi 6169 6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6171fi 6172{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6173echo "${ECHO_T}$ac_cv_type_signal" >&6; } 6174 6175cat >>confdefs.h <<_ACEOF 6176#define RETSIGTYPE $ac_cv_type_signal 6177_ACEOF 6178 6179 6180 if test "$ac_cv_type_signal" = void ; then 6181 6182cat >>confdefs.h <<\_ACEOF 6183#define RETSIGVAL 6184_ACEOF 6185 6186 else 6187 6188cat >>confdefs.h <<\_ACEOF 6189#define RETSIGVAL (0) 6190_ACEOF 6191 6192 fi 6193 case "$host_os" in 6194 6195 irix*) 6196 6197cat >>confdefs.h <<\_ACEOF 6198#define _BSD_SIGNALS 1 6199_ACEOF 6200 6201 ;; 6202 6203 *) 6204 6205for ac_func in sigaction 6206do 6207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6208{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 cat >conftest.$ac_ext <<_ACEOF 6214/* confdefs.h. */ 6215_ACEOF 6216cat confdefs.h >>conftest.$ac_ext 6217cat >>conftest.$ac_ext <<_ACEOF 6218/* end confdefs.h. */ 6219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6220 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6221#define $ac_func innocuous_$ac_func 6222 6223/* System header to define __stub macros and hopefully few prototypes, 6224 which can conflict with char $ac_func (); below. 6225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6226 <limits.h> exists even on freestanding compilers. */ 6227 6228#ifdef __STDC__ 6229# include <limits.h> 6230#else 6231# include <assert.h> 6232#endif 6233 6234#undef $ac_func 6235 6236/* Override any GCC internal prototype to avoid an error. 6237 Use char because int might match the return type of a GCC 6238 builtin and then its argument prototype would still apply. */ 6239#ifdef __cplusplus 6240extern "C" 6241#endif 6242char $ac_func (); 6243/* The GNU C library defines this for functions which it implements 6244 to always fail with ENOSYS. Some functions are actually named 6245 something starting with __ and the normal name is an alias. */ 6246#if defined __stub_$ac_func || defined __stub___$ac_func 6247choke me 6248#endif 6249 6250int 6251main () 6252{ 6253return $ac_func (); 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258rm -f conftest.$ac_objext conftest$ac_exeext 6259if { (ac_try="$ac_link" 6260case "(($ac_try" in 6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6262 *) ac_try_echo=$ac_try;; 6263esac 6264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6265 (eval "$ac_link") 2>conftest.er1 6266 ac_status=$? 6267 grep -v '^ *+' conftest.er1 >conftest.err 6268 rm -f conftest.er1 6269 cat conftest.err >&5 6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6271 (exit $ac_status); } && { 6272 test -z "$ac_c_werror_flag" || 6273 test ! -s conftest.err 6274 } && test -s conftest$ac_exeext && 6275 $as_test_x conftest$ac_exeext; then 6276 eval "$as_ac_var=yes" 6277else 6278 echo "$as_me: failed program was:" >&5 6279sed 's/^/| /' conftest.$ac_ext >&5 6280 6281 eval "$as_ac_var=no" 6282fi 6283 6284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6285 conftest$ac_exeext conftest.$ac_ext 6286fi 6287ac_res=`eval echo '${'$as_ac_var'}'` 6288 { echo "$as_me:$LINENO: result: $ac_res" >&5 6289echo "${ECHO_T}$ac_res" >&6; } 6290if test `eval echo '${'$as_ac_var'}'` = yes; then 6291 cat >>confdefs.h <<_ACEOF 6292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6293_ACEOF 6294 6295fi 6296done 6297 6298 if test $ac_cv_func_sigaction = no ; then 6299 6300for ac_func in sigset 6301do 6302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6303{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6305if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6306 echo $ECHO_N "(cached) $ECHO_C" >&6 6307else 6308 cat >conftest.$ac_ext <<_ACEOF 6309/* confdefs.h. */ 6310_ACEOF 6311cat confdefs.h >>conftest.$ac_ext 6312cat >>conftest.$ac_ext <<_ACEOF 6313/* end confdefs.h. */ 6314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6316#define $ac_func innocuous_$ac_func 6317 6318/* System header to define __stub macros and hopefully few prototypes, 6319 which can conflict with char $ac_func (); below. 6320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6321 <limits.h> exists even on freestanding compilers. */ 6322 6323#ifdef __STDC__ 6324# include <limits.h> 6325#else 6326# include <assert.h> 6327#endif 6328 6329#undef $ac_func 6330 6331/* Override any GCC internal prototype to avoid an error. 6332 Use char because int might match the return type of a GCC 6333 builtin and then its argument prototype would still apply. */ 6334#ifdef __cplusplus 6335extern "C" 6336#endif 6337char $ac_func (); 6338/* The GNU C library defines this for functions which it implements 6339 to always fail with ENOSYS. Some functions are actually named 6340 something starting with __ and the normal name is an alias. */ 6341#if defined __stub_$ac_func || defined __stub___$ac_func 6342choke me 6343#endif 6344 6345int 6346main () 6347{ 6348return $ac_func (); 6349 ; 6350 return 0; 6351} 6352_ACEOF 6353rm -f conftest.$ac_objext conftest$ac_exeext 6354if { (ac_try="$ac_link" 6355case "(($ac_try" in 6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6357 *) ac_try_echo=$ac_try;; 6358esac 6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6360 (eval "$ac_link") 2>conftest.er1 6361 ac_status=$? 6362 grep -v '^ *+' conftest.er1 >conftest.err 6363 rm -f conftest.er1 6364 cat conftest.err >&5 6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6366 (exit $ac_status); } && { 6367 test -z "$ac_c_werror_flag" || 6368 test ! -s conftest.err 6369 } && test -s conftest$ac_exeext && 6370 $as_test_x conftest$ac_exeext; then 6371 eval "$as_ac_var=yes" 6372else 6373 echo "$as_me: failed program was:" >&5 6374sed 's/^/| /' conftest.$ac_ext >&5 6375 6376 eval "$as_ac_var=no" 6377fi 6378 6379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6380 conftest$ac_exeext conftest.$ac_ext 6381fi 6382ac_res=`eval echo '${'$as_ac_var'}'` 6383 { echo "$as_me:$LINENO: result: $ac_res" >&5 6384echo "${ECHO_T}$ac_res" >&6; } 6385if test `eval echo '${'$as_ac_var'}'` = yes; then 6386 cat >>confdefs.h <<_ACEOF 6387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6388_ACEOF 6389 6390fi 6391done 6392 6393 fi 6394 ;; 6395 esac 6396 6397{ echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 6398echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; } 6399if test "${ac_cv_search_dnet_htoa+set}" = set; then 6400 echo $ECHO_N "(cached) $ECHO_C" >&6 6401else 6402 ac_func_search_save_LIBS=$LIBS 6403cat >conftest.$ac_ext <<_ACEOF 6404/* confdefs.h. */ 6405_ACEOF 6406cat confdefs.h >>conftest.$ac_ext 6407cat >>conftest.$ac_ext <<_ACEOF 6408/* end confdefs.h. */ 6409 6410/* Override any GCC internal prototype to avoid an error. 6411 Use char because int might match the return type of a GCC 6412 builtin and then its argument prototype would still apply. */ 6413#ifdef __cplusplus 6414extern "C" 6415#endif 6416char dnet_htoa (); 6417int 6418main () 6419{ 6420return dnet_htoa (); 6421 ; 6422 return 0; 6423} 6424_ACEOF 6425for ac_lib in '' dnet; do 6426 if test -z "$ac_lib"; then 6427 ac_res="none required" 6428 else 6429 ac_res=-l$ac_lib 6430 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6431 fi 6432 rm -f conftest.$ac_objext conftest$ac_exeext 6433if { (ac_try="$ac_link" 6434case "(($ac_try" in 6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6436 *) ac_try_echo=$ac_try;; 6437esac 6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6439 (eval "$ac_link") 2>conftest.er1 6440 ac_status=$? 6441 grep -v '^ *+' conftest.er1 >conftest.err 6442 rm -f conftest.er1 6443 cat conftest.err >&5 6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6445 (exit $ac_status); } && { 6446 test -z "$ac_c_werror_flag" || 6447 test ! -s conftest.err 6448 } && test -s conftest$ac_exeext && 6449 $as_test_x conftest$ac_exeext; then 6450 ac_cv_search_dnet_htoa=$ac_res 6451else 6452 echo "$as_me: failed program was:" >&5 6453sed 's/^/| /' conftest.$ac_ext >&5 6454 6455 6456fi 6457 6458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6459 conftest$ac_exeext 6460 if test "${ac_cv_search_dnet_htoa+set}" = set; then 6461 break 6462fi 6463done 6464if test "${ac_cv_search_dnet_htoa+set}" = set; then 6465 : 6466else 6467 ac_cv_search_dnet_htoa=no 6468fi 6469rm conftest.$ac_ext 6470LIBS=$ac_func_search_save_LIBS 6471fi 6472{ echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 6473echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; } 6474ac_res=$ac_cv_search_dnet_htoa 6475if test "$ac_res" != no; then 6476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6477 cat >>confdefs.h <<\_ACEOF 6478#define HAVE_DNET_HTOA 1 6479_ACEOF 6480 6481fi 6482 6483 6484 6485{ echo "$as_me:$LINENO: checking for main in -lrpc" >&5 6486echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; } 6487if test "${ac_cv_lib_rpc_main+set}" = set; then 6488 echo $ECHO_N "(cached) $ECHO_C" >&6 6489else 6490 ac_check_lib_save_LIBS=$LIBS 6491LIBS="-lrpc $LIBS" 6492cat >conftest.$ac_ext <<_ACEOF 6493/* confdefs.h. */ 6494_ACEOF 6495cat confdefs.h >>conftest.$ac_ext 6496cat >>conftest.$ac_ext <<_ACEOF 6497/* end confdefs.h. */ 6498 6499 6500int 6501main () 6502{ 6503return main (); 6504 ; 6505 return 0; 6506} 6507_ACEOF 6508rm -f conftest.$ac_objext conftest$ac_exeext 6509if { (ac_try="$ac_link" 6510case "(($ac_try" in 6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6512 *) ac_try_echo=$ac_try;; 6513esac 6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6515 (eval "$ac_link") 2>conftest.er1 6516 ac_status=$? 6517 grep -v '^ *+' conftest.er1 >conftest.err 6518 rm -f conftest.er1 6519 cat conftest.err >&5 6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 (exit $ac_status); } && { 6522 test -z "$ac_c_werror_flag" || 6523 test ! -s conftest.err 6524 } && test -s conftest$ac_exeext && 6525 $as_test_x conftest$ac_exeext; then 6526 ac_cv_lib_rpc_main=yes 6527else 6528 echo "$as_me: failed program was:" >&5 6529sed 's/^/| /' conftest.$ac_ext >&5 6530 6531 ac_cv_lib_rpc_main=no 6532fi 6533 6534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6535 conftest$ac_exeext conftest.$ac_ext 6536LIBS=$ac_check_lib_save_LIBS 6537fi 6538{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 6539echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; } 6540if test $ac_cv_lib_rpc_main = yes; then 6541 cat >>confdefs.h <<_ACEOF 6542#define HAVE_LIBRPC 1 6543_ACEOF 6544 6545 LIBS="-lrpc $LIBS" 6546 6547fi 6548 6549{ echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 6550echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; } 6551if test "${ac_cv_search_getrpcbynumber+set}" = set; then 6552 echo $ECHO_N "(cached) $ECHO_C" >&6 6553else 6554 ac_func_search_save_LIBS=$LIBS 6555cat >conftest.$ac_ext <<_ACEOF 6556/* confdefs.h. */ 6557_ACEOF 6558cat confdefs.h >>conftest.$ac_ext 6559cat >>conftest.$ac_ext <<_ACEOF 6560/* end confdefs.h. */ 6561 6562/* Override any GCC internal prototype to avoid an error. 6563 Use char because int might match the return type of a GCC 6564 builtin and then its argument prototype would still apply. */ 6565#ifdef __cplusplus 6566extern "C" 6567#endif 6568char getrpcbynumber (); 6569int 6570main () 6571{ 6572return getrpcbynumber (); 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577for ac_lib in '' nsl; do 6578 if test -z "$ac_lib"; then 6579 ac_res="none required" 6580 else 6581 ac_res=-l$ac_lib 6582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6583 fi 6584 rm -f conftest.$ac_objext conftest$ac_exeext 6585if { (ac_try="$ac_link" 6586case "(($ac_try" in 6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6588 *) ac_try_echo=$ac_try;; 6589esac 6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6591 (eval "$ac_link") 2>conftest.er1 6592 ac_status=$? 6593 grep -v '^ *+' conftest.er1 >conftest.err 6594 rm -f conftest.er1 6595 cat conftest.err >&5 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); } && { 6598 test -z "$ac_c_werror_flag" || 6599 test ! -s conftest.err 6600 } && test -s conftest$ac_exeext && 6601 $as_test_x conftest$ac_exeext; then 6602 ac_cv_search_getrpcbynumber=$ac_res 6603else 6604 echo "$as_me: failed program was:" >&5 6605sed 's/^/| /' conftest.$ac_ext >&5 6606 6607 6608fi 6609 6610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6611 conftest$ac_exeext 6612 if test "${ac_cv_search_getrpcbynumber+set}" = set; then 6613 break 6614fi 6615done 6616if test "${ac_cv_search_getrpcbynumber+set}" = set; then 6617 : 6618else 6619 ac_cv_search_getrpcbynumber=no 6620fi 6621rm conftest.$ac_ext 6622LIBS=$ac_func_search_save_LIBS 6623fi 6624{ echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 6625echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; } 6626ac_res=$ac_cv_search_getrpcbynumber 6627if test "$ac_res" != no; then 6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6629 cat >>confdefs.h <<\_ACEOF 6630#define HAVE_GETRPCBYNUMBER 1 6631_ACEOF 6632 6633fi 6634 6635 6636 6637 6638 # Most operating systems have gethostbyname() in the default searched 6639 # libraries (i.e. libc): 6640 # Some OSes (eg. Solaris) place it in libnsl 6641 # Some strange OSes (SINIX) have it in libsocket: 6642 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 6643echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 6644if test "${ac_cv_search_gethostbyname+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 ac_func_search_save_LIBS=$LIBS 6648cat >conftest.$ac_ext <<_ACEOF 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654 6655/* Override any GCC internal prototype to avoid an error. 6656 Use char because int might match the return type of a GCC 6657 builtin and then its argument prototype would still apply. */ 6658#ifdef __cplusplus 6659extern "C" 6660#endif 6661char gethostbyname (); 6662int 6663main () 6664{ 6665return gethostbyname (); 6666 ; 6667 return 0; 6668} 6669_ACEOF 6670for ac_lib in '' nsl socket resolv; do 6671 if test -z "$ac_lib"; then 6672 ac_res="none required" 6673 else 6674 ac_res=-l$ac_lib 6675 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6676 fi 6677 rm -f conftest.$ac_objext conftest$ac_exeext 6678if { (ac_try="$ac_link" 6679case "(($ac_try" in 6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6681 *) ac_try_echo=$ac_try;; 6682esac 6683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6684 (eval "$ac_link") 2>conftest.er1 6685 ac_status=$? 6686 grep -v '^ *+' conftest.er1 >conftest.err 6687 rm -f conftest.er1 6688 cat conftest.err >&5 6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6690 (exit $ac_status); } && { 6691 test -z "$ac_c_werror_flag" || 6692 test ! -s conftest.err 6693 } && test -s conftest$ac_exeext && 6694 $as_test_x conftest$ac_exeext; then 6695 ac_cv_search_gethostbyname=$ac_res 6696else 6697 echo "$as_me: failed program was:" >&5 6698sed 's/^/| /' conftest.$ac_ext >&5 6699 6700 6701fi 6702 6703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6704 conftest$ac_exeext 6705 if test "${ac_cv_search_gethostbyname+set}" = set; then 6706 break 6707fi 6708done 6709if test "${ac_cv_search_gethostbyname+set}" = set; then 6710 : 6711else 6712 ac_cv_search_gethostbyname=no 6713fi 6714rm conftest.$ac_ext 6715LIBS=$ac_func_search_save_LIBS 6716fi 6717{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 6718echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 6719ac_res=$ac_cv_search_gethostbyname 6720if test "$ac_res" != no; then 6721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6722 6723fi 6724 6725 # Unfortunately libsocket sometimes depends on libnsl and 6726 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 6727 if test "$ac_cv_search_gethostbyname" = "no" 6728 then 6729 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 6730echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; } 6731if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733else 6734 ac_check_lib_save_LIBS=$LIBS 6735LIBS="-lsocket -lnsl $LIBS" 6736cat >conftest.$ac_ext <<_ACEOF 6737/* confdefs.h. */ 6738_ACEOF 6739cat confdefs.h >>conftest.$ac_ext 6740cat >>conftest.$ac_ext <<_ACEOF 6741/* end confdefs.h. */ 6742 6743/* Override any GCC internal prototype to avoid an error. 6744 Use char because int might match the return type of a GCC 6745 builtin and then its argument prototype would still apply. */ 6746#ifdef __cplusplus 6747extern "C" 6748#endif 6749char gethostbyname (); 6750int 6751main () 6752{ 6753return gethostbyname (); 6754 ; 6755 return 0; 6756} 6757_ACEOF 6758rm -f conftest.$ac_objext conftest$ac_exeext 6759if { (ac_try="$ac_link" 6760case "(($ac_try" in 6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6762 *) ac_try_echo=$ac_try;; 6763esac 6764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6765 (eval "$ac_link") 2>conftest.er1 6766 ac_status=$? 6767 grep -v '^ *+' conftest.er1 >conftest.err 6768 rm -f conftest.er1 6769 cat conftest.err >&5 6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6771 (exit $ac_status); } && { 6772 test -z "$ac_c_werror_flag" || 6773 test ! -s conftest.err 6774 } && test -s conftest$ac_exeext && 6775 $as_test_x conftest$ac_exeext; then 6776 ac_cv_lib_socket_gethostbyname=yes 6777else 6778 echo "$as_me: failed program was:" >&5 6779sed 's/^/| /' conftest.$ac_ext >&5 6780 6781 ac_cv_lib_socket_gethostbyname=no 6782fi 6783 6784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6785 conftest$ac_exeext conftest.$ac_ext 6786LIBS=$ac_check_lib_save_LIBS 6787fi 6788{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 6789echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; } 6790if test $ac_cv_lib_socket_gethostbyname = yes; then 6791 LIBS="-lsocket -lnsl $LIBS" 6792fi 6793 6794 fi 6795 { echo "$as_me:$LINENO: checking for library containing socket" >&5 6796echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } 6797if test "${ac_cv_search_socket+set}" = set; then 6798 echo $ECHO_N "(cached) $ECHO_C" >&6 6799else 6800 ac_func_search_save_LIBS=$LIBS 6801cat >conftest.$ac_ext <<_ACEOF 6802/* confdefs.h. */ 6803_ACEOF 6804cat confdefs.h >>conftest.$ac_ext 6805cat >>conftest.$ac_ext <<_ACEOF 6806/* end confdefs.h. */ 6807 6808/* Override any GCC internal prototype to avoid an error. 6809 Use char because int might match the return type of a GCC 6810 builtin and then its argument prototype would still apply. */ 6811#ifdef __cplusplus 6812extern "C" 6813#endif 6814char socket (); 6815int 6816main () 6817{ 6818return socket (); 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823for ac_lib in '' socket; do 6824 if test -z "$ac_lib"; then 6825 ac_res="none required" 6826 else 6827 ac_res=-l$ac_lib 6828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6829 fi 6830 rm -f conftest.$ac_objext conftest$ac_exeext 6831if { (ac_try="$ac_link" 6832case "(($ac_try" in 6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6834 *) ac_try_echo=$ac_try;; 6835esac 6836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6837 (eval "$ac_link") 2>conftest.er1 6838 ac_status=$? 6839 grep -v '^ *+' conftest.er1 >conftest.err 6840 rm -f conftest.er1 6841 cat conftest.err >&5 6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6843 (exit $ac_status); } && { 6844 test -z "$ac_c_werror_flag" || 6845 test ! -s conftest.err 6846 } && test -s conftest$ac_exeext && 6847 $as_test_x conftest$ac_exeext; then 6848 ac_cv_search_socket=$ac_res 6849else 6850 echo "$as_me: failed program was:" >&5 6851sed 's/^/| /' conftest.$ac_ext >&5 6852 6853 6854fi 6855 6856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6857 conftest$ac_exeext 6858 if test "${ac_cv_search_socket+set}" = set; then 6859 break 6860fi 6861done 6862if test "${ac_cv_search_socket+set}" = set; then 6863 : 6864else 6865 ac_cv_search_socket=no 6866fi 6867rm conftest.$ac_ext 6868LIBS=$ac_func_search_save_LIBS 6869fi 6870{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 6871echo "${ECHO_T}$ac_cv_search_socket" >&6; } 6872ac_res=$ac_cv_search_socket 6873if test "$ac_res" != no; then 6874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6875 6876else 6877 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 6878echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 6879if test "${ac_cv_lib_socket_socket+set}" = set; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 ac_check_lib_save_LIBS=$LIBS 6883LIBS="-lsocket -lnsl $LIBS" 6884cat >conftest.$ac_ext <<_ACEOF 6885/* confdefs.h. */ 6886_ACEOF 6887cat confdefs.h >>conftest.$ac_ext 6888cat >>conftest.$ac_ext <<_ACEOF 6889/* end confdefs.h. */ 6890 6891/* Override any GCC internal prototype to avoid an error. 6892 Use char because int might match the return type of a GCC 6893 builtin and then its argument prototype would still apply. */ 6894#ifdef __cplusplus 6895extern "C" 6896#endif 6897char socket (); 6898int 6899main () 6900{ 6901return socket (); 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906rm -f conftest.$ac_objext conftest$ac_exeext 6907if { (ac_try="$ac_link" 6908case "(($ac_try" in 6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6910 *) ac_try_echo=$ac_try;; 6911esac 6912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6913 (eval "$ac_link") 2>conftest.er1 6914 ac_status=$? 6915 grep -v '^ *+' conftest.er1 >conftest.err 6916 rm -f conftest.er1 6917 cat conftest.err >&5 6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6919 (exit $ac_status); } && { 6920 test -z "$ac_c_werror_flag" || 6921 test ! -s conftest.err 6922 } && test -s conftest$ac_exeext && 6923 $as_test_x conftest$ac_exeext; then 6924 ac_cv_lib_socket_socket=yes 6925else 6926 echo "$as_me: failed program was:" >&5 6927sed 's/^/| /' conftest.$ac_ext >&5 6928 6929 ac_cv_lib_socket_socket=no 6930fi 6931 6932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6933 conftest$ac_exeext conftest.$ac_ext 6934LIBS=$ac_check_lib_save_LIBS 6935fi 6936{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 6937echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 6938if test $ac_cv_lib_socket_socket = yes; then 6939 LIBS="-lsocket -lnsl $LIBS" 6940fi 6941 6942fi 6943 6944 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 6945 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5 6946echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; } 6947if test "${ac_cv_search_putmsg+set}" = set; then 6948 echo $ECHO_N "(cached) $ECHO_C" >&6 6949else 6950 ac_func_search_save_LIBS=$LIBS 6951cat >conftest.$ac_ext <<_ACEOF 6952/* confdefs.h. */ 6953_ACEOF 6954cat confdefs.h >>conftest.$ac_ext 6955cat >>conftest.$ac_ext <<_ACEOF 6956/* end confdefs.h. */ 6957 6958/* Override any GCC internal prototype to avoid an error. 6959 Use char because int might match the return type of a GCC 6960 builtin and then its argument prototype would still apply. */ 6961#ifdef __cplusplus 6962extern "C" 6963#endif 6964char putmsg (); 6965int 6966main () 6967{ 6968return putmsg (); 6969 ; 6970 return 0; 6971} 6972_ACEOF 6973for ac_lib in '' str; do 6974 if test -z "$ac_lib"; then 6975 ac_res="none required" 6976 else 6977 ac_res=-l$ac_lib 6978 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6979 fi 6980 rm -f conftest.$ac_objext conftest$ac_exeext 6981if { (ac_try="$ac_link" 6982case "(($ac_try" in 6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6984 *) ac_try_echo=$ac_try;; 6985esac 6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6987 (eval "$ac_link") 2>conftest.er1 6988 ac_status=$? 6989 grep -v '^ *+' conftest.er1 >conftest.err 6990 rm -f conftest.er1 6991 cat conftest.err >&5 6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6993 (exit $ac_status); } && { 6994 test -z "$ac_c_werror_flag" || 6995 test ! -s conftest.err 6996 } && test -s conftest$ac_exeext && 6997 $as_test_x conftest$ac_exeext; then 6998 ac_cv_search_putmsg=$ac_res 6999else 7000 echo "$as_me: failed program was:" >&5 7001sed 's/^/| /' conftest.$ac_ext >&5 7002 7003 7004fi 7005 7006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7007 conftest$ac_exeext 7008 if test "${ac_cv_search_putmsg+set}" = set; then 7009 break 7010fi 7011done 7012if test "${ac_cv_search_putmsg+set}" = set; then 7013 : 7014else 7015 ac_cv_search_putmsg=no 7016fi 7017rm conftest.$ac_ext 7018LIBS=$ac_func_search_save_LIBS 7019fi 7020{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 7021echo "${ECHO_T}$ac_cv_search_putmsg" >&6; } 7022ac_res=$ac_cv_search_putmsg 7023if test "$ac_res" != no; then 7024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7025 7026fi 7027 7028 7029 7030 LBL_LIBS="$LIBS" 7031 pfopen=/usr/examples/packetfilter/pfopen.c 7032 if test -f $pfopen ; then 7033 7034for ac_func in pfopen 7035do 7036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7037{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7040 echo $ECHO_N "(cached) $ECHO_C" >&6 7041else 7042 cat >conftest.$ac_ext <<_ACEOF 7043/* confdefs.h. */ 7044_ACEOF 7045cat confdefs.h >>conftest.$ac_ext 7046cat >>conftest.$ac_ext <<_ACEOF 7047/* end confdefs.h. */ 7048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7050#define $ac_func innocuous_$ac_func 7051 7052/* System header to define __stub macros and hopefully few prototypes, 7053 which can conflict with char $ac_func (); below. 7054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7055 <limits.h> exists even on freestanding compilers. */ 7056 7057#ifdef __STDC__ 7058# include <limits.h> 7059#else 7060# include <assert.h> 7061#endif 7062 7063#undef $ac_func 7064 7065/* Override any GCC internal prototype to avoid an error. 7066 Use char because int might match the return type of a GCC 7067 builtin and then its argument prototype would still apply. */ 7068#ifdef __cplusplus 7069extern "C" 7070#endif 7071char $ac_func (); 7072/* The GNU C library defines this for functions which it implements 7073 to always fail with ENOSYS. Some functions are actually named 7074 something starting with __ and the normal name is an alias. */ 7075#if defined __stub_$ac_func || defined __stub___$ac_func 7076choke me 7077#endif 7078 7079int 7080main () 7081{ 7082return $ac_func (); 7083 ; 7084 return 0; 7085} 7086_ACEOF 7087rm -f conftest.$ac_objext conftest$ac_exeext 7088if { (ac_try="$ac_link" 7089case "(($ac_try" in 7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7091 *) ac_try_echo=$ac_try;; 7092esac 7093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7094 (eval "$ac_link") 2>conftest.er1 7095 ac_status=$? 7096 grep -v '^ *+' conftest.er1 >conftest.err 7097 rm -f conftest.er1 7098 cat conftest.err >&5 7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7100 (exit $ac_status); } && { 7101 test -z "$ac_c_werror_flag" || 7102 test ! -s conftest.err 7103 } && test -s conftest$ac_exeext && 7104 $as_test_x conftest$ac_exeext; then 7105 eval "$as_ac_var=yes" 7106else 7107 echo "$as_me: failed program was:" >&5 7108sed 's/^/| /' conftest.$ac_ext >&5 7109 7110 eval "$as_ac_var=no" 7111fi 7112 7113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7114 conftest$ac_exeext conftest.$ac_ext 7115fi 7116ac_res=`eval echo '${'$as_ac_var'}'` 7117 { echo "$as_me:$LINENO: result: $ac_res" >&5 7118echo "${ECHO_T}$ac_res" >&6; } 7119if test `eval echo '${'$as_ac_var'}'` = yes; then 7120 cat >>confdefs.h <<_ACEOF 7121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7122_ACEOF 7123 7124fi 7125done 7126 7127 if test $ac_cv_func_pfopen = "no" ; then 7128 { echo "$as_me:$LINENO: result: Using $pfopen" >&5 7129echo "${ECHO_T}Using $pfopen" >&6; } 7130 LIBS="$LIBS $pfopen" 7131 fi 7132 fi 7133 { echo "$as_me:$LINENO: checking for local pcap library" >&5 7134echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; } 7135 libpcap=FAIL 7136 lastdir=FAIL 7137 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 7138 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` 7139 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 7140 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ 7141 sed -e 's/-PRE-GIT$//' ` 7142 if test $lastdir = $basedir ; then 7143 continue; 7144 fi 7145 lastdir=$dir 7146 if test -r $dir/libpcap.a ; then 7147 libpcap=$dir/libpcap.a 7148 d=$dir 7149 fi 7150 done 7151 if test $libpcap = FAIL ; then 7152 { echo "$as_me:$LINENO: result: not found" >&5 7153echo "${ECHO_T}not found" >&6; } 7154 7155 # 7156 # Look for pcap-config. 7157 # 7158 if test -n "$ac_tool_prefix"; then 7159 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args. 7160set dummy ${ac_tool_prefix}pcap-config; ac_word=$2 7161{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7163if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then 7164 echo $ECHO_N "(cached) $ECHO_C" >&6 7165else 7166 case $PCAP_CONFIG in 7167 [\\/]* | ?:[\\/]*) 7168 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 7169 ;; 7170 *) 7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7178 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183done 7184IFS=$as_save_IFS 7185 7186 ;; 7187esac 7188fi 7189PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 7190if test -n "$PCAP_CONFIG"; then 7191 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5 7192echo "${ECHO_T}$PCAP_CONFIG" >&6; } 7193else 7194 { echo "$as_me:$LINENO: result: no" >&5 7195echo "${ECHO_T}no" >&6; } 7196fi 7197 7198 7199fi 7200if test -z "$ac_cv_path_PCAP_CONFIG"; then 7201 ac_pt_PCAP_CONFIG=$PCAP_CONFIG 7202 # Extract the first word of "pcap-config", so it can be a program name with args. 7203set dummy pcap-config; ac_word=$2 7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7206if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208else 7209 case $ac_pt_PCAP_CONFIG in 7210 [\\/]* | ?:[\\/]*) 7211 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path. 7212 ;; 7213 *) 7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7221 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226done 7227IFS=$as_save_IFS 7228 7229 ;; 7230esac 7231fi 7232ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG 7233if test -n "$ac_pt_PCAP_CONFIG"; then 7234 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5 7235echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; } 7236else 7237 { echo "$as_me:$LINENO: result: no" >&5 7238echo "${ECHO_T}no" >&6; } 7239fi 7240 7241 if test "x$ac_pt_PCAP_CONFIG" = x; then 7242 PCAP_CONFIG="" 7243 else 7244 case $cross_compiling:$ac_tool_warned in 7245yes:) 7246{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7247whose name does not start with the host triplet. If you think this 7248configuration is useful to you, please write to autoconf@gnu.org." >&5 7249echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7250whose name does not start with the host triplet. If you think this 7251configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7252ac_tool_warned=yes ;; 7253esac 7254 PCAP_CONFIG=$ac_pt_PCAP_CONFIG 7255 fi 7256else 7257 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG" 7258fi 7259 7260 if test -n "$PCAP_CONFIG" ; then 7261 # 7262 # Found - use it to get the include flags for 7263 # libpcap and the flags to link with libpcap. 7264 # 7265 # Please read section 11.6 "Shell Substitutions" 7266 # in the autoconf manual before doing anything 7267 # to this that involves quoting. Especially note 7268 # the statement "There is just no portable way to use 7269 # double-quoted strings inside double-quoted back-quoted 7270 # expressions (pfew!)." 7271 # 7272 cflags=`"$PCAP_CONFIG" --cflags` 7273 V_INCLS="$cflags $V_INCLS" 7274 libpcap=`"$PCAP_CONFIG" --libs` 7275 else 7276 # 7277 # Not found; look for pcap. 7278 # 7279 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5 7280echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; } 7281if test "${ac_cv_lib_pcap_main+set}" = set; then 7282 echo $ECHO_N "(cached) $ECHO_C" >&6 7283else 7284 ac_check_lib_save_LIBS=$LIBS 7285LIBS="-lpcap $LIBS" 7286cat >conftest.$ac_ext <<_ACEOF 7287/* confdefs.h. */ 7288_ACEOF 7289cat confdefs.h >>conftest.$ac_ext 7290cat >>conftest.$ac_ext <<_ACEOF 7291/* end confdefs.h. */ 7292 7293 7294int 7295main () 7296{ 7297return main (); 7298 ; 7299 return 0; 7300} 7301_ACEOF 7302rm -f conftest.$ac_objext conftest$ac_exeext 7303if { (ac_try="$ac_link" 7304case "(($ac_try" in 7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7306 *) ac_try_echo=$ac_try;; 7307esac 7308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7309 (eval "$ac_link") 2>conftest.er1 7310 ac_status=$? 7311 grep -v '^ *+' conftest.er1 >conftest.err 7312 rm -f conftest.er1 7313 cat conftest.err >&5 7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7315 (exit $ac_status); } && { 7316 test -z "$ac_c_werror_flag" || 7317 test ! -s conftest.err 7318 } && test -s conftest$ac_exeext && 7319 $as_test_x conftest$ac_exeext; then 7320 ac_cv_lib_pcap_main=yes 7321else 7322 echo "$as_me: failed program was:" >&5 7323sed 's/^/| /' conftest.$ac_ext >&5 7324 7325 ac_cv_lib_pcap_main=no 7326fi 7327 7328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7329 conftest$ac_exeext conftest.$ac_ext 7330LIBS=$ac_check_lib_save_LIBS 7331fi 7332{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 7333echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; } 7334if test $ac_cv_lib_pcap_main = yes; then 7335 libpcap="-lpcap" 7336fi 7337 7338 if test $libpcap = FAIL ; then 7339 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 7340echo "$as_me: error: see the INSTALL doc for more info" >&2;} 7341 { (exit 1); exit 1; }; } 7342 fi 7343 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 7344echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; } 7345 if test \( ! -r /usr/local/include/pcap.h \) -a \ 7346 \( ! -r /usr/include/pcap.h \); then 7347 if test -r /usr/local/include/pcap/pcap.h; then 7348 d="/usr/local/include/pcap" 7349 elif test -r /usr/include/pcap/pcap.h; then 7350 d="/usr/include/pcap" 7351 fi 7352 fi 7353 if test -z "$d" ; then 7354 { echo "$as_me:$LINENO: result: not found" >&5 7355echo "${ECHO_T}not found" >&6; } 7356 else 7357 V_INCLS="-I$d $V_INCLS" 7358 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5 7359echo "${ECHO_T}found -- -I$d added" >&6; } 7360 fi 7361 fi 7362 else 7363 V_PCAPDEP=$libpcap 7364 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 7365 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 7366 if test -r $d/pcap.h; then 7367 V_INCLS="-I$d $V_INCLS" 7368 elif test -r $places/pcap.h; then 7369 V_INCLS="-I$places $V_INCLS" 7370 else 7371 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 7372echo "$as_me: error: cannot find pcap.h" >&2;} 7373 { (exit see INSTALL); exit see INSTALL; }; } 7374 fi 7375 { echo "$as_me:$LINENO: result: $libpcap" >&5 7376echo "${ECHO_T}$libpcap" >&6; } 7377 # Extract the first word of "pcap-config", so it can be a program name with args. 7378set dummy pcap-config; ac_word=$2 7379{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7381if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then 7382 echo $ECHO_N "(cached) $ECHO_C" >&6 7383else 7384 case $PCAP_CONFIG in 7385 [\\/]* | ?:[\\/]*) 7386 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 7387 ;; 7388 *) 7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $d 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7396 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401done 7402IFS=$as_save_IFS 7403 7404 ;; 7405esac 7406fi 7407PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 7408if test -n "$PCAP_CONFIG"; then 7409 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5 7410echo "${ECHO_T}$PCAP_CONFIG" >&6; } 7411else 7412 { echo "$as_me:$LINENO: result: no" >&5 7413echo "${ECHO_T}no" >&6; } 7414fi 7415 7416 7417 if test -n "$PCAP_CONFIG"; then 7418 # 7419 # The libpcap directory has a pcap-config script. 7420 # Use it to get any additioal libraries needed 7421 # to link with the libpcap archive library in 7422 # that directory. 7423 # 7424 # Please read section 11.6 "Shell Substitutions" 7425 # in the autoconf manual before doing anything 7426 # to this that involves quoting. Especially note 7427 # the statement "There is just no portable way to use 7428 # double-quoted strings inside double-quoted back-quoted 7429 # expressions (pfew!)." 7430 # 7431 additional_libs=`"$PCAP_CONFIG" --additional-libs --static` 7432 libpcap="$libpcap $additional_libs" 7433 fi 7434 fi 7435 LIBS="$libpcap $LIBS" 7436 if ! test -n "$PCAP_CONFIG" ; then 7437 # 7438 # We don't have pcap-config; find out any additional link flags 7439 # we need. (If we have pcap-config, we assume it tells us what 7440 # we need.) 7441 # 7442 case "$host_os" in 7443 7444 aix*) 7445 # 7446 # If libpcap is DLPI-based, we have to use /lib/pse.exp if 7447 # present, as we use the STREAMS routines. 7448 # 7449 # (XXX - true only if we're linking with a static libpcap?) 7450 # 7451 pseexe="/lib/pse.exp" 7452 { echo "$as_me:$LINENO: checking for $pseexe" >&5 7453echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; } 7454 if test -f $pseexe ; then 7455 { echo "$as_me:$LINENO: result: yes" >&5 7456echo "${ECHO_T}yes" >&6; } 7457 LIBS="$LIBS -I:$pseexe" 7458 fi 7459 7460 # 7461 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as 7462 # we use them to load the BPF module. 7463 # 7464 # (XXX - true only if we're linking with a static libpcap?) 7465 # 7466 LIBS="$LIBS -lodm -lcfg" 7467 ;; 7468 esac 7469 fi 7470 7471 { echo "$as_me:$LINENO: checking for pcap_loop" >&5 7472echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; } 7473if test "${ac_cv_func_pcap_loop+set}" = set; then 7474 echo $ECHO_N "(cached) $ECHO_C" >&6 7475else 7476 cat >conftest.$ac_ext <<_ACEOF 7477/* confdefs.h. */ 7478_ACEOF 7479cat confdefs.h >>conftest.$ac_ext 7480cat >>conftest.$ac_ext <<_ACEOF 7481/* end confdefs.h. */ 7482/* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop. 7483 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7484#define pcap_loop innocuous_pcap_loop 7485 7486/* System header to define __stub macros and hopefully few prototypes, 7487 which can conflict with char pcap_loop (); below. 7488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7489 <limits.h> exists even on freestanding compilers. */ 7490 7491#ifdef __STDC__ 7492# include <limits.h> 7493#else 7494# include <assert.h> 7495#endif 7496 7497#undef pcap_loop 7498 7499/* Override any GCC internal prototype to avoid an error. 7500 Use char because int might match the return type of a GCC 7501 builtin and then its argument prototype would still apply. */ 7502#ifdef __cplusplus 7503extern "C" 7504#endif 7505char pcap_loop (); 7506/* The GNU C library defines this for functions which it implements 7507 to always fail with ENOSYS. Some functions are actually named 7508 something starting with __ and the normal name is an alias. */ 7509#if defined __stub_pcap_loop || defined __stub___pcap_loop 7510choke me 7511#endif 7512 7513int 7514main () 7515{ 7516return pcap_loop (); 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521rm -f conftest.$ac_objext conftest$ac_exeext 7522if { (ac_try="$ac_link" 7523case "(($ac_try" in 7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7525 *) ac_try_echo=$ac_try;; 7526esac 7527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7528 (eval "$ac_link") 2>conftest.er1 7529 ac_status=$? 7530 grep -v '^ *+' conftest.er1 >conftest.err 7531 rm -f conftest.er1 7532 cat conftest.err >&5 7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7534 (exit $ac_status); } && { 7535 test -z "$ac_c_werror_flag" || 7536 test ! -s conftest.err 7537 } && test -s conftest$ac_exeext && 7538 $as_test_x conftest$ac_exeext; then 7539 ac_cv_func_pcap_loop=yes 7540else 7541 echo "$as_me: failed program was:" >&5 7542sed 's/^/| /' conftest.$ac_ext >&5 7543 7544 ac_cv_func_pcap_loop=no 7545fi 7546 7547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7548 conftest$ac_exeext conftest.$ac_ext 7549fi 7550{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5 7551echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; } 7552if test $ac_cv_func_pcap_loop = yes; then 7553 : 7554else 7555 7556 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the 7557config.log file in your report. If you have downloaded libpcap from 7558tcpdump.org, and built it yourself, please also include the config.log 7559file from the libpcap source directory, the Makefile from the libpcap 7560source directory, and the output of the make process for libpcap, as 7561this could be a problem with the libpcap that was built, and we will 7562not be able to determine why this is happening, and thus will not be 7563able to fix it, without that information, as we have not been able to 7564reproduce this problem ourselves." >&5 7565echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the 7566config.log file in your report. If you have downloaded libpcap from 7567tcpdump.org, and built it yourself, please also include the config.log 7568file from the libpcap source directory, the Makefile from the libpcap 7569source directory, and the output of the make process for libpcap, as 7570this could be a problem with the libpcap that was built, and we will 7571not be able to determine why this is happening, and thus will not be 7572able to fix it, without that information, as we have not been able to 7573reproduce this problem ourselves." >&2;} 7574 { (exit 1); exit 1; }; } 7575 7576fi 7577 7578 7579 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 7580echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; } 7581if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 7582 echo $ECHO_N "(cached) $ECHO_C" >&6 7583else 7584 cat >conftest.$ac_ext <<_ACEOF 7585/* confdefs.h. */ 7586_ACEOF 7587cat confdefs.h >>conftest.$ac_ext 7588cat >>conftest.$ac_ext <<_ACEOF 7589/* end confdefs.h. */ 7590/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks. 7591 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7592#define pcap_list_datalinks innocuous_pcap_list_datalinks 7593 7594/* System header to define __stub macros and hopefully few prototypes, 7595 which can conflict with char pcap_list_datalinks (); below. 7596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7597 <limits.h> exists even on freestanding compilers. */ 7598 7599#ifdef __STDC__ 7600# include <limits.h> 7601#else 7602# include <assert.h> 7603#endif 7604 7605#undef pcap_list_datalinks 7606 7607/* Override any GCC internal prototype to avoid an error. 7608 Use char because int might match the return type of a GCC 7609 builtin and then its argument prototype would still apply. */ 7610#ifdef __cplusplus 7611extern "C" 7612#endif 7613char pcap_list_datalinks (); 7614/* The GNU C library defines this for functions which it implements 7615 to always fail with ENOSYS. Some functions are actually named 7616 something starting with __ and the normal name is an alias. */ 7617#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks 7618choke me 7619#endif 7620 7621int 7622main () 7623{ 7624return pcap_list_datalinks (); 7625 ; 7626 return 0; 7627} 7628_ACEOF 7629rm -f conftest.$ac_objext conftest$ac_exeext 7630if { (ac_try="$ac_link" 7631case "(($ac_try" in 7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7633 *) ac_try_echo=$ac_try;; 7634esac 7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7636 (eval "$ac_link") 2>conftest.er1 7637 ac_status=$? 7638 grep -v '^ *+' conftest.er1 >conftest.err 7639 rm -f conftest.er1 7640 cat conftest.err >&5 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); } && { 7643 test -z "$ac_c_werror_flag" || 7644 test ! -s conftest.err 7645 } && test -s conftest$ac_exeext && 7646 $as_test_x conftest$ac_exeext; then 7647 ac_cv_func_pcap_list_datalinks=yes 7648else 7649 echo "$as_me: failed program was:" >&5 7650sed 's/^/| /' conftest.$ac_ext >&5 7651 7652 ac_cv_func_pcap_list_datalinks=no 7653fi 7654 7655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7656 conftest$ac_exeext conftest.$ac_ext 7657fi 7658{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 7659echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; } 7660if test $ac_cv_func_pcap_list_datalinks = yes; then 7661 cat >>confdefs.h <<\_ACEOF 7662#define HAVE_PCAP_LIST_DATALINKS 1 7663_ACEOF 7664 7665else 7666 7667 case " $LIBOBJS " in 7668 *" datalinks.$ac_objext "* ) ;; 7669 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 7670 ;; 7671esac 7672 7673 7674fi 7675 7676 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 7677echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; } 7678if test "${ac_cv_func_pcap_set_datalink+set}" = set; then 7679 echo $ECHO_N "(cached) $ECHO_C" >&6 7680else 7681 cat >conftest.$ac_ext <<_ACEOF 7682/* confdefs.h. */ 7683_ACEOF 7684cat confdefs.h >>conftest.$ac_ext 7685cat >>conftest.$ac_ext <<_ACEOF 7686/* end confdefs.h. */ 7687/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink. 7688 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7689#define pcap_set_datalink innocuous_pcap_set_datalink 7690 7691/* System header to define __stub macros and hopefully few prototypes, 7692 which can conflict with char pcap_set_datalink (); below. 7693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7694 <limits.h> exists even on freestanding compilers. */ 7695 7696#ifdef __STDC__ 7697# include <limits.h> 7698#else 7699# include <assert.h> 7700#endif 7701 7702#undef pcap_set_datalink 7703 7704/* Override any GCC internal prototype to avoid an error. 7705 Use char because int might match the return type of a GCC 7706 builtin and then its argument prototype would still apply. */ 7707#ifdef __cplusplus 7708extern "C" 7709#endif 7710char pcap_set_datalink (); 7711/* The GNU C library defines this for functions which it implements 7712 to always fail with ENOSYS. Some functions are actually named 7713 something starting with __ and the normal name is an alias. */ 7714#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink 7715choke me 7716#endif 7717 7718int 7719main () 7720{ 7721return pcap_set_datalink (); 7722 ; 7723 return 0; 7724} 7725_ACEOF 7726rm -f conftest.$ac_objext conftest$ac_exeext 7727if { (ac_try="$ac_link" 7728case "(($ac_try" in 7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7730 *) ac_try_echo=$ac_try;; 7731esac 7732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7733 (eval "$ac_link") 2>conftest.er1 7734 ac_status=$? 7735 grep -v '^ *+' conftest.er1 >conftest.err 7736 rm -f conftest.er1 7737 cat conftest.err >&5 7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7739 (exit $ac_status); } && { 7740 test -z "$ac_c_werror_flag" || 7741 test ! -s conftest.err 7742 } && test -s conftest$ac_exeext && 7743 $as_test_x conftest$ac_exeext; then 7744 ac_cv_func_pcap_set_datalink=yes 7745else 7746 echo "$as_me: failed program was:" >&5 7747sed 's/^/| /' conftest.$ac_ext >&5 7748 7749 ac_cv_func_pcap_set_datalink=no 7750fi 7751 7752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7753 conftest$ac_exeext conftest.$ac_ext 7754fi 7755{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 7756echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; } 7757if test $ac_cv_func_pcap_set_datalink = yes; then 7758 cat >>confdefs.h <<\_ACEOF 7759#define HAVE_PCAP_SET_DATALINK 1 7760_ACEOF 7761 7762fi 7763 7764 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 7765echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; } 7766if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 7767 echo $ECHO_N "(cached) $ECHO_C" >&6 7768else 7769 cat >conftest.$ac_ext <<_ACEOF 7770/* confdefs.h. */ 7771_ACEOF 7772cat confdefs.h >>conftest.$ac_ext 7773cat >>conftest.$ac_ext <<_ACEOF 7774/* end confdefs.h. */ 7775/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val. 7776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7777#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val 7778 7779/* System header to define __stub macros and hopefully few prototypes, 7780 which can conflict with char pcap_datalink_name_to_val (); below. 7781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7782 <limits.h> exists even on freestanding compilers. */ 7783 7784#ifdef __STDC__ 7785# include <limits.h> 7786#else 7787# include <assert.h> 7788#endif 7789 7790#undef pcap_datalink_name_to_val 7791 7792/* Override any GCC internal prototype to avoid an error. 7793 Use char because int might match the return type of a GCC 7794 builtin and then its argument prototype would still apply. */ 7795#ifdef __cplusplus 7796extern "C" 7797#endif 7798char pcap_datalink_name_to_val (); 7799/* The GNU C library defines this for functions which it implements 7800 to always fail with ENOSYS. Some functions are actually named 7801 something starting with __ and the normal name is an alias. */ 7802#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val 7803choke me 7804#endif 7805 7806int 7807main () 7808{ 7809return pcap_datalink_name_to_val (); 7810 ; 7811 return 0; 7812} 7813_ACEOF 7814rm -f conftest.$ac_objext conftest$ac_exeext 7815if { (ac_try="$ac_link" 7816case "(($ac_try" in 7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7818 *) ac_try_echo=$ac_try;; 7819esac 7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7821 (eval "$ac_link") 2>conftest.er1 7822 ac_status=$? 7823 grep -v '^ *+' conftest.er1 >conftest.err 7824 rm -f conftest.er1 7825 cat conftest.err >&5 7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7827 (exit $ac_status); } && { 7828 test -z "$ac_c_werror_flag" || 7829 test ! -s conftest.err 7830 } && test -s conftest$ac_exeext && 7831 $as_test_x conftest$ac_exeext; then 7832 ac_cv_func_pcap_datalink_name_to_val=yes 7833else 7834 echo "$as_me: failed program was:" >&5 7835sed 's/^/| /' conftest.$ac_ext >&5 7836 7837 ac_cv_func_pcap_datalink_name_to_val=no 7838fi 7839 7840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7841 conftest$ac_exeext conftest.$ac_ext 7842fi 7843{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 7844echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; } 7845if test $ac_cv_func_pcap_datalink_name_to_val = yes; then 7846 7847 cat >>confdefs.h <<\_ACEOF 7848#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 7849_ACEOF 7850 7851 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 7852echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; } 7853if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then 7854 echo $ECHO_N "(cached) $ECHO_C" >&6 7855else 7856 cat >conftest.$ac_ext <<_ACEOF 7857/* confdefs.h. */ 7858_ACEOF 7859cat confdefs.h >>conftest.$ac_ext 7860cat >>conftest.$ac_ext <<_ACEOF 7861/* end confdefs.h. */ 7862/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description. 7863 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7864#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description 7865 7866/* System header to define __stub macros and hopefully few prototypes, 7867 which can conflict with char pcap_datalink_val_to_description (); below. 7868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7869 <limits.h> exists even on freestanding compilers. */ 7870 7871#ifdef __STDC__ 7872# include <limits.h> 7873#else 7874# include <assert.h> 7875#endif 7876 7877#undef pcap_datalink_val_to_description 7878 7879/* Override any GCC internal prototype to avoid an error. 7880 Use char because int might match the return type of a GCC 7881 builtin and then its argument prototype would still apply. */ 7882#ifdef __cplusplus 7883extern "C" 7884#endif 7885char pcap_datalink_val_to_description (); 7886/* The GNU C library defines this for functions which it implements 7887 to always fail with ENOSYS. Some functions are actually named 7888 something starting with __ and the normal name is an alias. */ 7889#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description 7890choke me 7891#endif 7892 7893int 7894main () 7895{ 7896return pcap_datalink_val_to_description (); 7897 ; 7898 return 0; 7899} 7900_ACEOF 7901rm -f conftest.$ac_objext conftest$ac_exeext 7902if { (ac_try="$ac_link" 7903case "(($ac_try" in 7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7905 *) ac_try_echo=$ac_try;; 7906esac 7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7908 (eval "$ac_link") 2>conftest.er1 7909 ac_status=$? 7910 grep -v '^ *+' conftest.er1 >conftest.err 7911 rm -f conftest.er1 7912 cat conftest.err >&5 7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7914 (exit $ac_status); } && { 7915 test -z "$ac_c_werror_flag" || 7916 test ! -s conftest.err 7917 } && test -s conftest$ac_exeext && 7918 $as_test_x conftest$ac_exeext; then 7919 ac_cv_func_pcap_datalink_val_to_description=yes 7920else 7921 echo "$as_me: failed program was:" >&5 7922sed 's/^/| /' conftest.$ac_ext >&5 7923 7924 ac_cv_func_pcap_datalink_val_to_description=no 7925fi 7926 7927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7928 conftest$ac_exeext conftest.$ac_ext 7929fi 7930{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 7931echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; } 7932if test $ac_cv_func_pcap_datalink_val_to_description = yes; then 7933 cat >>confdefs.h <<\_ACEOF 7934#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 7935_ACEOF 7936 7937else 7938 7939 case " $LIBOBJS " in 7940 *" dlnames.$ac_objext "* ) ;; 7941 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7942 ;; 7943esac 7944 7945 7946fi 7947 7948 7949else 7950 7951 case " $LIBOBJS " in 7952 *" dlnames.$ac_objext "* ) ;; 7953 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7954 ;; 7955esac 7956 7957 7958fi 7959 7960 7961 7962for ac_func in pcap_breakloop 7963do 7964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7965{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7968 echo $ECHO_N "(cached) $ECHO_C" >&6 7969else 7970 cat >conftest.$ac_ext <<_ACEOF 7971/* confdefs.h. */ 7972_ACEOF 7973cat confdefs.h >>conftest.$ac_ext 7974cat >>conftest.$ac_ext <<_ACEOF 7975/* end confdefs.h. */ 7976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7977 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7978#define $ac_func innocuous_$ac_func 7979 7980/* System header to define __stub macros and hopefully few prototypes, 7981 which can conflict with char $ac_func (); below. 7982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7983 <limits.h> exists even on freestanding compilers. */ 7984 7985#ifdef __STDC__ 7986# include <limits.h> 7987#else 7988# include <assert.h> 7989#endif 7990 7991#undef $ac_func 7992 7993/* Override any GCC internal prototype to avoid an error. 7994 Use char because int might match the return type of a GCC 7995 builtin and then its argument prototype would still apply. */ 7996#ifdef __cplusplus 7997extern "C" 7998#endif 7999char $ac_func (); 8000/* The GNU C library defines this for functions which it implements 8001 to always fail with ENOSYS. Some functions are actually named 8002 something starting with __ and the normal name is an alias. */ 8003#if defined __stub_$ac_func || defined __stub___$ac_func 8004choke me 8005#endif 8006 8007int 8008main () 8009{ 8010return $ac_func (); 8011 ; 8012 return 0; 8013} 8014_ACEOF 8015rm -f conftest.$ac_objext conftest$ac_exeext 8016if { (ac_try="$ac_link" 8017case "(($ac_try" in 8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8019 *) ac_try_echo=$ac_try;; 8020esac 8021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8022 (eval "$ac_link") 2>conftest.er1 8023 ac_status=$? 8024 grep -v '^ *+' conftest.er1 >conftest.err 8025 rm -f conftest.er1 8026 cat conftest.err >&5 8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8028 (exit $ac_status); } && { 8029 test -z "$ac_c_werror_flag" || 8030 test ! -s conftest.err 8031 } && test -s conftest$ac_exeext && 8032 $as_test_x conftest$ac_exeext; then 8033 eval "$as_ac_var=yes" 8034else 8035 echo "$as_me: failed program was:" >&5 8036sed 's/^/| /' conftest.$ac_ext >&5 8037 8038 eval "$as_ac_var=no" 8039fi 8040 8041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044ac_res=`eval echo '${'$as_ac_var'}'` 8045 { echo "$as_me:$LINENO: result: $ac_res" >&5 8046echo "${ECHO_T}$ac_res" >&6; } 8047if test `eval echo '${'$as_ac_var'}'` = yes; then 8048 cat >>confdefs.h <<_ACEOF 8049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8050_ACEOF 8051 8052fi 8053done 8054 8055 8056 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5 8057echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; } 8058if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then 8059 echo $ECHO_N "(cached) $ECHO_C" >&6 8060else 8061 cat >conftest.$ac_ext <<_ACEOF 8062/* confdefs.h. */ 8063_ACEOF 8064cat confdefs.h >>conftest.$ac_ext 8065cat >>conftest.$ac_ext <<_ACEOF 8066/* end confdefs.h. */ 8067/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell. 8068 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8069#define pcap_dump_ftell innocuous_pcap_dump_ftell 8070 8071/* System header to define __stub macros and hopefully few prototypes, 8072 which can conflict with char pcap_dump_ftell (); below. 8073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8074 <limits.h> exists even on freestanding compilers. */ 8075 8076#ifdef __STDC__ 8077# include <limits.h> 8078#else 8079# include <assert.h> 8080#endif 8081 8082#undef pcap_dump_ftell 8083 8084/* Override any GCC internal prototype to avoid an error. 8085 Use char because int might match the return type of a GCC 8086 builtin and then its argument prototype would still apply. */ 8087#ifdef __cplusplus 8088extern "C" 8089#endif 8090char pcap_dump_ftell (); 8091/* The GNU C library defines this for functions which it implements 8092 to always fail with ENOSYS. Some functions are actually named 8093 something starting with __ and the normal name is an alias. */ 8094#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell 8095choke me 8096#endif 8097 8098int 8099main () 8100{ 8101return pcap_dump_ftell (); 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106rm -f conftest.$ac_objext conftest$ac_exeext 8107if { (ac_try="$ac_link" 8108case "(($ac_try" in 8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8110 *) ac_try_echo=$ac_try;; 8111esac 8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8113 (eval "$ac_link") 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && { 8120 test -z "$ac_c_werror_flag" || 8121 test ! -s conftest.err 8122 } && test -s conftest$ac_exeext && 8123 $as_test_x conftest$ac_exeext; then 8124 ac_cv_func_pcap_dump_ftell=yes 8125else 8126 echo "$as_me: failed program was:" >&5 8127sed 's/^/| /' conftest.$ac_ext >&5 8128 8129 ac_cv_func_pcap_dump_ftell=no 8130fi 8131 8132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8133 conftest$ac_exeext conftest.$ac_ext 8134fi 8135{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5 8136echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; } 8137if test $ac_cv_func_pcap_dump_ftell = yes; then 8138 cat >>confdefs.h <<\_ACEOF 8139#define HAVE_PCAP_DUMP_FTELL 1 8140_ACEOF 8141 8142else 8143 8144 case " $LIBOBJS " in 8145 *" pcap_dump_ftell.$ac_objext "* ) ;; 8146 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 8147 ;; 8148esac 8149 8150 8151fi 8152 8153 8154 8155# 8156# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 8157# libraries (e.g., "-lsocket -lnsl" on Solaris). 8158# 8159# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 8160# use AC_CHECK_FUNC which doesn't let us specify the right #includes 8161# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 8162# resolver, and the way it defines inet_{ntop,pton} is rather strange; 8163# it does not ship with a libc symbol "inet_ntop()", it ships with 8164# "_inet_ntop()", and has a #define macro in one of the system headers 8165# to rename it. 8166# 8167{ echo "$as_me:$LINENO: checking for inet_ntop" >&5 8168echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } 8169cat >conftest.$ac_ext <<_ACEOF 8170/* confdefs.h. */ 8171_ACEOF 8172cat confdefs.h >>conftest.$ac_ext 8173cat >>conftest.$ac_ext <<_ACEOF 8174/* end confdefs.h. */ 8175#include <sys/types.h> 8176#include <sys/socket.h> 8177#include <netinet/in.h> 8178#include <arpa/inet.h> 8179int 8180main () 8181{ 8182char src[4], dst[128]; 8183inet_ntop(AF_INET, src, dst, sizeof(dst)); 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188rm -f conftest.$ac_objext conftest$ac_exeext 8189if { (ac_try="$ac_link" 8190case "(($ac_try" in 8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8192 *) ac_try_echo=$ac_try;; 8193esac 8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8195 (eval "$ac_link") 2>conftest.er1 8196 ac_status=$? 8197 grep -v '^ *+' conftest.er1 >conftest.err 8198 rm -f conftest.er1 8199 cat conftest.err >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 (exit $ac_status); } && { 8202 test -z "$ac_c_werror_flag" || 8203 test ! -s conftest.err 8204 } && test -s conftest$ac_exeext && 8205 $as_test_x conftest$ac_exeext; then 8206 { echo "$as_me:$LINENO: result: yes" >&5 8207echo "${ECHO_T}yes" >&6; } 8208else 8209 echo "$as_me: failed program was:" >&5 8210sed 's/^/| /' conftest.$ac_ext >&5 8211 8212 { echo "$as_me:$LINENO: result: no" >&5 8213echo "${ECHO_T}no" >&6; } 8214 case " $LIBOBJS " in 8215 *" inet_ntop.$ac_objext "* ) ;; 8216 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 8217 ;; 8218esac 8219 8220fi 8221 8222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8223 conftest$ac_exeext conftest.$ac_ext 8224{ echo "$as_me:$LINENO: checking for inet_pton" >&5 8225echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } 8226cat >conftest.$ac_ext <<_ACEOF 8227/* confdefs.h. */ 8228_ACEOF 8229cat confdefs.h >>conftest.$ac_ext 8230cat >>conftest.$ac_ext <<_ACEOF 8231/* end confdefs.h. */ 8232#include <sys/types.h> 8233#include <sys/socket.h> 8234#include <netinet/in.h> 8235#include <arpa/inet.h> 8236int 8237main () 8238{ 8239char src[128], dst[4]; 8240inet_pton(AF_INET, src, dst); 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245rm -f conftest.$ac_objext conftest$ac_exeext 8246if { (ac_try="$ac_link" 8247case "(($ac_try" in 8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8249 *) ac_try_echo=$ac_try;; 8250esac 8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8252 (eval "$ac_link") 2>conftest.er1 8253 ac_status=$? 8254 grep -v '^ *+' conftest.er1 >conftest.err 8255 rm -f conftest.er1 8256 cat conftest.err >&5 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 (exit $ac_status); } && { 8259 test -z "$ac_c_werror_flag" || 8260 test ! -s conftest.err 8261 } && test -s conftest$ac_exeext && 8262 $as_test_x conftest$ac_exeext; then 8263 { echo "$as_me:$LINENO: result: yes" >&5 8264echo "${ECHO_T}yes" >&6; } 8265else 8266 echo "$as_me: failed program was:" >&5 8267sed 's/^/| /' conftest.$ac_ext >&5 8268 8269 { echo "$as_me:$LINENO: result: no" >&5 8270echo "${ECHO_T}no" >&6; } 8271 case " $LIBOBJS " in 8272 *" inet_pton.$ac_objext "* ) ;; 8273 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 8274 ;; 8275esac 8276 8277fi 8278 8279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8280 conftest$ac_exeext conftest.$ac_ext 8281{ echo "$as_me:$LINENO: checking for inet_aton" >&5 8282echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 8283cat >conftest.$ac_ext <<_ACEOF 8284/* confdefs.h. */ 8285_ACEOF 8286cat confdefs.h >>conftest.$ac_ext 8287cat >>conftest.$ac_ext <<_ACEOF 8288/* end confdefs.h. */ 8289#include <sys/types.h> 8290#include <netinet/in.h> 8291#include <arpa/inet.h> 8292int 8293main () 8294{ 8295char src[128]; 8296struct in_addr dst; 8297inet_aton(src, &dst); 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302rm -f conftest.$ac_objext conftest$ac_exeext 8303if { (ac_try="$ac_link" 8304case "(($ac_try" in 8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8306 *) ac_try_echo=$ac_try;; 8307esac 8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8309 (eval "$ac_link") 2>conftest.er1 8310 ac_status=$? 8311 grep -v '^ *+' conftest.er1 >conftest.err 8312 rm -f conftest.er1 8313 cat conftest.err >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8315 (exit $ac_status); } && { 8316 test -z "$ac_c_werror_flag" || 8317 test ! -s conftest.err 8318 } && test -s conftest$ac_exeext && 8319 $as_test_x conftest$ac_exeext; then 8320 { echo "$as_me:$LINENO: result: yes" >&5 8321echo "${ECHO_T}yes" >&6; } 8322else 8323 echo "$as_me: failed program was:" >&5 8324sed 's/^/| /' conftest.$ac_ext >&5 8325 8326 { echo "$as_me:$LINENO: result: no" >&5 8327echo "${ECHO_T}no" >&6; } 8328 case " $LIBOBJS " in 8329 *" inet_aton.$ac_objext "* ) ;; 8330 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 8331 ;; 8332esac 8333 8334fi 8335 8336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8337 conftest$ac_exeext conftest.$ac_ext 8338 8339# 8340# Check for these after AC_LBL_LIBPCAP, for the same reason. 8341# 8342# You are in a twisty little maze of UN*Xes, all different. 8343# Some might not have ether_ntohost(). 8344# Some might have it, but not declare it in any header file. 8345# Some might have it, but declare it in <netinet/if_ether.h>. 8346# Some might have it, but declare it in <netinet/ether.h> 8347# (And some might have it but document it as something declared in 8348# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 8349# 8350# Before you is a C compiler. 8351# 8352 8353for ac_func in ether_ntohost 8354do 8355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8356{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8359 echo $ECHO_N "(cached) $ECHO_C" >&6 8360else 8361 cat >conftest.$ac_ext <<_ACEOF 8362/* confdefs.h. */ 8363_ACEOF 8364cat confdefs.h >>conftest.$ac_ext 8365cat >>conftest.$ac_ext <<_ACEOF 8366/* end confdefs.h. */ 8367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8368 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8369#define $ac_func innocuous_$ac_func 8370 8371/* System header to define __stub macros and hopefully few prototypes, 8372 which can conflict with char $ac_func (); below. 8373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8374 <limits.h> exists even on freestanding compilers. */ 8375 8376#ifdef __STDC__ 8377# include <limits.h> 8378#else 8379# include <assert.h> 8380#endif 8381 8382#undef $ac_func 8383 8384/* Override any GCC internal prototype to avoid an error. 8385 Use char because int might match the return type of a GCC 8386 builtin and then its argument prototype would still apply. */ 8387#ifdef __cplusplus 8388extern "C" 8389#endif 8390char $ac_func (); 8391/* The GNU C library defines this for functions which it implements 8392 to always fail with ENOSYS. Some functions are actually named 8393 something starting with __ and the normal name is an alias. */ 8394#if defined __stub_$ac_func || defined __stub___$ac_func 8395choke me 8396#endif 8397 8398int 8399main () 8400{ 8401return $ac_func (); 8402 ; 8403 return 0; 8404} 8405_ACEOF 8406rm -f conftest.$ac_objext conftest$ac_exeext 8407if { (ac_try="$ac_link" 8408case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411esac 8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_link") 2>conftest.er1 8414 ac_status=$? 8415 grep -v '^ *+' conftest.er1 >conftest.err 8416 rm -f conftest.er1 8417 cat conftest.err >&5 8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); } && { 8420 test -z "$ac_c_werror_flag" || 8421 test ! -s conftest.err 8422 } && test -s conftest$ac_exeext && 8423 $as_test_x conftest$ac_exeext; then 8424 eval "$as_ac_var=yes" 8425else 8426 echo "$as_me: failed program was:" >&5 8427sed 's/^/| /' conftest.$ac_ext >&5 8428 8429 eval "$as_ac_var=no" 8430fi 8431 8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8433 conftest$ac_exeext conftest.$ac_ext 8434fi 8435ac_res=`eval echo '${'$as_ac_var'}'` 8436 { echo "$as_me:$LINENO: result: $ac_res" >&5 8437echo "${ECHO_T}$ac_res" >&6; } 8438if test `eval echo '${'$as_ac_var'}'` = yes; then 8439 cat >>confdefs.h <<_ACEOF 8440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8441_ACEOF 8442 8443 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 8444echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; } 8445if test "${ac_cv_buggy_ether_ntohost+set}" = set; then 8446 echo $ECHO_N "(cached) $ECHO_C" >&6 8447else 8448 8449 if test "$cross_compiling" = yes; then 8450 ac_cv_buggy_ether_ntohost="not while cross-compiling" 8451else 8452 cat >conftest.$ac_ext <<_ACEOF 8453/* confdefs.h. */ 8454_ACEOF 8455cat confdefs.h >>conftest.$ac_ext 8456cat >>conftest.$ac_ext <<_ACEOF 8457/* end confdefs.h. */ 8458 8459 #include <netdb.h> 8460 #include <sys/types.h> 8461 #include <sys/param.h> 8462 #include <sys/socket.h> 8463 8464 int 8465 main(int argc, char **argv) 8466 { 8467 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 8468 char name[MAXHOSTNAMELEN]; 8469 8470 ether_ntohost(name, (struct ether_addr *)ea); 8471 exit(0); 8472 } 8473 8474_ACEOF 8475rm -f conftest$ac_exeext 8476if { (ac_try="$ac_link" 8477case "(($ac_try" in 8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8479 *) ac_try_echo=$ac_try;; 8480esac 8481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8482 (eval "$ac_link") 2>&5 8483 ac_status=$? 8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8486 { (case "(($ac_try" in 8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8488 *) ac_try_echo=$ac_try;; 8489esac 8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8491 (eval "$ac_try") 2>&5 8492 ac_status=$? 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); }; }; then 8495 ac_cv_buggy_ether_ntohost=no 8496else 8497 echo "$as_me: program exited with status $ac_status" >&5 8498echo "$as_me: failed program was:" >&5 8499sed 's/^/| /' conftest.$ac_ext >&5 8500 8501( exit $ac_status ) 8502ac_cv_buggy_ether_ntohost=yes 8503fi 8504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8505fi 8506 8507 8508fi 8509{ echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 8510echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; } 8511 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 8512 cat >>confdefs.h <<\_ACEOF 8513#define USE_ETHER_NTOHOST 1 8514_ACEOF 8515 8516 fi 8517 8518fi 8519done 8520 8521if test "$ac_cv_func_ether_ntohost" = yes -a \ 8522 "$ac_cv_buggy_ether_ntohost" = "no"; then 8523 # 8524 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 8525 # 8526 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 8527 # 8528 # Yes. Does it declare ether_ntohost()? 8529 # 8530 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 8531echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; } 8532if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 8533 echo $ECHO_N "(cached) $ECHO_C" >&6 8534else 8535 cat >conftest.$ac_ext <<_ACEOF 8536/* confdefs.h. */ 8537_ACEOF 8538cat confdefs.h >>conftest.$ac_ext 8539cat >>conftest.$ac_ext <<_ACEOF 8540/* end confdefs.h. */ 8541 8542#include <sys/types.h> 8543#include <sys/socket.h> 8544#include <netinet/in.h> 8545#include <arpa/inet.h> 8546struct mbuf; 8547struct rtentry; 8548#include <net/if.h> 8549#include <netinet/if_ether.h> 8550 8551 8552int 8553main () 8554{ 8555#ifndef ether_ntohost 8556 (void) ether_ntohost; 8557#endif 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563rm -f conftest.$ac_objext 8564if { (ac_try="$ac_compile" 8565case "(($ac_try" in 8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8567 *) ac_try_echo=$ac_try;; 8568esac 8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8570 (eval "$ac_compile") 2>conftest.er1 8571 ac_status=$? 8572 grep -v '^ *+' conftest.er1 >conftest.err 8573 rm -f conftest.er1 8574 cat conftest.err >&5 8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8576 (exit $ac_status); } && { 8577 test -z "$ac_c_werror_flag" || 8578 test ! -s conftest.err 8579 } && test -s conftest.$ac_objext; then 8580 ac_cv_have_decl_ether_ntohost=yes 8581else 8582 echo "$as_me: failed program was:" >&5 8583sed 's/^/| /' conftest.$ac_ext >&5 8584 8585 ac_cv_have_decl_ether_ntohost=no 8586fi 8587 8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8589fi 8590{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 8591echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; } 8592if test $ac_cv_have_decl_ether_ntohost = yes; then 8593 8594 8595cat >>confdefs.h <<\_ACEOF 8596#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST 8597_ACEOF 8598 8599 8600fi 8601 8602 fi 8603 # 8604 # Did that succeed? 8605 # 8606 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 8607 # 8608 # No, how about <netinet/ether.h>, as on Linux? 8609 # 8610 8611for ac_header in netinet/ether.h 8612do 8613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8615 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8618 echo $ECHO_N "(cached) $ECHO_C" >&6 8619fi 8620ac_res=`eval echo '${'$as_ac_Header'}'` 8621 { echo "$as_me:$LINENO: result: $ac_res" >&5 8622echo "${ECHO_T}$ac_res" >&6; } 8623else 8624 # Is the header compilable? 8625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8627cat >conftest.$ac_ext <<_ACEOF 8628/* confdefs.h. */ 8629_ACEOF 8630cat confdefs.h >>conftest.$ac_ext 8631cat >>conftest.$ac_ext <<_ACEOF 8632/* end confdefs.h. */ 8633$ac_includes_default 8634#include <$ac_header> 8635_ACEOF 8636rm -f conftest.$ac_objext 8637if { (ac_try="$ac_compile" 8638case "(($ac_try" in 8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8640 *) ac_try_echo=$ac_try;; 8641esac 8642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8643 (eval "$ac_compile") 2>conftest.er1 8644 ac_status=$? 8645 grep -v '^ *+' conftest.er1 >conftest.err 8646 rm -f conftest.er1 8647 cat conftest.err >&5 8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8649 (exit $ac_status); } && { 8650 test -z "$ac_c_werror_flag" || 8651 test ! -s conftest.err 8652 } && test -s conftest.$ac_objext; then 8653 ac_header_compiler=yes 8654else 8655 echo "$as_me: failed program was:" >&5 8656sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 ac_header_compiler=no 8659fi 8660 8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8663echo "${ECHO_T}$ac_header_compiler" >&6; } 8664 8665# Is the header present? 8666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8668cat >conftest.$ac_ext <<_ACEOF 8669/* confdefs.h. */ 8670_ACEOF 8671cat confdefs.h >>conftest.$ac_ext 8672cat >>conftest.$ac_ext <<_ACEOF 8673/* end confdefs.h. */ 8674#include <$ac_header> 8675_ACEOF 8676if { (ac_try="$ac_cpp conftest.$ac_ext" 8677case "(($ac_try" in 8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8679 *) ac_try_echo=$ac_try;; 8680esac 8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8683 ac_status=$? 8684 grep -v '^ *+' conftest.er1 >conftest.err 8685 rm -f conftest.er1 8686 cat conftest.err >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8688 (exit $ac_status); } >/dev/null && { 8689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8690 test ! -s conftest.err 8691 }; then 8692 ac_header_preproc=yes 8693else 8694 echo "$as_me: failed program was:" >&5 8695sed 's/^/| /' conftest.$ac_ext >&5 8696 8697 ac_header_preproc=no 8698fi 8699 8700rm -f conftest.err conftest.$ac_ext 8701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8702echo "${ECHO_T}$ac_header_preproc" >&6; } 8703 8704# So? What about this header? 8705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8706 yes:no: ) 8707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8711 ac_header_preproc=yes 8712 ;; 8713 no:yes:* ) 8714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8726 8727 ;; 8728esac 8729{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8732 echo $ECHO_N "(cached) $ECHO_C" >&6 8733else 8734 eval "$as_ac_Header=\$ac_header_preproc" 8735fi 8736ac_res=`eval echo '${'$as_ac_Header'}'` 8737 { echo "$as_me:$LINENO: result: $ac_res" >&5 8738echo "${ECHO_T}$ac_res" >&6; } 8739 8740fi 8741if test `eval echo '${'$as_ac_Header'}'` = yes; then 8742 cat >>confdefs.h <<_ACEOF 8743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8744_ACEOF 8745 8746fi 8747 8748done 8749 8750 if test "$ac_cv_header_netinet_ether_h" = yes; then 8751 # 8752 # We have it - does it declare ether_ntohost()? 8753 # Unset ac_cv_have_decl_ether_ntohost so we don't 8754 # treat the previous failure as a cached value and 8755 # suppress the next test. 8756 # 8757 unset ac_cv_have_decl_ether_ntohost 8758 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 8759echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; } 8760if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 8761 echo $ECHO_N "(cached) $ECHO_C" >&6 8762else 8763 cat >conftest.$ac_ext <<_ACEOF 8764/* confdefs.h. */ 8765_ACEOF 8766cat confdefs.h >>conftest.$ac_ext 8767cat >>conftest.$ac_ext <<_ACEOF 8768/* end confdefs.h. */ 8769 8770#include <netinet/ether.h> 8771 8772 8773int 8774main () 8775{ 8776#ifndef ether_ntohost 8777 (void) ether_ntohost; 8778#endif 8779 8780 ; 8781 return 0; 8782} 8783_ACEOF 8784rm -f conftest.$ac_objext 8785if { (ac_try="$ac_compile" 8786case "(($ac_try" in 8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8788 *) ac_try_echo=$ac_try;; 8789esac 8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8791 (eval "$ac_compile") 2>conftest.er1 8792 ac_status=$? 8793 grep -v '^ *+' conftest.er1 >conftest.err 8794 rm -f conftest.er1 8795 cat conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 (exit $ac_status); } && { 8798 test -z "$ac_c_werror_flag" || 8799 test ! -s conftest.err 8800 } && test -s conftest.$ac_objext; then 8801 ac_cv_have_decl_ether_ntohost=yes 8802else 8803 echo "$as_me: failed program was:" >&5 8804sed 's/^/| /' conftest.$ac_ext >&5 8805 8806 ac_cv_have_decl_ether_ntohost=no 8807fi 8808 8809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8810fi 8811{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 8812echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; } 8813if test $ac_cv_have_decl_ether_ntohost = yes; then 8814 8815 8816cat >>confdefs.h <<\_ACEOF 8817#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 8818_ACEOF 8819 8820 8821fi 8822 8823 fi 8824 fi 8825 # 8826 # Is ether_ntohost() declared? 8827 # 8828 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 8829 # 8830 # No, we'll have to declare it ourselves. 8831 # Do we have "struct ether_addr"? 8832 # 8833 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5 8834echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; } 8835if test "${ac_cv_type_struct_ether_addr+set}" = set; then 8836 echo $ECHO_N "(cached) $ECHO_C" >&6 8837else 8838 cat >conftest.$ac_ext <<_ACEOF 8839/* confdefs.h. */ 8840_ACEOF 8841cat confdefs.h >>conftest.$ac_ext 8842cat >>conftest.$ac_ext <<_ACEOF 8843/* end confdefs.h. */ 8844 8845#include <sys/types.h> 8846#include <sys/socket.h> 8847#include <netinet/in.h> 8848#include <arpa/inet.h> 8849struct mbuf; 8850struct rtentry; 8851#include <net/if.h> 8852#include <netinet/if_ether.h> 8853 8854 8855typedef struct ether_addr ac__type_new_; 8856int 8857main () 8858{ 8859if ((ac__type_new_ *) 0) 8860 return 0; 8861if (sizeof (ac__type_new_)) 8862 return 0; 8863 ; 8864 return 0; 8865} 8866_ACEOF 8867rm -f conftest.$ac_objext 8868if { (ac_try="$ac_compile" 8869case "(($ac_try" in 8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8871 *) ac_try_echo=$ac_try;; 8872esac 8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8874 (eval "$ac_compile") 2>conftest.er1 8875 ac_status=$? 8876 grep -v '^ *+' conftest.er1 >conftest.err 8877 rm -f conftest.er1 8878 cat conftest.err >&5 8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8880 (exit $ac_status); } && { 8881 test -z "$ac_c_werror_flag" || 8882 test ! -s conftest.err 8883 } && test -s conftest.$ac_objext; then 8884 ac_cv_type_struct_ether_addr=yes 8885else 8886 echo "$as_me: failed program was:" >&5 8887sed 's/^/| /' conftest.$ac_ext >&5 8888 8889 ac_cv_type_struct_ether_addr=no 8890fi 8891 8892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8893fi 8894{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5 8895echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; } 8896if test $ac_cv_type_struct_ether_addr = yes; then 8897 8898cat >>confdefs.h <<_ACEOF 8899#define HAVE_STRUCT_ETHER_ADDR 1 8900_ACEOF 8901 8902 8903fi 8904 8905 8906cat >>confdefs.h <<\_ACEOF 8907#define HAVE_DECL_ETHER_NTOHOST 0 8908_ACEOF 8909 8910 else 8911 8912cat >>confdefs.h <<\_ACEOF 8913#define HAVE_DECL_ETHER_NTOHOST 1 8914_ACEOF 8915 8916 fi 8917fi 8918 8919# libdlpi is needed for Solaris 11 and later. 8920{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5 8921echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; } 8922if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then 8923 echo $ECHO_N "(cached) $ECHO_C" >&6 8924else 8925 ac_check_lib_save_LIBS=$LIBS 8926LIBS="-ldlpi -L/lib $LIBS" 8927cat >conftest.$ac_ext <<_ACEOF 8928/* confdefs.h. */ 8929_ACEOF 8930cat confdefs.h >>conftest.$ac_ext 8931cat >>conftest.$ac_ext <<_ACEOF 8932/* end confdefs.h. */ 8933 8934/* Override any GCC internal prototype to avoid an error. 8935 Use char because int might match the return type of a GCC 8936 builtin and then its argument prototype would still apply. */ 8937#ifdef __cplusplus 8938extern "C" 8939#endif 8940char dlpi_walk (); 8941int 8942main () 8943{ 8944return dlpi_walk (); 8945 ; 8946 return 0; 8947} 8948_ACEOF 8949rm -f conftest.$ac_objext conftest$ac_exeext 8950if { (ac_try="$ac_link" 8951case "(($ac_try" in 8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8953 *) ac_try_echo=$ac_try;; 8954esac 8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8956 (eval "$ac_link") 2>conftest.er1 8957 ac_status=$? 8958 grep -v '^ *+' conftest.er1 >conftest.err 8959 rm -f conftest.er1 8960 cat conftest.err >&5 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); } && { 8963 test -z "$ac_c_werror_flag" || 8964 test ! -s conftest.err 8965 } && test -s conftest$ac_exeext && 8966 $as_test_x conftest$ac_exeext; then 8967 ac_cv_lib_dlpi_dlpi_walk=yes 8968else 8969 echo "$as_me: failed program was:" >&5 8970sed 's/^/| /' conftest.$ac_ext >&5 8971 8972 ac_cv_lib_dlpi_dlpi_walk=no 8973fi 8974 8975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8976 conftest$ac_exeext conftest.$ac_ext 8977LIBS=$ac_check_lib_save_LIBS 8978fi 8979{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 8980echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; } 8981if test $ac_cv_lib_dlpi_dlpi_walk = yes; then 8982 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 8983fi 8984 8985 8986 8987 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 8988echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; } 8989 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 8990 echo $ECHO_N "(cached) $ECHO_C" >&6 8991else 8992 cat >conftest.$ac_ext <<_ACEOF 8993/* confdefs.h. */ 8994_ACEOF 8995cat confdefs.h >>conftest.$ac_ext 8996cat >>conftest.$ac_ext <<_ACEOF 8997/* end confdefs.h. */ 8998 8999# include <sys/types.h> 9000# include <sys/socket.h> 9001int 9002main () 9003{ 9004u_int i = sizeof(((struct sockaddr *)0)->sa_len) 9005 ; 9006 return 0; 9007} 9008_ACEOF 9009rm -f conftest.$ac_objext 9010if { (ac_try="$ac_compile" 9011case "(($ac_try" in 9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9013 *) ac_try_echo=$ac_try;; 9014esac 9015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9016 (eval "$ac_compile") 2>conftest.er1 9017 ac_status=$? 9018 grep -v '^ *+' conftest.er1 >conftest.err 9019 rm -f conftest.er1 9020 cat conftest.err >&5 9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9022 (exit $ac_status); } && { 9023 test -z "$ac_c_werror_flag" || 9024 test ! -s conftest.err 9025 } && test -s conftest.$ac_objext; then 9026 ac_cv_sockaddr_has_sa_len=yes 9027else 9028 echo "$as_me: failed program was:" >&5 9029sed 's/^/| /' conftest.$ac_ext >&5 9030 9031 ac_cv_sockaddr_has_sa_len=no 9032fi 9033 9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9035fi 9036 9037 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 9038echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; } 9039 if test $ac_cv_sockaddr_has_sa_len = yes ; then 9040 cat >>confdefs.h <<\_ACEOF 9041#define HAVE_SOCKADDR_SA_LEN 1 9042_ACEOF 9043 9044 fi 9045 9046if test "$ac_cv_sockaddr_has_sa_len" = no; then 9047 missing_includes=yes 9048fi 9049 9050# 9051# Do we have the new open API? Check for pcap_create, and assume that, 9052# if we do, we also have pcap_activate() and the other new routines 9053# introduced in libpcap 1.0.0. 9054# 9055 9056for ac_func in pcap_create 9057do 9058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9059{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9061if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9062 echo $ECHO_N "(cached) $ECHO_C" >&6 9063else 9064 cat >conftest.$ac_ext <<_ACEOF 9065/* confdefs.h. */ 9066_ACEOF 9067cat confdefs.h >>conftest.$ac_ext 9068cat >>conftest.$ac_ext <<_ACEOF 9069/* end confdefs.h. */ 9070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9071 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9072#define $ac_func innocuous_$ac_func 9073 9074/* System header to define __stub macros and hopefully few prototypes, 9075 which can conflict with char $ac_func (); below. 9076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9077 <limits.h> exists even on freestanding compilers. */ 9078 9079#ifdef __STDC__ 9080# include <limits.h> 9081#else 9082# include <assert.h> 9083#endif 9084 9085#undef $ac_func 9086 9087/* Override any GCC internal prototype to avoid an error. 9088 Use char because int might match the return type of a GCC 9089 builtin and then its argument prototype would still apply. */ 9090#ifdef __cplusplus 9091extern "C" 9092#endif 9093char $ac_func (); 9094/* The GNU C library defines this for functions which it implements 9095 to always fail with ENOSYS. Some functions are actually named 9096 something starting with __ and the normal name is an alias. */ 9097#if defined __stub_$ac_func || defined __stub___$ac_func 9098choke me 9099#endif 9100 9101int 9102main () 9103{ 9104return $ac_func (); 9105 ; 9106 return 0; 9107} 9108_ACEOF 9109rm -f conftest.$ac_objext conftest$ac_exeext 9110if { (ac_try="$ac_link" 9111case "(($ac_try" in 9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9113 *) ac_try_echo=$ac_try;; 9114esac 9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9116 (eval "$ac_link") 2>conftest.er1 9117 ac_status=$? 9118 grep -v '^ *+' conftest.er1 >conftest.err 9119 rm -f conftest.er1 9120 cat conftest.err >&5 9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9122 (exit $ac_status); } && { 9123 test -z "$ac_c_werror_flag" || 9124 test ! -s conftest.err 9125 } && test -s conftest$ac_exeext && 9126 $as_test_x conftest$ac_exeext; then 9127 eval "$as_ac_var=yes" 9128else 9129 echo "$as_me: failed program was:" >&5 9130sed 's/^/| /' conftest.$ac_ext >&5 9131 9132 eval "$as_ac_var=no" 9133fi 9134 9135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9136 conftest$ac_exeext conftest.$ac_ext 9137fi 9138ac_res=`eval echo '${'$as_ac_var'}'` 9139 { echo "$as_me:$LINENO: result: $ac_res" >&5 9140echo "${ECHO_T}$ac_res" >&6; } 9141if test `eval echo '${'$as_ac_var'}'` = yes; then 9142 cat >>confdefs.h <<_ACEOF 9143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9144_ACEOF 9145 9146fi 9147done 9148 9149if test $ac_cv_func_pcap_create = "yes" ; then 9150 # 9151 # OK, do we have pcap_set_tstamp_type? If so, assume we have 9152 # pcap_list_tstamp_types and pcap_free_tstamp_types as well. 9153 # 9154 9155for ac_func in pcap_set_tstamp_type 9156do 9157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9158{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9161 echo $ECHO_N "(cached) $ECHO_C" >&6 9162else 9163 cat >conftest.$ac_ext <<_ACEOF 9164/* confdefs.h. */ 9165_ACEOF 9166cat confdefs.h >>conftest.$ac_ext 9167cat >>conftest.$ac_ext <<_ACEOF 9168/* end confdefs.h. */ 9169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9170 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9171#define $ac_func innocuous_$ac_func 9172 9173/* System header to define __stub macros and hopefully few prototypes, 9174 which can conflict with char $ac_func (); below. 9175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9176 <limits.h> exists even on freestanding compilers. */ 9177 9178#ifdef __STDC__ 9179# include <limits.h> 9180#else 9181# include <assert.h> 9182#endif 9183 9184#undef $ac_func 9185 9186/* Override any GCC internal prototype to avoid an error. 9187 Use char because int might match the return type of a GCC 9188 builtin and then its argument prototype would still apply. */ 9189#ifdef __cplusplus 9190extern "C" 9191#endif 9192char $ac_func (); 9193/* The GNU C library defines this for functions which it implements 9194 to always fail with ENOSYS. Some functions are actually named 9195 something starting with __ and the normal name is an alias. */ 9196#if defined __stub_$ac_func || defined __stub___$ac_func 9197choke me 9198#endif 9199 9200int 9201main () 9202{ 9203return $ac_func (); 9204 ; 9205 return 0; 9206} 9207_ACEOF 9208rm -f conftest.$ac_objext conftest$ac_exeext 9209if { (ac_try="$ac_link" 9210case "(($ac_try" in 9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9212 *) ac_try_echo=$ac_try;; 9213esac 9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9215 (eval "$ac_link") 2>conftest.er1 9216 ac_status=$? 9217 grep -v '^ *+' conftest.er1 >conftest.err 9218 rm -f conftest.er1 9219 cat conftest.err >&5 9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9221 (exit $ac_status); } && { 9222 test -z "$ac_c_werror_flag" || 9223 test ! -s conftest.err 9224 } && test -s conftest$ac_exeext && 9225 $as_test_x conftest$ac_exeext; then 9226 eval "$as_ac_var=yes" 9227else 9228 echo "$as_me: failed program was:" >&5 9229sed 's/^/| /' conftest.$ac_ext >&5 9230 9231 eval "$as_ac_var=no" 9232fi 9233 9234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9235 conftest$ac_exeext conftest.$ac_ext 9236fi 9237ac_res=`eval echo '${'$as_ac_var'}'` 9238 { echo "$as_me:$LINENO: result: $ac_res" >&5 9239echo "${ECHO_T}$ac_res" >&6; } 9240if test `eval echo '${'$as_ac_var'}'` = yes; then 9241 cat >>confdefs.h <<_ACEOF 9242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9243_ACEOF 9244 9245fi 9246done 9247 9248fi 9249 9250 9251 9252 9253for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 9254do 9255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9256{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9258if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9259 echo $ECHO_N "(cached) $ECHO_C" >&6 9260else 9261 cat >conftest.$ac_ext <<_ACEOF 9262/* confdefs.h. */ 9263_ACEOF 9264cat confdefs.h >>conftest.$ac_ext 9265cat >>conftest.$ac_ext <<_ACEOF 9266/* end confdefs.h. */ 9267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9268 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9269#define $ac_func innocuous_$ac_func 9270 9271/* System header to define __stub macros and hopefully few prototypes, 9272 which can conflict with char $ac_func (); below. 9273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9274 <limits.h> exists even on freestanding compilers. */ 9275 9276#ifdef __STDC__ 9277# include <limits.h> 9278#else 9279# include <assert.h> 9280#endif 9281 9282#undef $ac_func 9283 9284/* Override any GCC internal prototype to avoid an error. 9285 Use char because int might match the return type of a GCC 9286 builtin and then its argument prototype would still apply. */ 9287#ifdef __cplusplus 9288extern "C" 9289#endif 9290char $ac_func (); 9291/* The GNU C library defines this for functions which it implements 9292 to always fail with ENOSYS. Some functions are actually named 9293 something starting with __ and the normal name is an alias. */ 9294#if defined __stub_$ac_func || defined __stub___$ac_func 9295choke me 9296#endif 9297 9298int 9299main () 9300{ 9301return $ac_func (); 9302 ; 9303 return 0; 9304} 9305_ACEOF 9306rm -f conftest.$ac_objext conftest$ac_exeext 9307if { (ac_try="$ac_link" 9308case "(($ac_try" in 9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9310 *) ac_try_echo=$ac_try;; 9311esac 9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9313 (eval "$ac_link") 2>conftest.er1 9314 ac_status=$? 9315 grep -v '^ *+' conftest.er1 >conftest.err 9316 rm -f conftest.er1 9317 cat conftest.err >&5 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 (exit $ac_status); } && { 9320 test -z "$ac_c_werror_flag" || 9321 test ! -s conftest.err 9322 } && test -s conftest$ac_exeext && 9323 $as_test_x conftest$ac_exeext; then 9324 eval "$as_ac_var=yes" 9325else 9326 echo "$as_me: failed program was:" >&5 9327sed 's/^/| /' conftest.$ac_ext >&5 9328 9329 eval "$as_ac_var=no" 9330fi 9331 9332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9333 conftest$ac_exeext conftest.$ac_ext 9334fi 9335ac_res=`eval echo '${'$as_ac_var'}'` 9336 { echo "$as_me:$LINENO: result: $ac_res" >&5 9337echo "${ECHO_T}$ac_res" >&6; } 9338if test `eval echo '${'$as_ac_var'}'` = yes; then 9339 cat >>confdefs.h <<_ACEOF 9340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9341_ACEOF 9342 9343fi 9344done 9345 9346if test $ac_cv_func_pcap_findalldevs = "yes" ; then 9347 savedcppflags="$CPPFLAGS" 9348 CPPFLAGS="$CPPFLAGS $V_INCLS" 9349 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5 9350echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; } 9351if test "${ac_cv_type_pcap_if_t+set}" = set; then 9352 echo $ECHO_N "(cached) $ECHO_C" >&6 9353else 9354 cat >conftest.$ac_ext <<_ACEOF 9355/* confdefs.h. */ 9356_ACEOF 9357cat confdefs.h >>conftest.$ac_ext 9358cat >>conftest.$ac_ext <<_ACEOF 9359/* end confdefs.h. */ 9360#include <pcap.h> 9361 9362typedef pcap_if_t ac__type_new_; 9363int 9364main () 9365{ 9366if ((ac__type_new_ *) 0) 9367 return 0; 9368if (sizeof (ac__type_new_)) 9369 return 0; 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374rm -f conftest.$ac_objext 9375if { (ac_try="$ac_compile" 9376case "(($ac_try" in 9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9378 *) ac_try_echo=$ac_try;; 9379esac 9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9381 (eval "$ac_compile") 2>conftest.er1 9382 ac_status=$? 9383 grep -v '^ *+' conftest.er1 >conftest.err 9384 rm -f conftest.er1 9385 cat conftest.err >&5 9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9387 (exit $ac_status); } && { 9388 test -z "$ac_c_werror_flag" || 9389 test ! -s conftest.err 9390 } && test -s conftest.$ac_objext; then 9391 ac_cv_type_pcap_if_t=yes 9392else 9393 echo "$as_me: failed program was:" >&5 9394sed 's/^/| /' conftest.$ac_ext >&5 9395 9396 ac_cv_type_pcap_if_t=no 9397fi 9398 9399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9400fi 9401{ echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 9402echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; } 9403if test $ac_cv_type_pcap_if_t = yes; then 9404 9405cat >>confdefs.h <<_ACEOF 9406#define HAVE_PCAP_IF_T 1 9407_ACEOF 9408 9409 9410fi 9411 9412 CPPFLAGS="$savedcppflags" 9413fi 9414 9415if test $ac_cv_func_pcap_lib_version = "no" ; then 9416 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 9417echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; } 9418 cat >conftest.$ac_ext <<_ACEOF 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424 9425int 9426main () 9427{ 9428 9429 extern char pcap_version[]; 9430 9431 return (int)pcap_version; 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437rm -f conftest.$ac_objext conftest$ac_exeext 9438if { (ac_try="$ac_link" 9439case "(($ac_try" in 9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9441 *) ac_try_echo=$ac_try;; 9442esac 9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9444 (eval "$ac_link") 2>conftest.er1 9445 ac_status=$? 9446 grep -v '^ *+' conftest.er1 >conftest.err 9447 rm -f conftest.er1 9448 cat conftest.err >&5 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); } && { 9451 test -z "$ac_c_werror_flag" || 9452 test ! -s conftest.err 9453 } && test -s conftest$ac_exeext && 9454 $as_test_x conftest$ac_exeext; then 9455 ac_lbl_cv_pcap_version_defined=yes 9456else 9457 echo "$as_me: failed program was:" >&5 9458sed 's/^/| /' conftest.$ac_ext >&5 9459 9460 ac_lbl_cv_pcap_version_defined=no 9461fi 9462 9463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9464 conftest$ac_exeext conftest.$ac_ext 9465 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 9466 { echo "$as_me:$LINENO: result: yes" >&5 9467echo "${ECHO_T}yes" >&6; } 9468 cat >>confdefs.h <<\_ACEOF 9469#define HAVE_PCAP_VERSION 1 9470_ACEOF 9471 9472 else 9473 { echo "$as_me:$LINENO: result: no" >&5 9474echo "${ECHO_T}no" >&6; } 9475 fi 9476fi 9477{ echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 9478echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; } 9479cat >conftest.$ac_ext <<_ACEOF 9480/* confdefs.h. */ 9481_ACEOF 9482cat confdefs.h >>conftest.$ac_ext 9483cat >>conftest.$ac_ext <<_ACEOF 9484/* end confdefs.h. */ 9485 9486int 9487main () 9488{ 9489 9490 extern int pcap_debug; 9491 9492 return pcap_debug; 9493 9494 ; 9495 return 0; 9496} 9497_ACEOF 9498rm -f conftest.$ac_objext conftest$ac_exeext 9499if { (ac_try="$ac_link" 9500case "(($ac_try" in 9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9502 *) ac_try_echo=$ac_try;; 9503esac 9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9505 (eval "$ac_link") 2>conftest.er1 9506 ac_status=$? 9507 grep -v '^ *+' conftest.er1 >conftest.err 9508 rm -f conftest.er1 9509 cat conftest.err >&5 9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9511 (exit $ac_status); } && { 9512 test -z "$ac_c_werror_flag" || 9513 test ! -s conftest.err 9514 } && test -s conftest$ac_exeext && 9515 $as_test_x conftest$ac_exeext; then 9516 ac_lbl_cv_pcap_debug_defined=yes 9517else 9518 echo "$as_me: failed program was:" >&5 9519sed 's/^/| /' conftest.$ac_ext >&5 9520 9521 ac_lbl_cv_pcap_debug_defined=no 9522fi 9523 9524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9525 conftest$ac_exeext conftest.$ac_ext 9526if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 9527 { echo "$as_me:$LINENO: result: yes" >&5 9528echo "${ECHO_T}yes" >&6; } 9529 cat >>confdefs.h <<\_ACEOF 9530#define HAVE_PCAP_DEBUG 1 9531_ACEOF 9532 9533else 9534 { echo "$as_me:$LINENO: result: no" >&5 9535echo "${ECHO_T}no" >&6; } 9536 # 9537 # OK, what about "yydebug"? 9538 # 9539 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 9540echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; } 9541 cat >conftest.$ac_ext <<_ACEOF 9542/* confdefs.h. */ 9543_ACEOF 9544cat confdefs.h >>conftest.$ac_ext 9545cat >>conftest.$ac_ext <<_ACEOF 9546/* end confdefs.h. */ 9547 9548int 9549main () 9550{ 9551 9552 extern int yydebug; 9553 9554 return yydebug; 9555 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560rm -f conftest.$ac_objext conftest$ac_exeext 9561if { (ac_try="$ac_link" 9562case "(($ac_try" in 9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9564 *) ac_try_echo=$ac_try;; 9565esac 9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9567 (eval "$ac_link") 2>conftest.er1 9568 ac_status=$? 9569 grep -v '^ *+' conftest.er1 >conftest.err 9570 rm -f conftest.er1 9571 cat conftest.err >&5 9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9573 (exit $ac_status); } && { 9574 test -z "$ac_c_werror_flag" || 9575 test ! -s conftest.err 9576 } && test -s conftest$ac_exeext && 9577 $as_test_x conftest$ac_exeext; then 9578 ac_lbl_cv_yydebug_defined=yes 9579else 9580 echo "$as_me: failed program was:" >&5 9581sed 's/^/| /' conftest.$ac_ext >&5 9582 9583 ac_lbl_cv_yydebug_defined=no 9584fi 9585 9586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9587 conftest$ac_exeext conftest.$ac_ext 9588 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 9589 { echo "$as_me:$LINENO: result: yes" >&5 9590echo "${ECHO_T}yes" >&6; } 9591 cat >>confdefs.h <<\_ACEOF 9592#define HAVE_YYDEBUG 1 9593_ACEOF 9594 9595 else 9596 { echo "$as_me:$LINENO: result: no" >&5 9597echo "${ECHO_T}no" >&6; } 9598 fi 9599fi 9600 9601for ac_func in bpf_dump 9602do 9603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9604{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9607 echo $ECHO_N "(cached) $ECHO_C" >&6 9608else 9609 cat >conftest.$ac_ext <<_ACEOF 9610/* confdefs.h. */ 9611_ACEOF 9612cat confdefs.h >>conftest.$ac_ext 9613cat >>conftest.$ac_ext <<_ACEOF 9614/* end confdefs.h. */ 9615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9617#define $ac_func innocuous_$ac_func 9618 9619/* System header to define __stub macros and hopefully few prototypes, 9620 which can conflict with char $ac_func (); below. 9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9622 <limits.h> exists even on freestanding compilers. */ 9623 9624#ifdef __STDC__ 9625# include <limits.h> 9626#else 9627# include <assert.h> 9628#endif 9629 9630#undef $ac_func 9631 9632/* Override any GCC internal prototype to avoid an error. 9633 Use char because int might match the return type of a GCC 9634 builtin and then its argument prototype would still apply. */ 9635#ifdef __cplusplus 9636extern "C" 9637#endif 9638char $ac_func (); 9639/* The GNU C library defines this for functions which it implements 9640 to always fail with ENOSYS. Some functions are actually named 9641 something starting with __ and the normal name is an alias. */ 9642#if defined __stub_$ac_func || defined __stub___$ac_func 9643choke me 9644#endif 9645 9646int 9647main () 9648{ 9649return $ac_func (); 9650 ; 9651 return 0; 9652} 9653_ACEOF 9654rm -f conftest.$ac_objext conftest$ac_exeext 9655if { (ac_try="$ac_link" 9656case "(($ac_try" in 9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9658 *) ac_try_echo=$ac_try;; 9659esac 9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9661 (eval "$ac_link") 2>conftest.er1 9662 ac_status=$? 9663 grep -v '^ *+' conftest.er1 >conftest.err 9664 rm -f conftest.er1 9665 cat conftest.err >&5 9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9667 (exit $ac_status); } && { 9668 test -z "$ac_c_werror_flag" || 9669 test ! -s conftest.err 9670 } && test -s conftest$ac_exeext && 9671 $as_test_x conftest$ac_exeext; then 9672 eval "$as_ac_var=yes" 9673else 9674 echo "$as_me: failed program was:" >&5 9675sed 's/^/| /' conftest.$ac_ext >&5 9676 9677 eval "$as_ac_var=no" 9678fi 9679 9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9681 conftest$ac_exeext conftest.$ac_ext 9682fi 9683ac_res=`eval echo '${'$as_ac_var'}'` 9684 { echo "$as_me:$LINENO: result: $ac_res" >&5 9685echo "${ECHO_T}$ac_res" >&6; } 9686if test `eval echo '${'$as_ac_var'}'` = yes; then 9687 cat >>confdefs.h <<_ACEOF 9688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9689_ACEOF 9690 9691else 9692 case " $LIBOBJS " in 9693 *" $ac_func.$ac_objext "* ) ;; 9694 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9695 ;; 9696esac 9697 9698fi 9699done 9700 9701 9702V_GROUP=0 9703if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 9704 V_GROUP=wheel 9705fi 9706# 9707# Assume V7/BSD convention for man pages (file formats in section 5, 9708# miscellaneous info in section 7). 9709# 9710MAN_FILE_FORMATS=5 9711MAN_MISC_INFO=7 9712case "$host_os" in 9713 9714aix*) 9715 9716cat >>confdefs.h <<\_ACEOF 9717#define _SUN 1 9718_ACEOF 9719 9720 ;; 9721 9722hpux*) 9723 # 9724 # Use System V conventions for man pages. 9725 # 9726 MAN_FILE_FORMATS=4 9727 MAN_MISC_INFO=5 9728 ;; 9729 9730irix*) 9731 V_GROUP=sys 9732 9733 # 9734 # Use System V conventions for man pages. 9735 # 9736 MAN_FILE_FORMATS=4 9737 MAN_MISC_INFO=5 9738 ;; 9739 9740osf*) 9741 V_GROUP=system 9742 9743 # 9744 # Use System V conventions for man pages. 9745 # 9746 MAN_FILE_FORMATS=4 9747 MAN_MISC_INFO=5 9748 ;; 9749 9750solaris*) 9751 V_GROUP=sys 9752 9753 # 9754 # Use System V conventions for man pages. 9755 # 9756 MAN_FILE_FORMATS=4 9757 MAN_MISC_INFO=5 9758 ;; 9759esac 9760 9761if test -f /dev/bpf0 ; then 9762 V_GROUP=bpf 9763fi 9764 9765 9766for ac_header in sys/bitypes.h 9767do 9768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9770 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 9774fi 9775ac_res=`eval echo '${'$as_ac_Header'}'` 9776 { echo "$as_me:$LINENO: result: $ac_res" >&5 9777echo "${ECHO_T}$ac_res" >&6; } 9778else 9779 # Is the header compilable? 9780{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9782cat >conftest.$ac_ext <<_ACEOF 9783/* confdefs.h. */ 9784_ACEOF 9785cat confdefs.h >>conftest.$ac_ext 9786cat >>conftest.$ac_ext <<_ACEOF 9787/* end confdefs.h. */ 9788$ac_includes_default 9789#include <$ac_header> 9790_ACEOF 9791rm -f conftest.$ac_objext 9792if { (ac_try="$ac_compile" 9793case "(($ac_try" in 9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9795 *) ac_try_echo=$ac_try;; 9796esac 9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9798 (eval "$ac_compile") 2>conftest.er1 9799 ac_status=$? 9800 grep -v '^ *+' conftest.er1 >conftest.err 9801 rm -f conftest.er1 9802 cat conftest.err >&5 9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9804 (exit $ac_status); } && { 9805 test -z "$ac_c_werror_flag" || 9806 test ! -s conftest.err 9807 } && test -s conftest.$ac_objext; then 9808 ac_header_compiler=yes 9809else 9810 echo "$as_me: failed program was:" >&5 9811sed 's/^/| /' conftest.$ac_ext >&5 9812 9813 ac_header_compiler=no 9814fi 9815 9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9818echo "${ECHO_T}$ac_header_compiler" >&6; } 9819 9820# Is the header present? 9821{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9823cat >conftest.$ac_ext <<_ACEOF 9824/* confdefs.h. */ 9825_ACEOF 9826cat confdefs.h >>conftest.$ac_ext 9827cat >>conftest.$ac_ext <<_ACEOF 9828/* end confdefs.h. */ 9829#include <$ac_header> 9830_ACEOF 9831if { (ac_try="$ac_cpp conftest.$ac_ext" 9832case "(($ac_try" in 9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9834 *) ac_try_echo=$ac_try;; 9835esac 9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9838 ac_status=$? 9839 grep -v '^ *+' conftest.er1 >conftest.err 9840 rm -f conftest.er1 9841 cat conftest.err >&5 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } >/dev/null && { 9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9845 test ! -s conftest.err 9846 }; then 9847 ac_header_preproc=yes 9848else 9849 echo "$as_me: failed program was:" >&5 9850sed 's/^/| /' conftest.$ac_ext >&5 9851 9852 ac_header_preproc=no 9853fi 9854 9855rm -f conftest.err conftest.$ac_ext 9856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9857echo "${ECHO_T}$ac_header_preproc" >&6; } 9858 9859# So? What about this header? 9860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9861 yes:no: ) 9862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9866 ac_header_preproc=yes 9867 ;; 9868 no:yes:* ) 9869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9881 9882 ;; 9883esac 9884{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9887 echo $ECHO_N "(cached) $ECHO_C" >&6 9888else 9889 eval "$as_ac_Header=\$ac_header_preproc" 9890fi 9891ac_res=`eval echo '${'$as_ac_Header'}'` 9892 { echo "$as_me:$LINENO: result: $ac_res" >&5 9893echo "${ECHO_T}$ac_res" >&6; } 9894 9895fi 9896if test `eval echo '${'$as_ac_Header'}'` = yes; then 9897 cat >>confdefs.h <<_ACEOF 9898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9899_ACEOF 9900 9901fi 9902 9903done 9904 9905 9906{ echo "$as_me:$LINENO: checking for int8_t" >&5 9907echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } 9908if test "${ac_cv_type_int8_t+set}" = set; then 9909 echo $ECHO_N "(cached) $ECHO_C" >&6 9910else 9911 cat >conftest.$ac_ext <<_ACEOF 9912/* confdefs.h. */ 9913_ACEOF 9914cat confdefs.h >>conftest.$ac_ext 9915cat >>conftest.$ac_ext <<_ACEOF 9916/* end confdefs.h. */ 9917$ac_includes_default 9918#ifdef HAVE_SYS_BITYPES_H 9919#include <sys/bitypes.h> 9920#endif 9921 9922typedef int8_t ac__type_new_; 9923int 9924main () 9925{ 9926if ((ac__type_new_ *) 0) 9927 return 0; 9928if (sizeof (ac__type_new_)) 9929 return 0; 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934rm -f conftest.$ac_objext 9935if { (ac_try="$ac_compile" 9936case "(($ac_try" in 9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9938 *) ac_try_echo=$ac_try;; 9939esac 9940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9941 (eval "$ac_compile") 2>conftest.er1 9942 ac_status=$? 9943 grep -v '^ *+' conftest.er1 >conftest.err 9944 rm -f conftest.er1 9945 cat conftest.err >&5 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9947 (exit $ac_status); } && { 9948 test -z "$ac_c_werror_flag" || 9949 test ! -s conftest.err 9950 } && test -s conftest.$ac_objext; then 9951 ac_cv_type_int8_t=yes 9952else 9953 echo "$as_me: failed program was:" >&5 9954sed 's/^/| /' conftest.$ac_ext >&5 9955 9956 ac_cv_type_int8_t=no 9957fi 9958 9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9960fi 9961{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 9962echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } 9963if test $ac_cv_type_int8_t = yes; then 9964 : 9965else 9966 9967cat >>confdefs.h <<\_ACEOF 9968#define int8_t signed char 9969_ACEOF 9970 9971fi 9972 9973{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 9974echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } 9975if test "${ac_cv_type_u_int8_t+set}" = set; then 9976 echo $ECHO_N "(cached) $ECHO_C" >&6 9977else 9978 cat >conftest.$ac_ext <<_ACEOF 9979/* confdefs.h. */ 9980_ACEOF 9981cat confdefs.h >>conftest.$ac_ext 9982cat >>conftest.$ac_ext <<_ACEOF 9983/* end confdefs.h. */ 9984$ac_includes_default 9985#ifdef HAVE_SYS_BITYPES_H 9986#include <sys/bitypes.h> 9987#endif 9988 9989typedef u_int8_t ac__type_new_; 9990int 9991main () 9992{ 9993if ((ac__type_new_ *) 0) 9994 return 0; 9995if (sizeof (ac__type_new_)) 9996 return 0; 9997 ; 9998 return 0; 9999} 10000_ACEOF 10001rm -f conftest.$ac_objext 10002if { (ac_try="$ac_compile" 10003case "(($ac_try" in 10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10005 *) ac_try_echo=$ac_try;; 10006esac 10007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10008 (eval "$ac_compile") 2>conftest.er1 10009 ac_status=$? 10010 grep -v '^ *+' conftest.er1 >conftest.err 10011 rm -f conftest.er1 10012 cat conftest.err >&5 10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10014 (exit $ac_status); } && { 10015 test -z "$ac_c_werror_flag" || 10016 test ! -s conftest.err 10017 } && test -s conftest.$ac_objext; then 10018 ac_cv_type_u_int8_t=yes 10019else 10020 echo "$as_me: failed program was:" >&5 10021sed 's/^/| /' conftest.$ac_ext >&5 10022 10023 ac_cv_type_u_int8_t=no 10024fi 10025 10026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10027fi 10028{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 10029echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } 10030if test $ac_cv_type_u_int8_t = yes; then 10031 : 10032else 10033 10034cat >>confdefs.h <<\_ACEOF 10035#define u_int8_t unsigned char 10036_ACEOF 10037 10038fi 10039 10040{ echo "$as_me:$LINENO: checking for int16_t" >&5 10041echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } 10042if test "${ac_cv_type_int16_t+set}" = set; then 10043 echo $ECHO_N "(cached) $ECHO_C" >&6 10044else 10045 cat >conftest.$ac_ext <<_ACEOF 10046/* confdefs.h. */ 10047_ACEOF 10048cat confdefs.h >>conftest.$ac_ext 10049cat >>conftest.$ac_ext <<_ACEOF 10050/* end confdefs.h. */ 10051$ac_includes_default 10052typedef int16_t ac__type_new_; 10053int 10054main () 10055{ 10056if ((ac__type_new_ *) 0) 10057 return 0; 10058if (sizeof (ac__type_new_)) 10059 return 0; 10060 ; 10061 return 0; 10062} 10063_ACEOF 10064rm -f conftest.$ac_objext 10065if { (ac_try="$ac_compile" 10066case "(($ac_try" in 10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10068 *) ac_try_echo=$ac_try;; 10069esac 10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10071 (eval "$ac_compile") 2>conftest.er1 10072 ac_status=$? 10073 grep -v '^ *+' conftest.er1 >conftest.err 10074 rm -f conftest.er1 10075 cat conftest.err >&5 10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10077 (exit $ac_status); } && { 10078 test -z "$ac_c_werror_flag" || 10079 test ! -s conftest.err 10080 } && test -s conftest.$ac_objext; then 10081 ac_cv_type_int16_t=yes 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086 ac_cv_type_int16_t=no 10087fi 10088 10089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10090fi 10091{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 10092echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } 10093if test $ac_cv_type_int16_t = yes; then 10094 : 10095else 10096 10097cat >>confdefs.h <<\_ACEOF 10098#define int16_t short 10099_ACEOF 10100 10101 $ac_includes_default 10102#ifdef HAVE_SYS_BITYPES_H 10103#include <sys/bitypes.h> 10104#endif 10105fi 10106 10107{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 10108echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } 10109if test "${ac_cv_type_u_int16_t+set}" = set; then 10110 echo $ECHO_N "(cached) $ECHO_C" >&6 10111else 10112 cat >conftest.$ac_ext <<_ACEOF 10113/* confdefs.h. */ 10114_ACEOF 10115cat confdefs.h >>conftest.$ac_ext 10116cat >>conftest.$ac_ext <<_ACEOF 10117/* end confdefs.h. */ 10118$ac_includes_default 10119#ifdef HAVE_SYS_BITYPES_H 10120#include <sys/bitypes.h> 10121#endif 10122 10123typedef u_int16_t ac__type_new_; 10124int 10125main () 10126{ 10127if ((ac__type_new_ *) 0) 10128 return 0; 10129if (sizeof (ac__type_new_)) 10130 return 0; 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135rm -f conftest.$ac_objext 10136if { (ac_try="$ac_compile" 10137case "(($ac_try" in 10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10139 *) ac_try_echo=$ac_try;; 10140esac 10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10142 (eval "$ac_compile") 2>conftest.er1 10143 ac_status=$? 10144 grep -v '^ *+' conftest.er1 >conftest.err 10145 rm -f conftest.er1 10146 cat conftest.err >&5 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10148 (exit $ac_status); } && { 10149 test -z "$ac_c_werror_flag" || 10150 test ! -s conftest.err 10151 } && test -s conftest.$ac_objext; then 10152 ac_cv_type_u_int16_t=yes 10153else 10154 echo "$as_me: failed program was:" >&5 10155sed 's/^/| /' conftest.$ac_ext >&5 10156 10157 ac_cv_type_u_int16_t=no 10158fi 10159 10160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10161fi 10162{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 10163echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } 10164if test $ac_cv_type_u_int16_t = yes; then 10165 : 10166else 10167 10168cat >>confdefs.h <<\_ACEOF 10169#define u_int16_t unsigned short 10170_ACEOF 10171 10172fi 10173 10174{ echo "$as_me:$LINENO: checking for int32_t" >&5 10175echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } 10176if test "${ac_cv_type_int32_t+set}" = set; then 10177 echo $ECHO_N "(cached) $ECHO_C" >&6 10178else 10179 cat >conftest.$ac_ext <<_ACEOF 10180/* confdefs.h. */ 10181_ACEOF 10182cat confdefs.h >>conftest.$ac_ext 10183cat >>conftest.$ac_ext <<_ACEOF 10184/* end confdefs.h. */ 10185$ac_includes_default 10186#ifdef HAVE_SYS_BITYPES_H 10187#include <sys/bitypes.h> 10188#endif 10189 10190typedef int32_t ac__type_new_; 10191int 10192main () 10193{ 10194if ((ac__type_new_ *) 0) 10195 return 0; 10196if (sizeof (ac__type_new_)) 10197 return 0; 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202rm -f conftest.$ac_objext 10203if { (ac_try="$ac_compile" 10204case "(($ac_try" in 10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *) ac_try_echo=$ac_try;; 10207esac 10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10209 (eval "$ac_compile") 2>conftest.er1 10210 ac_status=$? 10211 grep -v '^ *+' conftest.er1 >conftest.err 10212 rm -f conftest.er1 10213 cat conftest.err >&5 10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10215 (exit $ac_status); } && { 10216 test -z "$ac_c_werror_flag" || 10217 test ! -s conftest.err 10218 } && test -s conftest.$ac_objext; then 10219 ac_cv_type_int32_t=yes 10220else 10221 echo "$as_me: failed program was:" >&5 10222sed 's/^/| /' conftest.$ac_ext >&5 10223 10224 ac_cv_type_int32_t=no 10225fi 10226 10227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10228fi 10229{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 10230echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } 10231if test $ac_cv_type_int32_t = yes; then 10232 : 10233else 10234 10235cat >>confdefs.h <<\_ACEOF 10236#define int32_t int 10237_ACEOF 10238 10239fi 10240 10241{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 10242echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 10243if test "${ac_cv_type_u_int32_t+set}" = set; then 10244 echo $ECHO_N "(cached) $ECHO_C" >&6 10245else 10246 cat >conftest.$ac_ext <<_ACEOF 10247/* confdefs.h. */ 10248_ACEOF 10249cat confdefs.h >>conftest.$ac_ext 10250cat >>conftest.$ac_ext <<_ACEOF 10251/* end confdefs.h. */ 10252$ac_includes_default 10253#ifdef HAVE_SYS_BITYPES_H 10254#include <sys/bitypes.h> 10255#endif 10256 10257typedef u_int32_t ac__type_new_; 10258int 10259main () 10260{ 10261if ((ac__type_new_ *) 0) 10262 return 0; 10263if (sizeof (ac__type_new_)) 10264 return 0; 10265 ; 10266 return 0; 10267} 10268_ACEOF 10269rm -f conftest.$ac_objext 10270if { (ac_try="$ac_compile" 10271case "(($ac_try" in 10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10273 *) ac_try_echo=$ac_try;; 10274esac 10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10276 (eval "$ac_compile") 2>conftest.er1 10277 ac_status=$? 10278 grep -v '^ *+' conftest.er1 >conftest.err 10279 rm -f conftest.er1 10280 cat conftest.err >&5 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 (exit $ac_status); } && { 10283 test -z "$ac_c_werror_flag" || 10284 test ! -s conftest.err 10285 } && test -s conftest.$ac_objext; then 10286 ac_cv_type_u_int32_t=yes 10287else 10288 echo "$as_me: failed program was:" >&5 10289sed 's/^/| /' conftest.$ac_ext >&5 10290 10291 ac_cv_type_u_int32_t=no 10292fi 10293 10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10295fi 10296{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 10297echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 10298if test $ac_cv_type_u_int32_t = yes; then 10299 : 10300else 10301 10302cat >>confdefs.h <<\_ACEOF 10303#define u_int32_t unsigned int 10304_ACEOF 10305 10306fi 10307 10308{ echo "$as_me:$LINENO: checking for int64_t" >&5 10309echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 10310if test "${ac_cv_type_int64_t+set}" = set; then 10311 echo $ECHO_N "(cached) $ECHO_C" >&6 10312else 10313 cat >conftest.$ac_ext <<_ACEOF 10314/* confdefs.h. */ 10315_ACEOF 10316cat confdefs.h >>conftest.$ac_ext 10317cat >>conftest.$ac_ext <<_ACEOF 10318/* end confdefs.h. */ 10319$ac_includes_default 10320#ifdef HAVE_SYS_BITYPES_H 10321#include <sys/bitypes.h> 10322#endif 10323 10324typedef int64_t ac__type_new_; 10325int 10326main () 10327{ 10328if ((ac__type_new_ *) 0) 10329 return 0; 10330if (sizeof (ac__type_new_)) 10331 return 0; 10332 ; 10333 return 0; 10334} 10335_ACEOF 10336rm -f conftest.$ac_objext 10337if { (ac_try="$ac_compile" 10338case "(($ac_try" in 10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10340 *) ac_try_echo=$ac_try;; 10341esac 10342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10343 (eval "$ac_compile") 2>conftest.er1 10344 ac_status=$? 10345 grep -v '^ *+' conftest.er1 >conftest.err 10346 rm -f conftest.er1 10347 cat conftest.err >&5 10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10349 (exit $ac_status); } && { 10350 test -z "$ac_c_werror_flag" || 10351 test ! -s conftest.err 10352 } && test -s conftest.$ac_objext; then 10353 ac_cv_type_int64_t=yes 10354else 10355 echo "$as_me: failed program was:" >&5 10356sed 's/^/| /' conftest.$ac_ext >&5 10357 10358 ac_cv_type_int64_t=no 10359fi 10360 10361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10362fi 10363{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 10364echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 10365if test $ac_cv_type_int64_t = yes; then 10366 : 10367else 10368 10369cat >>confdefs.h <<\_ACEOF 10370#define int64_t long long 10371_ACEOF 10372 10373fi 10374 10375{ echo "$as_me:$LINENO: checking for u_int64_t" >&5 10376echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 10377if test "${ac_cv_type_u_int64_t+set}" = set; then 10378 echo $ECHO_N "(cached) $ECHO_C" >&6 10379else 10380 cat >conftest.$ac_ext <<_ACEOF 10381/* confdefs.h. */ 10382_ACEOF 10383cat confdefs.h >>conftest.$ac_ext 10384cat >>conftest.$ac_ext <<_ACEOF 10385/* end confdefs.h. */ 10386$ac_includes_default 10387#ifdef HAVE_SYS_BITYPES_H 10388#include <sys/bitypes.h> 10389#endif 10390 10391typedef u_int64_t ac__type_new_; 10392int 10393main () 10394{ 10395if ((ac__type_new_ *) 0) 10396 return 0; 10397if (sizeof (ac__type_new_)) 10398 return 0; 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403rm -f conftest.$ac_objext 10404if { (ac_try="$ac_compile" 10405case "(($ac_try" in 10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10407 *) ac_try_echo=$ac_try;; 10408esac 10409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10410 (eval "$ac_compile") 2>conftest.er1 10411 ac_status=$? 10412 grep -v '^ *+' conftest.er1 >conftest.err 10413 rm -f conftest.er1 10414 cat conftest.err >&5 10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10416 (exit $ac_status); } && { 10417 test -z "$ac_c_werror_flag" || 10418 test ! -s conftest.err 10419 } && test -s conftest.$ac_objext; then 10420 ac_cv_type_u_int64_t=yes 10421else 10422 echo "$as_me: failed program was:" >&5 10423sed 's/^/| /' conftest.$ac_ext >&5 10424 10425 ac_cv_type_u_int64_t=no 10426fi 10427 10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10429fi 10430{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 10431echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 10432if test $ac_cv_type_u_int64_t = yes; then 10433 : 10434else 10435 10436cat >>confdefs.h <<\_ACEOF 10437#define u_int64_t unsigned long long 10438_ACEOF 10439 10440fi 10441 10442 10443# 10444# We can't just check for <inttypes.h> - some systems have one that 10445# doesn't define all the PRI[doxu]64 macros. 10446# 10447 10448for ac_header in inttypes.h 10449do 10450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10452 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10455 echo $ECHO_N "(cached) $ECHO_C" >&6 10456fi 10457ac_res=`eval echo '${'$as_ac_Header'}'` 10458 { echo "$as_me:$LINENO: result: $ac_res" >&5 10459echo "${ECHO_T}$ac_res" >&6; } 10460else 10461 # Is the header compilable? 10462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10464cat >conftest.$ac_ext <<_ACEOF 10465/* confdefs.h. */ 10466_ACEOF 10467cat confdefs.h >>conftest.$ac_ext 10468cat >>conftest.$ac_ext <<_ACEOF 10469/* end confdefs.h. */ 10470$ac_includes_default 10471#include <$ac_header> 10472_ACEOF 10473rm -f conftest.$ac_objext 10474if { (ac_try="$ac_compile" 10475case "(($ac_try" in 10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10477 *) ac_try_echo=$ac_try;; 10478esac 10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10480 (eval "$ac_compile") 2>conftest.er1 10481 ac_status=$? 10482 grep -v '^ *+' conftest.er1 >conftest.err 10483 rm -f conftest.er1 10484 cat conftest.err >&5 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); } && { 10487 test -z "$ac_c_werror_flag" || 10488 test ! -s conftest.err 10489 } && test -s conftest.$ac_objext; then 10490 ac_header_compiler=yes 10491else 10492 echo "$as_me: failed program was:" >&5 10493sed 's/^/| /' conftest.$ac_ext >&5 10494 10495 ac_header_compiler=no 10496fi 10497 10498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10500echo "${ECHO_T}$ac_header_compiler" >&6; } 10501 10502# Is the header present? 10503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10505cat >conftest.$ac_ext <<_ACEOF 10506/* confdefs.h. */ 10507_ACEOF 10508cat confdefs.h >>conftest.$ac_ext 10509cat >>conftest.$ac_ext <<_ACEOF 10510/* end confdefs.h. */ 10511#include <$ac_header> 10512_ACEOF 10513if { (ac_try="$ac_cpp conftest.$ac_ext" 10514case "(($ac_try" in 10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10516 *) ac_try_echo=$ac_try;; 10517esac 10518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10520 ac_status=$? 10521 grep -v '^ *+' conftest.er1 >conftest.err 10522 rm -f conftest.er1 10523 cat conftest.err >&5 10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 (exit $ac_status); } >/dev/null && { 10526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10527 test ! -s conftest.err 10528 }; then 10529 ac_header_preproc=yes 10530else 10531 echo "$as_me: failed program was:" >&5 10532sed 's/^/| /' conftest.$ac_ext >&5 10533 10534 ac_header_preproc=no 10535fi 10536 10537rm -f conftest.err conftest.$ac_ext 10538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10539echo "${ECHO_T}$ac_header_preproc" >&6; } 10540 10541# So? What about this header? 10542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10543 yes:no: ) 10544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10548 ac_header_preproc=yes 10549 ;; 10550 no:yes:* ) 10551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10563 10564 ;; 10565esac 10566{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10569 echo $ECHO_N "(cached) $ECHO_C" >&6 10570else 10571 eval "$as_ac_Header=\$ac_header_preproc" 10572fi 10573ac_res=`eval echo '${'$as_ac_Header'}'` 10574 { echo "$as_me:$LINENO: result: $ac_res" >&5 10575echo "${ECHO_T}$ac_res" >&6; } 10576 10577fi 10578if test `eval echo '${'$as_ac_Header'}'` = yes; then 10579 cat >>confdefs.h <<_ACEOF 10580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10581_ACEOF 10582 10583 # 10584 # OK, we have inttypes.h, but does it define those macros? 10585 # 10586 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 10587echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; } 10588 cat >conftest.$ac_ext <<_ACEOF 10589 10590 /* confdefs.h. */ 10591_ACEOF 10592cat confdefs.h >>conftest.$ac_ext 10593cat >>conftest.$ac_ext <<_ACEOF 10594/* end confdefs.h. */ 10595 10596 #include <inttypes.h> 10597 #include <stdio.h> 10598 #include <sys/types.h> 10599 #ifdef HAVE_SYS_BITYPES_H 10600 #include <sys/bitypes.h> 10601 #endif 10602 10603 main() 10604 { 10605 printf("%" PRId64 "\n", (u_int64_t)1); 10606 printf("%" PRIo64 "\n", (u_int64_t)1); 10607 printf("%" PRIx64 "\n", (u_int64_t)1); 10608 printf("%" PRIu64 "\n", (u_int64_t)1); 10609 } 10610 10611 10612_ACEOF 10613rm -f conftest.$ac_objext 10614if { (ac_try="$ac_compile" 10615case "(($ac_try" in 10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10617 *) ac_try_echo=$ac_try;; 10618esac 10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10620 (eval "$ac_compile") 2>conftest.er1 10621 ac_status=$? 10622 grep -v '^ *+' conftest.er1 >conftest.err 10623 rm -f conftest.er1 10624 cat conftest.err >&5 10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 (exit $ac_status); } && { 10627 test -z "$ac_c_werror_flag" || 10628 test ! -s conftest.err 10629 } && test -s conftest.$ac_objext; then 10630 10631 { echo "$as_me:$LINENO: result: yes" >&5 10632echo "${ECHO_T}yes" >&6; } 10633 ac_lbl_inttypes_h_defines_formats=yes 10634 10635else 10636 echo "$as_me: failed program was:" >&5 10637sed 's/^/| /' conftest.$ac_ext >&5 10638 10639 10640 { echo "$as_me:$LINENO: result: no" >&5 10641echo "${ECHO_T}no" >&6; } 10642 ac_lbl_inttypes_h_defines_formats=no 10643 10644fi 10645 10646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10647 10648else 10649 10650 # 10651 # We don't have inttypes.h, so it obviously can't define those 10652 # macros. 10653 # 10654 ac_lbl_inttypes_h_defines_formats=no 10655 10656fi 10657 10658done 10659 10660if test "$ac_lbl_inttypes_h_defines_formats" = no; then 10661 10662 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5 10663echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; } 10664 if test "$cross_compiling" = yes; then 10665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10666See \`config.log' for more details." >&5 10667echo "$as_me: error: cannot run test program while cross compiling 10668See \`config.log' for more details." >&2;} 10669 { (exit 1); exit 1; }; } 10670else 10671 cat >conftest.$ac_ext <<_ACEOF 10672 10673 /* confdefs.h. */ 10674_ACEOF 10675cat confdefs.h >>conftest.$ac_ext 10676cat >>conftest.$ac_ext <<_ACEOF 10677/* end confdefs.h. */ 10678 10679# ifdef HAVE_INTTYPES_H 10680 #include <inttypes.h> 10681# endif 10682# ifdef HAVE_SYS_BITYPES_H 10683 #include <sys/bitypes.h> 10684# endif 10685 #include <stdio.h> 10686 #include <sys/types.h> 10687 10688 main() 10689 { 10690 u_int64_t t = 1; 10691 char strbuf[16+1]; 10692 sprintf(strbuf, "%016lx", t << 32); 10693 if (strcmp(strbuf, "0000000100000000") == 0) 10694 exit(0); 10695 else 10696 exit(1); 10697 } 10698 10699 10700_ACEOF 10701rm -f conftest$ac_exeext 10702if { (ac_try="$ac_link" 10703case "(($ac_try" in 10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10705 *) ac_try_echo=$ac_try;; 10706esac 10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10708 (eval "$ac_link") 2>&5 10709 ac_status=$? 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10712 { (case "(($ac_try" in 10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10714 *) ac_try_echo=$ac_try;; 10715esac 10716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10717 (eval "$ac_try") 2>&5 10718 ac_status=$? 10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10720 (exit $ac_status); }; }; then 10721 10722 cat >>confdefs.h <<\_ACEOF 10723#define PRId64 "ld" 10724_ACEOF 10725 10726 cat >>confdefs.h <<\_ACEOF 10727#define PRIo64 "lo" 10728_ACEOF 10729 10730 cat >>confdefs.h <<\_ACEOF 10731#define PRIx64 "lx" 10732_ACEOF 10733 10734 cat >>confdefs.h <<\_ACEOF 10735#define PRIu64 "lu" 10736_ACEOF 10737 10738 { echo "$as_me:$LINENO: result: yes" >&5 10739echo "${ECHO_T}yes" >&6; } 10740 10741else 10742 echo "$as_me: program exited with status $ac_status" >&5 10743echo "$as_me: failed program was:" >&5 10744sed 's/^/| /' conftest.$ac_ext >&5 10745 10746( exit $ac_status ) 10747 10748 { echo "$as_me:$LINENO: result: no" >&5 10749echo "${ECHO_T}no" >&6; } 10750 10751 10752 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5 10753echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; } 10754 if test "$cross_compiling" = yes; then 10755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10756See \`config.log' for more details." >&5 10757echo "$as_me: error: cannot run test program while cross compiling 10758See \`config.log' for more details." >&2;} 10759 { (exit 1); exit 1; }; } 10760else 10761 cat >conftest.$ac_ext <<_ACEOF 10762 10763 /* confdefs.h. */ 10764_ACEOF 10765cat confdefs.h >>conftest.$ac_ext 10766cat >>conftest.$ac_ext <<_ACEOF 10767/* end confdefs.h. */ 10768 10769# ifdef HAVE_INTTYPES_H 10770 #include <inttypes.h> 10771# endif 10772# ifdef HAVE_SYS_BITYPES_H 10773 #include <sys/bitypes.h> 10774# endif 10775 #include <stdio.h> 10776 #include <sys/types.h> 10777 10778 main() 10779 { 10780 u_int64_t t = 1; 10781 char strbuf[16+1]; 10782 sprintf(strbuf, "%016llx", t << 32); 10783 if (strcmp(strbuf, "0000000100000000") == 0) 10784 exit(0); 10785 else 10786 exit(1); 10787 } 10788 10789 10790_ACEOF 10791rm -f conftest$ac_exeext 10792if { (ac_try="$ac_link" 10793case "(($ac_try" in 10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10795 *) ac_try_echo=$ac_try;; 10796esac 10797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10798 (eval "$ac_link") 2>&5 10799 ac_status=$? 10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10802 { (case "(($ac_try" in 10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10804 *) ac_try_echo=$ac_try;; 10805esac 10806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10807 (eval "$ac_try") 2>&5 10808 ac_status=$? 10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10810 (exit $ac_status); }; }; then 10811 10812 cat >>confdefs.h <<\_ACEOF 10813#define PRId64 "lld" 10814_ACEOF 10815 10816 cat >>confdefs.h <<\_ACEOF 10817#define PRIo64 "llo" 10818_ACEOF 10819 10820 cat >>confdefs.h <<\_ACEOF 10821#define PRIx64 "llx" 10822_ACEOF 10823 10824 cat >>confdefs.h <<\_ACEOF 10825#define PRIu64 "llu" 10826_ACEOF 10827 10828 { echo "$as_me:$LINENO: result: yes" >&5 10829echo "${ECHO_T}yes" >&6; } 10830 10831else 10832 echo "$as_me: program exited with status $ac_status" >&5 10833echo "$as_me: failed program was:" >&5 10834sed 's/^/| /' conftest.$ac_ext >&5 10835 10836( exit $ac_status ) 10837 10838 { echo "$as_me:$LINENO: result: no" >&5 10839echo "${ECHO_T}no" >&6; } 10840 10841 10842 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5 10843echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; } 10844 if test "$cross_compiling" = yes; then 10845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10846See \`config.log' for more details." >&5 10847echo "$as_me: error: cannot run test program while cross compiling 10848See \`config.log' for more details." >&2;} 10849 { (exit 1); exit 1; }; } 10850else 10851 cat >conftest.$ac_ext <<_ACEOF 10852 10853 /* confdefs.h. */ 10854_ACEOF 10855cat confdefs.h >>conftest.$ac_ext 10856cat >>conftest.$ac_ext <<_ACEOF 10857/* end confdefs.h. */ 10858 10859# ifdef HAVE_INTTYPES_H 10860 #include <inttypes.h> 10861# endif 10862# ifdef HAVE_SYS_BITYPES_H 10863 #include <sys/bitypes.h> 10864# endif 10865 #include <stdio.h> 10866 #include <sys/types.h> 10867 10868 main() 10869 { 10870 u_int64_t t = 1; 10871 char strbuf[16+1]; 10872 sprintf(strbuf, "%016Lx", t << 32); 10873 if (strcmp(strbuf, "0000000100000000") == 0) 10874 exit(0); 10875 else 10876 exit(1); 10877 } 10878 10879 10880_ACEOF 10881rm -f conftest$ac_exeext 10882if { (ac_try="$ac_link" 10883case "(($ac_try" in 10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10885 *) ac_try_echo=$ac_try;; 10886esac 10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10888 (eval "$ac_link") 2>&5 10889 ac_status=$? 10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10892 { (case "(($ac_try" in 10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10894 *) ac_try_echo=$ac_try;; 10895esac 10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10897 (eval "$ac_try") 2>&5 10898 ac_status=$? 10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10900 (exit $ac_status); }; }; then 10901 10902 cat >>confdefs.h <<\_ACEOF 10903#define PRId64 "Ld" 10904_ACEOF 10905 10906 cat >>confdefs.h <<\_ACEOF 10907#define PRIo64 "Lo" 10908_ACEOF 10909 10910 cat >>confdefs.h <<\_ACEOF 10911#define PRIx64 "Lx" 10912_ACEOF 10913 10914 cat >>confdefs.h <<\_ACEOF 10915#define PRIu64 "Lu" 10916_ACEOF 10917 10918 { echo "$as_me:$LINENO: result: yes" >&5 10919echo "${ECHO_T}yes" >&6; } 10920 10921else 10922 echo "$as_me: program exited with status $ac_status" >&5 10923echo "$as_me: failed program was:" >&5 10924sed 's/^/| /' conftest.$ac_ext >&5 10925 10926( exit $ac_status ) 10927 10928 { echo "$as_me:$LINENO: result: no" >&5 10929echo "${ECHO_T}no" >&6; } 10930 10931 10932 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5 10933echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; } 10934 if test "$cross_compiling" = yes; then 10935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10936See \`config.log' for more details." >&5 10937echo "$as_me: error: cannot run test program while cross compiling 10938See \`config.log' for more details." >&2;} 10939 { (exit 1); exit 1; }; } 10940else 10941 cat >conftest.$ac_ext <<_ACEOF 10942 10943 /* confdefs.h. */ 10944_ACEOF 10945cat confdefs.h >>conftest.$ac_ext 10946cat >>conftest.$ac_ext <<_ACEOF 10947/* end confdefs.h. */ 10948 10949# ifdef HAVE_INTTYPES_H 10950 #include <inttypes.h> 10951# endif 10952# ifdef HAVE_SYS_BITYPES_H 10953 #include <sys/bitypes.h> 10954# endif 10955 #include <stdio.h> 10956 #include <sys/types.h> 10957 10958 main() 10959 { 10960 u_int64_t t = 1; 10961 char strbuf[16+1]; 10962 sprintf(strbuf, "%016qx", t << 32); 10963 if (strcmp(strbuf, "0000000100000000") == 0) 10964 exit(0); 10965 else 10966 exit(1); 10967 } 10968 10969 10970_ACEOF 10971rm -f conftest$ac_exeext 10972if { (ac_try="$ac_link" 10973case "(($ac_try" in 10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10975 *) ac_try_echo=$ac_try;; 10976esac 10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10978 (eval "$ac_link") 2>&5 10979 ac_status=$? 10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10982 { (case "(($ac_try" in 10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10984 *) ac_try_echo=$ac_try;; 10985esac 10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10987 (eval "$ac_try") 2>&5 10988 ac_status=$? 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); }; }; then 10991 10992 cat >>confdefs.h <<\_ACEOF 10993#define PRId64 "qd" 10994_ACEOF 10995 10996 cat >>confdefs.h <<\_ACEOF 10997#define PRIo64 "qo" 10998_ACEOF 10999 11000 cat >>confdefs.h <<\_ACEOF 11001#define PRIx64 "qx" 11002_ACEOF 11003 11004 cat >>confdefs.h <<\_ACEOF 11005#define PRIu64 "qu" 11006_ACEOF 11007 11008 { echo "$as_me:$LINENO: result: yes" >&5 11009echo "${ECHO_T}yes" >&6; } 11010 11011else 11012 echo "$as_me: program exited with status $ac_status" >&5 11013echo "$as_me: failed program was:" >&5 11014sed 's/^/| /' conftest.$ac_ext >&5 11015 11016( exit $ac_status ) 11017 11018 { echo "$as_me:$LINENO: result: no" >&5 11019echo "${ECHO_T}no" >&6; } 11020 11021 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5 11022echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;} 11023 { (exit 1); exit 1; }; } 11024 11025 11026fi 11027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11028fi 11029 11030 11031 11032 11033 11034fi 11035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11036fi 11037 11038 11039 11040 11041 11042fi 11043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11044fi 11045 11046 11047 11048 11049 11050fi 11051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11052fi 11053 11054 11055 11056fi 11057 11058# 11059# Check for some headers introduced in later versions of libpcap 11060# and used by some printers. 11061# 11062# Those headers use the {u_}intN_t types, so we must do this after 11063# we check for what's needed to get them defined. 11064# 11065savedcppflags="$CPPFLAGS" 11066CPPFLAGS="$CPPFLAGS $V_INCLS" 11067 11068for ac_header in pcap/bluetooth.h 11069do 11070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11071{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11074 echo $ECHO_N "(cached) $ECHO_C" >&6 11075else 11076 cat >conftest.$ac_ext <<_ACEOF 11077/* confdefs.h. */ 11078_ACEOF 11079cat confdefs.h >>conftest.$ac_ext 11080cat >>conftest.$ac_ext <<_ACEOF 11081/* end confdefs.h. */ 11082#include <tcpdump-stdinc.h> 11083 11084#include <$ac_header> 11085_ACEOF 11086rm -f conftest.$ac_objext 11087if { (ac_try="$ac_compile" 11088case "(($ac_try" in 11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11090 *) ac_try_echo=$ac_try;; 11091esac 11092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11093 (eval "$ac_compile") 2>conftest.er1 11094 ac_status=$? 11095 grep -v '^ *+' conftest.er1 >conftest.err 11096 rm -f conftest.er1 11097 cat conftest.err >&5 11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11099 (exit $ac_status); } && { 11100 test -z "$ac_c_werror_flag" || 11101 test ! -s conftest.err 11102 } && test -s conftest.$ac_objext; then 11103 eval "$as_ac_Header=yes" 11104else 11105 echo "$as_me: failed program was:" >&5 11106sed 's/^/| /' conftest.$ac_ext >&5 11107 11108 eval "$as_ac_Header=no" 11109fi 11110 11111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11112fi 11113ac_res=`eval echo '${'$as_ac_Header'}'` 11114 { echo "$as_me:$LINENO: result: $ac_res" >&5 11115echo "${ECHO_T}$ac_res" >&6; } 11116if test `eval echo '${'$as_ac_Header'}'` = yes; then 11117 cat >>confdefs.h <<_ACEOF 11118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11119_ACEOF 11120 11121fi 11122 11123done 11124 11125 11126for ac_header in pcap/usb.h 11127do 11128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11129{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11132 echo $ECHO_N "(cached) $ECHO_C" >&6 11133else 11134 cat >conftest.$ac_ext <<_ACEOF 11135/* confdefs.h. */ 11136_ACEOF 11137cat confdefs.h >>conftest.$ac_ext 11138cat >>conftest.$ac_ext <<_ACEOF 11139/* end confdefs.h. */ 11140#include <tcpdump-stdinc.h> 11141 11142#include <$ac_header> 11143_ACEOF 11144rm -f conftest.$ac_objext 11145if { (ac_try="$ac_compile" 11146case "(($ac_try" in 11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11148 *) ac_try_echo=$ac_try;; 11149esac 11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11151 (eval "$ac_compile") 2>conftest.er1 11152 ac_status=$? 11153 grep -v '^ *+' conftest.er1 >conftest.err 11154 rm -f conftest.er1 11155 cat conftest.err >&5 11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11157 (exit $ac_status); } && { 11158 test -z "$ac_c_werror_flag" || 11159 test ! -s conftest.err 11160 } && test -s conftest.$ac_objext; then 11161 eval "$as_ac_Header=yes" 11162else 11163 echo "$as_me: failed program was:" >&5 11164sed 's/^/| /' conftest.$ac_ext >&5 11165 11166 eval "$as_ac_Header=no" 11167fi 11168 11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11170fi 11171ac_res=`eval echo '${'$as_ac_Header'}'` 11172 { echo "$as_me:$LINENO: result: $ac_res" >&5 11173echo "${ECHO_T}$ac_res" >&6; } 11174if test `eval echo '${'$as_ac_Header'}'` = yes; then 11175 cat >>confdefs.h <<_ACEOF 11176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11177_ACEOF 11178 11179fi 11180 11181done 11182 11183CPPFLAGS="$savedcppflags" 11184 11185if test -n "$ac_tool_prefix"; then 11186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11187set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11188{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11190if test "${ac_cv_prog_RANLIB+set}" = set; then 11191 echo $ECHO_N "(cached) $ECHO_C" >&6 11192else 11193 if test -n "$RANLIB"; then 11194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11195else 11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11197for as_dir in $PATH 11198do 11199 IFS=$as_save_IFS 11200 test -z "$as_dir" && as_dir=. 11201 for ac_exec_ext in '' $ac_executable_extensions; do 11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11205 break 2 11206 fi 11207done 11208done 11209IFS=$as_save_IFS 11210 11211fi 11212fi 11213RANLIB=$ac_cv_prog_RANLIB 11214if test -n "$RANLIB"; then 11215 { echo "$as_me:$LINENO: result: $RANLIB" >&5 11216echo "${ECHO_T}$RANLIB" >&6; } 11217else 11218 { echo "$as_me:$LINENO: result: no" >&5 11219echo "${ECHO_T}no" >&6; } 11220fi 11221 11222 11223fi 11224if test -z "$ac_cv_prog_RANLIB"; then 11225 ac_ct_RANLIB=$RANLIB 11226 # Extract the first word of "ranlib", so it can be a program name with args. 11227set dummy ranlib; ac_word=$2 11228{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11230if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 11231 echo $ECHO_N "(cached) $ECHO_C" >&6 11232else 11233 if test -n "$ac_ct_RANLIB"; then 11234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11235else 11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11237for as_dir in $PATH 11238do 11239 IFS=$as_save_IFS 11240 test -z "$as_dir" && as_dir=. 11241 for ac_exec_ext in '' $ac_executable_extensions; do 11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11243 ac_cv_prog_ac_ct_RANLIB="ranlib" 11244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11245 break 2 11246 fi 11247done 11248done 11249IFS=$as_save_IFS 11250 11251fi 11252fi 11253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11254if test -n "$ac_ct_RANLIB"; then 11255 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 11256echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 11257else 11258 { echo "$as_me:$LINENO: result: no" >&5 11259echo "${ECHO_T}no" >&6; } 11260fi 11261 11262 if test "x$ac_ct_RANLIB" = x; then 11263 RANLIB=":" 11264 else 11265 case $cross_compiling:$ac_tool_warned in 11266yes:) 11267{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11268whose name does not start with the host triplet. If you think this 11269configuration is useful to you, please write to autoconf@gnu.org." >&5 11270echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11271whose name does not start with the host triplet. If you think this 11272configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11273ac_tool_warned=yes ;; 11274esac 11275 RANLIB=$ac_ct_RANLIB 11276 fi 11277else 11278 RANLIB="$ac_cv_prog_RANLIB" 11279fi 11280 11281 11282rm -f os-proto.h 11283 if test "${LBL_CFLAGS+set}" = set; then 11284 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 11285 fi 11286 if test -f .devel ; then 11287 if test "$GCC" = yes ; then 11288 if test "${LBL_CFLAGS+set}" != set; then 11289 if test "$ac_cv_prog_cc_g" = yes ; then 11290 V_CCOPT="-g $V_CCOPT" 11291 fi 11292 V_CCOPT="$V_CCOPT -Wall" 11293 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 11294 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W" 11295 fi 11296 fi 11297 else 11298 case "$host_os" in 11299 11300 irix6*) 11301 V_CCOPT="$V_CCOPT -n32" 11302 ;; 11303 11304 *) 11305 ;; 11306 esac 11307 fi 11308 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 11309 name="lbl/os-$os.h" 11310 if test -f $name ; then 11311 ln -s $name os-proto.h 11312 11313cat >>confdefs.h <<\_ACEOF 11314#define HAVE_OS_PROTO_H 1 11315_ACEOF 11316 11317 else 11318 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 11319echo "$as_me: WARNING: can't find $name" >&2;} 11320 fi 11321 fi 11322 11323{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5 11324echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; } 11325 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 11326 echo $ECHO_N "(cached) $ECHO_C" >&6 11327else 11328 cat >conftest.$ac_ext <<_ACEOF 11329/* confdefs.h. */ 11330_ACEOF 11331cat confdefs.h >>conftest.$ac_ext 11332cat >>conftest.$ac_ext <<_ACEOF 11333/* end confdefs.h. */ 11334 11335# include <sys/types.h> 11336# include <sys/socket.h> 11337int 11338main () 11339{ 11340u_int i = sizeof(((struct sockaddr *)0)->sa_len) 11341 ; 11342 return 0; 11343} 11344_ACEOF 11345rm -f conftest.$ac_objext 11346if { (ac_try="$ac_compile" 11347case "(($ac_try" in 11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11349 *) ac_try_echo=$ac_try;; 11350esac 11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11352 (eval "$ac_compile") 2>conftest.er1 11353 ac_status=$? 11354 grep -v '^ *+' conftest.er1 >conftest.err 11355 rm -f conftest.er1 11356 cat conftest.err >&5 11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11358 (exit $ac_status); } && { 11359 test -z "$ac_c_werror_flag" || 11360 test ! -s conftest.err 11361 } && test -s conftest.$ac_objext; then 11362 ac_cv_lbl_sockaddr_has_sa_len=yes 11363else 11364 echo "$as_me: failed program was:" >&5 11365sed 's/^/| /' conftest.$ac_ext >&5 11366 11367 ac_cv_lbl_sockaddr_has_sa_len=no 11368fi 11369 11370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11371fi 11372 11373 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 11374echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; } 11375 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 11376 11377cat >>confdefs.h <<\_ACEOF 11378#define HAVE_SOCKADDR_SA_LEN 1 11379_ACEOF 11380 11381 fi 11382 11383{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 11384echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; } 11385 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 11386 echo $ECHO_N "(cached) $ECHO_C" >&6 11387else 11388 case "$host_cpu" in 11389 11390 # 11391 # These are CPU types where: 11392 # 11393 # the CPU faults on an unaligned access, but at least some 11394 # OSes that support that CPU catch the fault and simulate 11395 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 11396 # the simulation is slow, so we don't want to use it; 11397 # 11398 # the CPU, I infer (from the old 11399 # 11400 # XXX: should also check that they don't do weird things (like on arm) 11401 # 11402 # comment) doesn't fault on unaligned accesses, but doesn't 11403 # do a normal unaligned fetch, either (e.g., presumably, ARM); 11404 # 11405 # for whatever reason, the test program doesn't work 11406 # (this has been claimed to be the case for several of those 11407 # CPUs - I don't know what the problem is; the problem 11408 # was reported as "the test program dumps core" for SuperH, 11409 # but that's what the test program is *supposed* to do - 11410 # it dumps core before it writes anything, so the test 11411 # for an empty output file should find an empty output 11412 # file and conclude that unaligned accesses don't work). 11413 # 11414 # This run-time test won't work if you're cross-compiling, so 11415 # in order to support cross-compiling for a particular CPU, 11416 # we have to wire in the list of CPU types anyway, as far as 11417 # I know, so perhaps we should just have a set of CPUs on 11418 # which we know it doesn't work, a set of CPUs on which we 11419 # know it does work, and have the script just fail on other 11420 # cpu types and update it when such a failure occurs. 11421 # 11422 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) 11423 ac_cv_lbl_unaligned_fail=yes 11424 ;; 11425 11426 *) 11427 cat >conftest.c <<EOF 11428# include <sys/types.h> 11429# include <sys/wait.h> 11430# include <stdio.h> 11431 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 11432 main() { 11433 unsigned int i; 11434 pid_t pid; 11435 int status; 11436 /* avoid "core dumped" message */ 11437 pid = fork(); 11438 if (pid < 0) 11439 exit(2); 11440 if (pid > 0) { 11441 /* parent */ 11442 pid = waitpid(pid, &status, 0); 11443 if (pid < 0) 11444 exit(3); 11445 exit(!WIFEXITED(status)); 11446 } 11447 /* child */ 11448 i = *(unsigned int *)&a[1]; 11449 printf("%d\n", i); 11450 exit(0); 11451 } 11452EOF 11453 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 11454 conftest.c $LIBS >/dev/null 2>&1 11455 if test ! -x conftest ; then 11456 ac_cv_lbl_unaligned_fail=yes 11457 else 11458 ./conftest >conftest.out 11459 if test ! -s conftest.out ; then 11460 ac_cv_lbl_unaligned_fail=yes 11461 else 11462 ac_cv_lbl_unaligned_fail=no 11463 fi 11464 fi 11465 rm -f -r conftest* core core.conftest 11466 ;; 11467 esac 11468fi 11469 11470 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 11471echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; } 11472 if test $ac_cv_lbl_unaligned_fail = yes ; then 11473 11474cat >>confdefs.h <<\_ACEOF 11475#define LBL_ALIGN 1 11476_ACEOF 11477 11478 fi 11479 11480 11481 { echo "$as_me:$LINENO: checking for h_errno" >&5 11482echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; } 11483 if test "${ac_cv_var_h_errno+set}" = set; then 11484 echo $ECHO_N "(cached) $ECHO_C" >&6 11485else 11486 cat >conftest.$ac_ext <<_ACEOF 11487/* confdefs.h. */ 11488_ACEOF 11489cat confdefs.h >>conftest.$ac_ext 11490cat >>conftest.$ac_ext <<_ACEOF 11491/* end confdefs.h. */ 11492 11493# include <sys/types.h> 11494# include <netdb.h> 11495int 11496main () 11497{ 11498int foo = h_errno; 11499 ; 11500 return 0; 11501} 11502_ACEOF 11503rm -f conftest.$ac_objext 11504if { (ac_try="$ac_compile" 11505case "(($ac_try" in 11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11507 *) ac_try_echo=$ac_try;; 11508esac 11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11510 (eval "$ac_compile") 2>conftest.er1 11511 ac_status=$? 11512 grep -v '^ *+' conftest.er1 >conftest.err 11513 rm -f conftest.er1 11514 cat conftest.err >&5 11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11516 (exit $ac_status); } && { 11517 test -z "$ac_c_werror_flag" || 11518 test ! -s conftest.err 11519 } && test -s conftest.$ac_objext; then 11520 ac_cv_var_h_errno=yes 11521else 11522 echo "$as_me: failed program was:" >&5 11523sed 's/^/| /' conftest.$ac_ext >&5 11524 11525 ac_cv_var_h_errno=no 11526fi 11527 11528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11529fi 11530 11531 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 11532echo "${ECHO_T}$ac_cv_var_h_errno" >&6; } 11533 if test "$ac_cv_var_h_errno" = "yes"; then 11534 cat >>confdefs.h <<\_ACEOF 11535#define HAVE_H_ERRNO 1 11536_ACEOF 11537 11538 fi 11539 11540 11541# Check for SSLeay 11542{ echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5 11543echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; } 11544# Specify location for both includes and libraries. 11545want_libcrypto=youmama 11546 11547# Check whether --with-crypto was given. 11548if test "${with_crypto+set}" = set; then 11549 withval=$with_crypto; 11550 if test $withval = no 11551 then 11552 want_libcrypto=no 11553 { echo "$as_me:$LINENO: result: no" >&5 11554echo "${ECHO_T}no" >&6; } 11555 elif test $withval = yes 11556 then 11557 want_libcrypto=yes 11558 { echo "$as_me:$LINENO: result: yes" >&5 11559echo "${ECHO_T}yes" >&6; } 11560 else 11561 want_libcrypto=yes 11562 { echo "$as_me:$LINENO: result: yes" >&5 11563echo "${ECHO_T}yes" >&6; } 11564 crypto_dir=$withval 11565 fi 11566 11567else 11568 11569 # 11570 # Use libcrypto if it's present, otherwise don't. 11571 # 11572 want_libcrypto=ifavailable 11573 { echo "$as_me:$LINENO: result: yes, if available" >&5 11574echo "${ECHO_T}yes, if available" >&6; } 11575 11576fi 11577 11578if test "$want_libcrypto" != "no"; then 11579 ac_cv_ssleay_path=no 11580 incdir=no 11581 if test "x$crypto_dir" = x; then 11582 # 11583 # Location not specified; check the default locations. 11584 # 11585 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5 11586echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; } 11587 dirs="/usr /usr/local /usr/local/ssl /usr/pkg" 11588 if test "x${host_alias}" != x; then 11589 dirs="/usr/${host_alias} $dirs" 11590 fi 11591 for dir in $dirs; do 11592 11593 # 11594 # Find the last component of $libdir; it's not necessarily 11595 # "lib" - it might be "lib64" on, for example, x86-64 11596 # Linux systems. 11597 # 11598 # We assume the directory in which we're looking for 11599 # libcrypto has a subdirectory with that as its name. 11600 # 11601 tmplib=`echo "$libdir" | sed 's,.*/,,'` 11602 11603 # 11604 # XXX - is there a better way to check if a given library is 11605 # in a given directory than checking each of the possible 11606 # shared library suffixes? 11607 # 11608 # Are there any other suffixes we need to look for? Do we 11609 # have to worry about ".so.{version}"? 11610 # 11611 # Or should we just look for "libcrypto.*"? 11612 # 11613 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \ 11614 -f "$dir/$tmplib/libcrypto.so" -o \ 11615 -f "$dir/$tmplib/libcrypto.sl" -o \ 11616 -f "$dir/$tmplib/libcrypto.dylib" \); then 11617 ac_cv_ssleay_path="$dir" 11618 fi 11619 11620 # 11621 # Make sure we have the headers as well. 11622 # 11623 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then 11624 incdir="-I$dir/include" 11625 fi 11626 11627 11628 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 11629 break; 11630 else 11631 ac_cv_ssleay_path=no 11632 incdir=no 11633 fi 11634 done 11635 if test "$ac_cv_ssleay_path" != no; then 11636 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 11637echo "${ECHO_T}$ac_cv_ssleay_path" >&6; } 11638 fi 11639 else 11640 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5 11641echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; } 11642 11643 # 11644 # Find the last component of $libdir; it's not necessarily 11645 # "lib" - it might be "lib64" on, for example, x86-64 11646 # Linux systems. 11647 # 11648 # We assume the directory in which we're looking for 11649 # libcrypto has a subdirectory with that as its name. 11650 # 11651 tmplib=`echo "$libdir" | sed 's,.*/,,'` 11652 11653 # 11654 # XXX - is there a better way to check if a given library is 11655 # in a given directory than checking each of the possible 11656 # shared library suffixes? 11657 # 11658 # Are there any other suffixes we need to look for? Do we 11659 # have to worry about ".so.{version}"? 11660 # 11661 # Or should we just look for "libcrypto.*"? 11662 # 11663 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \ 11664 -f "$crypto_dir/$tmplib/libcrypto.so" -o \ 11665 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \ 11666 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then 11667 ac_cv_ssleay_path="$crypto_dir" 11668 fi 11669 11670 # 11671 # Make sure we have the headers as well. 11672 # 11673 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then 11674 incdir="-I$crypto_dir/include" 11675 fi 11676 11677 if test "$ac_cv_ssleay_path" != no; then 11678 { echo "$as_me:$LINENO: result: found" >&5 11679echo "${ECHO_T}found" >&6; } 11680 fi 11681 fi 11682 if test "$ac_cv_ssleay_path" != no; then 11683 V_INCLS="$V_INCLS $incdir" 11684 if test "$dir" != "/usr"; then 11685 LDFLAGS="-L$dir/lib $LDFLAGS" 11686 fi 11687 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 11688 LIBS="$LIBS -lRSAglue" 11689 fi 11690 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 11691 LIBS="$LIBS -lrsaref" 11692 fi 11693 11694{ echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 11695echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } 11696if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 11697 echo $ECHO_N "(cached) $ECHO_C" >&6 11698else 11699 ac_check_lib_save_LIBS=$LIBS 11700LIBS="-lcrypto $LIBS" 11701cat >conftest.$ac_ext <<_ACEOF 11702/* confdefs.h. */ 11703_ACEOF 11704cat confdefs.h >>conftest.$ac_ext 11705cat >>conftest.$ac_ext <<_ACEOF 11706/* end confdefs.h. */ 11707 11708/* Override any GCC internal prototype to avoid an error. 11709 Use char because int might match the return type of a GCC 11710 builtin and then its argument prototype would still apply. */ 11711#ifdef __cplusplus 11712extern "C" 11713#endif 11714char DES_cbc_encrypt (); 11715int 11716main () 11717{ 11718return DES_cbc_encrypt (); 11719 ; 11720 return 0; 11721} 11722_ACEOF 11723rm -f conftest.$ac_objext conftest$ac_exeext 11724if { (ac_try="$ac_link" 11725case "(($ac_try" in 11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11727 *) ac_try_echo=$ac_try;; 11728esac 11729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11730 (eval "$ac_link") 2>conftest.er1 11731 ac_status=$? 11732 grep -v '^ *+' conftest.er1 >conftest.err 11733 rm -f conftest.er1 11734 cat conftest.err >&5 11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11736 (exit $ac_status); } && { 11737 test -z "$ac_c_werror_flag" || 11738 test ! -s conftest.err 11739 } && test -s conftest$ac_exeext && 11740 $as_test_x conftest$ac_exeext; then 11741 ac_cv_lib_crypto_DES_cbc_encrypt=yes 11742else 11743 echo "$as_me: failed program was:" >&5 11744sed 's/^/| /' conftest.$ac_ext >&5 11745 11746 ac_cv_lib_crypto_DES_cbc_encrypt=no 11747fi 11748 11749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11750 conftest$ac_exeext conftest.$ac_ext 11751LIBS=$ac_check_lib_save_LIBS 11752fi 11753{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 11754echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; } 11755if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 11756 cat >>confdefs.h <<_ACEOF 11757#define HAVE_LIBCRYPTO 1 11758_ACEOF 11759 11760 LIBS="-lcrypto $LIBS" 11761 11762fi 11763 11764 11765 savedcppflags="$CPPFLAGS" 11766 CPPFLAGS="$CPPFLAGS $V_INCLS" 11767 11768for ac_header in openssl/evp.h 11769do 11770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11772 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11775 echo $ECHO_N "(cached) $ECHO_C" >&6 11776fi 11777ac_res=`eval echo '${'$as_ac_Header'}'` 11778 { echo "$as_me:$LINENO: result: $ac_res" >&5 11779echo "${ECHO_T}$ac_res" >&6; } 11780else 11781 # Is the header compilable? 11782{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11784cat >conftest.$ac_ext <<_ACEOF 11785/* confdefs.h. */ 11786_ACEOF 11787cat confdefs.h >>conftest.$ac_ext 11788cat >>conftest.$ac_ext <<_ACEOF 11789/* end confdefs.h. */ 11790$ac_includes_default 11791#include <$ac_header> 11792_ACEOF 11793rm -f conftest.$ac_objext 11794if { (ac_try="$ac_compile" 11795case "(($ac_try" in 11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11797 *) ac_try_echo=$ac_try;; 11798esac 11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11800 (eval "$ac_compile") 2>conftest.er1 11801 ac_status=$? 11802 grep -v '^ *+' conftest.er1 >conftest.err 11803 rm -f conftest.er1 11804 cat conftest.err >&5 11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 (exit $ac_status); } && { 11807 test -z "$ac_c_werror_flag" || 11808 test ! -s conftest.err 11809 } && test -s conftest.$ac_objext; then 11810 ac_header_compiler=yes 11811else 11812 echo "$as_me: failed program was:" >&5 11813sed 's/^/| /' conftest.$ac_ext >&5 11814 11815 ac_header_compiler=no 11816fi 11817 11818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11819{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11820echo "${ECHO_T}$ac_header_compiler" >&6; } 11821 11822# Is the header present? 11823{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11825cat >conftest.$ac_ext <<_ACEOF 11826/* confdefs.h. */ 11827_ACEOF 11828cat confdefs.h >>conftest.$ac_ext 11829cat >>conftest.$ac_ext <<_ACEOF 11830/* end confdefs.h. */ 11831#include <$ac_header> 11832_ACEOF 11833if { (ac_try="$ac_cpp conftest.$ac_ext" 11834case "(($ac_try" in 11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11836 *) ac_try_echo=$ac_try;; 11837esac 11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11840 ac_status=$? 11841 grep -v '^ *+' conftest.er1 >conftest.err 11842 rm -f conftest.er1 11843 cat conftest.err >&5 11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11845 (exit $ac_status); } >/dev/null && { 11846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11847 test ! -s conftest.err 11848 }; then 11849 ac_header_preproc=yes 11850else 11851 echo "$as_me: failed program was:" >&5 11852sed 's/^/| /' conftest.$ac_ext >&5 11853 11854 ac_header_preproc=no 11855fi 11856 11857rm -f conftest.err conftest.$ac_ext 11858{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11859echo "${ECHO_T}$ac_header_preproc" >&6; } 11860 11861# So? What about this header? 11862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11863 yes:no: ) 11864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11868 ac_header_preproc=yes 11869 ;; 11870 no:yes:* ) 11871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11883 11884 ;; 11885esac 11886{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11889 echo $ECHO_N "(cached) $ECHO_C" >&6 11890else 11891 eval "$as_ac_Header=\$ac_header_preproc" 11892fi 11893ac_res=`eval echo '${'$as_ac_Header'}'` 11894 { echo "$as_me:$LINENO: result: $ac_res" >&5 11895echo "${ECHO_T}$ac_res" >&6; } 11896 11897fi 11898if test `eval echo '${'$as_ac_Header'}'` = yes; then 11899 cat >>confdefs.h <<_ACEOF 11900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11901_ACEOF 11902 11903fi 11904 11905done 11906 11907 CPPFLAGS="$savedcppflags" 11908 else 11909 # 11910 # Not found. Did the user explicitly ask for it? 11911 # 11912 { echo "$as_me:$LINENO: result: not found" >&5 11913echo "${ECHO_T}not found" >&6; } 11914 if test "$want_libcrypto" = yes; then 11915 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5 11916echo "$as_me: error: SSLeay not found" >&2;} 11917 { (exit 1); exit 1; }; } 11918 fi 11919 fi 11920fi 11921 11922if test "$missing_includes" = "yes"; then 11923 CPPFLAGS="$CPPFLAGS -I$srcdir/missing" 11924 V_INCLS="$V_INCLS -I$srcdir/missing" 11925fi 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936# Find a good install program. We prefer a C program (faster), 11937# so one script is as good as another. But avoid the broken or 11938# incompatible versions: 11939# SysV /etc/install, /usr/sbin/install 11940# SunOS /usr/etc/install 11941# IRIX /sbin/install 11942# AIX /bin/install 11943# AmigaOS /C/install, which installs bootblocks on floppy discs 11944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11945# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11947# OS/2's system install, which has a completely different semantic 11948# ./install, which can be erroneously created by make from ./install.sh. 11949{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11950echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 11951if test -z "$INSTALL"; then 11952if test "${ac_cv_path_install+set}" = set; then 11953 echo $ECHO_N "(cached) $ECHO_C" >&6 11954else 11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11956for as_dir in $PATH 11957do 11958 IFS=$as_save_IFS 11959 test -z "$as_dir" && as_dir=. 11960 # Account for people who put trailing slashes in PATH elements. 11961case $as_dir/ in 11962 ./ | .// | /cC/* | \ 11963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11964 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 11965 /usr/ucb/* ) ;; 11966 *) 11967 # OSF1 and SCO ODT 3.0 have their own names for install. 11968 # Don't use installbsd from OSF since it installs stuff as root 11969 # by default. 11970 for ac_prog in ginstall scoinst install; do 11971 for ac_exec_ext in '' $ac_executable_extensions; do 11972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 11973 if test $ac_prog = install && 11974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11975 # AIX install. It has an incompatible calling convention. 11976 : 11977 elif test $ac_prog = install && 11978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11979 # program-specific install script used by HP pwplus--don't use. 11980 : 11981 else 11982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11983 break 3 11984 fi 11985 fi 11986 done 11987 done 11988 ;; 11989esac 11990done 11991IFS=$as_save_IFS 11992 11993 11994fi 11995 if test "${ac_cv_path_install+set}" = set; then 11996 INSTALL=$ac_cv_path_install 11997 else 11998 # As a last resort, use the slow shell script. Don't cache a 11999 # value for INSTALL within a source directory, because that will 12000 # break other packages using the cache if that directory is 12001 # removed, or if the value is a relative name. 12002 INSTALL=$ac_install_sh 12003 fi 12004fi 12005{ echo "$as_me:$LINENO: result: $INSTALL" >&5 12006echo "${ECHO_T}$INSTALL" >&6; } 12007 12008# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 12009# It thinks the first close brace ends the variable substitution. 12010test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 12011 12012test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 12013 12014test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 12015 12016 12017ac_config_headers="$ac_config_headers config.h" 12018 12019 12020ac_config_commands="$ac_config_commands default-1" 12021 12022ac_config_files="$ac_config_files Makefile tcpdump.1" 12023 12024cat >confcache <<\_ACEOF 12025# This file is a shell script that caches the results of configure 12026# tests run on this system so they can be shared between configure 12027# scripts and configure runs, see configure's option --config-cache. 12028# It is not useful on other systems. If it contains results you don't 12029# want to keep, you may remove or edit it. 12030# 12031# config.status only pays attention to the cache file if you give it 12032# the --recheck option to rerun configure. 12033# 12034# `ac_cv_env_foo' variables (set or unset) will be overridden when 12035# loading this file, other *unset* `ac_cv_foo' will be assigned the 12036# following values. 12037 12038_ACEOF 12039 12040# The following way of writing the cache mishandles newlines in values, 12041# but we know of no workaround that is simple, portable, and efficient. 12042# So, we kill variables containing newlines. 12043# Ultrix sh set writes to stderr and can't be redirected directly, 12044# and sets the high bit in the cache file unless we assign to the vars. 12045( 12046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12047 eval ac_val=\$$ac_var 12048 case $ac_val in #( 12049 *${as_nl}*) 12050 case $ac_var in #( 12051 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 12052echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 12053 esac 12054 case $ac_var in #( 12055 _ | IFS | as_nl) ;; #( 12056 *) $as_unset $ac_var ;; 12057 esac ;; 12058 esac 12059 done 12060 12061 (set) 2>&1 | 12062 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12063 *${as_nl}ac_space=\ *) 12064 # `set' does not quote correctly, so add quotes (double-quote 12065 # substitution turns \\\\ into \\, and sed turns \\ into \). 12066 sed -n \ 12067 "s/'/'\\\\''/g; 12068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12069 ;; #( 12070 *) 12071 # `set' quotes correctly as required by POSIX, so do not add quotes. 12072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12073 ;; 12074 esac | 12075 sort 12076) | 12077 sed ' 12078 /^ac_cv_env_/b end 12079 t clear 12080 :clear 12081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12082 t end 12083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12084 :end' >>confcache 12085if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12086 if test -w "$cache_file"; then 12087 test "x$cache_file" != "x/dev/null" && 12088 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 12089echo "$as_me: updating cache $cache_file" >&6;} 12090 cat confcache >$cache_file 12091 else 12092 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12093echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12094 fi 12095fi 12096rm -f confcache 12097 12098test "x$prefix" = xNONE && prefix=$ac_default_prefix 12099# Let make expand exec_prefix. 12100test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12101 12102DEFS=-DHAVE_CONFIG_H 12103 12104ac_libobjs= 12105ac_ltlibobjs= 12106for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12107 # 1. Remove the extension, and $U if already installed. 12108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12109 ac_i=`echo "$ac_i" | sed "$ac_script"` 12110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12111 # will be set to the directory where LIBOBJS objects are built. 12112 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12113 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12114done 12115LIBOBJS=$ac_libobjs 12116 12117LTLIBOBJS=$ac_ltlibobjs 12118 12119 12120 12121: ${CONFIG_STATUS=./config.status} 12122ac_clean_files_save=$ac_clean_files 12123ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12124{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12125echo "$as_me: creating $CONFIG_STATUS" >&6;} 12126cat >$CONFIG_STATUS <<_ACEOF 12127#! $SHELL 12128# Generated by $as_me. 12129# Run this file to recreate the current configuration. 12130# Compiler output produced by configure, useful for debugging 12131# configure, is in config.log if it exists. 12132 12133debug=false 12134ac_cs_recheck=false 12135ac_cs_silent=false 12136SHELL=\${CONFIG_SHELL-$SHELL} 12137_ACEOF 12138 12139cat >>$CONFIG_STATUS <<\_ACEOF 12140## --------------------- ## 12141## M4sh Initialization. ## 12142## --------------------- ## 12143 12144# Be more Bourne compatible 12145DUALCASE=1; export DUALCASE # for MKS sh 12146if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12147 emulate sh 12148 NULLCMD=: 12149 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12150 # is contrary to our usage. Disable this feature. 12151 alias -g '${1+"$@"}'='"$@"' 12152 setopt NO_GLOB_SUBST 12153else 12154 case `(set -o) 2>/dev/null` in 12155 *posix*) set -o posix ;; 12156esac 12157 12158fi 12159 12160 12161 12162 12163# PATH needs CR 12164# Avoid depending upon Character Ranges. 12165as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12167as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12168as_cr_digits='0123456789' 12169as_cr_alnum=$as_cr_Letters$as_cr_digits 12170 12171# The user is always right. 12172if test "${PATH_SEPARATOR+set}" != set; then 12173 echo "#! /bin/sh" >conf$$.sh 12174 echo "exit 0" >>conf$$.sh 12175 chmod +x conf$$.sh 12176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12177 PATH_SEPARATOR=';' 12178 else 12179 PATH_SEPARATOR=: 12180 fi 12181 rm -f conf$$.sh 12182fi 12183 12184# Support unset when possible. 12185if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12186 as_unset=unset 12187else 12188 as_unset=false 12189fi 12190 12191 12192# IFS 12193# We need space, tab and new line, in precisely that order. Quoting is 12194# there to prevent editors from complaining about space-tab. 12195# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12196# splitting by setting IFS to empty value.) 12197as_nl=' 12198' 12199IFS=" "" $as_nl" 12200 12201# Find who we are. Look in the path if we contain no directory separator. 12202case $0 in 12203 *[\\/]* ) as_myself=$0 ;; 12204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12205for as_dir in $PATH 12206do 12207 IFS=$as_save_IFS 12208 test -z "$as_dir" && as_dir=. 12209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12210done 12211IFS=$as_save_IFS 12212 12213 ;; 12214esac 12215# We did not find ourselves, most probably we were run as `sh COMMAND' 12216# in which case we are not to be found in the path. 12217if test "x$as_myself" = x; then 12218 as_myself=$0 12219fi 12220if test ! -f "$as_myself"; then 12221 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12222 { (exit 1); exit 1; } 12223fi 12224 12225# Work around bugs in pre-3.0 UWIN ksh. 12226for as_var in ENV MAIL MAILPATH 12227do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12228done 12229PS1='$ ' 12230PS2='> ' 12231PS4='+ ' 12232 12233# NLS nuisances. 12234for as_var in \ 12235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12237 LC_TELEPHONE LC_TIME 12238do 12239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12240 eval $as_var=C; export $as_var 12241 else 12242 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12243 fi 12244done 12245 12246# Required to use basename. 12247if expr a : '\(a\)' >/dev/null 2>&1 && 12248 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12249 as_expr=expr 12250else 12251 as_expr=false 12252fi 12253 12254if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12255 as_basename=basename 12256else 12257 as_basename=false 12258fi 12259 12260 12261# Name of the executable. 12262as_me=`$as_basename -- "$0" || 12263$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12264 X"$0" : 'X\(//\)$' \| \ 12265 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12266echo X/"$0" | 12267 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12268 s//\1/ 12269 q 12270 } 12271 /^X\/\(\/\/\)$/{ 12272 s//\1/ 12273 q 12274 } 12275 /^X\/\(\/\).*/{ 12276 s//\1/ 12277 q 12278 } 12279 s/.*/./; q'` 12280 12281# CDPATH. 12282$as_unset CDPATH 12283 12284 12285 12286 as_lineno_1=$LINENO 12287 as_lineno_2=$LINENO 12288 test "x$as_lineno_1" != "x$as_lineno_2" && 12289 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12290 12291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12292 # uniformly replaced by the line number. The first 'sed' inserts a 12293 # line-number line after each line using $LINENO; the second 'sed' 12294 # does the real work. The second script uses 'N' to pair each 12295 # line-number line with the line containing $LINENO, and appends 12296 # trailing '-' during substitution so that $LINENO is not a special 12297 # case at line end. 12298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12299 # scripts with optimization help from Paolo Bonzini. Blame Lee 12300 # E. McMahon (1931-1989) for sed's syntax. :-) 12301 sed -n ' 12302 p 12303 /[$]LINENO/= 12304 ' <$as_myself | 12305 sed ' 12306 s/[$]LINENO.*/&-/ 12307 t lineno 12308 b 12309 :lineno 12310 N 12311 :loop 12312 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12313 t loop 12314 s/-\n.*// 12315 ' >$as_me.lineno && 12316 chmod +x "$as_me.lineno" || 12317 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12318 { (exit 1); exit 1; }; } 12319 12320 # Don't try to exec as it changes $[0], causing all sort of problems 12321 # (the dirname of $[0] is not the place where we might find the 12322 # original and so on. Autoconf is especially sensitive to this). 12323 . "./$as_me.lineno" 12324 # Exit status is that of the last command. 12325 exit 12326} 12327 12328 12329if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12330 as_dirname=dirname 12331else 12332 as_dirname=false 12333fi 12334 12335ECHO_C= ECHO_N= ECHO_T= 12336case `echo -n x` in 12337-n*) 12338 case `echo 'x\c'` in 12339 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12340 *) ECHO_C='\c';; 12341 esac;; 12342*) 12343 ECHO_N='-n';; 12344esac 12345 12346if expr a : '\(a\)' >/dev/null 2>&1 && 12347 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12348 as_expr=expr 12349else 12350 as_expr=false 12351fi 12352 12353rm -f conf$$ conf$$.exe conf$$.file 12354if test -d conf$$.dir; then 12355 rm -f conf$$.dir/conf$$.file 12356else 12357 rm -f conf$$.dir 12358 mkdir conf$$.dir 12359fi 12360echo >conf$$.file 12361if ln -s conf$$.file conf$$ 2>/dev/null; then 12362 as_ln_s='ln -s' 12363 # ... but there are two gotchas: 12364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12366 # In both cases, we have to default to `cp -p'. 12367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12368 as_ln_s='cp -p' 12369elif ln conf$$.file conf$$ 2>/dev/null; then 12370 as_ln_s=ln 12371else 12372 as_ln_s='cp -p' 12373fi 12374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12375rmdir conf$$.dir 2>/dev/null 12376 12377if mkdir -p . 2>/dev/null; then 12378 as_mkdir_p=: 12379else 12380 test -d ./-p && rmdir ./-p 12381 as_mkdir_p=false 12382fi 12383 12384if test -x / >/dev/null 2>&1; then 12385 as_test_x='test -x' 12386else 12387 if ls -dL / >/dev/null 2>&1; then 12388 as_ls_L_option=L 12389 else 12390 as_ls_L_option= 12391 fi 12392 as_test_x=' 12393 eval sh -c '\'' 12394 if test -d "$1"; then 12395 test -d "$1/."; 12396 else 12397 case $1 in 12398 -*)set "./$1";; 12399 esac; 12400 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12401 ???[sx]*):;;*)false;;esac;fi 12402 '\'' sh 12403 ' 12404fi 12405as_executable_p=$as_test_x 12406 12407# Sed expression to map a string onto a valid CPP name. 12408as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12409 12410# Sed expression to map a string onto a valid variable name. 12411as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12412 12413 12414exec 6>&1 12415 12416# Save the log message, to keep $[0] and so on meaningful, and to 12417# report actual input values of CONFIG_FILES etc. instead of their 12418# values after options handling. 12419ac_log=" 12420This file was extended by $as_me, which was 12421generated by GNU Autoconf 2.61. Invocation command line was 12422 12423 CONFIG_FILES = $CONFIG_FILES 12424 CONFIG_HEADERS = $CONFIG_HEADERS 12425 CONFIG_LINKS = $CONFIG_LINKS 12426 CONFIG_COMMANDS = $CONFIG_COMMANDS 12427 $ $0 $@ 12428 12429on `(hostname || uname -n) 2>/dev/null | sed 1q` 12430" 12431 12432_ACEOF 12433 12434cat >>$CONFIG_STATUS <<_ACEOF 12435# Files that config.status was made for. 12436config_files="$ac_config_files" 12437config_headers="$ac_config_headers" 12438config_commands="$ac_config_commands" 12439 12440_ACEOF 12441 12442cat >>$CONFIG_STATUS <<\_ACEOF 12443ac_cs_usage="\ 12444\`$as_me' instantiates files from templates according to the 12445current configuration. 12446 12447Usage: $0 [OPTIONS] [FILE]... 12448 12449 -h, --help print this help, then exit 12450 -V, --version print version number and configuration settings, then exit 12451 -q, --quiet do not print progress messages 12452 -d, --debug don't remove temporary files 12453 --recheck update $as_me by reconfiguring in the same conditions 12454 --file=FILE[:TEMPLATE] 12455 instantiate the configuration file FILE 12456 --header=FILE[:TEMPLATE] 12457 instantiate the configuration header FILE 12458 12459Configuration files: 12460$config_files 12461 12462Configuration headers: 12463$config_headers 12464 12465Configuration commands: 12466$config_commands 12467 12468Report bugs to <bug-autoconf@gnu.org>." 12469 12470_ACEOF 12471cat >>$CONFIG_STATUS <<_ACEOF 12472ac_cs_version="\\ 12473config.status 12474configured by $0, generated by GNU Autoconf 2.61, 12475 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12476 12477Copyright (C) 2006 Free Software Foundation, Inc. 12478This config.status script is free software; the Free Software Foundation 12479gives unlimited permission to copy, distribute and modify it." 12480 12481ac_pwd='$ac_pwd' 12482srcdir='$srcdir' 12483INSTALL='$INSTALL' 12484_ACEOF 12485 12486cat >>$CONFIG_STATUS <<\_ACEOF 12487# If no file are specified by the user, then we need to provide default 12488# value. By we need to know if files were specified by the user. 12489ac_need_defaults=: 12490while test $# != 0 12491do 12492 case $1 in 12493 --*=*) 12494 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12496 ac_shift=: 12497 ;; 12498 *) 12499 ac_option=$1 12500 ac_optarg=$2 12501 ac_shift=shift 12502 ;; 12503 esac 12504 12505 case $ac_option in 12506 # Handling of the options. 12507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12508 ac_cs_recheck=: ;; 12509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12510 echo "$ac_cs_version"; exit ;; 12511 --debug | --debu | --deb | --de | --d | -d ) 12512 debug=: ;; 12513 --file | --fil | --fi | --f ) 12514 $ac_shift 12515 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12516 ac_need_defaults=false;; 12517 --header | --heade | --head | --hea ) 12518 $ac_shift 12519 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12520 ac_need_defaults=false;; 12521 --he | --h) 12522 # Conflict between --help and --header 12523 { echo "$as_me: error: ambiguous option: $1 12524Try \`$0 --help' for more information." >&2 12525 { (exit 1); exit 1; }; };; 12526 --help | --hel | -h ) 12527 echo "$ac_cs_usage"; exit ;; 12528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12529 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12530 ac_cs_silent=: ;; 12531 12532 # This is an error. 12533 -*) { echo "$as_me: error: unrecognized option: $1 12534Try \`$0 --help' for more information." >&2 12535 { (exit 1); exit 1; }; } ;; 12536 12537 *) ac_config_targets="$ac_config_targets $1" 12538 ac_need_defaults=false ;; 12539 12540 esac 12541 shift 12542done 12543 12544ac_configure_extra_args= 12545 12546if $ac_cs_silent; then 12547 exec 6>/dev/null 12548 ac_configure_extra_args="$ac_configure_extra_args --silent" 12549fi 12550 12551_ACEOF 12552cat >>$CONFIG_STATUS <<_ACEOF 12553if \$ac_cs_recheck; then 12554 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12555 CONFIG_SHELL=$SHELL 12556 export CONFIG_SHELL 12557 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12558fi 12559 12560_ACEOF 12561cat >>$CONFIG_STATUS <<\_ACEOF 12562exec 5>>config.log 12563{ 12564 echo 12565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12566## Running $as_me. ## 12567_ASBOX 12568 echo "$ac_log" 12569} >&5 12570 12571_ACEOF 12572cat >>$CONFIG_STATUS <<_ACEOF 12573# 12574# INIT-COMMANDS 12575# 12576 12577 12578_ACEOF 12579 12580cat >>$CONFIG_STATUS <<\_ACEOF 12581 12582# Handling of arguments. 12583for ac_config_target in $ac_config_targets 12584do 12585 case $ac_config_target in 12586 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12587 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12589 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;; 12590 12591 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12592echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12593 { (exit 1); exit 1; }; };; 12594 esac 12595done 12596 12597 12598# If the user did not use the arguments to specify the items to instantiate, 12599# then the envvar interface is used. Set only those that are not. 12600# We use the long form for the default assignment because of an extremely 12601# bizarre bug on SunOS 4.1.3. 12602if $ac_need_defaults; then 12603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12606fi 12607 12608# Have a temporary directory for convenience. Make it in the build tree 12609# simply because there is no reason against having it here, and in addition, 12610# creating and moving files from /tmp can sometimes cause problems. 12611# Hook for its removal unless debugging. 12612# Note that there is a small window in which the directory will not be cleaned: 12613# after its creation but before its name has been assigned to `$tmp'. 12614$debug || 12615{ 12616 tmp= 12617 trap 'exit_status=$? 12618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12619' 0 12620 trap '{ (exit 1); exit 1; }' 1 2 13 15 12621} 12622# Create a (secure) tmp directory for tmp files. 12623 12624{ 12625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12626 test -n "$tmp" && test -d "$tmp" 12627} || 12628{ 12629 tmp=./conf$$-$RANDOM 12630 (umask 077 && mkdir "$tmp") 12631} || 12632{ 12633 echo "$me: cannot create a temporary directory in ." >&2 12634 { (exit 1); exit 1; } 12635} 12636 12637# 12638# Set up the sed scripts for CONFIG_FILES section. 12639# 12640 12641# No need to generate the scripts if there are no CONFIG_FILES. 12642# This happens for instance when ./config.status config.h 12643if test -n "$CONFIG_FILES"; then 12644 12645_ACEOF 12646 12647 12648 12649ac_delim='%!_!# ' 12650for ac_last_try in false false false false false :; do 12651 cat >conf$$subs.sed <<_ACEOF 12652SHELL!$SHELL$ac_delim 12653PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12654PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12655PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12656PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12657PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12658PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12659exec_prefix!$exec_prefix$ac_delim 12660prefix!$prefix$ac_delim 12661program_transform_name!$program_transform_name$ac_delim 12662bindir!$bindir$ac_delim 12663sbindir!$sbindir$ac_delim 12664libexecdir!$libexecdir$ac_delim 12665datarootdir!$datarootdir$ac_delim 12666datadir!$datadir$ac_delim 12667sysconfdir!$sysconfdir$ac_delim 12668sharedstatedir!$sharedstatedir$ac_delim 12669localstatedir!$localstatedir$ac_delim 12670includedir!$includedir$ac_delim 12671oldincludedir!$oldincludedir$ac_delim 12672docdir!$docdir$ac_delim 12673infodir!$infodir$ac_delim 12674htmldir!$htmldir$ac_delim 12675dvidir!$dvidir$ac_delim 12676pdfdir!$pdfdir$ac_delim 12677psdir!$psdir$ac_delim 12678libdir!$libdir$ac_delim 12679localedir!$localedir$ac_delim 12680mandir!$mandir$ac_delim 12681DEFS!$DEFS$ac_delim 12682ECHO_C!$ECHO_C$ac_delim 12683ECHO_N!$ECHO_N$ac_delim 12684ECHO_T!$ECHO_T$ac_delim 12685LIBS!$LIBS$ac_delim 12686build_alias!$build_alias$ac_delim 12687host_alias!$host_alias$ac_delim 12688target_alias!$target_alias$ac_delim 12689build!$build$ac_delim 12690build_cpu!$build_cpu$ac_delim 12691build_vendor!$build_vendor$ac_delim 12692build_os!$build_os$ac_delim 12693host!$host$ac_delim 12694host_cpu!$host_cpu$ac_delim 12695host_vendor!$host_vendor$ac_delim 12696host_os!$host_os$ac_delim 12697SHLICC2!$SHLICC2$ac_delim 12698CC!$CC$ac_delim 12699CFLAGS!$CFLAGS$ac_delim 12700LDFLAGS!$LDFLAGS$ac_delim 12701CPPFLAGS!$CPPFLAGS$ac_delim 12702ac_ct_CC!$ac_ct_CC$ac_delim 12703EXEEXT!$EXEEXT$ac_delim 12704OBJEXT!$OBJEXT$ac_delim 12705CPP!$CPP$ac_delim 12706GREP!$GREP$ac_delim 12707EGREP!$EGREP$ac_delim 12708LIBOBJS!$LIBOBJS$ac_delim 12709PCAP_CONFIG!$PCAP_CONFIG$ac_delim 12710RANLIB!$RANLIB$ac_delim 12711V_CCOPT!$V_CCOPT$ac_delim 12712V_DEFS!$V_DEFS$ac_delim 12713V_GROUP!$V_GROUP$ac_delim 12714V_INCLS!$V_INCLS$ac_delim 12715V_PCAPDEP!$V_PCAPDEP$ac_delim 12716LOCALSRC!$LOCALSRC$ac_delim 12717MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim 12718MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim 12719INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12720INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12721INSTALL_DATA!$INSTALL_DATA$ac_delim 12722LTLIBOBJS!$LTLIBOBJS$ac_delim 12723_ACEOF 12724 12725 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then 12726 break 12727 elif $ac_last_try; then 12728 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12729echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12730 { (exit 1); exit 1; }; } 12731 else 12732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12733 fi 12734done 12735 12736ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12737if test -n "$ac_eof"; then 12738 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12739 ac_eof=`expr $ac_eof + 1` 12740fi 12741 12742cat >>$CONFIG_STATUS <<_ACEOF 12743cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12745_ACEOF 12746sed ' 12747s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12748s/^/s,@/; s/!/@,|#_!!_#|/ 12749:n 12750t n 12751s/'"$ac_delim"'$/,g/; t 12752s/$/\\/; p 12753N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12754' >>$CONFIG_STATUS <conf$$subs.sed 12755rm -f conf$$subs.sed 12756cat >>$CONFIG_STATUS <<_ACEOF 12757:end 12758s/|#_!!_#|//g 12759CEOF$ac_eof 12760_ACEOF 12761 12762 12763# VPATH may cause trouble with some makes, so we remove $(srcdir), 12764# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12765# trailing colons and then remove the whole line if VPATH becomes empty 12766# (actually we leave an empty line to preserve line numbers). 12767if test "x$srcdir" = x.; then 12768 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12769s/:*\$(srcdir):*/:/ 12770s/:*\${srcdir}:*/:/ 12771s/:*@srcdir@:*/:/ 12772s/^\([^=]*=[ ]*\):*/\1/ 12773s/:*$// 12774s/^[^=]*=[ ]*$// 12775}' 12776fi 12777 12778cat >>$CONFIG_STATUS <<\_ACEOF 12779fi # test -n "$CONFIG_FILES" 12780 12781 12782for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 12783do 12784 case $ac_tag in 12785 :[FHLC]) ac_mode=$ac_tag; continue;; 12786 esac 12787 case $ac_mode$ac_tag in 12788 :[FHL]*:*);; 12789 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12790echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12791 { (exit 1); exit 1; }; };; 12792 :[FH]-) ac_tag=-:-;; 12793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12794 esac 12795 ac_save_IFS=$IFS 12796 IFS=: 12797 set x $ac_tag 12798 IFS=$ac_save_IFS 12799 shift 12800 ac_file=$1 12801 shift 12802 12803 case $ac_mode in 12804 :L) ac_source=$1;; 12805 :[FH]) 12806 ac_file_inputs= 12807 for ac_f 12808 do 12809 case $ac_f in 12810 -) ac_f="$tmp/stdin";; 12811 *) # Look for the file first in the build tree, then in the source tree 12812 # (if the path is not absolute). The absolute path cannot be DOS-style, 12813 # because $ac_f cannot contain `:'. 12814 test -f "$ac_f" || 12815 case $ac_f in 12816 [\\/$]*) false;; 12817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12818 esac || 12819 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12820echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12821 { (exit 1); exit 1; }; };; 12822 esac 12823 ac_file_inputs="$ac_file_inputs $ac_f" 12824 done 12825 12826 # Let's still pretend it is `configure' which instantiates (i.e., don't 12827 # use $as_me), people would be surprised to read: 12828 # /* config.h. Generated by config.status. */ 12829 configure_input="Generated from "`IFS=: 12830 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12831 if test x"$ac_file" != x-; then 12832 configure_input="$ac_file. $configure_input" 12833 { echo "$as_me:$LINENO: creating $ac_file" >&5 12834echo "$as_me: creating $ac_file" >&6;} 12835 fi 12836 12837 case $ac_tag in 12838 *:-:* | *:-) cat >"$tmp/stdin";; 12839 esac 12840 ;; 12841 esac 12842 12843 ac_dir=`$as_dirname -- "$ac_file" || 12844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12845 X"$ac_file" : 'X\(//\)[^/]' \| \ 12846 X"$ac_file" : 'X\(//\)$' \| \ 12847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12848echo X"$ac_file" | 12849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12850 s//\1/ 12851 q 12852 } 12853 /^X\(\/\/\)[^/].*/{ 12854 s//\1/ 12855 q 12856 } 12857 /^X\(\/\/\)$/{ 12858 s//\1/ 12859 q 12860 } 12861 /^X\(\/\).*/{ 12862 s//\1/ 12863 q 12864 } 12865 s/.*/./; q'` 12866 { as_dir="$ac_dir" 12867 case $as_dir in #( 12868 -*) as_dir=./$as_dir;; 12869 esac 12870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12871 as_dirs= 12872 while :; do 12873 case $as_dir in #( 12874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12875 *) as_qdir=$as_dir;; 12876 esac 12877 as_dirs="'$as_qdir' $as_dirs" 12878 as_dir=`$as_dirname -- "$as_dir" || 12879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12880 X"$as_dir" : 'X\(//\)[^/]' \| \ 12881 X"$as_dir" : 'X\(//\)$' \| \ 12882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12883echo X"$as_dir" | 12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12885 s//\1/ 12886 q 12887 } 12888 /^X\(\/\/\)[^/].*/{ 12889 s//\1/ 12890 q 12891 } 12892 /^X\(\/\/\)$/{ 12893 s//\1/ 12894 q 12895 } 12896 /^X\(\/\).*/{ 12897 s//\1/ 12898 q 12899 } 12900 s/.*/./; q'` 12901 test -d "$as_dir" && break 12902 done 12903 test -z "$as_dirs" || eval "mkdir $as_dirs" 12904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12905echo "$as_me: error: cannot create directory $as_dir" >&2;} 12906 { (exit 1); exit 1; }; }; } 12907 ac_builddir=. 12908 12909case "$ac_dir" in 12910.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12911*) 12912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12913 # A ".." for each directory in $ac_dir_suffix. 12914 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12915 case $ac_top_builddir_sub in 12916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12918 esac ;; 12919esac 12920ac_abs_top_builddir=$ac_pwd 12921ac_abs_builddir=$ac_pwd$ac_dir_suffix 12922# for backward compatibility: 12923ac_top_builddir=$ac_top_build_prefix 12924 12925case $srcdir in 12926 .) # We are building in place. 12927 ac_srcdir=. 12928 ac_top_srcdir=$ac_top_builddir_sub 12929 ac_abs_top_srcdir=$ac_pwd ;; 12930 [\\/]* | ?:[\\/]* ) # Absolute name. 12931 ac_srcdir=$srcdir$ac_dir_suffix; 12932 ac_top_srcdir=$srcdir 12933 ac_abs_top_srcdir=$srcdir ;; 12934 *) # Relative name. 12935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12936 ac_top_srcdir=$ac_top_build_prefix$srcdir 12937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12938esac 12939ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12940 12941 12942 case $ac_mode in 12943 :F) 12944 # 12945 # CONFIG_FILE 12946 # 12947 12948 case $INSTALL in 12949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12951 esac 12952_ACEOF 12953 12954cat >>$CONFIG_STATUS <<\_ACEOF 12955# If the template does not know about datarootdir, expand it. 12956# FIXME: This hack should be removed a few years after 2.60. 12957ac_datarootdir_hack=; ac_datarootdir_seen= 12958 12959case `sed -n '/datarootdir/ { 12960 p 12961 q 12962} 12963/@datadir@/p 12964/@docdir@/p 12965/@infodir@/p 12966/@localedir@/p 12967/@mandir@/p 12968' $ac_file_inputs` in 12969*datarootdir*) ac_datarootdir_seen=yes;; 12970*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12971 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12972echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12973_ACEOF 12974cat >>$CONFIG_STATUS <<_ACEOF 12975 ac_datarootdir_hack=' 12976 s&@datadir@&$datadir&g 12977 s&@docdir@&$docdir&g 12978 s&@infodir@&$infodir&g 12979 s&@localedir@&$localedir&g 12980 s&@mandir@&$mandir&g 12981 s&\\\${datarootdir}&$datarootdir&g' ;; 12982esac 12983_ACEOF 12984 12985# Neutralize VPATH when `$srcdir' = `.'. 12986# Shell code in configure.ac might set extrasub. 12987# FIXME: do we really want to maintain this feature? 12988cat >>$CONFIG_STATUS <<_ACEOF 12989 sed "$ac_vpsub 12990$extrasub 12991_ACEOF 12992cat >>$CONFIG_STATUS <<\_ACEOF 12993:t 12994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12995s&@configure_input@&$configure_input&;t t 12996s&@top_builddir@&$ac_top_builddir_sub&;t t 12997s&@srcdir@&$ac_srcdir&;t t 12998s&@abs_srcdir@&$ac_abs_srcdir&;t t 12999s&@top_srcdir@&$ac_top_srcdir&;t t 13000s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13001s&@builddir@&$ac_builddir&;t t 13002s&@abs_builddir@&$ac_abs_builddir&;t t 13003s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13004s&@INSTALL@&$ac_INSTALL&;t t 13005$ac_datarootdir_hack 13006" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 13007 13008test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13011 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13012which seems to be undefined. Please make sure it is defined." >&5 13013echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13014which seems to be undefined. Please make sure it is defined." >&2;} 13015 13016 rm -f "$tmp/stdin" 13017 case $ac_file in 13018 -) cat "$tmp/out"; rm -f "$tmp/out";; 13019 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 13020 esac 13021 ;; 13022 :H) 13023 # 13024 # CONFIG_HEADER 13025 # 13026_ACEOF 13027 13028# Transform confdefs.h into a sed script `conftest.defines', that 13029# substitutes the proper values into config.h.in to produce config.h. 13030rm -f conftest.defines conftest.tail 13031# First, append a space to every undef/define line, to ease matching. 13032echo 's/$/ /' >conftest.defines 13033# Then, protect against being on the right side of a sed subst, or in 13034# an unquoted here document, in config.status. If some macros were 13035# called several times there might be several #defines for the same 13036# symbol, which is useless. But do not sort them, since the last 13037# AC_DEFINE must be honored. 13038ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13039# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 13040# NAME is the cpp macro being defined, VALUE is the value it is being given. 13041# PARAMS is the parameter list in the macro definition--in most cases, it's 13042# just an empty string. 13043ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 13044ac_dB='\\)[ (].*,\\1define\\2' 13045ac_dC=' ' 13046ac_dD=' ,' 13047 13048uniq confdefs.h | 13049 sed -n ' 13050 t rset 13051 :rset 13052 s/^[ ]*#[ ]*define[ ][ ]*// 13053 t ok 13054 d 13055 :ok 13056 s/[\\&,]/\\&/g 13057 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 13058 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 13059 ' >>conftest.defines 13060 13061# Remove the space that was appended to ease matching. 13062# Then replace #undef with comments. This is necessary, for 13063# example, in the case of _POSIX_SOURCE, which is predefined and required 13064# on some systems where configure will not decide to define it. 13065# (The regexp can be short, since the line contains either #define or #undef.) 13066echo 's/ $// 13067s,^[ #]*u.*,/* & */,' >>conftest.defines 13068 13069# Break up conftest.defines: 13070ac_max_sed_lines=50 13071 13072# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 13073# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 13074# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 13075# et cetera. 13076ac_in='$ac_file_inputs' 13077ac_out='"$tmp/out1"' 13078ac_nxt='"$tmp/out2"' 13079 13080while : 13081do 13082 # Write a here document: 13083 cat >>$CONFIG_STATUS <<_ACEOF 13084 # First, check the format of the line: 13085 cat >"\$tmp/defines.sed" <<\\CEOF 13086/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 13087/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 13088b 13089:def 13090_ACEOF 13091 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 13092 echo 'CEOF 13093 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 13094 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 13095 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 13096 grep . conftest.tail >/dev/null || break 13097 rm -f conftest.defines 13098 mv conftest.tail conftest.defines 13099done 13100rm -f conftest.defines conftest.tail 13101 13102echo "ac_result=$ac_in" >>$CONFIG_STATUS 13103cat >>$CONFIG_STATUS <<\_ACEOF 13104 if test x"$ac_file" != x-; then 13105 echo "/* $configure_input */" >"$tmp/config.h" 13106 cat "$ac_result" >>"$tmp/config.h" 13107 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 13108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13109echo "$as_me: $ac_file is unchanged" >&6;} 13110 else 13111 rm -f $ac_file 13112 mv "$tmp/config.h" $ac_file 13113 fi 13114 else 13115 echo "/* $configure_input */" 13116 cat "$ac_result" 13117 fi 13118 rm -f "$tmp/out12" 13119 ;; 13120 13121 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 13122echo "$as_me: executing $ac_file commands" >&6;} 13123 ;; 13124 esac 13125 13126 13127 case $ac_file$ac_mode in 13128 "default-1":C) if test -f .devel; then 13129 echo timestamp > stamp-h 13130 cat Makefile-devel-adds >> Makefile 13131 make depend 13132fi ;; 13133 13134 esac 13135done # for ac_tag 13136 13137 13138{ (exit 0); exit 0; } 13139_ACEOF 13140chmod +x $CONFIG_STATUS 13141ac_clean_files=$ac_clean_files_save 13142 13143 13144# configure is writing to config.log, and then calls config.status. 13145# config.status does its own redirection, appending to config.log. 13146# Unfortunately, on DOS this fails, as config.log is still kept open 13147# by configure, so config.status won't be able to write to it; its 13148# output is simply discarded. So we exec the FD to /dev/null, 13149# effectively closing config.log, so it can be properly (re)opened and 13150# appended to by config.status. When coming back to configure, we 13151# need to make the FD available again. 13152if test "$no_create" != yes; then 13153 ac_cs_success=: 13154 ac_config_status_args= 13155 test "$silent" = yes && 13156 ac_config_status_args="$ac_config_status_args --quiet" 13157 exec 5>/dev/null 13158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13159 exec 5>>config.log 13160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13161 # would make configure fail if this is the last instruction. 13162 $ac_cs_success || { (exit 1); exit 1; } 13163fi 13164 13165exit 0 13166