1#! /bin/sh 2 3# From configure.in Revision: 1.145.2.1 4 5 6 7 8# 9# Try compiling a sample of the type of code that appears in 10# gencode.c with "inline", "__inline__", and "__inline". 11# 12# Autoconf's AC_C_INLINE, at least in autoconf 2.13, isn't good enough, 13# as it just tests whether a function returning "int" can be inlined; 14# at least some versions of HP's C compiler can inline that, but can't 15# inline a function that returns a struct pointer. 16# 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76# Guess values for system-dependent variables and create Makefiles. 77# Generated automatically using autoconf version 2.13 78# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 79# 80# This configure script is free software; the Free Software Foundation 81# gives unlimited permission to copy, distribute and modify it. 82 83# Defaults: 84ac_help= 85ac_default_prefix=/usr/local 86# Any additions from configure.in: 87ac_help="$ac_help 88 --without-gcc don't use gcc" 89ac_help="$ac_help 90 --enable-smb enable possibly-buggy SMB printer [default=yes] 91 --disable-smb disable possibly-buggy SMB printer" 92ac_help="$ac_help 93 --enable-ipv6 enable ipv6 (with ipv4) support 94 --disable-ipv6 disable ipv6 support" 95ac_help="$ac_help 96 --without-crypto disable crypto support" 97 98# Initialize some variables set by options. 99# The variables have the same names as the options, with 100# dashes changed to underlines. 101build=NONE 102cache_file=./config.cache 103exec_prefix=NONE 104host=NONE 105no_create= 106nonopt=NONE 107no_recursion= 108prefix=NONE 109program_prefix=NONE 110program_suffix=NONE 111program_transform_name=s,x,x, 112silent= 113site= 114srcdir= 115target=NONE 116verbose= 117x_includes=NONE 118x_libraries=NONE 119bindir='${exec_prefix}/bin' 120sbindir='${exec_prefix}/sbin' 121libexecdir='${exec_prefix}/libexec' 122datadir='${prefix}/share' 123sysconfdir='${prefix}/etc' 124sharedstatedir='${prefix}/com' 125localstatedir='${prefix}/var' 126libdir='${exec_prefix}/lib' 127includedir='${prefix}/include' 128oldincludedir='/usr/include' 129infodir='${prefix}/info' 130mandir='${prefix}/man' 131 132# Initialize some other variables. 133subdirs= 134MFLAGS= MAKEFLAGS= 135SHELL=${CONFIG_SHELL-/bin/sh} 136# Maximum number of lines to put in a shell here document. 137ac_max_here_lines=12 138 139ac_prev= 140for ac_option 141do 142 143 # If the previous option needs an argument, assign it. 144 if test -n "$ac_prev"; then 145 eval "$ac_prev=\$ac_option" 146 ac_prev= 147 continue 148 fi 149 150 case "$ac_option" in 151 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 152 *) ac_optarg= ;; 153 esac 154 155 # Accept the important Cygnus configure options, so we can diagnose typos. 156 157 case "$ac_option" in 158 159 -bindir | --bindir | --bindi | --bind | --bin | --bi) 160 ac_prev=bindir ;; 161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 162 bindir="$ac_optarg" ;; 163 164 -build | --build | --buil | --bui | --bu) 165 ac_prev=build ;; 166 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 167 build="$ac_optarg" ;; 168 169 -cache-file | --cache-file | --cache-fil | --cache-fi \ 170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 171 ac_prev=cache_file ;; 172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 174 cache_file="$ac_optarg" ;; 175 176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 177 ac_prev=datadir ;; 178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 179 | --da=*) 180 datadir="$ac_optarg" ;; 181 182 -disable-* | --disable-*) 183 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 184 # Reject names that are not valid shell variable names. 185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 187 fi 188 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 189 eval "enable_${ac_feature}=no" ;; 190 191 -enable-* | --enable-*) 192 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 193 # Reject names that are not valid shell variable names. 194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 196 fi 197 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 198 case "$ac_option" in 199 *=*) ;; 200 *) ac_optarg=yes ;; 201 esac 202 eval "enable_${ac_feature}='$ac_optarg'" ;; 203 204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 206 | --exec | --exe | --ex) 207 ac_prev=exec_prefix ;; 208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 210 | --exec=* | --exe=* | --ex=*) 211 exec_prefix="$ac_optarg" ;; 212 213 -gas | --gas | --ga | --g) 214 # Obsolete; use --with-gas. 215 with_gas=yes ;; 216 217 -help | --help | --hel | --he) 218 # Omit some internal or obsolete options to make the list less imposing. 219 # This message is too long to be a string in the A/UX 3.1 sh. 220 cat << EOF 221Usage: configure [options] [host] 222Options: [defaults in brackets after descriptions] 223Configuration: 224 --cache-file=FILE cache test results in FILE 225 --help print this message 226 --no-create do not create output files 227 --quiet, --silent do not print \`checking...' messages 228 --version print the version of autoconf that created configure 229Directory and file names: 230 --prefix=PREFIX install architecture-independent files in PREFIX 231 [$ac_default_prefix] 232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 233 [same as prefix] 234 --bindir=DIR user executables in DIR [EPREFIX/bin] 235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 237 --datadir=DIR read-only architecture-independent data in DIR 238 [PREFIX/share] 239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 240 --sharedstatedir=DIR modifiable architecture-independent data in DIR 241 [PREFIX/com] 242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 243 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 244 --includedir=DIR C header files in DIR [PREFIX/include] 245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 246 --infodir=DIR info documentation in DIR [PREFIX/info] 247 --mandir=DIR man documentation in DIR [PREFIX/man] 248 --srcdir=DIR find the sources in DIR [configure dir or ..] 249 --program-prefix=PREFIX prepend PREFIX to installed program names 250 --program-suffix=SUFFIX append SUFFIX to installed program names 251 --program-transform-name=PROGRAM 252 run sed PROGRAM on installed program names 253EOF 254 cat << EOF 255Host type: 256 --build=BUILD configure for building on BUILD [BUILD=HOST] 257 --host=HOST configure for HOST [guessed] 258 --target=TARGET configure for TARGET [TARGET=HOST] 259Features and packages: 260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 264 --x-includes=DIR X include files are in DIR 265 --x-libraries=DIR X library files are in DIR 266EOF 267 if test -n "$ac_help"; then 268 echo "--enable and --with options recognized:$ac_help" 269 fi 270 exit 0 ;; 271 272 -host | --host | --hos | --ho) 273 ac_prev=host ;; 274 -host=* | --host=* | --hos=* | --ho=*) 275 host="$ac_optarg" ;; 276 277 -includedir | --includedir | --includedi | --included | --include \ 278 | --includ | --inclu | --incl | --inc) 279 ac_prev=includedir ;; 280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 281 | --includ=* | --inclu=* | --incl=* | --inc=*) 282 includedir="$ac_optarg" ;; 283 284 -infodir | --infodir | --infodi | --infod | --info | --inf) 285 ac_prev=infodir ;; 286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 287 infodir="$ac_optarg" ;; 288 289 -libdir | --libdir | --libdi | --libd) 290 ac_prev=libdir ;; 291 -libdir=* | --libdir=* | --libdi=* | --libd=*) 292 libdir="$ac_optarg" ;; 293 294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 295 | --libexe | --libex | --libe) 296 ac_prev=libexecdir ;; 297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 298 | --libexe=* | --libex=* | --libe=*) 299 libexecdir="$ac_optarg" ;; 300 301 -localstatedir | --localstatedir | --localstatedi | --localstated \ 302 | --localstate | --localstat | --localsta | --localst \ 303 | --locals | --local | --loca | --loc | --lo) 304 ac_prev=localstatedir ;; 305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 308 localstatedir="$ac_optarg" ;; 309 310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 311 ac_prev=mandir ;; 312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 313 mandir="$ac_optarg" ;; 314 315 -nfp | --nfp | --nf) 316 # Obsolete; use --without-fp. 317 with_fp=no ;; 318 319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 320 | --no-cr | --no-c) 321 no_create=yes ;; 322 323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 325 no_recursion=yes ;; 326 327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 329 | --oldin | --oldi | --old | --ol | --o) 330 ac_prev=oldincludedir ;; 331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 334 oldincludedir="$ac_optarg" ;; 335 336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 337 ac_prev=prefix ;; 338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 339 prefix="$ac_optarg" ;; 340 341 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 342 | --program-pre | --program-pr | --program-p) 343 ac_prev=program_prefix ;; 344 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 346 program_prefix="$ac_optarg" ;; 347 348 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 349 | --program-suf | --program-su | --program-s) 350 ac_prev=program_suffix ;; 351 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 353 program_suffix="$ac_optarg" ;; 354 355 -program-transform-name | --program-transform-name \ 356 | --program-transform-nam | --program-transform-na \ 357 | --program-transform-n | --program-transform- \ 358 | --program-transform | --program-transfor \ 359 | --program-transfo | --program-transf \ 360 | --program-trans | --program-tran \ 361 | --progr-tra | --program-tr | --program-t) 362 ac_prev=program_transform_name ;; 363 -program-transform-name=* | --program-transform-name=* \ 364 | --program-transform-nam=* | --program-transform-na=* \ 365 | --program-transform-n=* | --program-transform-=* \ 366 | --program-transform=* | --program-transfor=* \ 367 | --program-transfo=* | --program-transf=* \ 368 | --program-trans=* | --program-tran=* \ 369 | --progr-tra=* | --program-tr=* | --program-t=*) 370 program_transform_name="$ac_optarg" ;; 371 372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 373 | -silent | --silent | --silen | --sile | --sil) 374 silent=yes ;; 375 376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 377 ac_prev=sbindir ;; 378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 379 | --sbi=* | --sb=*) 380 sbindir="$ac_optarg" ;; 381 382 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 384 | --sharedst | --shareds | --shared | --share | --shar \ 385 | --sha | --sh) 386 ac_prev=sharedstatedir ;; 387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 390 | --sha=* | --sh=*) 391 sharedstatedir="$ac_optarg" ;; 392 393 -site | --site | --sit) 394 ac_prev=site ;; 395 -site=* | --site=* | --sit=*) 396 site="$ac_optarg" ;; 397 398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 399 ac_prev=srcdir ;; 400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 401 srcdir="$ac_optarg" ;; 402 403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 404 | --syscon | --sysco | --sysc | --sys | --sy) 405 ac_prev=sysconfdir ;; 406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 408 sysconfdir="$ac_optarg" ;; 409 410 -target | --target | --targe | --targ | --tar | --ta | --t) 411 ac_prev=target ;; 412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 413 target="$ac_optarg" ;; 414 415 -v | -verbose | --verbose | --verbos | --verbo | --verb) 416 verbose=yes ;; 417 418 -version | --version | --versio | --versi | --vers) 419 echo "configure generated by autoconf version 2.13" 420 exit 0 ;; 421 422 -with-* | --with-*) 423 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 424 # Reject names that are not valid shell variable names. 425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 427 fi 428 ac_package=`echo $ac_package| sed 's/-/_/g'` 429 case "$ac_option" in 430 *=*) ;; 431 *) ac_optarg=yes ;; 432 esac 433 eval "with_${ac_package}='$ac_optarg'" ;; 434 435 -without-* | --without-*) 436 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 437 # Reject names that are not valid shell variable names. 438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 440 fi 441 ac_package=`echo $ac_package| sed 's/-/_/g'` 442 eval "with_${ac_package}=no" ;; 443 444 --x) 445 # Obsolete; use --with-x. 446 with_x=yes ;; 447 448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 449 | --x-incl | --x-inc | --x-in | --x-i) 450 ac_prev=x_includes ;; 451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 453 x_includes="$ac_optarg" ;; 454 455 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 457 ac_prev=x_libraries ;; 458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 460 x_libraries="$ac_optarg" ;; 461 462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 463 ;; 464 465 *) 466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 467 echo "configure: warning: $ac_option: invalid host type" 1>&2 468 fi 469 if test "x$nonopt" != xNONE; then 470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 471 fi 472 nonopt="$ac_option" 473 ;; 474 475 esac 476done 477 478if test -n "$ac_prev"; then 479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 480fi 481 482trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 483 484# File descriptor usage: 485# 0 standard input 486# 1 file creation 487# 2 errors and warnings 488# 3 some systems may open it to /dev/tty 489# 4 used on the Kubota Titan 490# 6 checking for... messages and results 491# 5 compiler messages saved in config.log 492if test "$silent" = yes; then 493 exec 6>/dev/null 494else 495 exec 6>&1 496fi 497exec 5>./config.log 498 499echo "\ 500This file contains any messages produced by compilers while 501running configure, to aid debugging if configure makes a mistake. 502" 1>&5 503 504# Strip out --no-create and --no-recursion so they do not pile up. 505# Also quote any args containing shell metacharacters. 506ac_configure_args= 507for ac_arg 508do 509 case "$ac_arg" in 510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 511 | --no-cr | --no-c) ;; 512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 515 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 516 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 517 esac 518done 519 520# NLS nuisances. 521# Only set these to C if already set. These must not be set unconditionally 522# because not all systems understand e.g. LANG=C (notably SCO). 523# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 524# Non-C LC_CTYPE values break the ctype check. 525if test "${LANG+set}" = set; then LANG=C; export LANG; fi 526if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 527if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 528if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 529 530# confdefs.h avoids OS command line length limits that DEFS can exceed. 531rm -rf conftest* confdefs.h 532# AIX cpp loses on an empty file, so make sure it contains at least a newline. 533echo > confdefs.h 534 535# A filename unique to this package, relative to the directory that 536# configure is in, which we can look for to find out if srcdir is correct. 537ac_unique_file=tcpdump.c 538 539# Find the source files, if location was not specified. 540if test -z "$srcdir"; then 541 ac_srcdir_defaulted=yes 542 # Try the directory containing this script, then its parent. 543 ac_prog=$0 544 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 546 srcdir=$ac_confdir 547 if test ! -r $srcdir/$ac_unique_file; then 548 srcdir=.. 549 fi 550else 551 ac_srcdir_defaulted=no 552fi 553if test ! -r $srcdir/$ac_unique_file; then 554 if test "$ac_srcdir_defaulted" = yes; then 555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 556 else 557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 558 fi 559fi 560srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 561 562# Prefer explicitly selected file to automatically selected ones. 563if test -z "$CONFIG_SITE"; then 564 if test "x$prefix" != xNONE; then 565 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 566 else 567 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 568 fi 569fi 570for ac_site_file in $CONFIG_SITE; do 571 if test -r "$ac_site_file"; then 572 echo "loading site script $ac_site_file" 573 . "$ac_site_file" 574 fi 575done 576 577if test -r "$cache_file"; then 578 echo "loading cache $cache_file" 579 . $cache_file 580else 581 echo "creating cache $cache_file" 582 > $cache_file 583fi 584 585ac_ext=c 586# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 587ac_cpp='$CPP $CPPFLAGS' 588ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 589ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 590cross_compiling=$ac_cv_prog_cc_cross 591 592ac_exeext= 593ac_objext=o 594if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 597 ac_n= ac_c=' 598' ac_t=' ' 599 else 600 ac_n=-n ac_c= ac_t= 601 fi 602else 603 ac_n= ac_c='\c' ac_t= 604fi 605 606 607 608ac_aux_dir= 609for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 610 if test -f $ac_dir/install-sh; then 611 ac_aux_dir=$ac_dir 612 ac_install_sh="$ac_aux_dir/install-sh -c" 613 break 614 elif test -f $ac_dir/install.sh; then 615 ac_aux_dir=$ac_dir 616 ac_install_sh="$ac_aux_dir/install.sh -c" 617 break 618 fi 619done 620if test -z "$ac_aux_dir"; then 621 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 622fi 623ac_config_guess=$ac_aux_dir/config.guess 624ac_config_sub=$ac_aux_dir/config.sub 625ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 626 627 628# Make sure we can run config.sub. 629if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 630else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 631fi 632 633echo $ac_n "checking host system type""... $ac_c" 1>&6 634echo "configure:635: checking host system type" >&5 635 636host_alias=$host 637case "$host_alias" in 638NONE) 639 case $nonopt in 640 NONE) 641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 643 fi ;; 644 *) host_alias=$nonopt ;; 645 esac ;; 646esac 647 648host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 649host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 650host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 651host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 652echo "$ac_t""$host" 1>&6 653 654 655 656 657 658 659 # Check whether --with-gcc or --without-gcc was given. 660if test "${with_gcc+set}" = set; then 661 withval="$with_gcc" 662 : 663fi 664 665 V_CCOPT="-O" 666 V_INCLS="" 667 if test "${srcdir}" != "." ; then 668 V_INCLS="-I\$(srcdir)" 669 fi 670 if test "${CFLAGS+set}" = set; then 671 LBL_CFLAGS="$CFLAGS" 672 fi 673 if test -z "$CC" ; then 674 case "$host_os" in 675 676 bsdi*) 677 # Extract the first word of "shlicc2", so it can be a program name with args. 678set dummy shlicc2; ac_word=$2 679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 680echo "configure:681: checking for $ac_word" >&5 681if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then 682 echo $ac_n "(cached) $ac_c" 1>&6 683else 684 if test -n "$SHLICC2"; then 685 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 686else 687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 688 ac_dummy="$PATH" 689 for ac_dir in $ac_dummy; do 690 test -z "$ac_dir" && ac_dir=. 691 if test -f $ac_dir/$ac_word; then 692 ac_cv_prog_SHLICC2="yes" 693 break 694 fi 695 done 696 IFS="$ac_save_ifs" 697 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 698fi 699fi 700SHLICC2="$ac_cv_prog_SHLICC2" 701if test -n "$SHLICC2"; then 702 echo "$ac_t""$SHLICC2" 1>&6 703else 704 echo "$ac_t""no" 1>&6 705fi 706 707 if test $SHLICC2 = yes ; then 708 CC=shlicc2 709 export CC 710 fi 711 ;; 712 esac 713 fi 714 if test -z "$CC" -a "$with_gcc" = no ; then 715 CC=cc 716 export CC 717 fi 718 # Extract the first word of "gcc", so it can be a program name with args. 719set dummy gcc; ac_word=$2 720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 721echo "configure:722: checking for $ac_word" >&5 722if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 723 echo $ac_n "(cached) $ac_c" 1>&6 724else 725 if test -n "$CC"; then 726 ac_cv_prog_CC="$CC" # Let the user override the test. 727else 728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 729 ac_dummy="$PATH" 730 for ac_dir in $ac_dummy; do 731 test -z "$ac_dir" && ac_dir=. 732 if test -f $ac_dir/$ac_word; then 733 ac_cv_prog_CC="gcc" 734 break 735 fi 736 done 737 IFS="$ac_save_ifs" 738fi 739fi 740CC="$ac_cv_prog_CC" 741if test -n "$CC"; then 742 echo "$ac_t""$CC" 1>&6 743else 744 echo "$ac_t""no" 1>&6 745fi 746 747if test -z "$CC"; then 748 # Extract the first word of "cc", so it can be a program name with args. 749set dummy cc; ac_word=$2 750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 751echo "configure:752: checking for $ac_word" >&5 752if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 753 echo $ac_n "(cached) $ac_c" 1>&6 754else 755 if test -n "$CC"; then 756 ac_cv_prog_CC="$CC" # Let the user override the test. 757else 758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 759 ac_prog_rejected=no 760 ac_dummy="$PATH" 761 for ac_dir in $ac_dummy; do 762 test -z "$ac_dir" && ac_dir=. 763 if test -f $ac_dir/$ac_word; then 764 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 765 ac_prog_rejected=yes 766 continue 767 fi 768 ac_cv_prog_CC="cc" 769 break 770 fi 771 done 772 IFS="$ac_save_ifs" 773if test $ac_prog_rejected = yes; then 774 # We found a bogon in the path, so make sure we never use it. 775 set dummy $ac_cv_prog_CC 776 shift 777 if test $# -gt 0; then 778 # We chose a different compiler from the bogus one. 779 # However, it has the same basename, so the bogon will be chosen 780 # first if we set CC to just the basename; use the full file name. 781 shift 782 set dummy "$ac_dir/$ac_word" "$@" 783 shift 784 ac_cv_prog_CC="$@" 785 fi 786fi 787fi 788fi 789CC="$ac_cv_prog_CC" 790if test -n "$CC"; then 791 echo "$ac_t""$CC" 1>&6 792else 793 echo "$ac_t""no" 1>&6 794fi 795 796 if test -z "$CC"; then 797 case "`uname -s`" in 798 *win32* | *WIN32*) 799 # Extract the first word of "cl", so it can be a program name with args. 800set dummy cl; ac_word=$2 801echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 802echo "configure:803: checking for $ac_word" >&5 803if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 804 echo $ac_n "(cached) $ac_c" 1>&6 805else 806 if test -n "$CC"; then 807 ac_cv_prog_CC="$CC" # Let the user override the test. 808else 809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 810 ac_dummy="$PATH" 811 for ac_dir in $ac_dummy; do 812 test -z "$ac_dir" && ac_dir=. 813 if test -f $ac_dir/$ac_word; then 814 ac_cv_prog_CC="cl" 815 break 816 fi 817 done 818 IFS="$ac_save_ifs" 819fi 820fi 821CC="$ac_cv_prog_CC" 822if test -n "$CC"; then 823 echo "$ac_t""$CC" 1>&6 824else 825 echo "$ac_t""no" 1>&6 826fi 827 ;; 828 esac 829 fi 830 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 831fi 832 833echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 834echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 835 836ac_ext=c 837# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 838ac_cpp='$CPP $CPPFLAGS' 839ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 840ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 841cross_compiling=$ac_cv_prog_cc_cross 842 843cat > conftest.$ac_ext << EOF 844 845#line 846 "configure" 846#include "confdefs.h" 847 848main(){return(0);} 849EOF 850if { (eval echo configure:851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 851 ac_cv_prog_cc_works=yes 852 # If we can't run a trivial program, we are probably using a cross compiler. 853 if (./conftest; exit) 2>/dev/null; then 854 ac_cv_prog_cc_cross=no 855 else 856 ac_cv_prog_cc_cross=yes 857 fi 858else 859 echo "configure: failed program was:" >&5 860 cat conftest.$ac_ext >&5 861 ac_cv_prog_cc_works=no 862fi 863rm -fr conftest* 864ac_ext=c 865# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 866ac_cpp='$CPP $CPPFLAGS' 867ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 868ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 869cross_compiling=$ac_cv_prog_cc_cross 870 871echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 872if test $ac_cv_prog_cc_works = no; then 873 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 874fi 875echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 876echo "configure:877: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 877echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 878cross_compiling=$ac_cv_prog_cc_cross 879 880echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 881echo "configure:882: checking whether we are using GNU C" >&5 882if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 883 echo $ac_n "(cached) $ac_c" 1>&6 884else 885 cat > conftest.c <<EOF 886#ifdef __GNUC__ 887 yes; 888#endif 889EOF 890if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 891 ac_cv_prog_gcc=yes 892else 893 ac_cv_prog_gcc=no 894fi 895fi 896 897echo "$ac_t""$ac_cv_prog_gcc" 1>&6 898 899if test $ac_cv_prog_gcc = yes; then 900 GCC=yes 901else 902 GCC= 903fi 904 905ac_test_CFLAGS="${CFLAGS+set}" 906ac_save_CFLAGS="$CFLAGS" 907CFLAGS= 908echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 909echo "configure:910: checking whether ${CC-cc} accepts -g" >&5 910if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 911 echo $ac_n "(cached) $ac_c" 1>&6 912else 913 echo 'void f(){}' > conftest.c 914if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 915 ac_cv_prog_cc_g=yes 916else 917 ac_cv_prog_cc_g=no 918fi 919rm -f conftest* 920 921fi 922 923echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 924if test "$ac_test_CFLAGS" = set; then 925 CFLAGS="$ac_save_CFLAGS" 926elif test $ac_cv_prog_cc_g = yes; then 927 if test "$GCC" = yes; then 928 CFLAGS="-g -O2" 929 else 930 CFLAGS="-g" 931 fi 932else 933 if test "$GCC" = yes; then 934 CFLAGS="-O2" 935 else 936 CFLAGS= 937 fi 938fi 939 940 if test "$GCC" = yes ; then 941 if test "$SHLICC2" = yes ; then 942 ac_cv_lbl_gcc_vers=2 943 V_CCOPT="-O2" 944 else 945 echo $ac_n "checking gcc version""... $ac_c" 1>&6 946echo "configure:947: checking gcc version" >&5 947 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then 948 echo $ac_n "(cached) $ac_c" 1>&6 949else 950 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 951 sed -e '/^gcc version /!d' \ 952 -e 's/^gcc version //' \ 953 -e 's/ .*//' -e 's/^[^0-9]*//' \ 954 -e 's/\..*//'` 955fi 956 957 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 958 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 959 V_CCOPT="-O2" 960 fi 961 fi 962 else 963 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6 964echo "configure:965: checking that $CC handles ansi prototypes" >&5 965 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then 966 echo $ac_n "(cached) $ac_c" 1>&6 967else 968 cat > conftest.$ac_ext <<EOF 969#line 970 "configure" 970#include "confdefs.h" 971#include <sys/types.h> 972int main() { 973int frob(int, char *) 974; return 0; } 975EOF 976if { (eval echo configure:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 977 rm -rf conftest* 978 ac_cv_lbl_cc_ansi_prototypes=yes 979else 980 echo "configure: failed program was:" >&5 981 cat conftest.$ac_ext >&5 982 rm -rf conftest* 983 ac_cv_lbl_cc_ansi_prototypes=no 984fi 985rm -f conftest* 986fi 987 988 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6 989 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 990 case "$host_os" in 991 992 hpux*) 993 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6 994echo "configure:995: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 995 savedcflags="$CFLAGS" 996 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 997 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then 998 echo $ac_n "(cached) $ac_c" 1>&6 999else 1000 cat > conftest.$ac_ext <<EOF 1001#line 1002 "configure" 1002#include "confdefs.h" 1003#include <sys/types.h> 1004int main() { 1005int frob(int, char *) 1006; return 0; } 1007EOF 1008if { (eval echo configure:1009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1009 rm -rf conftest* 1010 ac_cv_lbl_cc_hpux_cc_aa=yes 1011else 1012 echo "configure: failed program was:" >&5 1013 cat conftest.$ac_ext >&5 1014 rm -rf conftest* 1015 ac_cv_lbl_cc_hpux_cc_aa=no 1016fi 1017rm -f conftest* 1018fi 1019 1020 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6 1021 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 1022 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 1023 fi 1024 CFLAGS="$savedcflags" 1025 V_CCOPT="-Aa $V_CCOPT" 1026 cat >> confdefs.h <<\EOF 1027#define _HPUX_SOURCE 1 1028EOF 1029 1030 ;; 1031 1032 *) 1033 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 1034 ;; 1035 esac 1036 fi 1037 V_INCLS="$V_INCLS -I/usr/local/include" 1038 LDFLAGS="$LDFLAGS -L/usr/local/lib" 1039 1040 case "$host_os" in 1041 1042 irix*) 1043 V_CCOPT="$V_CCOPT -xansi -signed -O" 1044 ;; 1045 1046 osf*) 1047 V_CCOPT="$V_CCOPT -std1 -O" 1048 ;; 1049 1050 ultrix*) 1051 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6 1052echo "configure:1053: checking that Ultrix $CC hacks const in prototypes" >&5 1053 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then 1054 echo $ac_n "(cached) $ac_c" 1>&6 1055else 1056 cat > conftest.$ac_ext <<EOF 1057#line 1058 "configure" 1058#include "confdefs.h" 1059#include <sys/types.h> 1060int main() { 1061struct a { int b; }; 1062 void c(const struct a *) 1063; return 0; } 1064EOF 1065if { (eval echo configure:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1066 rm -rf conftest* 1067 ac_cv_lbl_cc_const_proto=yes 1068else 1069 echo "configure: failed program was:" >&5 1070 cat conftest.$ac_ext >&5 1071 rm -rf conftest* 1072 ac_cv_lbl_cc_const_proto=no 1073fi 1074rm -f conftest* 1075fi 1076 1077 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6 1078 if test $ac_cv_lbl_cc_const_proto = no ; then 1079 cat >> confdefs.h <<\EOF 1080#define const 1081EOF 1082 1083 fi 1084 ;; 1085 esac 1086 fi 1087 1088echo $ac_n "checking for inline""... $ac_c" 1>&6 1089echo "configure:1090: checking for inline" >&5 1090 if eval "test \"`echo '$''{'ac_cv_lbl_inline'+set}'`\" = set"; then 1091 echo $ac_n "(cached) $ac_c" 1>&6 1092else 1093 1094 ac_cv_lbl_inline="" 1095 ac_lbl_cc_inline=no 1096 for ac_lbl_inline in inline __inline__ __inline 1097 do 1098 cat > conftest.$ac_ext <<EOF 1099#line 1100 "configure" 1100#include "confdefs.h" 1101#define inline $ac_lbl_inline 1102 static inline struct iltest *foo(void); 1103 struct iltest { 1104 int iltest1; 1105 int iltest2; 1106 }; 1107 1108 static inline struct iltest * 1109 foo() 1110 { 1111 static struct iltest xxx; 1112 1113 return &xxx; 1114 } 1115int main() { 1116 1117; return 0; } 1118EOF 1119if { (eval echo configure:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1120 rm -rf conftest* 1121 ac_lbl_cc_inline=yes 1122else 1123 echo "configure: failed program was:" >&5 1124 cat conftest.$ac_ext >&5 1125fi 1126rm -f conftest* 1127 if test "$ac_lbl_cc_inline" = yes ; then 1128 break; 1129 fi 1130 done 1131 if test "$ac_lbl_cc_inline" = yes ; then 1132 ac_cv_lbl_inline=$ac_lbl_inline 1133 fi 1134fi 1135 1136 if test ! -z "$ac_cv_lbl_inline" ; then 1137 echo "$ac_t""$ac_cv_lbl_inline" 1>&6 1138 else 1139 echo "$ac_t""no" 1>&6 1140 fi 1141 cat >> confdefs.h <<EOF 1142#define inline $ac_cv_lbl_inline 1143EOF 1144 1145 1146echo $ac_n "checking for __attribute__""... $ac_c" 1>&6 1147echo "configure:1148: checking for __attribute__" >&5 1148if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then 1149 echo $ac_n "(cached) $ac_c" 1>&6 1150else 1151 1152cat > conftest.$ac_ext <<EOF 1153#line 1154 "configure" 1154#include "confdefs.h" 1155 1156#include <stdlib.h> 1157 1158int main() { 1159 1160static void foo(void) __attribute__ ((noreturn)); 1161 1162static void 1163foo(void) 1164{ 1165 exit(1); 1166} 1167 1168; return 0; } 1169EOF 1170if { (eval echo configure:1171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1171 rm -rf conftest* 1172 ac_cv___attribute__=yes 1173else 1174 echo "configure: failed program was:" >&5 1175 cat conftest.$ac_ext >&5 1176 rm -rf conftest* 1177 ac_cv___attribute__=no 1178fi 1179rm -f conftest* 1180fi 1181 1182if test "$ac_cv___attribute__" = "yes"; then 1183 cat >> confdefs.h <<\EOF 1184#define HAVE___ATTRIBUTE__ 1 1185EOF 1186 1187fi 1188echo "$ac_t""$ac_cv___attribute__" 1>&6 1189 1190 1191echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1192echo "configure:1193: checking how to run the C preprocessor" >&5 1193# On Suns, sometimes $CPP names a directory. 1194if test -n "$CPP" && test -d "$CPP"; then 1195 CPP= 1196fi 1197if test -z "$CPP"; then 1198if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1199 echo $ac_n "(cached) $ac_c" 1>&6 1200else 1201 # This must be in double quotes, not single quotes, because CPP may get 1202 # substituted into the Makefile and "${CC-cc}" will confuse make. 1203 CPP="${CC-cc} -E" 1204 # On the NeXT, cc -E runs the code through the compiler's parser, 1205 # not just through cpp. 1206 cat > conftest.$ac_ext <<EOF 1207#line 1208 "configure" 1208#include "confdefs.h" 1209#include <assert.h> 1210Syntax Error 1211EOF 1212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1213{ (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1215if test -z "$ac_err"; then 1216 : 1217else 1218 echo "$ac_err" >&5 1219 echo "configure: failed program was:" >&5 1220 cat conftest.$ac_ext >&5 1221 rm -rf conftest* 1222 CPP="${CC-cc} -E -traditional-cpp" 1223 cat > conftest.$ac_ext <<EOF 1224#line 1225 "configure" 1225#include "confdefs.h" 1226#include <assert.h> 1227Syntax Error 1228EOF 1229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1230{ (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1232if test -z "$ac_err"; then 1233 : 1234else 1235 echo "$ac_err" >&5 1236 echo "configure: failed program was:" >&5 1237 cat conftest.$ac_ext >&5 1238 rm -rf conftest* 1239 CPP="${CC-cc} -nologo -E" 1240 cat > conftest.$ac_ext <<EOF 1241#line 1242 "configure" 1242#include "confdefs.h" 1243#include <assert.h> 1244Syntax Error 1245EOF 1246ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1247{ (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1248ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1249if test -z "$ac_err"; then 1250 : 1251else 1252 echo "$ac_err" >&5 1253 echo "configure: failed program was:" >&5 1254 cat conftest.$ac_ext >&5 1255 rm -rf conftest* 1256 CPP=/lib/cpp 1257fi 1258rm -f conftest* 1259fi 1260rm -f conftest* 1261fi 1262rm -f conftest* 1263 ac_cv_prog_CPP="$CPP" 1264fi 1265 CPP="$ac_cv_prog_CPP" 1266else 1267 ac_cv_prog_CPP="$CPP" 1268fi 1269echo "$ac_t""$CPP" 1>&6 1270 1271for ac_hdr in fcntl.h rpc/rpcent.h netinet/if_ether.h 1272do 1273ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1274echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1275echo "configure:1276: checking for $ac_hdr" >&5 1276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1277 echo $ac_n "(cached) $ac_c" 1>&6 1278else 1279 cat > conftest.$ac_ext <<EOF 1280#line 1281 "configure" 1281#include "confdefs.h" 1282#include <$ac_hdr> 1283EOF 1284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1285{ (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1287if test -z "$ac_err"; then 1288 rm -rf conftest* 1289 eval "ac_cv_header_$ac_safe=yes" 1290else 1291 echo "$ac_err" >&5 1292 echo "configure: failed program was:" >&5 1293 cat conftest.$ac_ext >&5 1294 rm -rf conftest* 1295 eval "ac_cv_header_$ac_safe=no" 1296fi 1297rm -f conftest* 1298fi 1299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1300 echo "$ac_t""yes" 1>&6 1301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1302 cat >> confdefs.h <<EOF 1303#define $ac_tr_hdr 1 1304EOF 1305 1306else 1307 echo "$ac_t""no" 1>&6 1308fi 1309done 1310 1311echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1312echo "configure:1313: checking whether time.h and sys/time.h may both be included" >&5 1313if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1314 echo $ac_n "(cached) $ac_c" 1>&6 1315else 1316 cat > conftest.$ac_ext <<EOF 1317#line 1318 "configure" 1318#include "confdefs.h" 1319#include <sys/types.h> 1320#include <sys/time.h> 1321#include <time.h> 1322int main() { 1323struct tm *tp; 1324; return 0; } 1325EOF 1326if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1327 rm -rf conftest* 1328 ac_cv_header_time=yes 1329else 1330 echo "configure: failed program was:" >&5 1331 cat conftest.$ac_ext >&5 1332 rm -rf conftest* 1333 ac_cv_header_time=no 1334fi 1335rm -f conftest* 1336fi 1337 1338echo "$ac_t""$ac_cv_header_time" 1>&6 1339if test $ac_cv_header_time = yes; then 1340 cat >> confdefs.h <<\EOF 1341#define TIME_WITH_SYS_TIME 1 1342EOF 1343 1344fi 1345 1346 1347case "$host_os" in 1348 1349linux*) 1350 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6 1351echo "configure:1352: checking Linux kernel version" >&5 1352 if test "$cross_compiling" = yes; then 1353 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1354 echo $ac_n "(cached) $ac_c" 1>&6 1355else 1356 ac_cv_linux_vers=unknown 1357fi 1358 1359 else 1360 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1361 echo $ac_n "(cached) $ac_c" 1>&6 1362else 1363 ac_cv_linux_vers=`uname -r 2>&1 | \ 1364 sed -n -e '$s/.* //' -e '$s/\..*//p'` 1365fi 1366 1367 fi 1368 echo "$ac_t""$ac_cv_linux_vers" 1>&6 1369 if test $ac_cv_linux_vers = unknown ; then 1370 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; } 1371 fi 1372 if test $ac_cv_linux_vers -lt 2 ; then 1373 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; } 1374 fi 1375 ;; 1376 1377*) 1378 ;; 1379esac 1380 1381 1382for ac_hdr in smi.h 1383do 1384ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1385echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1386echo "configure:1387: checking for $ac_hdr" >&5 1387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1388 echo $ac_n "(cached) $ac_c" 1>&6 1389else 1390 cat > conftest.$ac_ext <<EOF 1391#line 1392 "configure" 1392#include "confdefs.h" 1393#include <$ac_hdr> 1394EOF 1395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1396{ (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1398if test -z "$ac_err"; then 1399 rm -rf conftest* 1400 eval "ac_cv_header_$ac_safe=yes" 1401else 1402 echo "$ac_err" >&5 1403 echo "configure: failed program was:" >&5 1404 cat conftest.$ac_ext >&5 1405 rm -rf conftest* 1406 eval "ac_cv_header_$ac_safe=no" 1407fi 1408rm -f conftest* 1409fi 1410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1411 echo "$ac_t""yes" 1>&6 1412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1413 cat >> confdefs.h <<EOF 1414#define $ac_tr_hdr 1 1415EOF 1416 1417else 1418 echo "$ac_t""no" 1>&6 1419fi 1420done 1421 1422echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6 1423echo "configure:1424: checking for smiInit in -lsmi" >&5 1424ac_lib_var=`echo smi'_'smiInit | sed 'y%./+-%__p_%'` 1425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1426 echo $ac_n "(cached) $ac_c" 1>&6 1427else 1428 ac_save_LIBS="$LIBS" 1429LIBS="-lsmi $LIBS" 1430cat > conftest.$ac_ext <<EOF 1431#line 1432 "configure" 1432#include "confdefs.h" 1433/* Override any gcc2 internal prototype to avoid an error. */ 1434/* We use char because int might match the return type of a gcc2 1435 builtin and then its argument prototype would still apply. */ 1436char smiInit(); 1437 1438int main() { 1439smiInit() 1440; return 0; } 1441EOF 1442if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1443 rm -rf conftest* 1444 eval "ac_cv_lib_$ac_lib_var=yes" 1445else 1446 echo "configure: failed program was:" >&5 1447 cat conftest.$ac_ext >&5 1448 rm -rf conftest* 1449 eval "ac_cv_lib_$ac_lib_var=no" 1450fi 1451rm -f conftest* 1452LIBS="$ac_save_LIBS" 1453 1454fi 1455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1456 echo "$ac_t""yes" 1>&6 1457 ac_tr_lib=HAVE_LIB`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1459 cat >> confdefs.h <<EOF 1460#define $ac_tr_lib 1 1461EOF 1462 1463 LIBS="-lsmi $LIBS" 1464 1465else 1466 echo "$ac_t""no" 1>&6 1467fi 1468 1469if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 1470then 1471echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6 1472echo "configure:1473: checking whether to enable libsmi" >&5 1473 if test "$cross_compiling" = yes; then 1474 echo "$ac_t""not when cross-compiling" 1>&6 1475 libsmi=no 1476 1477else 1478 cat > conftest.$ac_ext <<EOF 1479#line 1480 "configure" 1480#include "confdefs.h" 1481 /* libsmi available check */ 1482#include <smi.h> 1483main() 1484{ 1485 int current, revision, age, n; 1486 const int required = 2; 1487 if (smiInit("")) 1488 exit(1); 1489 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 1490 exit(2); 1491 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 1492 if (n != 3) 1493 exit(3); 1494 if (required < current - age || required > current) 1495 exit(4); 1496 exit(0); 1497} 1498 1499EOF 1500if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1501then 1502 echo "$ac_t""yes" 1>&6 1503 cat >> confdefs.h <<\EOF 1504#define LIBSMI 1 1505EOF 1506 1507 libsmi=yes 1508else 1509 echo "configure: failed program was:" >&5 1510 cat conftest.$ac_ext >&5 1511 rm -fr conftest* 1512 case $? in 1513 1) echo "$ac_t""no - smiInit failed" 1>&6 ;; 1514 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;; 1515 3) echo "$ac_t""no - can't determine library version" 1>&6 ;; 1516 4) echo "$ac_t""no - too old" 1>&6 ;; 1517 *) echo "$ac_t""no" 1>&6 ;; 1518 esac 1519 libsmi=no 1520fi 1521rm -fr conftest* 1522fi 1523 1524fi 1525 1526echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6 1527echo "configure:1528: checking whether to enable the possibly-buggy SMB printer" >&5 1528# Check whether --enable-smb or --disable-smb was given. 1529if test "${enable_smb+set}" = set; then 1530 enableval="$enable_smb" 1531 : 1532else 1533 enableval=yes 1534fi 1535 1536case "$enableval" in 1537yes) echo "$ac_t""yes" 1>&6 1538 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2 1539 cat >> confdefs.h <<\EOF 1540#define TCPDUMP_DO_SMB 1 1541EOF 1542 1543 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 1544 ;; 1545*) echo "$ac_t""no" 1>&6 1546 ;; 1547esac 1548 1549CFLAGS="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len" 1550echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 1551echo "configure:1552: checking whether to enable ipv6" >&5 1552# Check whether --enable-ipv6 or --disable-ipv6 was given. 1553if test "${enable_ipv6+set}" = set; then 1554 enableval="$enable_ipv6" 1555 case "$enableval" in 1556yes) echo "$ac_t""yes" 1>&6 1557 LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 1558 cat >> confdefs.h <<\EOF 1559#define INET6 1 1560EOF 1561 1562 ipv6=yes 1563 ;; 1564*) 1565 echo "$ac_t""no" 1>&6 1566 ipv6=no 1567 ;; 1568 esac 1569else 1570 if test "$cross_compiling" = yes; then 1571 echo "$ac_t""no" 1>&6 1572 ipv6=no 1573 1574else 1575 cat > conftest.$ac_ext <<EOF 1576#line 1577 "configure" 1577#include "confdefs.h" 1578 /* AF_INET6 available check */ 1579#include <sys/types.h> 1580#include <sys/socket.h> 1581main() 1582{ 1583 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 1584 exit(1); 1585 else 1586 exit(0); 1587} 1588 1589EOF 1590if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1591then 1592 echo "$ac_t""yes" 1>&6 1593 LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 1594 cat >> confdefs.h <<\EOF 1595#define INET6 1 1596EOF 1597 1598 ipv6=yes 1599else 1600 echo "configure: failed program was:" >&5 1601 cat conftest.$ac_ext >&5 1602 rm -fr conftest* 1603 echo "$ac_t""no" 1>&6 1604 ipv6=no 1605fi 1606rm -fr conftest* 1607fi 1608 1609fi 1610 1611 1612ipv6type=unknown 1613ipv6lib=none 1614ipv6trylibc=no 1615 1616if test "$ipv6" = "yes"; then 1617 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 1618echo "configure:1619: checking ipv6 stack type" >&5 1619 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 1620 case $i in 1621 inria) 1622 cat > conftest.$ac_ext <<EOF 1623#line 1624 "configure" 1624#include "confdefs.h" 1625dnl 1626#include <netinet/in.h> 1627#ifdef IPV6_INRIA_VERSION 1628yes 1629#endif 1630EOF 1631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1632 egrep "yes" >/dev/null 2>&1; then 1633 rm -rf conftest* 1634 ipv6type=$i; 1635 CFLAGS="-DINET6 $CFLAGS" 1636fi 1637rm -f conftest* 1638 1639 ;; 1640 kame) 1641 cat > conftest.$ac_ext <<EOF 1642#line 1643 "configure" 1643#include "confdefs.h" 1644dnl 1645#include <netinet/in.h> 1646#ifdef __KAME__ 1647yes 1648#endif 1649EOF 1650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1651 egrep "yes" >/dev/null 2>&1; then 1652 rm -rf conftest* 1653 ipv6type=$i; 1654 ipv6lib=inet6; 1655 ipv6libdir=/usr/local/v6/lib; 1656 ipv6trylibc=yes; 1657 CFLAGS="-DINET6 $CFLAGS" 1658fi 1659rm -f conftest* 1660 1661 ;; 1662 linux-glibc) 1663 cat > conftest.$ac_ext <<EOF 1664#line 1665 "configure" 1665#include "confdefs.h" 1666dnl 1667#include <features.h> 1668#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 1669yes 1670#endif 1671EOF 1672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1673 egrep "yes" >/dev/null 2>&1; then 1674 rm -rf conftest* 1675 ipv6type=$i; 1676 CFLAGS="-DINET6 $CFLAGS" 1677fi 1678rm -f conftest* 1679 1680 ;; 1681 linux-libinet6) 1682 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 1683 ipv6type=$i 1684 ipv6lib=inet6 1685 ipv6libdir=/usr/inet6/lib 1686 ipv6trylibc=yes; 1687 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 1688 fi 1689 ;; 1690 toshiba) 1691 cat > conftest.$ac_ext <<EOF 1692#line 1693 "configure" 1693#include "confdefs.h" 1694dnl 1695#include <sys/param.h> 1696#ifdef _TOSHIBA_INET6 1697yes 1698#endif 1699EOF 1700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1701 egrep "yes" >/dev/null 2>&1; then 1702 rm -rf conftest* 1703 ipv6type=$i; 1704 ipv6lib=inet6; 1705 ipv6libdir=/usr/local/v6/lib; 1706 CFLAGS="-DINET6 $CFLAGS" 1707fi 1708rm -f conftest* 1709 1710 ;; 1711 v6d) 1712 cat > conftest.$ac_ext <<EOF 1713#line 1714 "configure" 1714#include "confdefs.h" 1715dnl 1716#include </usr/local/v6/include/sys/v6config.h> 1717#ifdef __V6D__ 1718yes 1719#endif 1720EOF 1721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1722 egrep "yes" >/dev/null 2>&1; then 1723 rm -rf conftest* 1724 ipv6type=$i; 1725 ipv6lib=v6; 1726 ipv6libdir=/usr/local/v6/lib; 1727 CFLAGS="-I/usr/local/v6/include $CFLAGS" 1728fi 1729rm -f conftest* 1730 1731 ;; 1732 zeta) 1733 cat > conftest.$ac_ext <<EOF 1734#line 1735 "configure" 1735#include "confdefs.h" 1736dnl 1737#include <sys/param.h> 1738#ifdef _ZETA_MINAMI_INET6 1739yes 1740#endif 1741EOF 1742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1743 egrep "yes" >/dev/null 2>&1; then 1744 rm -rf conftest* 1745 ipv6type=$i; 1746 ipv6lib=inet6; 1747 ipv6libdir=/usr/local/v6/lib; 1748 CFLAGS="-DINET6 $CFLAGS" 1749fi 1750rm -f conftest* 1751 1752 ;; 1753 esac 1754 if test "$ipv6type" != "unknown"; then 1755 break 1756 fi 1757 done 1758 echo "$ac_t""$ipv6type" 1>&6 1759fi 1760 1761if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 1762 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 1763 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 1764 echo "You have $ipv6lib library, using it" 1765 else 1766 if test "$ipv6trylibc" = "yes"; then 1767 echo "You do not have $ipv6lib library, using libc" 1768 else 1769 echo 'Fatal: no $ipv6lib library found. cannot continue.' 1770 echo "You need to fetch lib$ipv6lib.a from appropriate" 1771 echo 'ipv6 kit and compile beforehand.' 1772 exit 1 1773 fi 1774 fi 1775fi 1776 1777 1778if test "$ipv6" = "yes"; then 1779 1780echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6 1781echo "configure:1782: checking for library containing getaddrinfo" >&5 1782if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then 1783 echo $ac_n "(cached) $ac_c" 1>&6 1784else 1785 ac_func_search_save_LIBS="$LIBS" 1786ac_cv_search_getaddrinfo="no" 1787cat > conftest.$ac_ext <<EOF 1788#line 1789 "configure" 1789#include "confdefs.h" 1790/* Override any gcc2 internal prototype to avoid an error. */ 1791/* We use char because int might match the return type of a gcc2 1792 builtin and then its argument prototype would still apply. */ 1793char getaddrinfo(); 1794 1795int main() { 1796getaddrinfo() 1797; return 0; } 1798EOF 1799if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1800 rm -rf conftest* 1801 ac_cv_search_getaddrinfo="none required" 1802else 1803 echo "configure: failed program was:" >&5 1804 cat conftest.$ac_ext >&5 1805fi 1806rm -f conftest* 1807test "$ac_cv_search_getaddrinfo" = "no" && for i in socket; do 1808LIBS="-l$i $ac_func_search_save_LIBS" 1809cat > conftest.$ac_ext <<EOF 1810#line 1811 "configure" 1811#include "confdefs.h" 1812/* Override any gcc2 internal prototype to avoid an error. */ 1813/* We use char because int might match the return type of a gcc2 1814 builtin and then its argument prototype would still apply. */ 1815char getaddrinfo(); 1816 1817int main() { 1818getaddrinfo() 1819; return 0; } 1820EOF 1821if { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1822 rm -rf conftest* 1823 ac_cv_search_getaddrinfo="-l$i" 1824break 1825else 1826 echo "configure: failed program was:" >&5 1827 cat conftest.$ac_ext >&5 1828fi 1829rm -f conftest* 1830done 1831LIBS="$ac_func_search_save_LIBS" 1832fi 1833 1834echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6 1835if test "$ac_cv_search_getaddrinfo" != "no"; then 1836 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 1837 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 1838echo "configure:1839: checking getaddrinfo bug" >&5 1839 if test "$cross_compiling" = yes; then 1840 echo "$ac_t""buggy" 1>&6 1841 buggygetaddrinfo=yes 1842else 1843 cat > conftest.$ac_ext <<EOF 1844#line 1845 "configure" 1845#include "confdefs.h" 1846 1847#include <sys/types.h> 1848#include <netdb.h> 1849#include <string.h> 1850#include <sys/socket.h> 1851#include <netinet/in.h> 1852 1853main() 1854{ 1855 int passive, gaierr, inet4 = 0, inet6 = 0; 1856 struct addrinfo hints, *ai, *aitop; 1857 char straddr[INET6_ADDRSTRLEN], strport[16]; 1858 1859 for (passive = 0; passive <= 1; passive++) { 1860 memset(&hints, 0, sizeof(hints)); 1861 hints.ai_family = AF_UNSPEC; 1862 hints.ai_flags = passive ? AI_PASSIVE : 0; 1863 hints.ai_socktype = SOCK_STREAM; 1864 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 1865 (void)gai_strerror(gaierr); 1866 goto bad; 1867 } 1868 for (ai = aitop; ai; ai = ai->ai_next) { 1869 if (ai->ai_addr == NULL || 1870 ai->ai_addrlen == 0 || 1871 getnameinfo(ai->ai_addr, ai->ai_addrlen, 1872 straddr, sizeof(straddr), strport, sizeof(strport), 1873 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 1874 goto bad; 1875 } 1876 switch (ai->ai_family) { 1877 case AF_INET: 1878 if (strcmp(strport, "54321") != 0) { 1879 goto bad; 1880 } 1881 if (passive) { 1882 if (strcmp(straddr, "0.0.0.0") != 0) { 1883 goto bad; 1884 } 1885 } else { 1886 if (strcmp(straddr, "127.0.0.1") != 0) { 1887 goto bad; 1888 } 1889 } 1890 inet4++; 1891 break; 1892 case AF_INET6: 1893 if (strcmp(strport, "54321") != 0) { 1894 goto bad; 1895 } 1896 if (passive) { 1897 if (strcmp(straddr, "::") != 0) { 1898 goto bad; 1899 } 1900 } else { 1901 if (strcmp(straddr, "::1") != 0) { 1902 goto bad; 1903 } 1904 } 1905 inet6++; 1906 break; 1907 case AF_UNSPEC: 1908 goto bad; 1909 break; 1910#ifdef AF_UNIX 1911 case AF_UNIX: 1912#else 1913#ifdef AF_LOCAL 1914 case AF_LOCAL: 1915#endif 1916#endif 1917 default: 1918 /* another family support? */ 1919 break; 1920 } 1921 } 1922 } 1923 1924 /* supported family should be 2, unsupported family should be 0 */ 1925 if (!(inet4 == 0 || inet4 == 2)) 1926 goto bad; 1927 if (!(inet6 == 0 || inet6 == 2)) 1928 goto bad; 1929 1930 if (aitop) 1931 freeaddrinfo(aitop); 1932 exit(0); 1933 1934 bad: 1935 if (aitop) 1936 freeaddrinfo(aitop); 1937 exit(1); 1938} 1939 1940EOF 1941if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1942then 1943 echo "$ac_t""good" 1>&6 1944 buggygetaddrinfo=no 1945else 1946 echo "configure: failed program was:" >&5 1947 cat conftest.$ac_ext >&5 1948 rm -fr conftest* 1949 echo "$ac_t""buggy" 1>&6 1950 buggygetaddrinfo=yes 1951fi 1952rm -fr conftest* 1953fi 1954 1955else : 1956 buggygetaddrinfo=yes 1957fi 1958 1959 if test "$buggygetaddrinfo" = "yes"; then 1960 if test "$ipv6type" != "linux"; then 1961 echo 'Fatal: You must get working getaddrinfo() function.' 1962 echo ' or you can specify "--disable-ipv6"'. 1963 exit 1 1964 else 1965 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 1966 echo ' Better upgreade your system library to newest version' 1967 echo ' of GNU C library (aka glibc).' 1968 fi 1969 fi 1970 for ac_func in getaddrinfo getnameinfo 1971do 1972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1973echo "configure:1974: checking for $ac_func" >&5 1974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1975 echo $ac_n "(cached) $ac_c" 1>&6 1976else 1977 cat > conftest.$ac_ext <<EOF 1978#line 1979 "configure" 1979#include "confdefs.h" 1980/* System header to define __stub macros and hopefully few prototypes, 1981 which can conflict with char $ac_func(); below. */ 1982#include <assert.h> 1983/* Override any gcc2 internal prototype to avoid an error. */ 1984/* We use char because int might match the return type of a gcc2 1985 builtin and then its argument prototype would still apply. */ 1986char $ac_func(); 1987 1988int main() { 1989 1990/* The GNU C library defines this for functions which it implements 1991 to always fail with ENOSYS. Some functions are actually named 1992 something starting with __ and the normal name is an alias. */ 1993#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1994choke me 1995#else 1996$ac_func(); 1997#endif 1998 1999; return 0; } 2000EOF 2001if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2002 rm -rf conftest* 2003 eval "ac_cv_func_$ac_func=yes" 2004else 2005 echo "configure: failed program was:" >&5 2006 cat conftest.$ac_ext >&5 2007 rm -rf conftest* 2008 eval "ac_cv_func_$ac_func=no" 2009fi 2010rm -f conftest* 2011fi 2012 2013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2014 echo "$ac_t""yes" 1>&6 2015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2016 cat >> confdefs.h <<EOF 2017#define $ac_tr_func 1 2018EOF 2019 2020else 2021 echo "$ac_t""no" 1>&6 2022LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2023fi 2024done 2025 2026 2027fi 2028echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6 2029echo "configure:2030: checking for inet_ntop" >&5 2030cat > conftest.$ac_ext <<EOF 2031#line 2032 "configure" 2032#include "confdefs.h" 2033#include <sys/types.h> 2034#include <sys/socket.h> 2035#include <netinet/in.h> 2036#include <arpa/inet.h> 2037int main() { 2038char src[4], dst[128]; 2039inet_ntop(AF_INET, src, dst, sizeof(dst)); 2040; return 0; } 2041EOF 2042if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2043 rm -rf conftest* 2044 echo "$ac_t""yes" 1>&6 2045else 2046 echo "configure: failed program was:" >&5 2047 cat conftest.$ac_ext >&5 2048 rm -rf conftest* 2049 echo "$ac_t""no" 1>&6 2050 for ac_func in inet_ntop 2051do 2052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2053echo "configure:2054: checking for $ac_func" >&5 2054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2055 echo $ac_n "(cached) $ac_c" 1>&6 2056else 2057 cat > conftest.$ac_ext <<EOF 2058#line 2059 "configure" 2059#include "confdefs.h" 2060/* System header to define __stub macros and hopefully few prototypes, 2061 which can conflict with char $ac_func(); below. */ 2062#include <assert.h> 2063/* Override any gcc2 internal prototype to avoid an error. */ 2064/* We use char because int might match the return type of a gcc2 2065 builtin and then its argument prototype would still apply. */ 2066char $ac_func(); 2067 2068int main() { 2069 2070/* The GNU C library defines this for functions which it implements 2071 to always fail with ENOSYS. Some functions are actually named 2072 something starting with __ and the normal name is an alias. */ 2073#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2074choke me 2075#else 2076$ac_func(); 2077#endif 2078 2079; return 0; } 2080EOF 2081if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2082 rm -rf conftest* 2083 eval "ac_cv_func_$ac_func=yes" 2084else 2085 echo "configure: failed program was:" >&5 2086 cat conftest.$ac_ext >&5 2087 rm -rf conftest* 2088 eval "ac_cv_func_$ac_func=no" 2089fi 2090rm -f conftest* 2091fi 2092 2093if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2094 echo "$ac_t""yes" 1>&6 2095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2096 cat >> confdefs.h <<EOF 2097#define $ac_tr_func 1 2098EOF 2099 2100else 2101 echo "$ac_t""no" 1>&6 2102LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2103fi 2104done 2105 2106 2107fi 2108rm -f conftest* 2109echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 2110echo "configure:2111: checking for inet_pton" >&5 2111cat > conftest.$ac_ext <<EOF 2112#line 2113 "configure" 2113#include "confdefs.h" 2114#include <sys/types.h> 2115#include <sys/socket.h> 2116#include <netinet/in.h> 2117#include <arpa/inet.h> 2118int main() { 2119char src[128], dst[4]; 2120inet_pton(AF_INET, src, dst); 2121; return 0; } 2122EOF 2123if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2124 rm -rf conftest* 2125 echo "$ac_t""yes" 1>&6 2126else 2127 echo "configure: failed program was:" >&5 2128 cat conftest.$ac_ext >&5 2129 rm -rf conftest* 2130 echo "$ac_t""no" 1>&6 2131 for ac_func in inet_pton 2132do 2133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2134echo "configure:2135: checking for $ac_func" >&5 2135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137else 2138 cat > conftest.$ac_ext <<EOF 2139#line 2140 "configure" 2140#include "confdefs.h" 2141/* System header to define __stub macros and hopefully few prototypes, 2142 which can conflict with char $ac_func(); below. */ 2143#include <assert.h> 2144/* Override any gcc2 internal prototype to avoid an error. */ 2145/* We use char because int might match the return type of a gcc2 2146 builtin and then its argument prototype would still apply. */ 2147char $ac_func(); 2148 2149int main() { 2150 2151/* The GNU C library defines this for functions which it implements 2152 to always fail with ENOSYS. Some functions are actually named 2153 something starting with __ and the normal name is an alias. */ 2154#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2155choke me 2156#else 2157$ac_func(); 2158#endif 2159 2160; return 0; } 2161EOF 2162if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2163 rm -rf conftest* 2164 eval "ac_cv_func_$ac_func=yes" 2165else 2166 echo "configure: failed program was:" >&5 2167 cat conftest.$ac_ext >&5 2168 rm -rf conftest* 2169 eval "ac_cv_func_$ac_func=no" 2170fi 2171rm -f conftest* 2172fi 2173 2174if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2175 echo "$ac_t""yes" 1>&6 2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2177 cat >> confdefs.h <<EOF 2178#define $ac_tr_func 1 2179EOF 2180 2181else 2182 echo "$ac_t""no" 1>&6 2183LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2184fi 2185done 2186 2187 2188fi 2189rm -f conftest* 2190echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 2191echo "configure:2192: checking for inet_aton" >&5 2192cat > conftest.$ac_ext <<EOF 2193#line 2194 "configure" 2194#include "confdefs.h" 2195#include <sys/types.h> 2196#include <netinet/in.h> 2197#include <arpa/inet.h> 2198int main() { 2199char src[128]; 2200struct in_addr dst; 2201inet_aton(src, &dst); 2202; return 0; } 2203EOF 2204if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2205 rm -rf conftest* 2206 echo "$ac_t""yes" 1>&6 2207else 2208 echo "configure: failed program was:" >&5 2209 cat conftest.$ac_ext >&5 2210 rm -rf conftest* 2211 echo "$ac_t""no" 1>&6 2212 for ac_func in inet_aton 2213do 2214echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2215echo "configure:2216: checking for $ac_func" >&5 2216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2217 echo $ac_n "(cached) $ac_c" 1>&6 2218else 2219 cat > conftest.$ac_ext <<EOF 2220#line 2221 "configure" 2221#include "confdefs.h" 2222/* System header to define __stub macros and hopefully few prototypes, 2223 which can conflict with char $ac_func(); below. */ 2224#include <assert.h> 2225/* Override any gcc2 internal prototype to avoid an error. */ 2226/* We use char because int might match the return type of a gcc2 2227 builtin and then its argument prototype would still apply. */ 2228char $ac_func(); 2229 2230int main() { 2231 2232/* The GNU C library defines this for functions which it implements 2233 to always fail with ENOSYS. Some functions are actually named 2234 something starting with __ and the normal name is an alias. */ 2235#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2236choke me 2237#else 2238$ac_func(); 2239#endif 2240 2241; return 0; } 2242EOF 2243if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2244 rm -rf conftest* 2245 eval "ac_cv_func_$ac_func=yes" 2246else 2247 echo "configure: failed program was:" >&5 2248 cat conftest.$ac_ext >&5 2249 rm -rf conftest* 2250 eval "ac_cv_func_$ac_func=no" 2251fi 2252rm -f conftest* 2253fi 2254 2255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2256 echo "$ac_t""yes" 1>&6 2257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2258 cat >> confdefs.h <<EOF 2259#define $ac_tr_func 1 2260EOF 2261 2262else 2263 echo "$ac_t""no" 1>&6 2264LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2265fi 2266done 2267 2268 2269fi 2270rm -f conftest* 2271 2272 2273 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 2274echo "configure:2275: checking if sockaddr struct has sa_len member" >&5 2275 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then 2276 echo $ac_n "(cached) $ac_c" 1>&6 2277else 2278 cat > conftest.$ac_ext <<EOF 2279#line 2280 "configure" 2280#include "confdefs.h" 2281 2282# include <sys/types.h> 2283# include <sys/socket.h> 2284int main() { 2285u_int i = sizeof(((struct sockaddr *)0)->sa_len) 2286; return 0; } 2287EOF 2288if { (eval echo configure:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2289 rm -rf conftest* 2290 ac_cv_sockaddr_has_sa_len=yes 2291else 2292 echo "configure: failed program was:" >&5 2293 cat conftest.$ac_ext >&5 2294 rm -rf conftest* 2295 ac_cv_sockaddr_has_sa_len=no 2296fi 2297rm -f conftest* 2298fi 2299 2300 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6 2301 if test $ac_cv_sockaddr_has_sa_len = yes ; then 2302 cat >> confdefs.h <<\EOF 2303#define HAVE_SOCKADDR_SA_LEN 1 2304EOF 2305 2306 fi 2307 2308if test "$ac_cv_sockaddr_has_sa_len" = no; then 2309 missing_includes=yes 2310fi 2311 2312echo $ac_n "checking size of char""... $ac_c" 1>&6 2313echo "configure:2314: checking size of char" >&5 2314if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 2315 echo $ac_n "(cached) $ac_c" 1>&6 2316else 2317 if test "$cross_compiling" = yes; then 2318 ac_cv_sizeof_char=1 2319else 2320 cat > conftest.$ac_ext <<EOF 2321#line 2322 "configure" 2322#include "confdefs.h" 2323#include <stdio.h> 2324main() 2325{ 2326 FILE *f=fopen("conftestval", "w"); 2327 if (!f) exit(1); 2328 fprintf(f, "%d\n", sizeof(char)); 2329 exit(0); 2330} 2331EOF 2332if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2333then 2334 ac_cv_sizeof_char=`cat conftestval` 2335else 2336 echo "configure: failed program was:" >&5 2337 cat conftest.$ac_ext >&5 2338 rm -fr conftest* 2339 ac_cv_sizeof_char=0 2340fi 2341rm -fr conftest* 2342fi 2343 2344fi 2345echo "$ac_t""$ac_cv_sizeof_char" 1>&6 2346cat >> confdefs.h <<EOF 2347#define SIZEOF_CHAR $ac_cv_sizeof_char 2348EOF 2349 2350 2351echo $ac_n "checking size of short""... $ac_c" 1>&6 2352echo "configure:2353: checking size of short" >&5 2353if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2354 echo $ac_n "(cached) $ac_c" 1>&6 2355else 2356 if test "$cross_compiling" = yes; then 2357 ac_cv_sizeof_short=2 2358else 2359 cat > conftest.$ac_ext <<EOF 2360#line 2361 "configure" 2361#include "confdefs.h" 2362#include <stdio.h> 2363main() 2364{ 2365 FILE *f=fopen("conftestval", "w"); 2366 if (!f) exit(1); 2367 fprintf(f, "%d\n", sizeof(short)); 2368 exit(0); 2369} 2370EOF 2371if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2372then 2373 ac_cv_sizeof_short=`cat conftestval` 2374else 2375 echo "configure: failed program was:" >&5 2376 cat conftest.$ac_ext >&5 2377 rm -fr conftest* 2378 ac_cv_sizeof_short=0 2379fi 2380rm -fr conftest* 2381fi 2382 2383fi 2384echo "$ac_t""$ac_cv_sizeof_short" 1>&6 2385cat >> confdefs.h <<EOF 2386#define SIZEOF_SHORT $ac_cv_sizeof_short 2387EOF 2388 2389 2390echo $ac_n "checking size of int""... $ac_c" 1>&6 2391echo "configure:2392: checking size of int" >&5 2392if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2393 echo $ac_n "(cached) $ac_c" 1>&6 2394else 2395 if test "$cross_compiling" = yes; then 2396 ac_cv_sizeof_int=4 2397else 2398 cat > conftest.$ac_ext <<EOF 2399#line 2400 "configure" 2400#include "confdefs.h" 2401#include <stdio.h> 2402main() 2403{ 2404 FILE *f=fopen("conftestval", "w"); 2405 if (!f) exit(1); 2406 fprintf(f, "%d\n", sizeof(int)); 2407 exit(0); 2408} 2409EOF 2410if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2411then 2412 ac_cv_sizeof_int=`cat conftestval` 2413else 2414 echo "configure: failed program was:" >&5 2415 cat conftest.$ac_ext >&5 2416 rm -fr conftest* 2417 ac_cv_sizeof_int=0 2418fi 2419rm -fr conftest* 2420fi 2421 2422fi 2423echo "$ac_t""$ac_cv_sizeof_int" 1>&6 2424cat >> confdefs.h <<EOF 2425#define SIZEOF_INT $ac_cv_sizeof_int 2426EOF 2427 2428 2429echo $ac_n "checking size of long""... $ac_c" 1>&6 2430echo "configure:2431: checking size of long" >&5 2431if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2432 echo $ac_n "(cached) $ac_c" 1>&6 2433else 2434 if test "$cross_compiling" = yes; then 2435 ac_cv_sizeof_long=4 2436else 2437 cat > conftest.$ac_ext <<EOF 2438#line 2439 "configure" 2439#include "confdefs.h" 2440#include <stdio.h> 2441main() 2442{ 2443 FILE *f=fopen("conftestval", "w"); 2444 if (!f) exit(1); 2445 fprintf(f, "%d\n", sizeof(long)); 2446 exit(0); 2447} 2448EOF 2449if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2450then 2451 ac_cv_sizeof_long=`cat conftestval` 2452else 2453 echo "configure: failed program was:" >&5 2454 cat conftest.$ac_ext >&5 2455 rm -fr conftest* 2456 ac_cv_sizeof_long=0 2457fi 2458rm -fr conftest* 2459fi 2460 2461fi 2462echo "$ac_t""$ac_cv_sizeof_long" 1>&6 2463cat >> confdefs.h <<EOF 2464#define SIZEOF_LONG $ac_cv_sizeof_long 2465EOF 2466 2467 2468 2469 2470 2471 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 2472echo "configure:2473: checking for addrinfo" >&5 2473 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then 2474 echo $ac_n "(cached) $ac_c" 1>&6 2475else 2476 cat > conftest.$ac_ext <<EOF 2477#line 2478 "configure" 2478#include "confdefs.h" 2479 2480# include <netdb.h> 2481int main() { 2482struct addrinfo a 2483; return 0; } 2484EOF 2485if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2486 rm -rf conftest* 2487 ac_cv_addrinfo=yes 2488else 2489 echo "configure: failed program was:" >&5 2490 cat conftest.$ac_ext >&5 2491 rm -rf conftest* 2492 ac_cv_addrinfo=no 2493fi 2494rm -f conftest* 2495fi 2496 2497 echo "$ac_t""$ac_cv_addrinfo" 1>&6 2498 if test $ac_cv_addrinfo = yes; then 2499 cat >> confdefs.h <<\EOF 2500#define HAVE_ADDRINFO 1 2501EOF 2502 2503 else 2504 cat >> confdefs.h <<\EOF 2505#define NEED_ADDRINFO_H 1 2506EOF 2507 2508 fi 2509 2510if test "$ac_cv_addrinfo" = no; then 2511 missing_includes=yes 2512fi 2513 2514 2515 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6 2516echo "configure:2517: checking for NI_MAXSERV" >&5 2517 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then 2518 echo $ac_n "(cached) $ac_c" 1>&6 2519else 2520 cat > conftest.$ac_ext <<EOF 2521#line 2522 "configure" 2522#include "confdefs.h" 2523#include <netdb.h> 2524#ifdef NI_MAXSERV 2525yes 2526#endif 2527EOF 2528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2529 egrep "yes" >/dev/null 2>&1; then 2530 rm -rf conftest* 2531 ac_cv_maxserv=yes 2532else 2533 rm -rf conftest* 2534 ac_cv_maxserv=no 2535fi 2536rm -f conftest* 2537 2538fi 2539 2540 echo "$ac_t""$ac_cv_maxserv" 1>&6 2541 if test $ac_cv_maxserv != yes; then 2542 cat >> confdefs.h <<\EOF 2543#define NEED_ADDRINFO_H 1 2544EOF 2545 2546 fi 2547 2548if test "$ac_cv_maxserv" = no; then 2549 missing_includes=yes 2550fi 2551 2552 2553 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6 2554echo "configure:2555: checking for NI_NAMEREQD" >&5 2555 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then 2556 echo $ac_n "(cached) $ac_c" 1>&6 2557else 2558 cat > conftest.$ac_ext <<EOF 2559#line 2560 "configure" 2560#include "confdefs.h" 2561#include <netdb.h> 2562#ifdef NI_NOFQDN 2563yes 2564#endif 2565EOF 2566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2567 egrep "yes" >/dev/null 2>&1; then 2568 rm -rf conftest* 2569 ac_cv_namereqd=yes 2570else 2571 rm -rf conftest* 2572 ac_cv_namereqd=no 2573fi 2574rm -f conftest* 2575 2576fi 2577 2578 echo "$ac_t""$ac_cv_namereqd" 1>&6 2579 if test $ac_cv_namereqd != yes; then 2580 cat >> confdefs.h <<\EOF 2581#define NEED_ADDRINFO_H 1 2582EOF 2583 2584 fi 2585 2586if test "$ac_cv_namereqd" = no; then 2587 missing_includes=yes 2588fi 2589 2590 2591 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 2592echo "configure:2593: checking for sockaddr_storage" >&5 2593 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then 2594 echo $ac_n "(cached) $ac_c" 1>&6 2595else 2596 cat > conftest.$ac_ext <<EOF 2597#line 2598 "configure" 2598#include "confdefs.h" 2599 2600# include <sys/types.h> 2601# include <sys/socket.h> 2602int main() { 2603struct sockaddr_storage s 2604; return 0; } 2605EOF 2606if { (eval echo configure:2607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2607 rm -rf conftest* 2608 ac_cv_sa_storage=yes 2609else 2610 echo "configure: failed program was:" >&5 2611 cat conftest.$ac_ext >&5 2612 rm -rf conftest* 2613 ac_cv_sa_storage=no 2614fi 2615rm -f conftest* 2616fi 2617 2618 echo "$ac_t""$ac_cv_sa_storage" 1>&6 2619 if test $ac_cv_sa_storage = yes; then 2620 cat >> confdefs.h <<\EOF 2621#define HAVE_SOCKADDR_STORAGE 1 2622EOF 2623 2624 fi 2625 2626if test "$ac_cv_sa_storage" = no; then 2627 missing_includes=yes 2628fi 2629 2630 2631 ac_cv_addrsz=yes 2632 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6 2633echo "configure:2634: checking for INADDRSZ" >&5 2634 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then 2635 echo $ac_n "(cached) $ac_c" 1>&6 2636else 2637 cat > conftest.$ac_ext <<EOF 2638#line 2639 "configure" 2639#include "confdefs.h" 2640 2641# include <arpa/nameser.h> 2642int main() { 2643int a = INADDRSZ 2644; return 0; } 2645EOF 2646if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2647 rm -rf conftest* 2648 ac_cv_inaddrsz=yes 2649else 2650 echo "configure: failed program was:" >&5 2651 cat conftest.$ac_ext >&5 2652 rm -rf conftest* 2653 ac_cv_inaddrsz=no 2654fi 2655rm -f conftest* 2656fi 2657 2658 echo "$ac_t""$ac_cv_inaddrsz" 1>&6 2659 if test $ac_cv_inaddrsz = yes; then 2660 cat >> confdefs.h <<\EOF 2661#define HAVE_INADDRSZ 1 2662EOF 2663 2664 else 2665 ac_cv_addrsz=no 2666 fi 2667 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6 2668echo "configure:2669: checking for IN6ADDRSZ" >&5 2669 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then 2670 echo $ac_n "(cached) $ac_c" 1>&6 2671else 2672 cat > conftest.$ac_ext <<EOF 2673#line 2674 "configure" 2674#include "confdefs.h" 2675 2676# include <arpa/nameser.h> 2677int main() { 2678int a = IN6ADDRSZ 2679; return 0; } 2680EOF 2681if { (eval echo configure:2682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2682 rm -rf conftest* 2683 ac_cv_in6addrsz=yes 2684else 2685 echo "configure: failed program was:" >&5 2686 cat conftest.$ac_ext >&5 2687 rm -rf conftest* 2688 ac_cv_in6addrsz=no 2689fi 2690rm -f conftest* 2691fi 2692 2693 echo "$ac_t""$ac_cv_in6addrsz" 1>&6 2694 if test $ac_cv_in6addrsz = yes; then 2695 cat >> confdefs.h <<\EOF 2696#define HAVE_IN6ADDRSZ 1 2697EOF 2698 2699 else 2700 ac_cv_addrsz=no 2701 fi 2702 2703if test "$ac_cv_addrsz" = no; then 2704 missing_includes=yes 2705fi 2706 2707 2708 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6 2709echo "configure:2710: checking for RES_USE_INET6" >&5 2710 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then 2711 echo $ac_n "(cached) $ac_c" 1>&6 2712else 2713 cat > conftest.$ac_ext <<EOF 2714#line 2715 "configure" 2715#include "confdefs.h" 2716 2717# include <sys/types.h> 2718# include <netinet/in.h> 2719# include <resolv.h> 2720int main() { 2721int a = RES_USE_INET6 2722; return 0; } 2723EOF 2724if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2725 rm -rf conftest* 2726 ac_cv_res_inet6=yes 2727else 2728 echo "configure: failed program was:" >&5 2729 cat conftest.$ac_ext >&5 2730 rm -rf conftest* 2731 ac_cv_res_inet6=no 2732fi 2733rm -f conftest* 2734fi 2735 2736 echo "$ac_t""$ac_cv_res_inet6" 1>&6 2737 if test $ac_cv_res_inet6 = yes; then 2738 cat >> confdefs.h <<\EOF 2739#define HAVE_RES_USE_INET6 1 2740EOF 2741 2742 fi 2743 2744if test "$ac_cv_res_inet6" = no; then 2745 missing_includes=yes 2746fi 2747 2748 2749 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6 2750echo "configure:2751: checking for res_state_ext" >&5 2751 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then 2752 echo $ac_n "(cached) $ac_c" 1>&6 2753else 2754 cat > conftest.$ac_ext <<EOF 2755#line 2756 "configure" 2756#include "confdefs.h" 2757 2758# include <sys/types.h> 2759# include <netinet/in.h> 2760# include <netinet6/in6.h> 2761# include <resolv.h> 2762int main() { 2763struct __res_state_ext e 2764; return 0; } 2765EOF 2766if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2767 rm -rf conftest* 2768 ac_cv_res_state_ext=yes 2769else 2770 echo "configure: failed program was:" >&5 2771 cat conftest.$ac_ext >&5 2772 rm -rf conftest* 2773 ac_cv_res_state_ext=no 2774fi 2775rm -f conftest* 2776fi 2777 2778 echo "$ac_t""$ac_cv_res_state_ext" 1>&6 2779 if test $ac_cv_res_state_ext = yes; then 2780 cat >> confdefs.h <<\EOF 2781#define HAVE_RES_STATE_EXT 1 2782EOF 2783 2784 fi 2785 2786if test "$ac_cv_res_state_ext" = no; then 2787 missing_includes=yes 2788fi 2789 2790 2791 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6 2792echo "configure:2793: checking for nsort in res_state" >&5 2793 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then 2794 echo $ac_n "(cached) $ac_c" 1>&6 2795else 2796 cat > conftest.$ac_ext <<EOF 2797#line 2798 "configure" 2798#include "confdefs.h" 2799 2800# include <sys/types.h> 2801# include <netinet/in.h> 2802# include <netinet6/in6.h> 2803# include <resolv.h> 2804int main() { 2805struct __res_state e; e.nsort = 0 2806; return 0; } 2807EOF 2808if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2809 rm -rf conftest* 2810 ac_cv_res_state=yes 2811else 2812 echo "configure: failed program was:" >&5 2813 cat conftest.$ac_ext >&5 2814 rm -rf conftest* 2815 ac_cv_res_state=no 2816fi 2817rm -f conftest* 2818fi 2819 2820 echo "$ac_t""$ac_cv_res_state" 1>&6 2821 if test $ac_cv_res_state = yes; then 2822 cat >> confdefs.h <<\EOF 2823#define HAVE_NEW_RES_STATE 1 2824EOF 2825 2826 fi 2827 2828 2829if test "$missing_includes" = "yes"; then 2830 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 2831 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 2832fi 2833 2834 2835for ac_func in vfprintf strcasecmp strlcat strlcpy strdup 2836do 2837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2838echo "configure:2839: checking for $ac_func" >&5 2839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2840 echo $ac_n "(cached) $ac_c" 1>&6 2841else 2842 cat > conftest.$ac_ext <<EOF 2843#line 2844 "configure" 2844#include "confdefs.h" 2845/* System header to define __stub macros and hopefully few prototypes, 2846 which can conflict with char $ac_func(); below. */ 2847#include <assert.h> 2848/* Override any gcc2 internal prototype to avoid an error. */ 2849/* We use char because int might match the return type of a gcc2 2850 builtin and then its argument prototype would still apply. */ 2851char $ac_func(); 2852 2853int main() { 2854 2855/* The GNU C library defines this for functions which it implements 2856 to always fail with ENOSYS. Some functions are actually named 2857 something starting with __ and the normal name is an alias. */ 2858#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2859choke me 2860#else 2861$ac_func(); 2862#endif 2863 2864; return 0; } 2865EOF 2866if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2867 rm -rf conftest* 2868 eval "ac_cv_func_$ac_func=yes" 2869else 2870 echo "configure: failed program was:" >&5 2871 cat conftest.$ac_ext >&5 2872 rm -rf conftest* 2873 eval "ac_cv_func_$ac_func=no" 2874fi 2875rm -f conftest* 2876fi 2877 2878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2879 echo "$ac_t""yes" 1>&6 2880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2881 cat >> confdefs.h <<EOF 2882#define $ac_tr_func 1 2883EOF 2884 2885else 2886 echo "$ac_t""no" 1>&6 2887LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2888fi 2889done 2890 2891 2892for ac_func in ether_ntohost 2893do 2894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2895echo "configure:2896: checking for $ac_func" >&5 2896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2897 echo $ac_n "(cached) $ac_c" 1>&6 2898else 2899 cat > conftest.$ac_ext <<EOF 2900#line 2901 "configure" 2901#include "confdefs.h" 2902/* System header to define __stub macros and hopefully few prototypes, 2903 which can conflict with char $ac_func(); below. */ 2904#include <assert.h> 2905/* Override any gcc2 internal prototype to avoid an error. */ 2906/* We use char because int might match the return type of a gcc2 2907 builtin and then its argument prototype would still apply. */ 2908char $ac_func(); 2909 2910int main() { 2911 2912/* The GNU C library defines this for functions which it implements 2913 to always fail with ENOSYS. Some functions are actually named 2914 something starting with __ and the normal name is an alias. */ 2915#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2916choke me 2917#else 2918$ac_func(); 2919#endif 2920 2921; return 0; } 2922EOF 2923if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2924 rm -rf conftest* 2925 eval "ac_cv_func_$ac_func=yes" 2926else 2927 echo "configure: failed program was:" >&5 2928 cat conftest.$ac_ext >&5 2929 rm -rf conftest* 2930 eval "ac_cv_func_$ac_func=no" 2931fi 2932rm -f conftest* 2933fi 2934 2935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2936 echo "$ac_t""yes" 1>&6 2937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2938 cat >> confdefs.h <<EOF 2939#define $ac_tr_func 1 2940EOF 2941 2942 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6 2943echo "configure:2944: checking for buggy ether_ntohost" >&5 2944if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then 2945 echo $ac_n "(cached) $ac_c" 1>&6 2946else 2947 2948 if test "$cross_compiling" = yes; then 2949 ac_cv_buggy_ether_ntohost=not while cross-compiling 2950else 2951 cat > conftest.$ac_ext <<EOF 2952#line 2953 "configure" 2953#include "confdefs.h" 2954 2955 #include <netdb.h> 2956 #include <sys/types.h> 2957 #include <sys/param.h> 2958 #include <sys/socket.h> 2959 2960 int 2961 main(int argc, char **argv) 2962 { 2963 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 2964 char name[MAXHOSTNAMELEN]; 2965 2966 ether_ntohost(name, (struct ether_addr *)ea); 2967 exit(0); 2968 } 2969 2970EOF 2971if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2972then 2973 ac_cv_buggy_ether_ntohost=no 2974else 2975 echo "configure: failed program was:" >&5 2976 cat conftest.$ac_ext >&5 2977 rm -fr conftest* 2978 ac_cv_buggy_ether_ntohost=yes 2979fi 2980rm -fr conftest* 2981fi 2982 2983fi 2984 2985echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6 2986 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 2987 cat >> confdefs.h <<\EOF 2988#define USE_ETHER_NTOHOST 1 2989EOF 2990 2991 fi 2992 2993else 2994 echo "$ac_t""no" 1>&6 2995fi 2996done 2997 2998for ac_func in setlinebuf 2999do 3000echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3001echo "configure:3002: checking for $ac_func" >&5 3002if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3003 echo $ac_n "(cached) $ac_c" 1>&6 3004else 3005 cat > conftest.$ac_ext <<EOF 3006#line 3007 "configure" 3007#include "confdefs.h" 3008/* System header to define __stub macros and hopefully few prototypes, 3009 which can conflict with char $ac_func(); below. */ 3010#include <assert.h> 3011/* Override any gcc2 internal prototype to avoid an error. */ 3012/* We use char because int might match the return type of a gcc2 3013 builtin and then its argument prototype would still apply. */ 3014char $ac_func(); 3015 3016int main() { 3017 3018/* The GNU C library defines this for functions which it implements 3019 to always fail with ENOSYS. Some functions are actually named 3020 something starting with __ and the normal name is an alias. */ 3021#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3022choke me 3023#else 3024$ac_func(); 3025#endif 3026 3027; return 0; } 3028EOF 3029if { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3030 rm -rf conftest* 3031 eval "ac_cv_func_$ac_func=yes" 3032else 3033 echo "configure: failed program was:" >&5 3034 cat conftest.$ac_ext >&5 3035 rm -rf conftest* 3036 eval "ac_cv_func_$ac_func=no" 3037fi 3038rm -f conftest* 3039fi 3040 3041if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3042 echo "$ac_t""yes" 1>&6 3043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3044 cat >> confdefs.h <<EOF 3045#define $ac_tr_func 1 3046EOF 3047 3048else 3049 echo "$ac_t""no" 1>&6 3050fi 3051done 3052 3053 3054needsnprintf=no 3055for ac_func in vsnprintf snprintf 3056do 3057echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3058echo "configure:3059: checking for $ac_func" >&5 3059if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3060 echo $ac_n "(cached) $ac_c" 1>&6 3061else 3062 cat > conftest.$ac_ext <<EOF 3063#line 3064 "configure" 3064#include "confdefs.h" 3065/* System header to define __stub macros and hopefully few prototypes, 3066 which can conflict with char $ac_func(); below. */ 3067#include <assert.h> 3068/* Override any gcc2 internal prototype to avoid an error. */ 3069/* We use char because int might match the return type of a gcc2 3070 builtin and then its argument prototype would still apply. */ 3071char $ac_func(); 3072 3073int main() { 3074 3075/* The GNU C library defines this for functions which it implements 3076 to always fail with ENOSYS. Some functions are actually named 3077 something starting with __ and the normal name is an alias. */ 3078#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3079choke me 3080#else 3081$ac_func(); 3082#endif 3083 3084; return 0; } 3085EOF 3086if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3087 rm -rf conftest* 3088 eval "ac_cv_func_$ac_func=yes" 3089else 3090 echo "configure: failed program was:" >&5 3091 cat conftest.$ac_ext >&5 3092 rm -rf conftest* 3093 eval "ac_cv_func_$ac_func=no" 3094fi 3095rm -f conftest* 3096fi 3097 3098if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3099 echo "$ac_t""yes" 1>&6 3100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3101 cat >> confdefs.h <<EOF 3102#define $ac_tr_func 1 3103EOF 3104 3105else 3106 echo "$ac_t""no" 1>&6 3107needsnprintf=yes 3108fi 3109done 3110 3111if test $needsnprintf = yes; then 3112 LIBOBJS="$LIBOBJS snprintf.o" 3113fi 3114 3115 3116 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3117echo "configure:3118: checking return type of signal handlers" >&5 3118if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3119 echo $ac_n "(cached) $ac_c" 1>&6 3120else 3121 cat > conftest.$ac_ext <<EOF 3122#line 3123 "configure" 3123#include "confdefs.h" 3124#include <sys/types.h> 3125#include <signal.h> 3126#ifdef signal 3127#undef signal 3128#endif 3129#ifdef __cplusplus 3130extern "C" void (*signal (int, void (*)(int)))(int); 3131#else 3132void (*signal ()) (); 3133#endif 3134 3135int main() { 3136int i; 3137; return 0; } 3138EOF 3139if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3140 rm -rf conftest* 3141 ac_cv_type_signal=void 3142else 3143 echo "configure: failed program was:" >&5 3144 cat conftest.$ac_ext >&5 3145 rm -rf conftest* 3146 ac_cv_type_signal=int 3147fi 3148rm -f conftest* 3149fi 3150 3151echo "$ac_t""$ac_cv_type_signal" 1>&6 3152cat >> confdefs.h <<EOF 3153#define RETSIGTYPE $ac_cv_type_signal 3154EOF 3155 3156 3157 if test "$ac_cv_type_signal" = void ; then 3158 cat >> confdefs.h <<\EOF 3159#define RETSIGVAL 3160EOF 3161 3162 else 3163 cat >> confdefs.h <<\EOF 3164#define RETSIGVAL (0) 3165EOF 3166 3167 fi 3168 case "$host_os" in 3169 3170 irix*) 3171 cat >> confdefs.h <<\EOF 3172#define _BSD_SIGNALS 1 3173EOF 3174 3175 ;; 3176 3177 *) 3178 for ac_func in sigset 3179do 3180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3181echo "configure:3182: checking for $ac_func" >&5 3182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3183 echo $ac_n "(cached) $ac_c" 1>&6 3184else 3185 cat > conftest.$ac_ext <<EOF 3186#line 3187 "configure" 3187#include "confdefs.h" 3188/* System header to define __stub macros and hopefully few prototypes, 3189 which can conflict with char $ac_func(); below. */ 3190#include <assert.h> 3191/* Override any gcc2 internal prototype to avoid an error. */ 3192/* We use char because int might match the return type of a gcc2 3193 builtin and then its argument prototype would still apply. */ 3194char $ac_func(); 3195 3196int main() { 3197 3198/* The GNU C library defines this for functions which it implements 3199 to always fail with ENOSYS. Some functions are actually named 3200 something starting with __ and the normal name is an alias. */ 3201#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3202choke me 3203#else 3204$ac_func(); 3205#endif 3206 3207; return 0; } 3208EOF 3209if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3210 rm -rf conftest* 3211 eval "ac_cv_func_$ac_func=yes" 3212else 3213 echo "configure: failed program was:" >&5 3214 cat conftest.$ac_ext >&5 3215 rm -rf conftest* 3216 eval "ac_cv_func_$ac_func=no" 3217fi 3218rm -f conftest* 3219fi 3220 3221if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3222 echo "$ac_t""yes" 1>&6 3223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3224 cat >> confdefs.h <<EOF 3225#define $ac_tr_func 1 3226EOF 3227 3228else 3229 echo "$ac_t""no" 1>&6 3230fi 3231done 3232 3233 if test $ac_cv_func_sigset = no ; then 3234 for ac_func in sigaction 3235do 3236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3237echo "configure:3238: checking for $ac_func" >&5 3238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3239 echo $ac_n "(cached) $ac_c" 1>&6 3240else 3241 cat > conftest.$ac_ext <<EOF 3242#line 3243 "configure" 3243#include "confdefs.h" 3244/* System header to define __stub macros and hopefully few prototypes, 3245 which can conflict with char $ac_func(); below. */ 3246#include <assert.h> 3247/* Override any gcc2 internal prototype to avoid an error. */ 3248/* We use char because int might match the return type of a gcc2 3249 builtin and then its argument prototype would still apply. */ 3250char $ac_func(); 3251 3252int main() { 3253 3254/* The GNU C library defines this for functions which it implements 3255 to always fail with ENOSYS. Some functions are actually named 3256 something starting with __ and the normal name is an alias. */ 3257#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3258choke me 3259#else 3260$ac_func(); 3261#endif 3262 3263; return 0; } 3264EOF 3265if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3266 rm -rf conftest* 3267 eval "ac_cv_func_$ac_func=yes" 3268else 3269 echo "configure: failed program was:" >&5 3270 cat conftest.$ac_ext >&5 3271 rm -rf conftest* 3272 eval "ac_cv_func_$ac_func=no" 3273fi 3274rm -f conftest* 3275fi 3276 3277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3278 echo "$ac_t""yes" 1>&6 3279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3280 cat >> confdefs.h <<EOF 3281#define $ac_tr_func 1 3282EOF 3283 3284else 3285 echo "$ac_t""no" 1>&6 3286fi 3287done 3288 3289 fi 3290 ;; 3291 esac 3292 3293echo $ac_n "checking for dnet_htoa in -ldnet""... $ac_c" 1>&6 3294echo "configure:3295: checking for dnet_htoa in -ldnet" >&5 3295ac_lib_var=`echo dnet'_'dnet_htoa | sed 'y%./+-%__p_%'` 3296if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3297 echo $ac_n "(cached) $ac_c" 1>&6 3298else 3299 ac_save_LIBS="$LIBS" 3300LIBS="-ldnet $LIBS" 3301cat > conftest.$ac_ext <<EOF 3302#line 3303 "configure" 3303#include "confdefs.h" 3304/* Override any gcc2 internal prototype to avoid an error. */ 3305/* We use char because int might match the return type of a gcc2 3306 builtin and then its argument prototype would still apply. */ 3307char dnet_htoa(); 3308 3309int main() { 3310dnet_htoa() 3311; return 0; } 3312EOF 3313if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3314 rm -rf conftest* 3315 eval "ac_cv_lib_$ac_lib_var=yes" 3316else 3317 echo "configure: failed program was:" >&5 3318 cat conftest.$ac_ext >&5 3319 rm -rf conftest* 3320 eval "ac_cv_lib_$ac_lib_var=no" 3321fi 3322rm -f conftest* 3323LIBS="$ac_save_LIBS" 3324 3325fi 3326if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3327 echo "$ac_t""yes" 1>&6 3328 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3330 cat >> confdefs.h <<EOF 3331#define $ac_tr_lib 1 3332EOF 3333 3334 LIBS="-ldnet $LIBS" 3335 3336else 3337 echo "$ac_t""no" 1>&6 3338fi 3339 3340 3341echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6 3342echo "configure:3343: checking for main in -lrpc" >&5 3343ac_lib_var=`echo rpc'_'main | sed 'y%./+-%__p_%'` 3344if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3345 echo $ac_n "(cached) $ac_c" 1>&6 3346else 3347 ac_save_LIBS="$LIBS" 3348LIBS="-lrpc $LIBS" 3349cat > conftest.$ac_ext <<EOF 3350#line 3351 "configure" 3351#include "confdefs.h" 3352 3353int main() { 3354main() 3355; return 0; } 3356EOF 3357if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3358 rm -rf conftest* 3359 eval "ac_cv_lib_$ac_lib_var=yes" 3360else 3361 echo "configure: failed program was:" >&5 3362 cat conftest.$ac_ext >&5 3363 rm -rf conftest* 3364 eval "ac_cv_lib_$ac_lib_var=no" 3365fi 3366rm -f conftest* 3367LIBS="$ac_save_LIBS" 3368 3369fi 3370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3371 echo "$ac_t""yes" 1>&6 3372 ac_tr_lib=HAVE_LIB`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3374 cat >> confdefs.h <<EOF 3375#define $ac_tr_lib 1 3376EOF 3377 3378 LIBS="-lrpc $LIBS" 3379 3380else 3381 echo "$ac_t""no" 1>&6 3382fi 3383 3384 3385echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6 3386echo "configure:3387: checking for library containing getrpcbynumber" >&5 3387if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then 3388 echo $ac_n "(cached) $ac_c" 1>&6 3389else 3390 ac_func_search_save_LIBS="$LIBS" 3391ac_cv_search_getrpcbynumber="no" 3392cat > conftest.$ac_ext <<EOF 3393#line 3394 "configure" 3394#include "confdefs.h" 3395/* Override any gcc2 internal prototype to avoid an error. */ 3396/* We use char because int might match the return type of a gcc2 3397 builtin and then its argument prototype would still apply. */ 3398char getrpcbynumber(); 3399 3400int main() { 3401getrpcbynumber() 3402; return 0; } 3403EOF 3404if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3405 rm -rf conftest* 3406 ac_cv_search_getrpcbynumber="none required" 3407else 3408 echo "configure: failed program was:" >&5 3409 cat conftest.$ac_ext >&5 3410fi 3411rm -f conftest* 3412test "$ac_cv_search_getrpcbynumber" = "no" && for i in nsl; do 3413LIBS="-l$i $ac_func_search_save_LIBS" 3414cat > conftest.$ac_ext <<EOF 3415#line 3416 "configure" 3416#include "confdefs.h" 3417/* Override any gcc2 internal prototype to avoid an error. */ 3418/* We use char because int might match the return type of a gcc2 3419 builtin and then its argument prototype would still apply. */ 3420char getrpcbynumber(); 3421 3422int main() { 3423getrpcbynumber() 3424; return 0; } 3425EOF 3426if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3427 rm -rf conftest* 3428 ac_cv_search_getrpcbynumber="-l$i" 3429break 3430else 3431 echo "configure: failed program was:" >&5 3432 cat conftest.$ac_ext >&5 3433fi 3434rm -f conftest* 3435done 3436LIBS="$ac_func_search_save_LIBS" 3437fi 3438 3439echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6 3440if test "$ac_cv_search_getrpcbynumber" != "no"; then 3441 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS" 3442 3443else : 3444 3445fi 3446 3447 3448 3449 # Most operating systems have gethostbyname() in the default searched 3450 # libraries (i.e. libc): 3451 # Some OSes (eg. Solaris) place it in libnsl 3452 # Some strange OSes (SINIX) have it in libsocket: 3453 3454echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 3455echo "configure:3456: checking for library containing gethostbyname" >&5 3456if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then 3457 echo $ac_n "(cached) $ac_c" 1>&6 3458else 3459 ac_func_search_save_LIBS="$LIBS" 3460ac_cv_search_gethostbyname="no" 3461cat > conftest.$ac_ext <<EOF 3462#line 3463 "configure" 3463#include "confdefs.h" 3464/* Override any gcc2 internal prototype to avoid an error. */ 3465/* We use char because int might match the return type of a gcc2 3466 builtin and then its argument prototype would still apply. */ 3467char gethostbyname(); 3468 3469int main() { 3470gethostbyname() 3471; return 0; } 3472EOF 3473if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3474 rm -rf conftest* 3475 ac_cv_search_gethostbyname="none required" 3476else 3477 echo "configure: failed program was:" >&5 3478 cat conftest.$ac_ext >&5 3479fi 3480rm -f conftest* 3481test "$ac_cv_search_gethostbyname" = "no" && for i in nsl socket resolv; do 3482LIBS="-l$i $ac_func_search_save_LIBS" 3483cat > conftest.$ac_ext <<EOF 3484#line 3485 "configure" 3485#include "confdefs.h" 3486/* Override any gcc2 internal prototype to avoid an error. */ 3487/* We use char because int might match the return type of a gcc2 3488 builtin and then its argument prototype would still apply. */ 3489char gethostbyname(); 3490 3491int main() { 3492gethostbyname() 3493; return 0; } 3494EOF 3495if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3496 rm -rf conftest* 3497 ac_cv_search_gethostbyname="-l$i" 3498break 3499else 3500 echo "configure: failed program was:" >&5 3501 cat conftest.$ac_ext >&5 3502fi 3503rm -f conftest* 3504done 3505LIBS="$ac_func_search_save_LIBS" 3506fi 3507 3508echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 3509if test "$ac_cv_search_gethostbyname" != "no"; then 3510 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 3511 3512else : 3513 3514fi 3515 # Unfortunately libsocket sometimes depends on libnsl and 3516 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 3517 if test "$ac_cv_search_gethostbyname" = "no" 3518 then 3519 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 3520echo "configure:3521: checking for gethostbyname in -lsocket" >&5 3521ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 3522if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3523 echo $ac_n "(cached) $ac_c" 1>&6 3524else 3525 ac_save_LIBS="$LIBS" 3526LIBS="-lsocket -lnsl $LIBS" 3527cat > conftest.$ac_ext <<EOF 3528#line 3529 "configure" 3529#include "confdefs.h" 3530/* Override any gcc2 internal prototype to avoid an error. */ 3531/* We use char because int might match the return type of a gcc2 3532 builtin and then its argument prototype would still apply. */ 3533char gethostbyname(); 3534 3535int main() { 3536gethostbyname() 3537; return 0; } 3538EOF 3539if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3540 rm -rf conftest* 3541 eval "ac_cv_lib_$ac_lib_var=yes" 3542else 3543 echo "configure: failed program was:" >&5 3544 cat conftest.$ac_ext >&5 3545 rm -rf conftest* 3546 eval "ac_cv_lib_$ac_lib_var=no" 3547fi 3548rm -f conftest* 3549LIBS="$ac_save_LIBS" 3550 3551fi 3552if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3553 echo "$ac_t""yes" 1>&6 3554 LIBS="-lsocket -lnsl $LIBS" 3555else 3556 echo "$ac_t""no" 1>&6 3557fi 3558 3559 fi 3560 3561echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 3562echo "configure:3563: checking for library containing socket" >&5 3563if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then 3564 echo $ac_n "(cached) $ac_c" 1>&6 3565else 3566 ac_func_search_save_LIBS="$LIBS" 3567ac_cv_search_socket="no" 3568cat > conftest.$ac_ext <<EOF 3569#line 3570 "configure" 3570#include "confdefs.h" 3571/* Override any gcc2 internal prototype to avoid an error. */ 3572/* We use char because int might match the return type of a gcc2 3573 builtin and then its argument prototype would still apply. */ 3574char socket(); 3575 3576int main() { 3577socket() 3578; return 0; } 3579EOF 3580if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3581 rm -rf conftest* 3582 ac_cv_search_socket="none required" 3583else 3584 echo "configure: failed program was:" >&5 3585 cat conftest.$ac_ext >&5 3586fi 3587rm -f conftest* 3588test "$ac_cv_search_socket" = "no" && for i in socket; do 3589LIBS="-l$i $ac_func_search_save_LIBS" 3590cat > conftest.$ac_ext <<EOF 3591#line 3592 "configure" 3592#include "confdefs.h" 3593/* Override any gcc2 internal prototype to avoid an error. */ 3594/* We use char because int might match the return type of a gcc2 3595 builtin and then its argument prototype would still apply. */ 3596char socket(); 3597 3598int main() { 3599socket() 3600; return 0; } 3601EOF 3602if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3603 rm -rf conftest* 3604 ac_cv_search_socket="-l$i" 3605break 3606else 3607 echo "configure: failed program was:" >&5 3608 cat conftest.$ac_ext >&5 3609fi 3610rm -f conftest* 3611done 3612LIBS="$ac_func_search_save_LIBS" 3613fi 3614 3615echo "$ac_t""$ac_cv_search_socket" 1>&6 3616if test "$ac_cv_search_socket" != "no"; then 3617 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 3618 3619else : 3620 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 3621echo "configure:3622: checking for socket in -lsocket" >&5 3622ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 3623if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3624 echo $ac_n "(cached) $ac_c" 1>&6 3625else 3626 ac_save_LIBS="$LIBS" 3627LIBS="-lsocket -lnsl $LIBS" 3628cat > conftest.$ac_ext <<EOF 3629#line 3630 "configure" 3630#include "confdefs.h" 3631/* Override any gcc2 internal prototype to avoid an error. */ 3632/* We use char because int might match the return type of a gcc2 3633 builtin and then its argument prototype would still apply. */ 3634char socket(); 3635 3636int main() { 3637socket() 3638; return 0; } 3639EOF 3640if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3641 rm -rf conftest* 3642 eval "ac_cv_lib_$ac_lib_var=yes" 3643else 3644 echo "configure: failed program was:" >&5 3645 cat conftest.$ac_ext >&5 3646 rm -rf conftest* 3647 eval "ac_cv_lib_$ac_lib_var=no" 3648fi 3649rm -f conftest* 3650LIBS="$ac_save_LIBS" 3651 3652fi 3653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3654 echo "$ac_t""yes" 1>&6 3655 LIBS="-lsocket -lnsl $LIBS" 3656else 3657 echo "$ac_t""no" 1>&6 3658fi 3659 3660fi 3661 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 3662 3663echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6 3664echo "configure:3665: checking for library containing putmsg" >&5 3665if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then 3666 echo $ac_n "(cached) $ac_c" 1>&6 3667else 3668 ac_func_search_save_LIBS="$LIBS" 3669ac_cv_search_putmsg="no" 3670cat > conftest.$ac_ext <<EOF 3671#line 3672 "configure" 3672#include "confdefs.h" 3673/* Override any gcc2 internal prototype to avoid an error. */ 3674/* We use char because int might match the return type of a gcc2 3675 builtin and then its argument prototype would still apply. */ 3676char putmsg(); 3677 3678int main() { 3679putmsg() 3680; return 0; } 3681EOF 3682if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3683 rm -rf conftest* 3684 ac_cv_search_putmsg="none required" 3685else 3686 echo "configure: failed program was:" >&5 3687 cat conftest.$ac_ext >&5 3688fi 3689rm -f conftest* 3690test "$ac_cv_search_putmsg" = "no" && for i in str; do 3691LIBS="-l$i $ac_func_search_save_LIBS" 3692cat > conftest.$ac_ext <<EOF 3693#line 3694 "configure" 3694#include "confdefs.h" 3695/* Override any gcc2 internal prototype to avoid an error. */ 3696/* We use char because int might match the return type of a gcc2 3697 builtin and then its argument prototype would still apply. */ 3698char putmsg(); 3699 3700int main() { 3701putmsg() 3702; return 0; } 3703EOF 3704if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3705 rm -rf conftest* 3706 ac_cv_search_putmsg="-l$i" 3707break 3708else 3709 echo "configure: failed program was:" >&5 3710 cat conftest.$ac_ext >&5 3711fi 3712rm -f conftest* 3713done 3714LIBS="$ac_func_search_save_LIBS" 3715fi 3716 3717echo "$ac_t""$ac_cv_search_putmsg" 1>&6 3718if test "$ac_cv_search_putmsg" != "no"; then 3719 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 3720 3721else : 3722 3723fi 3724 3725 3726 LBL_LIBS="$LIBS" 3727 pfopen=/usr/examples/packetfilter/pfopen.c 3728 if test -f $pfopen ; then 3729 for ac_func in pfopen 3730do 3731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3732echo "configure:3733: checking for $ac_func" >&5 3733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3734 echo $ac_n "(cached) $ac_c" 1>&6 3735else 3736 cat > conftest.$ac_ext <<EOF 3737#line 3738 "configure" 3738#include "confdefs.h" 3739/* System header to define __stub macros and hopefully few prototypes, 3740 which can conflict with char $ac_func(); below. */ 3741#include <assert.h> 3742/* Override any gcc2 internal prototype to avoid an error. */ 3743/* We use char because int might match the return type of a gcc2 3744 builtin and then its argument prototype would still apply. */ 3745char $ac_func(); 3746 3747int main() { 3748 3749/* The GNU C library defines this for functions which it implements 3750 to always fail with ENOSYS. Some functions are actually named 3751 something starting with __ and the normal name is an alias. */ 3752#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3753choke me 3754#else 3755$ac_func(); 3756#endif 3757 3758; return 0; } 3759EOF 3760if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3761 rm -rf conftest* 3762 eval "ac_cv_func_$ac_func=yes" 3763else 3764 echo "configure: failed program was:" >&5 3765 cat conftest.$ac_ext >&5 3766 rm -rf conftest* 3767 eval "ac_cv_func_$ac_func=no" 3768fi 3769rm -f conftest* 3770fi 3771 3772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3773 echo "$ac_t""yes" 1>&6 3774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3775 cat >> confdefs.h <<EOF 3776#define $ac_tr_func 1 3777EOF 3778 3779else 3780 echo "$ac_t""no" 1>&6 3781fi 3782done 3783 3784 if test $ac_cv_func_pfopen = "no" ; then 3785 echo "$ac_t""Using $pfopen" 1>&6 3786 LIBS="$LIBS $pfopen" 3787 fi 3788 fi 3789 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6 3790echo "configure:3791: checking for local pcap library" >&5 3791 libpcap=FAIL 3792 lastdir=FAIL 3793 places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \ 3794 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 3795 for dir in $places ../libpcap libpcap ; do 3796 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 3797 if test $lastdir = $basedir ; then 3798 continue; 3799 fi 3800 lastdir=$dir 3801 if test -r $dir/libpcap.a ; then 3802 libpcap=$dir/libpcap.a 3803 d=$dir 3804 fi 3805 done 3806 if test $libpcap = FAIL ; then 3807 echo "$ac_t""not found" 1>&6 3808 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 3809echo "configure:3810: checking for main in -lpcap" >&5 3810ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 3811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3812 echo $ac_n "(cached) $ac_c" 1>&6 3813else 3814 ac_save_LIBS="$LIBS" 3815LIBS="-lpcap $LIBS" 3816cat > conftest.$ac_ext <<EOF 3817#line 3818 "configure" 3818#include "confdefs.h" 3819 3820int main() { 3821main() 3822; return 0; } 3823EOF 3824if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3825 rm -rf conftest* 3826 eval "ac_cv_lib_$ac_lib_var=yes" 3827else 3828 echo "configure: failed program was:" >&5 3829 cat conftest.$ac_ext >&5 3830 rm -rf conftest* 3831 eval "ac_cv_lib_$ac_lib_var=no" 3832fi 3833rm -f conftest* 3834LIBS="$ac_save_LIBS" 3835 3836fi 3837if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3838 echo "$ac_t""yes" 1>&6 3839 libpcap="-lpcap" 3840else 3841 echo "$ac_t""no" 1>&6 3842fi 3843 3844 if test $libpcap = FAIL ; then 3845 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 3846 fi 3847 else 3848 V_PCAPDEP=$libpcap 3849 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 3850 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 3851 if test -r $d/pcap.h; then 3852 V_INCLS="-I$d $V_INCLS" 3853 elif test -r $places/pcap.h; then 3854 V_INCLS="-I$places $V_INCLS" 3855 else 3856 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; } 3857 fi 3858 echo "$ac_t""$libpcap" 1>&6 3859 fi 3860 LIBS="$libpcap $LIBS" 3861 case "$host_os" in 3862 3863 aix*) 3864 pseexe="/lib/pse.exp" 3865 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6 3866echo "configure:3867: checking for $pseexe" >&5 3867 if test -f $pseexe ; then 3868 echo "$ac_t""yes" 1>&6 3869 LIBS="$LIBS -I:$pseexe" 3870 fi 3871 ;; 3872 esac 3873 3874for ac_func in bpf_dump 3875do 3876echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3877echo "configure:3878: checking for $ac_func" >&5 3878if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3879 echo $ac_n "(cached) $ac_c" 1>&6 3880else 3881 cat > conftest.$ac_ext <<EOF 3882#line 3883 "configure" 3883#include "confdefs.h" 3884/* System header to define __stub macros and hopefully few prototypes, 3885 which can conflict with char $ac_func(); below. */ 3886#include <assert.h> 3887/* Override any gcc2 internal prototype to avoid an error. */ 3888/* We use char because int might match the return type of a gcc2 3889 builtin and then its argument prototype would still apply. */ 3890char $ac_func(); 3891 3892int main() { 3893 3894/* The GNU C library defines this for functions which it implements 3895 to always fail with ENOSYS. Some functions are actually named 3896 something starting with __ and the normal name is an alias. */ 3897#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3898choke me 3899#else 3900$ac_func(); 3901#endif 3902 3903; return 0; } 3904EOF 3905if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3906 rm -rf conftest* 3907 eval "ac_cv_func_$ac_func=yes" 3908else 3909 echo "configure: failed program was:" >&5 3910 cat conftest.$ac_ext >&5 3911 rm -rf conftest* 3912 eval "ac_cv_func_$ac_func=no" 3913fi 3914rm -f conftest* 3915fi 3916 3917if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3918 echo "$ac_t""yes" 1>&6 3919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3920 cat >> confdefs.h <<EOF 3921#define $ac_tr_func 1 3922EOF 3923 3924else 3925 echo "$ac_t""no" 1>&6 3926LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 3927fi 3928done 3929 3930 3931V_GROUP=0 3932if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 3933 V_GROUP=wheel 3934fi 3935case "$host_os" in 3936 3937aix*) 3938 cat >> confdefs.h <<\EOF 3939#define _SUN 1 3940EOF 3941 3942 ;; 3943 3944irix*) 3945 V_GROUP=sys 3946 ;; 3947 3948osf*) 3949 V_GROUP=system 3950 ;; 3951 3952solaris*) 3953 V_GROUP=sys 3954 ;; 3955esac 3956 3957if test -f /dev/bpf0 ; then 3958 V_GROUP=bpf 3959fi 3960 3961echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6 3962echo "configure:3963: checking for u_int8_t using $CC" >&5 3963 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then 3964 echo $ac_n "(cached) $ac_c" 1>&6 3965else 3966 cat > conftest.$ac_ext <<EOF 3967#line 3968 "configure" 3968#include "confdefs.h" 3969 3970# include "confdefs.h" 3971# include <sys/types.h> 3972# if STDC_HEADERS 3973# include <stdlib.h> 3974# include <stddef.h> 3975# endif 3976int main() { 3977u_int8_t i 3978; return 0; } 3979EOF 3980if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3981 rm -rf conftest* 3982 ac_cv_lbl_have_u_int8_t=yes 3983else 3984 echo "configure: failed program was:" >&5 3985 cat conftest.$ac_ext >&5 3986 rm -rf conftest* 3987 ac_cv_lbl_have_u_int8_t=no 3988fi 3989rm -f conftest* 3990fi 3991 3992 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6 3993 if test $ac_cv_lbl_have_u_int8_t = no ; then 3994 cat >> confdefs.h <<\EOF 3995#define u_int8_t u_char 3996EOF 3997 3998 fi 3999echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6 4000echo "configure:4001: checking for int16_t using $CC" >&5 4001 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then 4002 echo $ac_n "(cached) $ac_c" 1>&6 4003else 4004 cat > conftest.$ac_ext <<EOF 4005#line 4006 "configure" 4006#include "confdefs.h" 4007 4008# include "confdefs.h" 4009# include <sys/types.h> 4010# if STDC_HEADERS 4011# include <stdlib.h> 4012# include <stddef.h> 4013# endif 4014int main() { 4015int16_t i 4016; return 0; } 4017EOF 4018if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4019 rm -rf conftest* 4020 ac_cv_lbl_have_int16_t=yes 4021else 4022 echo "configure: failed program was:" >&5 4023 cat conftest.$ac_ext >&5 4024 rm -rf conftest* 4025 ac_cv_lbl_have_int16_t=no 4026fi 4027rm -f conftest* 4028fi 4029 4030 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6 4031 if test $ac_cv_lbl_have_int16_t = no ; then 4032 cat >> confdefs.h <<\EOF 4033#define int16_t short 4034EOF 4035 4036 fi 4037echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6 4038echo "configure:4039: checking for u_int16_t using $CC" >&5 4039 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then 4040 echo $ac_n "(cached) $ac_c" 1>&6 4041else 4042 cat > conftest.$ac_ext <<EOF 4043#line 4044 "configure" 4044#include "confdefs.h" 4045 4046# include "confdefs.h" 4047# include <sys/types.h> 4048# if STDC_HEADERS 4049# include <stdlib.h> 4050# include <stddef.h> 4051# endif 4052int main() { 4053u_int16_t i 4054; return 0; } 4055EOF 4056if { (eval echo configure:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4057 rm -rf conftest* 4058 ac_cv_lbl_have_u_int16_t=yes 4059else 4060 echo "configure: failed program was:" >&5 4061 cat conftest.$ac_ext >&5 4062 rm -rf conftest* 4063 ac_cv_lbl_have_u_int16_t=no 4064fi 4065rm -f conftest* 4066fi 4067 4068 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6 4069 if test $ac_cv_lbl_have_u_int16_t = no ; then 4070 cat >> confdefs.h <<\EOF 4071#define u_int16_t u_short 4072EOF 4073 4074 fi 4075echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6 4076echo "configure:4077: checking for int32_t using $CC" >&5 4077 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then 4078 echo $ac_n "(cached) $ac_c" 1>&6 4079else 4080 cat > conftest.$ac_ext <<EOF 4081#line 4082 "configure" 4082#include "confdefs.h" 4083 4084# include "confdefs.h" 4085# include <sys/types.h> 4086# if STDC_HEADERS 4087# include <stdlib.h> 4088# include <stddef.h> 4089# endif 4090int main() { 4091int32_t i 4092; return 0; } 4093EOF 4094if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4095 rm -rf conftest* 4096 ac_cv_lbl_have_int32_t=yes 4097else 4098 echo "configure: failed program was:" >&5 4099 cat conftest.$ac_ext >&5 4100 rm -rf conftest* 4101 ac_cv_lbl_have_int32_t=no 4102fi 4103rm -f conftest* 4104fi 4105 4106 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6 4107 if test $ac_cv_lbl_have_int32_t = no ; then 4108 cat >> confdefs.h <<\EOF 4109#define int32_t int 4110EOF 4111 4112 fi 4113echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6 4114echo "configure:4115: checking for u_int32_t using $CC" >&5 4115 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then 4116 echo $ac_n "(cached) $ac_c" 1>&6 4117else 4118 cat > conftest.$ac_ext <<EOF 4119#line 4120 "configure" 4120#include "confdefs.h" 4121 4122# include "confdefs.h" 4123# include <sys/types.h> 4124# if STDC_HEADERS 4125# include <stdlib.h> 4126# include <stddef.h> 4127# endif 4128int main() { 4129u_int32_t i 4130; return 0; } 4131EOF 4132if { (eval echo configure:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4133 rm -rf conftest* 4134 ac_cv_lbl_have_u_int32_t=yes 4135else 4136 echo "configure: failed program was:" >&5 4137 cat conftest.$ac_ext >&5 4138 rm -rf conftest* 4139 ac_cv_lbl_have_u_int32_t=no 4140fi 4141rm -f conftest* 4142fi 4143 4144 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6 4145 if test $ac_cv_lbl_have_u_int32_t = no ; then 4146 cat >> confdefs.h <<\EOF 4147#define u_int32_t u_int 4148EOF 4149 4150 fi 4151 4152rm -f os-proto.h 4153 if test "${LBL_CFLAGS+set}" = set; then 4154 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 4155 fi 4156 if test -f .devel ; then 4157 if test "$GCC" = yes ; then 4158 if test "${LBL_CFLAGS+set}" != set; then 4159 if test "$ac_cv_prog_cc_g" = yes ; then 4160 V_CCOPT="-g $V_CCOPT" 4161 fi 4162 V_CCOPT="$V_CCOPT -Wall" 4163 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 4164 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 4165 fi 4166 fi 4167 else 4168 case "$host_os" in 4169 4170 irix6*) 4171 V_CCOPT="$V_CCOPT -n32" 4172 ;; 4173 4174 *) 4175 ;; 4176 esac 4177 fi 4178 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 4179 name="lbl/os-$os.h" 4180 if test -f $name ; then 4181 ln -s $name os-proto.h 4182 cat >> confdefs.h <<\EOF 4183#define HAVE_OS_PROTO_H 1 4184EOF 4185 4186 else 4187 echo "configure: warning: can't find $name" 1>&2 4188 fi 4189 fi 4190 4191echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 4192echo "configure:4193: checking if sockaddr struct has sa_len member" >&5 4193 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then 4194 echo $ac_n "(cached) $ac_c" 1>&6 4195else 4196 cat > conftest.$ac_ext <<EOF 4197#line 4198 "configure" 4198#include "confdefs.h" 4199 4200# include <sys/types.h> 4201# include <sys/socket.h> 4202int main() { 4203u_int i = sizeof(((struct sockaddr *)0)->sa_len) 4204; return 0; } 4205EOF 4206if { (eval echo configure:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4207 rm -rf conftest* 4208 ac_cv_lbl_sockaddr_has_sa_len=yes 4209else 4210 echo "configure: failed program was:" >&5 4211 cat conftest.$ac_ext >&5 4212 rm -rf conftest* 4213 ac_cv_lbl_sockaddr_has_sa_len=no 4214fi 4215rm -f conftest* 4216fi 4217 4218 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6 4219 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 4220 cat >> confdefs.h <<\EOF 4221#define HAVE_SOCKADDR_SA_LEN 1 4222EOF 4223 4224 fi 4225 4226echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6 4227echo "configure:4228: checking if unaligned accesses fail" >&5 4228 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then 4229 echo $ac_n "(cached) $ac_c" 1>&6 4230else 4231 case "$host_cpu" in 4232 4233 # XXX: should also check that they don't do weird things (like on arm) 4234 alpha*|arm*|hp*|mips*|sparc*|ia64) 4235 ac_cv_lbl_unaligned_fail=yes 4236 ;; 4237 4238 *) 4239 cat >conftest.c <<EOF 4240# include <sys/types.h> 4241# include <sys/wait.h> 4242# include <stdio.h> 4243 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 4244 main() { 4245 unsigned int i; 4246 pid_t pid; 4247 int status; 4248 /* avoid "core dumped" message */ 4249 pid = fork(); 4250 if (pid < 0) 4251 exit(2); 4252 if (pid > 0) { 4253 /* parent */ 4254 pid = waitpid(pid, &status, 0); 4255 if (pid < 0) 4256 exit(3); 4257 exit(!WIFEXITED(status)); 4258 } 4259 /* child */ 4260 i = *(unsigned int *)&a[1]; 4261 printf("%d\n", i); 4262 exit(0); 4263 } 4264EOF 4265 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 4266 conftest.c $LIBS >/dev/null 2>&1 4267 if test ! -x conftest ; then 4268 ac_cv_lbl_unaligned_fail=yes 4269 else 4270 ./conftest >conftest.out 4271 if test ! -s conftest.out ; then 4272 ac_cv_lbl_unaligned_fail=yes 4273 else 4274 ac_cv_lbl_unaligned_fail=no 4275 fi 4276 fi 4277 rm -f conftest* core core.conftest 4278 ;; 4279 esac 4280fi 4281 4282 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6 4283 if test $ac_cv_lbl_unaligned_fail = yes ; then 4284 cat >> confdefs.h <<\EOF 4285#define LBL_ALIGN 1 4286EOF 4287 4288 fi 4289 4290 4291 echo $ac_n "checking for h_errno""... $ac_c" 1>&6 4292echo "configure:4293: checking for h_errno" >&5 4293 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then 4294 echo $ac_n "(cached) $ac_c" 1>&6 4295else 4296 cat > conftest.$ac_ext <<EOF 4297#line 4298 "configure" 4298#include "confdefs.h" 4299 4300# include <sys/types.h> 4301# include <netdb.h> 4302int main() { 4303int foo = h_errno; 4304; return 0; } 4305EOF 4306if { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4307 rm -rf conftest* 4308 ac_cv_var_h_errno=yes 4309else 4310 echo "configure: failed program was:" >&5 4311 cat conftest.$ac_ext >&5 4312 rm -rf conftest* 4313 ac_cv_var_h_errno=no 4314fi 4315rm -f conftest* 4316fi 4317 4318 echo "$ac_t""$ac_cv_var_h_errno" 1>&6 4319 if test "$ac_cv_var_h_errno" = "yes"; then 4320 cat >> confdefs.h <<\EOF 4321#define HAVE_H_ERRNO 1 4322EOF 4323 4324 fi 4325 4326 4327# Check whether --with-crypto or --without-crypto was given. 4328if test "${with_crypto+set}" = set; then 4329 withval="$with_crypto" 4330 : 4331else 4332 4333echo $ac_n "checking for SSLeay""... $ac_c" 1>&6 4334echo "configure:4335: checking for SSLeay" >&5 4335ac_cv_ssleay_path=no 4336incdir=no 4337for dir in /usr /usr/local /usr/local/ssl /usr/pkg; do 4338 if test -d $dir/lib -a -f $dir/lib/libcrypto.a; then 4339 ac_cv_ssleay_path=$dir 4340 fi 4341 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then 4342 incdir="-I$dir/include" 4343 fi 4344 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 4345 break; 4346 else 4347 ac_cv_ssleay_path=no 4348 incdir=no 4349 fi 4350done 4351echo "$ac_t""$ac_cv_ssleay_path" 1>&6 4352if test "$ac_cv_ssleay_path" != no; then 4353 V_INCLS="$V_INCLS $incdir" 4354 LDFLAGS="-L$dir/lib $LDFLAGS" 4355 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 4356 LIBS="$LIBS -lRSAglue" 4357 fi 4358 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 4359 LIBS="$LIBS -lrsaref" 4360 fi 4361 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 4362echo "configure:4363: checking for des_cbc_encrypt in -lcrypto" >&5 4363ac_lib_var=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 4364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4365 echo $ac_n "(cached) $ac_c" 1>&6 4366else 4367 ac_save_LIBS="$LIBS" 4368LIBS="-lcrypto $LIBS" 4369cat > conftest.$ac_ext <<EOF 4370#line 4371 "configure" 4371#include "confdefs.h" 4372/* Override any gcc2 internal prototype to avoid an error. */ 4373/* We use char because int might match the return type of a gcc2 4374 builtin and then its argument prototype would still apply. */ 4375char des_cbc_encrypt(); 4376 4377int main() { 4378des_cbc_encrypt() 4379; return 0; } 4380EOF 4381if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4382 rm -rf conftest* 4383 eval "ac_cv_lib_$ac_lib_var=yes" 4384else 4385 echo "configure: failed program was:" >&5 4386 cat conftest.$ac_ext >&5 4387 rm -rf conftest* 4388 eval "ac_cv_lib_$ac_lib_var=no" 4389fi 4390rm -f conftest* 4391LIBS="$ac_save_LIBS" 4392 4393fi 4394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4395 echo "$ac_t""yes" 1>&6 4396 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4398 cat >> confdefs.h <<EOF 4399#define $ac_tr_lib 1 4400EOF 4401 4402 LIBS="-lcrypto $LIBS" 4403 4404else 4405 echo "$ac_t""no" 1>&6 4406fi 4407 4408 4409 bak_CPPFLAGS=$CPPFLAGS 4410 CPPFLAGS="$CPPFLAGS $V_INCLS" 4411 for ac_hdr in cast.h 4412do 4413ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4414echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4415echo "configure:4416: checking for $ac_hdr" >&5 4416if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4417 echo $ac_n "(cached) $ac_c" 1>&6 4418else 4419 cat > conftest.$ac_ext <<EOF 4420#line 4421 "configure" 4421#include "confdefs.h" 4422#include <$ac_hdr> 4423EOF 4424ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4425{ (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4426ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4427if test -z "$ac_err"; then 4428 rm -rf conftest* 4429 eval "ac_cv_header_$ac_safe=yes" 4430else 4431 echo "$ac_err" >&5 4432 echo "configure: failed program was:" >&5 4433 cat conftest.$ac_ext >&5 4434 rm -rf conftest* 4435 eval "ac_cv_header_$ac_safe=no" 4436fi 4437rm -f conftest* 4438fi 4439if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4440 echo "$ac_t""yes" 1>&6 4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4442 cat >> confdefs.h <<EOF 4443#define $ac_tr_hdr 1 4444EOF 4445 4446else 4447 echo "$ac_t""no" 1>&6 4448fi 4449done 4450 4451 4452 if test "$ac_cv_header_cast_h" = "yes"; then 4453 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6 4454echo "configure:4455: checking for buggy CAST128" >&5 4455 if test "$cross_compiling" = yes; then 4456 buggy_cast128="cross-compiling, assume yes" 4457else 4458 cat > conftest.$ac_ext <<EOF 4459#line 4460 "configure" 4460#include "confdefs.h" 4461 4462#include <cast.h> 4463main() 4464{ 4465 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12}; 4466 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF}; 4467 unsigned char out[sizeof(in)]; 4468 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E}; 4469 CAST_KEY ks; 4470 CAST_set_key(&ks, sizeof(key), key); 4471 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT); 4472 if (memcmp(out, ok, sizeof(ok)) != 0) 4473 return 0; 4474 else 4475 return 1; 4476} 4477EOF 4478if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4479then 4480 buggy_cast128=yes 4481else 4482 echo "configure: failed program was:" >&5 4483 cat conftest.$ac_ext >&5 4484 rm -fr conftest* 4485 buggy_cast128=no 4486fi 4487rm -fr conftest* 4488fi 4489 4490 echo "$ac_t""$buggy_cast128" 1>&6 4491 if test "$buggy_cast128" != no; then 4492 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine." 4493 echo "disabling CAST128 support." 4494 cat >> confdefs.h <<\EOF 4495#define HAVE_BUGGY_CAST128 1 4496EOF 4497 4498 fi 4499 fi 4500 4501 CPPFLAGS=$bak_CPPFLAGS 4502fi 4503 4504fi 4505 4506for ac_hdr in rc5.h 4507do 4508ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4509echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4510echo "configure:4511: checking for $ac_hdr" >&5 4511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4512 echo $ac_n "(cached) $ac_c" 1>&6 4513else 4514 cat > conftest.$ac_ext <<EOF 4515#line 4516 "configure" 4516#include "confdefs.h" 4517#include <$ac_hdr> 4518EOF 4519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4520{ (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4522if test -z "$ac_err"; then 4523 rm -rf conftest* 4524 eval "ac_cv_header_$ac_safe=yes" 4525else 4526 echo "$ac_err" >&5 4527 echo "configure: failed program was:" >&5 4528 cat conftest.$ac_ext >&5 4529 rm -rf conftest* 4530 eval "ac_cv_header_$ac_safe=no" 4531fi 4532rm -f conftest* 4533fi 4534if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4535 echo "$ac_t""yes" 1>&6 4536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4537 cat >> confdefs.h <<EOF 4538#define $ac_tr_hdr 1 4539EOF 4540 4541else 4542 echo "$ac_t""no" 1>&6 4543fi 4544done 4545 4546 4547 4548 4549 4550 4551 4552 4553# Find a good install program. We prefer a C program (faster), 4554# so one script is as good as another. But avoid the broken or 4555# incompatible versions: 4556# SysV /etc/install, /usr/sbin/install 4557# SunOS /usr/etc/install 4558# IRIX /sbin/install 4559# AIX /bin/install 4560# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4561# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4563# ./install, which can be erroneously created by make from ./install.sh. 4564echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 4565echo "configure:4566: checking for a BSD compatible install" >&5 4566if test -z "$INSTALL"; then 4567if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 4568 echo $ac_n "(cached) $ac_c" 1>&6 4569else 4570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 4571 for ac_dir in $PATH; do 4572 # Account for people who put trailing slashes in PATH elements. 4573 case "$ac_dir/" in 4574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 4575 *) 4576 # OSF1 and SCO ODT 3.0 have their own names for install. 4577 # Don't use installbsd from OSF since it installs stuff as root 4578 # by default. 4579 for ac_prog in ginstall scoinst install; do 4580 if test -f $ac_dir/$ac_prog; then 4581 if test $ac_prog = install && 4582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 4583 # AIX install. It has an incompatible calling convention. 4584 : 4585 else 4586 ac_cv_path_install="$ac_dir/$ac_prog -c" 4587 break 2 4588 fi 4589 fi 4590 done 4591 ;; 4592 esac 4593 done 4594 IFS="$ac_save_IFS" 4595 4596fi 4597 if test "${ac_cv_path_install+set}" = set; then 4598 INSTALL="$ac_cv_path_install" 4599 else 4600 # As a last resort, use the slow shell script. We don't cache a 4601 # path for INSTALL within a source directory, because that will 4602 # break other packages using the cache if that directory is 4603 # removed, or if the path is relative. 4604 INSTALL="$ac_install_sh" 4605 fi 4606fi 4607echo "$ac_t""$INSTALL" 1>&6 4608 4609# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4610# It thinks the first close brace ends the variable substitution. 4611test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4612 4613test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 4614 4615test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4616 4617 4618 4619 4620 4621trap '' 1 2 15 4622cat > confcache <<\EOF 4623# This file is a shell script that caches the results of configure 4624# tests run on this system so they can be shared between configure 4625# scripts and configure runs. It is not useful on other systems. 4626# If it contains results you don't want to keep, you may remove or edit it. 4627# 4628# By default, configure uses ./config.cache as the cache file, 4629# creating it if it does not exist already. You can give configure 4630# the --cache-file=FILE option to use a different cache file; that is 4631# what configure does when it calls configure scripts in 4632# subdirectories, so they share the cache. 4633# Giving --cache-file=/dev/null disables caching, for debugging configure. 4634# config.status only pays attention to the cache file if you give it the 4635# --recheck option to rerun configure. 4636# 4637EOF 4638# The following way of writing the cache mishandles newlines in values, 4639# but we know of no workaround that is simple, portable, and efficient. 4640# So, don't put newlines in cache variables' values. 4641# Ultrix sh set writes to stderr and can't be redirected directly, 4642# and sets the high bit in the cache file unless we assign to the vars. 4643(set) 2>&1 | 4644 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4645 *ac_space=\ *) 4646 # `set' does not quote correctly, so add quotes (double-quote substitution 4647 # turns \\\\ into \\, and sed turns \\ into \). 4648 sed -n \ 4649 -e "s/'/'\\\\''/g" \ 4650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4651 ;; 4652 *) 4653 # `set' quotes correctly as required by POSIX, so do not add quotes. 4654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4655 ;; 4656 esac >> confcache 4657if cmp -s $cache_file confcache; then 4658 : 4659else 4660 if test -w $cache_file; then 4661 echo "updating cache $cache_file" 4662 cat confcache > $cache_file 4663 else 4664 echo "not updating unwritable cache $cache_file" 4665 fi 4666fi 4667rm -f confcache 4668 4669trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4670 4671test "x$prefix" = xNONE && prefix=$ac_default_prefix 4672# Let make expand exec_prefix. 4673test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4674 4675# Any assignment to VPATH causes Sun make to only execute 4676# the first set of double-colon rules, so remove it if not needed. 4677# If there is a colon in the path, we need to keep it. 4678if test "x$srcdir" = x.; then 4679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4680fi 4681 4682trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4683 4684DEFS=-DHAVE_CONFIG_H 4685 4686# Without the "./", some shells look in PATH for config.status. 4687: ${CONFIG_STATUS=./config.status} 4688 4689echo creating $CONFIG_STATUS 4690rm -f $CONFIG_STATUS 4691cat > $CONFIG_STATUS <<EOF 4692#! /bin/sh 4693# Generated automatically by configure. 4694# Run this file to recreate the current configuration. 4695# This directory was configured as follows, 4696# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4697# 4698# $0 $ac_configure_args 4699# 4700# Compiler output produced by configure, useful for debugging 4701# configure, is in ./config.log if it exists. 4702 4703ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4704for ac_option 4705do 4706 case "\$ac_option" in 4707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4708 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4709 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4710 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4711 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4712 exit 0 ;; 4713 -help | --help | --hel | --he | --h) 4714 echo "\$ac_cs_usage"; exit 0 ;; 4715 *) echo "\$ac_cs_usage"; exit 1 ;; 4716 esac 4717done 4718 4719ac_given_srcdir=$srcdir 4720ac_given_INSTALL="$INSTALL" 4721 4722trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4723EOF 4724cat >> $CONFIG_STATUS <<EOF 4725 4726# Protect against being on the right side of a sed subst in config.status. 4727sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4728 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4729$ac_vpsub 4730$extrasub 4731s%@SHELL@%$SHELL%g 4732s%@CFLAGS@%$CFLAGS%g 4733s%@CPPFLAGS@%$CPPFLAGS%g 4734s%@CXXFLAGS@%$CXXFLAGS%g 4735s%@FFLAGS@%$FFLAGS%g 4736s%@DEFS@%$DEFS%g 4737s%@LDFLAGS@%$LDFLAGS%g 4738s%@LIBS@%$LIBS%g 4739s%@exec_prefix@%$exec_prefix%g 4740s%@prefix@%$prefix%g 4741s%@program_transform_name@%$program_transform_name%g 4742s%@bindir@%$bindir%g 4743s%@sbindir@%$sbindir%g 4744s%@libexecdir@%$libexecdir%g 4745s%@datadir@%$datadir%g 4746s%@sysconfdir@%$sysconfdir%g 4747s%@sharedstatedir@%$sharedstatedir%g 4748s%@localstatedir@%$localstatedir%g 4749s%@libdir@%$libdir%g 4750s%@includedir@%$includedir%g 4751s%@oldincludedir@%$oldincludedir%g 4752s%@infodir@%$infodir%g 4753s%@mandir@%$mandir%g 4754s%@host@%$host%g 4755s%@host_alias@%$host_alias%g 4756s%@host_cpu@%$host_cpu%g 4757s%@host_vendor@%$host_vendor%g 4758s%@host_os@%$host_os%g 4759s%@SHLICC2@%$SHLICC2%g 4760s%@CC@%$CC%g 4761s%@CPP@%$CPP%g 4762s%@LIBOBJS@%$LIBOBJS%g 4763s%@V_CCOPT@%$V_CCOPT%g 4764s%@V_GROUP@%$V_GROUP%g 4765s%@V_INCLS@%$V_INCLS%g 4766s%@V_PCAPDEP@%$V_PCAPDEP%g 4767s%@LOCALSRC@%$LOCALSRC%g 4768s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4769s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4770s%@INSTALL_DATA@%$INSTALL_DATA%g 4771 4772CEOF 4773EOF 4774 4775cat >> $CONFIG_STATUS <<\EOF 4776 4777# Split the substitutions into bite-sized pieces for seds with 4778# small command number limits, like on Digital OSF/1 and HP-UX. 4779ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4780ac_file=1 # Number of current file. 4781ac_beg=1 # First line for current file. 4782ac_end=$ac_max_sed_cmds # Line after last line for current file. 4783ac_more_lines=: 4784ac_sed_cmds="" 4785while $ac_more_lines; do 4786 if test $ac_beg -gt 1; then 4787 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4788 else 4789 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4790 fi 4791 if test ! -s conftest.s$ac_file; then 4792 ac_more_lines=false 4793 rm -f conftest.s$ac_file 4794 else 4795 if test -z "$ac_sed_cmds"; then 4796 ac_sed_cmds="sed -f conftest.s$ac_file" 4797 else 4798 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4799 fi 4800 ac_file=`expr $ac_file + 1` 4801 ac_beg=$ac_end 4802 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4803 fi 4804done 4805if test -z "$ac_sed_cmds"; then 4806 ac_sed_cmds=cat 4807fi 4808EOF 4809 4810cat >> $CONFIG_STATUS <<EOF 4811 4812CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 4813EOF 4814cat >> $CONFIG_STATUS <<\EOF 4815for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4817 case "$ac_file" in 4818 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4819 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4820 *) ac_file_in="${ac_file}.in" ;; 4821 esac 4822 4823 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4824 4825 # Remove last slash and all that follows it. Not all systems have dirname. 4826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4828 # The file is in a subdirectory. 4829 test ! -d "$ac_dir" && mkdir "$ac_dir" 4830 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4831 # A "../" for each directory in $ac_dir_suffix. 4832 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4833 else 4834 ac_dir_suffix= ac_dots= 4835 fi 4836 4837 case "$ac_given_srcdir" in 4838 .) srcdir=. 4839 if test -z "$ac_dots"; then top_srcdir=. 4840 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4841 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4842 *) # Relative path. 4843 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4844 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4845 esac 4846 4847 case "$ac_given_INSTALL" in 4848 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4849 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4850 esac 4851 4852 echo creating "$ac_file" 4853 rm -f "$ac_file" 4854 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4855 case "$ac_file" in 4856 *Makefile*) ac_comsub="1i\\ 4857# $configure_input" ;; 4858 *) ac_comsub= ;; 4859 esac 4860 4861 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4862 sed -e "$ac_comsub 4863s%@configure_input@%$configure_input%g 4864s%@srcdir@%$srcdir%g 4865s%@top_srcdir@%$top_srcdir%g 4866s%@INSTALL@%$INSTALL%g 4867" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4868fi; done 4869rm -f conftest.s* 4870 4871# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4872# NAME is the cpp macro being defined and VALUE is the value it is being given. 4873# 4874# ac_d sets the value in "#define NAME VALUE" lines. 4875ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4876ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4877ac_dC='\3' 4878ac_dD='%g' 4879# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4880ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4881ac_uB='\([ ]\)%\1#\2define\3' 4882ac_uC=' ' 4883ac_uD='\4%g' 4884# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4885ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4886ac_eB='$%\1#\2define\3' 4887ac_eC=' ' 4888ac_eD='%g' 4889 4890if test "${CONFIG_HEADERS+set}" != set; then 4891EOF 4892cat >> $CONFIG_STATUS <<EOF 4893 CONFIG_HEADERS="config.h" 4894EOF 4895cat >> $CONFIG_STATUS <<\EOF 4896fi 4897for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4899 case "$ac_file" in 4900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4902 *) ac_file_in="${ac_file}.in" ;; 4903 esac 4904 4905 echo creating $ac_file 4906 4907 rm -f conftest.frag conftest.in conftest.out 4908 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4909 cat $ac_file_inputs > conftest.in 4910 4911EOF 4912 4913# Transform confdefs.h into a sed script conftest.vals that substitutes 4914# the proper values into config.h.in to produce config.h. And first: 4915# Protect against being on the right side of a sed subst in config.status. 4916# Protect against being in an unquoted here document in config.status. 4917rm -f conftest.vals 4918cat > conftest.hdr <<\EOF 4919s/[\\&%]/\\&/g 4920s%[\\$`]%\\&%g 4921s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4922s%ac_d%ac_u%gp 4923s%ac_u%ac_e%gp 4924EOF 4925sed -n -f conftest.hdr confdefs.h > conftest.vals 4926rm -f conftest.hdr 4927 4928# This sed command replaces #undef with comments. This is necessary, for 4929# example, in the case of _POSIX_SOURCE, which is predefined and required 4930# on some systems where configure will not decide to define it. 4931cat >> conftest.vals <<\EOF 4932s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4933EOF 4934 4935# Break up conftest.vals because some shells have a limit on 4936# the size of here documents, and old seds have small limits too. 4937 4938rm -f conftest.tail 4939while : 4940do 4941 ac_lines=`grep -c . conftest.vals` 4942 # grep -c gives empty output for an empty file on some AIX systems. 4943 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4944 # Write a limited-size here document to conftest.frag. 4945 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4946 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4947 echo 'CEOF 4948 sed -f conftest.frag conftest.in > conftest.out 4949 rm -f conftest.in 4950 mv conftest.out conftest.in 4951' >> $CONFIG_STATUS 4952 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4953 rm -f conftest.vals 4954 mv conftest.tail conftest.vals 4955done 4956rm -f conftest.vals 4957 4958cat >> $CONFIG_STATUS <<\EOF 4959 rm -f conftest.frag conftest.h 4960 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4961 cat conftest.in >> conftest.h 4962 rm -f conftest.in 4963 if cmp -s $ac_file conftest.h 2>/dev/null; then 4964 echo "$ac_file is unchanged" 4965 rm -f conftest.h 4966 else 4967 # Remove last slash and all that follows it. Not all systems have dirname. 4968 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4970 # The file is in a subdirectory. 4971 test ! -d "$ac_dir" && mkdir "$ac_dir" 4972 fi 4973 rm -f $ac_file 4974 mv conftest.h $ac_file 4975 fi 4976fi; done 4977 4978EOF 4979cat >> $CONFIG_STATUS <<EOF 4980 4981 4982EOF 4983cat >> $CONFIG_STATUS <<\EOF 4984if test -f .devel; then 4985 echo timestamp > stamp-h 4986 cat Makefile-devel-adds >> Makefile 4987 make depend 4988fi 4989 4990exit 0 4991EOF 4992chmod +x $CONFIG_STATUS 4993rm -fr confdefs* $ac_clean_files 4994test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4995 4996exit 0 4997