1#! /bin/sh 2 3# From configure.in Revision: 1.94 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39# Guess values for system-dependent variables and create Makefiles. 40# Generated automatically using autoconf version 2.13 41# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 42# 43# This configure script is free software; the Free Software Foundation 44# gives unlimited permission to copy, distribute and modify it. 45 46# Defaults: 47ac_help= 48ac_default_prefix=/usr/local 49# Any additions from configure.in: 50ac_help="$ac_help 51 --without-gcc don't use gcc" 52ac_help="$ac_help 53 --disable-protochain disable \"protochain\" insn" 54ac_help="$ac_help 55 --with-pcap=TYPE use packet capture TYPE" 56ac_help="$ac_help 57 --enable-ipv6 build IPv6-capable version" 58ac_help="$ac_help 59 --enable-optimizer-dbg build optimizer debugging code" 60ac_help="$ac_help 61 --enable-yydebug build parser debugging code" 62ac_help="$ac_help 63 --without-flex don't use flex" 64ac_help="$ac_help 65 --without-bison don't use bison" 66 67# Initialize some variables set by options. 68# The variables have the same names as the options, with 69# dashes changed to underlines. 70build=NONE 71cache_file=./config.cache 72exec_prefix=NONE 73host=NONE 74no_create= 75nonopt=NONE 76no_recursion= 77prefix=NONE 78program_prefix=NONE 79program_suffix=NONE 80program_transform_name=s,x,x, 81silent= 82site= 83srcdir= 84target=NONE 85verbose= 86x_includes=NONE 87x_libraries=NONE 88bindir='${exec_prefix}/bin' 89sbindir='${exec_prefix}/sbin' 90libexecdir='${exec_prefix}/libexec' 91datadir='${prefix}/share' 92sysconfdir='${prefix}/etc' 93sharedstatedir='${prefix}/com' 94localstatedir='${prefix}/var' 95libdir='${exec_prefix}/lib' 96includedir='${prefix}/include' 97oldincludedir='/usr/include' 98infodir='${prefix}/info' 99mandir='${prefix}/man' 100 101# Initialize some other variables. 102subdirs= 103MFLAGS= MAKEFLAGS= 104SHELL=${CONFIG_SHELL-/bin/sh} 105# Maximum number of lines to put in a shell here document. 106ac_max_here_lines=12 107 108ac_prev= 109for ac_option 110do 111 112 # If the previous option needs an argument, assign it. 113 if test -n "$ac_prev"; then 114 eval "$ac_prev=\$ac_option" 115 ac_prev= 116 continue 117 fi 118 119 case "$ac_option" in 120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 121 *) ac_optarg= ;; 122 esac 123 124 # Accept the important Cygnus configure options, so we can diagnose typos. 125 126 case "$ac_option" in 127 128 -bindir | --bindir | --bindi | --bind | --bin | --bi) 129 ac_prev=bindir ;; 130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 131 bindir="$ac_optarg" ;; 132 133 -build | --build | --buil | --bui | --bu) 134 ac_prev=build ;; 135 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 136 build="$ac_optarg" ;; 137 138 -cache-file | --cache-file | --cache-fil | --cache-fi \ 139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 140 ac_prev=cache_file ;; 141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 143 cache_file="$ac_optarg" ;; 144 145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 146 ac_prev=datadir ;; 147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 148 | --da=*) 149 datadir="$ac_optarg" ;; 150 151 -disable-* | --disable-*) 152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 153 # Reject names that are not valid shell variable names. 154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 156 fi 157 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 158 eval "enable_${ac_feature}=no" ;; 159 160 -enable-* | --enable-*) 161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 162 # Reject names that are not valid shell variable names. 163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 165 fi 166 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 167 case "$ac_option" in 168 *=*) ;; 169 *) ac_optarg=yes ;; 170 esac 171 eval "enable_${ac_feature}='$ac_optarg'" ;; 172 173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 175 | --exec | --exe | --ex) 176 ac_prev=exec_prefix ;; 177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 179 | --exec=* | --exe=* | --ex=*) 180 exec_prefix="$ac_optarg" ;; 181 182 -gas | --gas | --ga | --g) 183 # Obsolete; use --with-gas. 184 with_gas=yes ;; 185 186 -help | --help | --hel | --he) 187 # Omit some internal or obsolete options to make the list less imposing. 188 # This message is too long to be a string in the A/UX 3.1 sh. 189 cat << EOF 190Usage: configure [options] [host] 191Options: [defaults in brackets after descriptions] 192Configuration: 193 --cache-file=FILE cache test results in FILE 194 --help print this message 195 --no-create do not create output files 196 --quiet, --silent do not print \`checking...' messages 197 --version print the version of autoconf that created configure 198Directory and file names: 199 --prefix=PREFIX install architecture-independent files in PREFIX 200 [$ac_default_prefix] 201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 202 [same as prefix] 203 --bindir=DIR user executables in DIR [EPREFIX/bin] 204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 206 --datadir=DIR read-only architecture-independent data in DIR 207 [PREFIX/share] 208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 209 --sharedstatedir=DIR modifiable architecture-independent data in DIR 210 [PREFIX/com] 211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 212 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 213 --includedir=DIR C header files in DIR [PREFIX/include] 214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 215 --infodir=DIR info documentation in DIR [PREFIX/info] 216 --mandir=DIR man documentation in DIR [PREFIX/man] 217 --srcdir=DIR find the sources in DIR [configure dir or ..] 218 --program-prefix=PREFIX prepend PREFIX to installed program names 219 --program-suffix=SUFFIX append SUFFIX to installed program names 220 --program-transform-name=PROGRAM 221 run sed PROGRAM on installed program names 222EOF 223 cat << EOF 224Host type: 225 --build=BUILD configure for building on BUILD [BUILD=HOST] 226 --host=HOST configure for HOST [guessed] 227 --target=TARGET configure for TARGET [TARGET=HOST] 228Features and packages: 229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 233 --x-includes=DIR X include files are in DIR 234 --x-libraries=DIR X library files are in DIR 235EOF 236 if test -n "$ac_help"; then 237 echo "--enable and --with options recognized:$ac_help" 238 fi 239 exit 0 ;; 240 241 -host | --host | --hos | --ho) 242 ac_prev=host ;; 243 -host=* | --host=* | --hos=* | --ho=*) 244 host="$ac_optarg" ;; 245 246 -includedir | --includedir | --includedi | --included | --include \ 247 | --includ | --inclu | --incl | --inc) 248 ac_prev=includedir ;; 249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 250 | --includ=* | --inclu=* | --incl=* | --inc=*) 251 includedir="$ac_optarg" ;; 252 253 -infodir | --infodir | --infodi | --infod | --info | --inf) 254 ac_prev=infodir ;; 255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 256 infodir="$ac_optarg" ;; 257 258 -libdir | --libdir | --libdi | --libd) 259 ac_prev=libdir ;; 260 -libdir=* | --libdir=* | --libdi=* | --libd=*) 261 libdir="$ac_optarg" ;; 262 263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 264 | --libexe | --libex | --libe) 265 ac_prev=libexecdir ;; 266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 267 | --libexe=* | --libex=* | --libe=*) 268 libexecdir="$ac_optarg" ;; 269 270 -localstatedir | --localstatedir | --localstatedi | --localstated \ 271 | --localstate | --localstat | --localsta | --localst \ 272 | --locals | --local | --loca | --loc | --lo) 273 ac_prev=localstatedir ;; 274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 277 localstatedir="$ac_optarg" ;; 278 279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 280 ac_prev=mandir ;; 281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 282 mandir="$ac_optarg" ;; 283 284 -nfp | --nfp | --nf) 285 # Obsolete; use --without-fp. 286 with_fp=no ;; 287 288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 289 | --no-cr | --no-c) 290 no_create=yes ;; 291 292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 294 no_recursion=yes ;; 295 296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 298 | --oldin | --oldi | --old | --ol | --o) 299 ac_prev=oldincludedir ;; 300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 303 oldincludedir="$ac_optarg" ;; 304 305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 306 ac_prev=prefix ;; 307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 308 prefix="$ac_optarg" ;; 309 310 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 311 | --program-pre | --program-pr | --program-p) 312 ac_prev=program_prefix ;; 313 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 315 program_prefix="$ac_optarg" ;; 316 317 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 318 | --program-suf | --program-su | --program-s) 319 ac_prev=program_suffix ;; 320 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 322 program_suffix="$ac_optarg" ;; 323 324 -program-transform-name | --program-transform-name \ 325 | --program-transform-nam | --program-transform-na \ 326 | --program-transform-n | --program-transform- \ 327 | --program-transform | --program-transfor \ 328 | --program-transfo | --program-transf \ 329 | --program-trans | --program-tran \ 330 | --progr-tra | --program-tr | --program-t) 331 ac_prev=program_transform_name ;; 332 -program-transform-name=* | --program-transform-name=* \ 333 | --program-transform-nam=* | --program-transform-na=* \ 334 | --program-transform-n=* | --program-transform-=* \ 335 | --program-transform=* | --program-transfor=* \ 336 | --program-transfo=* | --program-transf=* \ 337 | --program-trans=* | --program-tran=* \ 338 | --progr-tra=* | --program-tr=* | --program-t=*) 339 program_transform_name="$ac_optarg" ;; 340 341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 342 | -silent | --silent | --silen | --sile | --sil) 343 silent=yes ;; 344 345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 346 ac_prev=sbindir ;; 347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 348 | --sbi=* | --sb=*) 349 sbindir="$ac_optarg" ;; 350 351 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 353 | --sharedst | --shareds | --shared | --share | --shar \ 354 | --sha | --sh) 355 ac_prev=sharedstatedir ;; 356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 359 | --sha=* | --sh=*) 360 sharedstatedir="$ac_optarg" ;; 361 362 -site | --site | --sit) 363 ac_prev=site ;; 364 -site=* | --site=* | --sit=*) 365 site="$ac_optarg" ;; 366 367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 368 ac_prev=srcdir ;; 369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 370 srcdir="$ac_optarg" ;; 371 372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 373 | --syscon | --sysco | --sysc | --sys | --sy) 374 ac_prev=sysconfdir ;; 375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 377 sysconfdir="$ac_optarg" ;; 378 379 -target | --target | --targe | --targ | --tar | --ta | --t) 380 ac_prev=target ;; 381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 382 target="$ac_optarg" ;; 383 384 -v | -verbose | --verbose | --verbos | --verbo | --verb) 385 verbose=yes ;; 386 387 -version | --version | --versio | --versi | --vers) 388 echo "configure generated by autoconf version 2.13" 389 exit 0 ;; 390 391 -with-* | --with-*) 392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 393 # Reject names that are not valid shell variable names. 394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 396 fi 397 ac_package=`echo $ac_package| sed 's/-/_/g'` 398 case "$ac_option" in 399 *=*) ;; 400 *) ac_optarg=yes ;; 401 esac 402 eval "with_${ac_package}='$ac_optarg'" ;; 403 404 -without-* | --without-*) 405 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 406 # Reject names that are not valid shell variable names. 407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 409 fi 410 ac_package=`echo $ac_package| sed 's/-/_/g'` 411 eval "with_${ac_package}=no" ;; 412 413 --x) 414 # Obsolete; use --with-x. 415 with_x=yes ;; 416 417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 418 | --x-incl | --x-inc | --x-in | --x-i) 419 ac_prev=x_includes ;; 420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 422 x_includes="$ac_optarg" ;; 423 424 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 426 ac_prev=x_libraries ;; 427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 429 x_libraries="$ac_optarg" ;; 430 431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 432 ;; 433 434 *) 435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 436 echo "configure: warning: $ac_option: invalid host type" 1>&2 437 fi 438 if test "x$nonopt" != xNONE; then 439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 440 fi 441 nonopt="$ac_option" 442 ;; 443 444 esac 445done 446 447if test -n "$ac_prev"; then 448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 449fi 450 451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 452 453# File descriptor usage: 454# 0 standard input 455# 1 file creation 456# 2 errors and warnings 457# 3 some systems may open it to /dev/tty 458# 4 used on the Kubota Titan 459# 6 checking for... messages and results 460# 5 compiler messages saved in config.log 461if test "$silent" = yes; then 462 exec 6>/dev/null 463else 464 exec 6>&1 465fi 466exec 5>./config.log 467 468echo "\ 469This file contains any messages produced by compilers while 470running configure, to aid debugging if configure makes a mistake. 471" 1>&5 472 473# Strip out --no-create and --no-recursion so they do not pile up. 474# Also quote any args containing shell metacharacters. 475ac_configure_args= 476for ac_arg 477do 478 case "$ac_arg" in 479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 480 | --no-cr | --no-c) ;; 481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 484 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 485 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 486 esac 487done 488 489# NLS nuisances. 490# Only set these to C if already set. These must not be set unconditionally 491# because not all systems understand e.g. LANG=C (notably SCO). 492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 493# Non-C LC_CTYPE values break the ctype check. 494if test "${LANG+set}" = set; then LANG=C; export LANG; fi 495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 497if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 498 499# confdefs.h avoids OS command line length limits that DEFS can exceed. 500rm -rf conftest* confdefs.h 501# AIX cpp loses on an empty file, so make sure it contains at least a newline. 502echo > confdefs.h 503 504# A filename unique to this package, relative to the directory that 505# configure is in, which we can look for to find out if srcdir is correct. 506ac_unique_file=pcap.c 507 508# Find the source files, if location was not specified. 509if test -z "$srcdir"; then 510 ac_srcdir_defaulted=yes 511 # Try the directory containing this script, then its parent. 512 ac_prog=$0 513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 515 srcdir=$ac_confdir 516 if test ! -r $srcdir/$ac_unique_file; then 517 srcdir=.. 518 fi 519else 520 ac_srcdir_defaulted=no 521fi 522if test ! -r $srcdir/$ac_unique_file; then 523 if test "$ac_srcdir_defaulted" = yes; then 524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 525 else 526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 527 fi 528fi 529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 530 531# Prefer explicitly selected file to automatically selected ones. 532if test -z "$CONFIG_SITE"; then 533 if test "x$prefix" != xNONE; then 534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 535 else 536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 537 fi 538fi 539for ac_site_file in $CONFIG_SITE; do 540 if test -r "$ac_site_file"; then 541 echo "loading site script $ac_site_file" 542 . "$ac_site_file" 543 fi 544done 545 546if test -r "$cache_file"; then 547 echo "loading cache $cache_file" 548 . $cache_file 549else 550 echo "creating cache $cache_file" 551 > $cache_file 552fi 553 554ac_ext=c 555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 556ac_cpp='$CPP $CPPFLAGS' 557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 559cross_compiling=$ac_cv_prog_cc_cross 560 561ac_exeext= 562ac_objext=o 563if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 566 ac_n= ac_c=' 567' ac_t=' ' 568 else 569 ac_n=-n ac_c= ac_t= 570 fi 571else 572 ac_n= ac_c='\c' ac_t= 573fi 574 575 576 577ac_aux_dir= 578for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 579 if test -f $ac_dir/install-sh; then 580 ac_aux_dir=$ac_dir 581 ac_install_sh="$ac_aux_dir/install-sh -c" 582 break 583 elif test -f $ac_dir/install.sh; then 584 ac_aux_dir=$ac_dir 585 ac_install_sh="$ac_aux_dir/install.sh -c" 586 break 587 fi 588done 589if test -z "$ac_aux_dir"; then 590 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 591fi 592ac_config_guess=$ac_aux_dir/config.guess 593ac_config_sub=$ac_aux_dir/config.sub 594ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 595 596 597# Do some error checking and defaulting for the host and target type. 598# The inputs are: 599# configure --host=HOST --target=TARGET --build=BUILD NONOPT 600# 601# The rules are: 602# 1. You are not allowed to specify --host, --target, and nonopt at the 603# same time. 604# 2. Host defaults to nonopt. 605# 3. If nonopt is not specified, then host defaults to the current host, 606# as determined by config.guess. 607# 4. Target and build default to nonopt. 608# 5. If nonopt is not specified, then target and build default to host. 609 610# The aliases save the names the user supplied, while $host etc. 611# will get canonicalized. 612case $host---$target---$nonopt in 613NONE---*---* | *---NONE---* | *---*---NONE) ;; 614*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 615esac 616 617 618# Make sure we can run config.sub. 619if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 620else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 621fi 622 623echo $ac_n "checking host system type""... $ac_c" 1>&6 624echo "configure:625: checking host system type" >&5 625 626host_alias=$host 627case "$host_alias" in 628NONE) 629 case $nonopt in 630 NONE) 631 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 632 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 633 fi ;; 634 *) host_alias=$nonopt ;; 635 esac ;; 636esac 637 638host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 639host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 640host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 641host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 642echo "$ac_t""$host" 1>&6 643 644echo $ac_n "checking target system type""... $ac_c" 1>&6 645echo "configure:646: checking target system type" >&5 646 647target_alias=$target 648case "$target_alias" in 649NONE) 650 case $nonopt in 651 NONE) target_alias=$host_alias ;; 652 *) target_alias=$nonopt ;; 653 esac ;; 654esac 655 656target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 657target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 658target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 659target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 660echo "$ac_t""$target" 1>&6 661 662echo $ac_n "checking build system type""... $ac_c" 1>&6 663echo "configure:664: checking build system type" >&5 664 665build_alias=$build 666case "$build_alias" in 667NONE) 668 case $nonopt in 669 NONE) build_alias=$host_alias ;; 670 *) build_alias=$nonopt ;; 671 esac ;; 672esac 673 674build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 675build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 676build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 677build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 678echo "$ac_t""$build" 1>&6 679 680test "$host_alias" != "$target_alias" && 681 test "$program_prefix$program_suffix$program_transform_name" = \ 682 NONENONEs,x,x, && 683 program_prefix=${target_alias}- 684 685 686 687 688 689 690 # Check whether --with-gcc or --without-gcc was given. 691if test "${with_gcc+set}" = set; then 692 withval="$with_gcc" 693 : 694fi 695 696 V_CCOPT="-O" 697 V_INCLS="" 698 if test "${srcdir}" != "." ; then 699 V_INCLS="-I\$(srcdir)" 700 fi 701 if test "${CFLAGS+set}" = set; then 702 LBL_CFLAGS="$CFLAGS" 703 fi 704 if test -z "$CC" ; then 705 case "$target_os" in 706 707 bsdi*) 708 # Extract the first word of "shlicc2", so it can be a program name with args. 709set dummy shlicc2; ac_word=$2 710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 711echo "configure:712: checking for $ac_word" >&5 712if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then 713 echo $ac_n "(cached) $ac_c" 1>&6 714else 715 if test -n "$SHLICC2"; then 716 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 717else 718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 719 ac_dummy="$PATH" 720 for ac_dir in $ac_dummy; do 721 test -z "$ac_dir" && ac_dir=. 722 if test -f $ac_dir/$ac_word; then 723 ac_cv_prog_SHLICC2="yes" 724 break 725 fi 726 done 727 IFS="$ac_save_ifs" 728 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 729fi 730fi 731SHLICC2="$ac_cv_prog_SHLICC2" 732if test -n "$SHLICC2"; then 733 echo "$ac_t""$SHLICC2" 1>&6 734else 735 echo "$ac_t""no" 1>&6 736fi 737 738 if test $SHLICC2 = yes ; then 739 CC=shlicc2 740 export CC 741 fi 742 ;; 743 esac 744 fi 745 if test -z "$CC" -a "$with_gcc" = no ; then 746 CC=cc 747 export CC 748 fi 749 # Extract the first word of "gcc", so it can be a program name with args. 750set dummy gcc; ac_word=$2 751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 752echo "configure:753: checking for $ac_word" >&5 753if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 754 echo $ac_n "(cached) $ac_c" 1>&6 755else 756 if test -n "$CC"; then 757 ac_cv_prog_CC="$CC" # Let the user override the test. 758else 759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 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 ac_cv_prog_CC="gcc" 765 break 766 fi 767 done 768 IFS="$ac_save_ifs" 769fi 770fi 771CC="$ac_cv_prog_CC" 772if test -n "$CC"; then 773 echo "$ac_t""$CC" 1>&6 774else 775 echo "$ac_t""no" 1>&6 776fi 777 778if test -z "$CC"; then 779 # Extract the first word of "cc", so it can be a program name with args. 780set dummy cc; ac_word=$2 781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 782echo "configure:783: checking for $ac_word" >&5 783if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 784 echo $ac_n "(cached) $ac_c" 1>&6 785else 786 if test -n "$CC"; then 787 ac_cv_prog_CC="$CC" # Let the user override the test. 788else 789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 790 ac_prog_rejected=no 791 ac_dummy="$PATH" 792 for ac_dir in $ac_dummy; do 793 test -z "$ac_dir" && ac_dir=. 794 if test -f $ac_dir/$ac_word; then 795 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 796 ac_prog_rejected=yes 797 continue 798 fi 799 ac_cv_prog_CC="cc" 800 break 801 fi 802 done 803 IFS="$ac_save_ifs" 804if test $ac_prog_rejected = yes; then 805 # We found a bogon in the path, so make sure we never use it. 806 set dummy $ac_cv_prog_CC 807 shift 808 if test $# -gt 0; then 809 # We chose a different compiler from the bogus one. 810 # However, it has the same basename, so the bogon will be chosen 811 # first if we set CC to just the basename; use the full file name. 812 shift 813 set dummy "$ac_dir/$ac_word" "$@" 814 shift 815 ac_cv_prog_CC="$@" 816 fi 817fi 818fi 819fi 820CC="$ac_cv_prog_CC" 821if test -n "$CC"; then 822 echo "$ac_t""$CC" 1>&6 823else 824 echo "$ac_t""no" 1>&6 825fi 826 827 if test -z "$CC"; then 828 case "`uname -s`" in 829 *win32* | *WIN32*) 830 # Extract the first word of "cl", so it can be a program name with args. 831set dummy cl; ac_word=$2 832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 833echo "configure:834: checking for $ac_word" >&5 834if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 835 echo $ac_n "(cached) $ac_c" 1>&6 836else 837 if test -n "$CC"; then 838 ac_cv_prog_CC="$CC" # Let the user override the test. 839else 840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 841 ac_dummy="$PATH" 842 for ac_dir in $ac_dummy; do 843 test -z "$ac_dir" && ac_dir=. 844 if test -f $ac_dir/$ac_word; then 845 ac_cv_prog_CC="cl" 846 break 847 fi 848 done 849 IFS="$ac_save_ifs" 850fi 851fi 852CC="$ac_cv_prog_CC" 853if test -n "$CC"; then 854 echo "$ac_t""$CC" 1>&6 855else 856 echo "$ac_t""no" 1>&6 857fi 858 ;; 859 esac 860 fi 861 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 862fi 863 864echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 865echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 866 867ac_ext=c 868# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 869ac_cpp='$CPP $CPPFLAGS' 870ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 871ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 872cross_compiling=$ac_cv_prog_cc_cross 873 874cat > conftest.$ac_ext << EOF 875 876#line 877 "configure" 877#include "confdefs.h" 878 879main(){return(0);} 880EOF 881if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 882 ac_cv_prog_cc_works=yes 883 # If we can't run a trivial program, we are probably using a cross compiler. 884 if (./conftest; exit) 2>/dev/null; then 885 ac_cv_prog_cc_cross=no 886 else 887 ac_cv_prog_cc_cross=yes 888 fi 889else 890 echo "configure: failed program was:" >&5 891 cat conftest.$ac_ext >&5 892 ac_cv_prog_cc_works=no 893fi 894rm -fr conftest* 895ac_ext=c 896# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 897ac_cpp='$CPP $CPPFLAGS' 898ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 899ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 900cross_compiling=$ac_cv_prog_cc_cross 901 902echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 903if test $ac_cv_prog_cc_works = no; then 904 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 905fi 906echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 907echo "configure:908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 908echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 909cross_compiling=$ac_cv_prog_cc_cross 910 911echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 912echo "configure:913: checking whether we are using GNU C" >&5 913if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 914 echo $ac_n "(cached) $ac_c" 1>&6 915else 916 cat > conftest.c <<EOF 917#ifdef __GNUC__ 918 yes; 919#endif 920EOF 921if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 922 ac_cv_prog_gcc=yes 923else 924 ac_cv_prog_gcc=no 925fi 926fi 927 928echo "$ac_t""$ac_cv_prog_gcc" 1>&6 929 930if test $ac_cv_prog_gcc = yes; then 931 GCC=yes 932else 933 GCC= 934fi 935 936ac_test_CFLAGS="${CFLAGS+set}" 937ac_save_CFLAGS="$CFLAGS" 938CFLAGS= 939echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 940echo "configure:941: checking whether ${CC-cc} accepts -g" >&5 941if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 942 echo $ac_n "(cached) $ac_c" 1>&6 943else 944 echo 'void f(){}' > conftest.c 945if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 946 ac_cv_prog_cc_g=yes 947else 948 ac_cv_prog_cc_g=no 949fi 950rm -f conftest* 951 952fi 953 954echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 955if test "$ac_test_CFLAGS" = set; then 956 CFLAGS="$ac_save_CFLAGS" 957elif test $ac_cv_prog_cc_g = yes; then 958 if test "$GCC" = yes; then 959 CFLAGS="-g -O2" 960 else 961 CFLAGS="-g" 962 fi 963else 964 if test "$GCC" = yes; then 965 CFLAGS="-O2" 966 else 967 CFLAGS= 968 fi 969fi 970 971 if test "$GCC" = yes ; then 972 if test "$SHLICC2" = yes ; then 973 ac_cv_lbl_gcc_vers=2 974 V_CCOPT="-O2" 975 else 976 echo $ac_n "checking gcc version""... $ac_c" 1>&6 977echo "configure:978: checking gcc version" >&5 978 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then 979 echo $ac_n "(cached) $ac_c" 1>&6 980else 981 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 982 sed -e '/^gcc version /!d' \ 983 -e 's/^gcc version //' \ 984 -e 's/ .*//' -e 's/^[^0-9]*//' \ 985 -e 's/\..*//'` 986fi 987 988 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 989 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 990 V_CCOPT="-O2" 991 fi 992 fi 993 else 994 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6 995echo "configure:996: checking that $CC handles ansi prototypes" >&5 996 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then 997 echo $ac_n "(cached) $ac_c" 1>&6 998else 999 cat > conftest.$ac_ext <<EOF 1000#line 1001 "configure" 1001#include "confdefs.h" 1002#include <sys/types.h> 1003int main() { 1004int frob(int, char *) 1005; return 0; } 1006EOF 1007if { (eval echo configure:1008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1008 rm -rf conftest* 1009 ac_cv_lbl_cc_ansi_prototypes=yes 1010else 1011 echo "configure: failed program was:" >&5 1012 cat conftest.$ac_ext >&5 1013 rm -rf conftest* 1014 ac_cv_lbl_cc_ansi_prototypes=no 1015fi 1016rm -f conftest* 1017fi 1018 1019 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6 1020 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 1021 case "$target_os" in 1022 1023 hpux*) 1024 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6 1025echo "configure:1026: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 1026 savedcflags="$CFLAGS" 1027 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 1028 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then 1029 echo $ac_n "(cached) $ac_c" 1>&6 1030else 1031 cat > conftest.$ac_ext <<EOF 1032#line 1033 "configure" 1033#include "confdefs.h" 1034#include <sys/types.h> 1035int main() { 1036int frob(int, char *) 1037; return 0; } 1038EOF 1039if { (eval echo configure:1040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1040 rm -rf conftest* 1041 ac_cv_lbl_cc_hpux_cc_aa=yes 1042else 1043 echo "configure: failed program was:" >&5 1044 cat conftest.$ac_ext >&5 1045 rm -rf conftest* 1046 ac_cv_lbl_cc_hpux_cc_aa=no 1047fi 1048rm -f conftest* 1049fi 1050 1051 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6 1052 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 1053 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 1054 fi 1055 CFLAGS="$savedcflags" 1056 V_CCOPT="-Aa $V_CCOPT" 1057 cat >> confdefs.h <<\EOF 1058#define _HPUX_SOURCE 1 1059EOF 1060 1061 ;; 1062 1063 *) 1064 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 1065 ;; 1066 esac 1067 fi 1068 V_INCLS="$V_INCLS -I/usr/local/include" 1069 LDFLAGS="$LDFLAGS -L/usr/local/lib" 1070 1071 case "$target_os" in 1072 1073 irix*) 1074 V_CCOPT="$V_CCOPT -xansi -signed -g3" 1075 ;; 1076 1077 osf*) 1078 V_CCOPT="$V_CCOPT -std1 -g3" 1079 ;; 1080 1081 ultrix*) 1082 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6 1083echo "configure:1084: checking that Ultrix $CC hacks const in prototypes" >&5 1084 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then 1085 echo $ac_n "(cached) $ac_c" 1>&6 1086else 1087 cat > conftest.$ac_ext <<EOF 1088#line 1089 "configure" 1089#include "confdefs.h" 1090#include <sys/types.h> 1091int main() { 1092struct a { int b; }; 1093 void c(const struct a *) 1094; return 0; } 1095EOF 1096if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1097 rm -rf conftest* 1098 ac_cv_lbl_cc_const_proto=yes 1099else 1100 echo "configure: failed program was:" >&5 1101 cat conftest.$ac_ext >&5 1102 rm -rf conftest* 1103 ac_cv_lbl_cc_const_proto=no 1104fi 1105rm -f conftest* 1106fi 1107 1108 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6 1109 if test $ac_cv_lbl_cc_const_proto = no ; then 1110 cat >> confdefs.h <<\EOF 1111#define const 1112EOF 1113 1114 fi 1115 ;; 1116 esac 1117 fi 1118 1119echo $ac_n "checking for inline""... $ac_c" 1>&6 1120echo "configure:1121: checking for inline" >&5 1121if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1122 echo $ac_n "(cached) $ac_c" 1>&6 1123else 1124 ac_cv_c_inline=no 1125for ac_kw in inline __inline__ __inline; do 1126 cat > conftest.$ac_ext <<EOF 1127#line 1128 "configure" 1128#include "confdefs.h" 1129 1130int main() { 1131} $ac_kw foo() { 1132; return 0; } 1133EOF 1134if { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1135 rm -rf conftest* 1136 ac_cv_c_inline=$ac_kw; break 1137else 1138 echo "configure: failed program was:" >&5 1139 cat conftest.$ac_ext >&5 1140fi 1141rm -f conftest* 1142done 1143 1144fi 1145 1146echo "$ac_t""$ac_cv_c_inline" 1>&6 1147case "$ac_cv_c_inline" in 1148 inline | yes) ;; 1149 no) cat >> confdefs.h <<\EOF 1150#define inline 1151EOF 1152 ;; 1153 *) cat >> confdefs.h <<EOF 1154#define inline $ac_cv_c_inline 1155EOF 1156 ;; 1157esac 1158 1159 1160echo $ac_n "checking for __attribute__""... $ac_c" 1>&6 1161echo "configure:1162: checking for __attribute__" >&5 1162if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then 1163 echo $ac_n "(cached) $ac_c" 1>&6 1164else 1165 1166cat > conftest.$ac_ext <<EOF 1167#line 1168 "configure" 1168#include "confdefs.h" 1169 1170#include <stdlib.h> 1171 1172int main() { 1173 1174static void foo(void) __attribute__ ((noreturn)); 1175 1176static void 1177foo(void) 1178{ 1179 exit(1); 1180} 1181 1182; return 0; } 1183EOF 1184if { (eval echo configure:1185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1185 rm -rf conftest* 1186 ac_cv___attribute__=yes 1187else 1188 echo "configure: failed program was:" >&5 1189 cat conftest.$ac_ext >&5 1190 rm -rf conftest* 1191 ac_cv___attribute__=no 1192fi 1193rm -f conftest* 1194fi 1195 1196if test "$ac_cv___attribute__" = "yes"; then 1197 cat >> confdefs.h <<\EOF 1198#define HAVE___ATTRIBUTE__ 1 1199EOF 1200 1201fi 1202echo "$ac_t""$ac_cv___attribute__" 1>&6 1203 1204 1205echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6 1206echo "configure:1207: checking for u_int8_t using $CC" >&5 1207 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then 1208 echo $ac_n "(cached) $ac_c" 1>&6 1209else 1210 cat > conftest.$ac_ext <<EOF 1211#line 1212 "configure" 1212#include "confdefs.h" 1213 1214# include "confdefs.h" 1215# include <sys/types.h> 1216# if STDC_HEADERS 1217# include <stdlib.h> 1218# include <stddef.h> 1219# endif 1220int main() { 1221u_int8_t i 1222; return 0; } 1223EOF 1224if { (eval echo configure:1225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1225 rm -rf conftest* 1226 ac_cv_lbl_have_u_int8_t=yes 1227else 1228 echo "configure: failed program was:" >&5 1229 cat conftest.$ac_ext >&5 1230 rm -rf conftest* 1231 ac_cv_lbl_have_u_int8_t=no 1232fi 1233rm -f conftest* 1234fi 1235 1236 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6 1237 if test $ac_cv_lbl_have_u_int8_t = no ; then 1238 cat >> confdefs.h <<\EOF 1239#define u_int8_t u_char 1240EOF 1241 1242 fi 1243echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6 1244echo "configure:1245: checking for u_int16_t using $CC" >&5 1245 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then 1246 echo $ac_n "(cached) $ac_c" 1>&6 1247else 1248 cat > conftest.$ac_ext <<EOF 1249#line 1250 "configure" 1250#include "confdefs.h" 1251 1252# include "confdefs.h" 1253# include <sys/types.h> 1254# if STDC_HEADERS 1255# include <stdlib.h> 1256# include <stddef.h> 1257# endif 1258int main() { 1259u_int16_t i 1260; return 0; } 1261EOF 1262if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1263 rm -rf conftest* 1264 ac_cv_lbl_have_u_int16_t=yes 1265else 1266 echo "configure: failed program was:" >&5 1267 cat conftest.$ac_ext >&5 1268 rm -rf conftest* 1269 ac_cv_lbl_have_u_int16_t=no 1270fi 1271rm -f conftest* 1272fi 1273 1274 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6 1275 if test $ac_cv_lbl_have_u_int16_t = no ; then 1276 cat >> confdefs.h <<\EOF 1277#define u_int16_t u_short 1278EOF 1279 1280 fi 1281echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6 1282echo "configure:1283: checking for u_int32_t using $CC" >&5 1283 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then 1284 echo $ac_n "(cached) $ac_c" 1>&6 1285else 1286 cat > conftest.$ac_ext <<EOF 1287#line 1288 "configure" 1288#include "confdefs.h" 1289 1290# include "confdefs.h" 1291# include <sys/types.h> 1292# if STDC_HEADERS 1293# include <stdlib.h> 1294# include <stddef.h> 1295# endif 1296int main() { 1297u_int32_t i 1298; return 0; } 1299EOF 1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1301 rm -rf conftest* 1302 ac_cv_lbl_have_u_int32_t=yes 1303else 1304 echo "configure: failed program was:" >&5 1305 cat conftest.$ac_ext >&5 1306 rm -rf conftest* 1307 ac_cv_lbl_have_u_int32_t=no 1308fi 1309rm -f conftest* 1310fi 1311 1312 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6 1313 if test $ac_cv_lbl_have_u_int32_t = no ; then 1314 cat >> confdefs.h <<\EOF 1315#define u_int32_t u_int 1316EOF 1317 1318 fi 1319 1320echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1321echo "configure:1322: checking how to run the C preprocessor" >&5 1322# On Suns, sometimes $CPP names a directory. 1323if test -n "$CPP" && test -d "$CPP"; then 1324 CPP= 1325fi 1326if test -z "$CPP"; then 1327if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1328 echo $ac_n "(cached) $ac_c" 1>&6 1329else 1330 # This must be in double quotes, not single quotes, because CPP may get 1331 # substituted into the Makefile and "${CC-cc}" will confuse make. 1332 CPP="${CC-cc} -E" 1333 # On the NeXT, cc -E runs the code through the compiler's parser, 1334 # not just through cpp. 1335 cat > conftest.$ac_ext <<EOF 1336#line 1337 "configure" 1337#include "confdefs.h" 1338#include <assert.h> 1339Syntax Error 1340EOF 1341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1342{ (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1344if test -z "$ac_err"; then 1345 : 1346else 1347 echo "$ac_err" >&5 1348 echo "configure: failed program was:" >&5 1349 cat conftest.$ac_ext >&5 1350 rm -rf conftest* 1351 CPP="${CC-cc} -E -traditional-cpp" 1352 cat > conftest.$ac_ext <<EOF 1353#line 1354 "configure" 1354#include "confdefs.h" 1355#include <assert.h> 1356Syntax Error 1357EOF 1358ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1359{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1360ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1361if test -z "$ac_err"; then 1362 : 1363else 1364 echo "$ac_err" >&5 1365 echo "configure: failed program was:" >&5 1366 cat conftest.$ac_ext >&5 1367 rm -rf conftest* 1368 CPP="${CC-cc} -nologo -E" 1369 cat > conftest.$ac_ext <<EOF 1370#line 1371 "configure" 1371#include "confdefs.h" 1372#include <assert.h> 1373Syntax Error 1374EOF 1375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1376{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1378if test -z "$ac_err"; then 1379 : 1380else 1381 echo "$ac_err" >&5 1382 echo "configure: failed program was:" >&5 1383 cat conftest.$ac_ext >&5 1384 rm -rf conftest* 1385 CPP=/lib/cpp 1386fi 1387rm -f conftest* 1388fi 1389rm -f conftest* 1390fi 1391rm -f conftest* 1392 ac_cv_prog_CPP="$CPP" 1393fi 1394 CPP="$ac_cv_prog_CPP" 1395else 1396 ac_cv_prog_CPP="$CPP" 1397fi 1398echo "$ac_t""$CPP" 1>&6 1399 1400for ac_hdr in sys/ioccom.h sys/sockio.h ifaddrs.h limits.h netinet/if_ether.h 1401do 1402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1404echo "configure:1405: checking for $ac_hdr" >&5 1405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1406 echo $ac_n "(cached) $ac_c" 1>&6 1407else 1408 cat > conftest.$ac_ext <<EOF 1409#line 1410 "configure" 1410#include "confdefs.h" 1411#include <$ac_hdr> 1412EOF 1413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1414{ (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1415ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1416if test -z "$ac_err"; then 1417 rm -rf conftest* 1418 eval "ac_cv_header_$ac_safe=yes" 1419else 1420 echo "$ac_err" >&5 1421 echo "configure: failed program was:" >&5 1422 cat conftest.$ac_ext >&5 1423 rm -rf conftest* 1424 eval "ac_cv_header_$ac_safe=no" 1425fi 1426rm -f conftest* 1427fi 1428if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1429 echo "$ac_t""yes" 1>&6 1430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1431 cat >> confdefs.h <<EOF 1432#define $ac_tr_hdr 1 1433EOF 1434 1435else 1436 echo "$ac_t""no" 1>&6 1437fi 1438done 1439 1440 1441if test "$GCC" = yes ; then 1442 echo $ac_n "checking for ANSI ioctl definitions""... $ac_c" 1>&6 1443echo "configure:1444: checking for ANSI ioctl definitions" >&5 1444 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_fixincludes'+set}'`\" = set"; then 1445 echo $ac_n "(cached) $ac_c" 1>&6 1446else 1447 cat > conftest.$ac_ext <<EOF 1448#line 1449 "configure" 1449#include "confdefs.h" 1450/* 1451 * This generates a "duplicate case value" when fixincludes 1452 * has not be run. 1453 */ 1454# include <sys/types.h> 1455# include <sys/time.h> 1456# include <sys/ioctl.h> 1457# ifdef HAVE_SYS_IOCCOM_H 1458# include <sys/ioccom.h> 1459# endif 1460int main() { 1461switch (0) { 1462 case _IO('A', 1):; 1463 case _IO('B', 1):; 1464 } 1465; return 0; } 1466EOF 1467if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1468 rm -rf conftest* 1469 ac_cv_lbl_gcc_fixincludes=yes 1470else 1471 echo "configure: failed program was:" >&5 1472 cat conftest.$ac_ext >&5 1473 rm -rf conftest* 1474 ac_cv_lbl_gcc_fixincludes=no 1475fi 1476rm -f conftest* 1477fi 1478 1479 echo "$ac_t""$ac_cv_lbl_gcc_fixincludes" 1>&6 1480 if test $ac_cv_lbl_gcc_fixincludes = no ; then 1481 # Don't cache failure 1482 unset ac_cv_lbl_gcc_fixincludes 1483 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; } 1484 fi 1485 fi 1486 1487for ac_func in ether_hostton strerror strlcpy 1488do 1489echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1490echo "configure:1491: checking for $ac_func" >&5 1491if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1492 echo $ac_n "(cached) $ac_c" 1>&6 1493else 1494 cat > conftest.$ac_ext <<EOF 1495#line 1496 "configure" 1496#include "confdefs.h" 1497/* System header to define __stub macros and hopefully few prototypes, 1498 which can conflict with char $ac_func(); below. */ 1499#include <assert.h> 1500/* Override any gcc2 internal prototype to avoid an error. */ 1501/* We use char because int might match the return type of a gcc2 1502 builtin and then its argument prototype would still apply. */ 1503char $ac_func(); 1504 1505int main() { 1506 1507/* The GNU C library defines this for functions which it implements 1508 to always fail with ENOSYS. Some functions are actually named 1509 something starting with __ and the normal name is an alias. */ 1510#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1511choke me 1512#else 1513$ac_func(); 1514#endif 1515 1516; return 0; } 1517EOF 1518if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1519 rm -rf conftest* 1520 eval "ac_cv_func_$ac_func=yes" 1521else 1522 echo "configure: failed program was:" >&5 1523 cat conftest.$ac_ext >&5 1524 rm -rf conftest* 1525 eval "ac_cv_func_$ac_func=no" 1526fi 1527rm -f conftest* 1528fi 1529 1530if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1531 echo "$ac_t""yes" 1>&6 1532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1533 cat >> confdefs.h <<EOF 1534#define $ac_tr_func 1 1535EOF 1536 1537else 1538 echo "$ac_t""no" 1>&6 1539fi 1540done 1541 1542 1543echo $ac_n "checking if --disable-protochain option is specified""... $ac_c" 1>&6 1544echo "configure:1545: checking if --disable-protochain option is specified" >&5 1545# Check whether --enable-protochain or --disable-protochain was given. 1546if test "${enable_protochain+set}" = set; then 1547 enableval="$enable_protochain" 1548 : 1549fi 1550 1551case "x$enable_protochain" in 1552xyes) enable_protochain=enabled ;; 1553xno) enable_protochain=disabled ;; 1554x) enable_protochain=enabled ;; 1555esac 1556 1557if test "$enable_protochain" = "disabled"; then 1558 cat >> confdefs.h <<\EOF 1559#define NO_PROTOCHAIN 1 1560EOF 1561 1562fi 1563echo "$ac_t""${enable_protochain}" 1>&6 1564 1565if test -z "$with_pcap" && test "$cross_compiling" = yes; then 1566 { echo "configure: error: pcap type not determined when cross-compiling; use --with-pcap=..." 1>&2; exit 1; } 1567fi 1568# Check whether --with-pcap or --without-pcap was given. 1569if test "${with_pcap+set}" = set; then 1570 withval="$with_pcap" 1571 : 1572fi 1573 1574echo $ac_n "checking packet capture type""... $ac_c" 1>&6 1575echo "configure:1576: checking packet capture type" >&5 1576if test ! -z "$with_pcap" ; then 1577 V_PCAP="$withval" 1578elif test -r /dev/bpf0 ; then 1579 V_PCAP=bpf 1580elif test -r /usr/include/net/pfilt.h ; then 1581 V_PCAP=pf 1582elif test -r /dev/enet ; then 1583 V_PCAP=enet 1584elif test -r /dev/nit ; then 1585 V_PCAP=snit 1586elif test -r /usr/include/sys/net/nit.h ; then 1587 V_PCAP=nit 1588elif test -r /usr/include/net/raw.h ; then 1589 V_PCAP=snoop 1590elif test -r /usr/include/sys/dlpi.h ; then 1591 V_PCAP=dlpi 1592elif test -r /usr/include/linux/socket.h ; then 1593 V_PCAP=linux 1594elif test -c /dev/bpf0 ; then # check again in case not readable 1595 V_PCAP=bpf 1596elif test -c /dev/enet ; then # check again in case not readable 1597 V_PCAP=enet 1598elif test -c /dev/nit ; then # check again in case not readable 1599 V_PCAP=snit 1600else 1601 V_PCAP=null 1602fi 1603echo "$ac_t""$V_PCAP" 1>&6 1604 1605echo $ac_n "checking if --enable-ipv6 option is specified""... $ac_c" 1>&6 1606echo "configure:1607: checking if --enable-ipv6 option is specified" >&5 1607# Check whether --enable-ipv6 or --disable-ipv6 was given. 1608if test "${enable_ipv6+set}" = set; then 1609 enableval="$enable_ipv6" 1610 : 1611fi 1612 1613if test "$enable_ipv6" = "yes"; then 1614 cat >> confdefs.h <<\EOF 1615#define INET6 1 1616EOF 1617 1618fi 1619echo "$ac_t""${enable_ipv6-no}" 1>&6 1620 1621echo $ac_n "checking whether to build optimizer debugging code""... $ac_c" 1>&6 1622echo "configure:1623: checking whether to build optimizer debugging code" >&5 1623# Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given. 1624if test "${enable_optimizer_dbg+set}" = set; then 1625 enableval="$enable_optimizer_dbg" 1626 : 1627fi 1628 1629if test "$enable_optimizer_dbg" = "yes"; then 1630 cat >> confdefs.h <<\EOF 1631#define BDEBUG 1 1632EOF 1633 1634fi 1635echo "$ac_t""${enable_optimizer_dbg-no}" 1>&6 1636 1637echo $ac_n "checking whether to build parser debugging code""... $ac_c" 1>&6 1638echo "configure:1639: checking whether to build parser debugging code" >&5 1639# Check whether --enable-yydebug or --disable-yydebug was given. 1640if test "${enable_yydebug+set}" = set; then 1641 enableval="$enable_yydebug" 1642 : 1643fi 1644 1645if test "$enable_yydebug" = "yes"; then 1646 cat >> confdefs.h <<\EOF 1647#define YYDEBUG 1 1648EOF 1649 1650fi 1651echo "$ac_t""${enable_yydebug-no}" 1>&6 1652 1653case "$V_PCAP" in 1654 1655dlpi) 1656 for ac_hdr in sys/bufmod.h sys/dlpi_ext.h 1657do 1658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1660echo "configure:1661: checking for $ac_hdr" >&5 1661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1662 echo $ac_n "(cached) $ac_c" 1>&6 1663else 1664 cat > conftest.$ac_ext <<EOF 1665#line 1666 "configure" 1666#include "confdefs.h" 1667#include <$ac_hdr> 1668EOF 1669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1670{ (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1672if test -z "$ac_err"; then 1673 rm -rf conftest* 1674 eval "ac_cv_header_$ac_safe=yes" 1675else 1676 echo "$ac_err" >&5 1677 echo "configure: failed program was:" >&5 1678 cat conftest.$ac_ext >&5 1679 rm -rf conftest* 1680 eval "ac_cv_header_$ac_safe=no" 1681fi 1682rm -f conftest* 1683fi 1684if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1685 echo "$ac_t""yes" 1>&6 1686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1687 cat >> confdefs.h <<EOF 1688#define $ac_tr_hdr 1 1689EOF 1690 1691else 1692 echo "$ac_t""no" 1>&6 1693fi 1694done 1695 1696 echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6 1697echo "configure:1698: checking for /dev/dlpi device" >&5 1698 if test -c /dev/dlpi ; then 1699 echo "$ac_t""yes" 1>&6 1700 cat >> confdefs.h <<\EOF 1701#define HAVE_DEV_DLPI 1 1702EOF 1703 1704 else 1705 echo "$ac_t""no" 1>&6 1706 dir="/dev/dlpi" 1707 echo $ac_n "checking for $dir directory""... $ac_c" 1>&6 1708echo "configure:1709: checking for $dir directory" >&5 1709 if test -d $dir ; then 1710 echo "$ac_t""yes" 1>&6 1711 cat >> confdefs.h <<EOF 1712#define PCAP_DEV_PREFIX "$dir" 1713EOF 1714 1715 else 1716 echo "$ac_t""no" 1>&6 1717 fi 1718 fi 1719 ;; 1720 1721linux) 1722 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6 1723echo "configure:1724: checking Linux kernel version" >&5 1724 if test "$cross_compiling" = yes; then 1725 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1726 echo $ac_n "(cached) $ac_c" 1>&6 1727else 1728 ac_cv_linux_vers=unknown 1729fi 1730 1731 else 1732 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1733 echo $ac_n "(cached) $ac_c" 1>&6 1734else 1735 ac_cv_linux_vers=`uname -r 2>&1 | \ 1736 sed -n -e '$s/.* //' -e '$s/\..*//p'` 1737fi 1738 1739 fi 1740 echo "$ac_t""$ac_cv_linux_vers" 1>&6 1741 if test $ac_cv_linux_vers = unknown ; then 1742 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; } 1743 fi 1744 if test $ac_cv_linux_vers -lt 2 ; then 1745 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; } 1746 fi 1747 echo $ac_n "checking if if_packet.h has tpacket_stats defined""... $ac_c" 1>&6 1748echo "configure:1749: checking if if_packet.h has tpacket_stats defined" >&5 1749 if eval "test \"`echo '$''{'ac_cv_lbl_tpacket_stats'+set}'`\" = set"; then 1750 echo $ac_n "(cached) $ac_c" 1>&6 1751else 1752 cat > conftest.$ac_ext <<EOF 1753#line 1754 "configure" 1754#include "confdefs.h" 1755 1756# include <linux/if_packet.h> 1757int main() { 1758struct tpacket_stats stats 1759; return 0; } 1760EOF 1761if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1762 rm -rf conftest* 1763 ac_cv_lbl_tpacket_stats=yes 1764else 1765 echo "configure: failed program was:" >&5 1766 cat conftest.$ac_ext >&5 1767 rm -rf conftest* 1768 ac_cv_lbl_tpacket_stats=no 1769fi 1770rm -f conftest* 1771fi 1772 1773 echo "$ac_t""$ac_cv_lbl_tpacket_stats" 1>&6 1774 if test $ac_cv_lbl_tpacket_stats = yes; then 1775 cat >> confdefs.h <<\EOF 1776#define HAVE_TPACKET_STATS 1 1777EOF 1778 1779 fi 1780 ;; 1781 1782null) 1783 echo "configure: warning: cannot determine packet capture interface" 1>&2 1784 echo "configure: warning: (see the INSTALL doc for more info)" 1>&2 1785 ;; 1786 1787esac 1788 1789echo $ac_n "checking whether we have /proc/net/dev""... $ac_c" 1>&6 1790echo "configure:1791: checking whether we have /proc/net/dev" >&5 1791if test -r /proc/net/dev ; then 1792 ac_cv_lbl_proc_net_dev=yes 1793else 1794 ac_cv_lbl_proc_net_dev=no 1795fi 1796if test $ac_cv_lbl_proc_net_dev = yes; then 1797 cat >> confdefs.h <<\EOF 1798#define HAVE_PROC_NET_DEV 1 1799EOF 1800 1801fi 1802echo "$ac_t""$ac_cv_lbl_proc_net_dev" 1>&6 1803 1804# Check whether --with-flex or --without-flex was given. 1805if test "${with_flex+set}" = set; then 1806 withval="$with_flex" 1807 : 1808fi 1809 1810 # Check whether --with-bison or --without-bison was given. 1811if test "${with_bison+set}" = set; then 1812 withval="$with_bison" 1813 : 1814fi 1815 1816 if test "$with_flex" = no ; then 1817 V_LEX=lex 1818 else 1819 for ac_prog in flex 1820do 1821# Extract the first word of "$ac_prog", so it can be a program name with args. 1822set dummy $ac_prog; ac_word=$2 1823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1824echo "configure:1825: checking for $ac_word" >&5 1825if eval "test \"`echo '$''{'ac_cv_prog_V_LEX'+set}'`\" = set"; then 1826 echo $ac_n "(cached) $ac_c" 1>&6 1827else 1828 if test -n "$V_LEX"; then 1829 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test. 1830else 1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1832 ac_dummy="$PATH" 1833 for ac_dir in $ac_dummy; do 1834 test -z "$ac_dir" && ac_dir=. 1835 if test -f $ac_dir/$ac_word; then 1836 ac_cv_prog_V_LEX="$ac_prog" 1837 break 1838 fi 1839 done 1840 IFS="$ac_save_ifs" 1841fi 1842fi 1843V_LEX="$ac_cv_prog_V_LEX" 1844if test -n "$V_LEX"; then 1845 echo "$ac_t""$V_LEX" 1>&6 1846else 1847 echo "$ac_t""no" 1>&6 1848fi 1849 1850test -n "$V_LEX" && break 1851done 1852test -n "$V_LEX" || V_LEX="lex" 1853 1854 fi 1855 if test "$V_LEX" = flex ; then 1856 # The -V flag was added in 2.4 1857 echo $ac_n "checking for flex 2.4 or higher""... $ac_c" 1>&6 1858echo "configure:1859: checking for flex 2.4 or higher" >&5 1859 if eval "test \"`echo '$''{'ac_cv_lbl_flex_v24'+set}'`\" = set"; then 1860 echo $ac_n "(cached) $ac_c" 1>&6 1861else 1862 if flex -V >/dev/null 2>&1; then 1863 ac_cv_lbl_flex_v24=yes 1864 else 1865 ac_cv_lbl_flex_v24=no 1866 fi 1867fi 1868 1869 echo "$ac_t""$ac_cv_lbl_flex_v24" 1>&6 1870 if test $ac_cv_lbl_flex_v24 = no ; then 1871 s="2.4 or higher required" 1872 echo "configure: warning: ignoring obsolete flex executable ($s)" 1>&2 1873 V_LEX=lex 1874 fi 1875 fi 1876 if test "$with_bison" = no ; then 1877 V_YACC=yacc 1878 else 1879 for ac_prog in bison 1880do 1881# Extract the first word of "$ac_prog", so it can be a program name with args. 1882set dummy $ac_prog; ac_word=$2 1883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1884echo "configure:1885: checking for $ac_word" >&5 1885if eval "test \"`echo '$''{'ac_cv_prog_V_YACC'+set}'`\" = set"; then 1886 echo $ac_n "(cached) $ac_c" 1>&6 1887else 1888 if test -n "$V_YACC"; then 1889 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test. 1890else 1891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1892 ac_dummy="$PATH" 1893 for ac_dir in $ac_dummy; do 1894 test -z "$ac_dir" && ac_dir=. 1895 if test -f $ac_dir/$ac_word; then 1896 ac_cv_prog_V_YACC="$ac_prog" 1897 break 1898 fi 1899 done 1900 IFS="$ac_save_ifs" 1901fi 1902fi 1903V_YACC="$ac_cv_prog_V_YACC" 1904if test -n "$V_YACC"; then 1905 echo "$ac_t""$V_YACC" 1>&6 1906else 1907 echo "$ac_t""no" 1>&6 1908fi 1909 1910test -n "$V_YACC" && break 1911done 1912test -n "$V_YACC" || V_YACC="yacc" 1913 1914 fi 1915 if test "$V_YACC" = bison ; then 1916 V_YACC="$V_YACC -y" 1917 fi 1918 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then 1919 echo "configure: warning: don't have both flex and bison; reverting to lex/yacc" 1>&2 1920 V_LEX=lex 1921 V_YACC=yacc 1922 fi 1923 if test "$V_LEX" = flex -a -n "pcap_" ; then 1924 V_LEX="$V_LEX -Ppcap_" 1925 V_YACC="$V_YACC -p pcap_" 1926 fi 1927if test "$V_LEX" = lex ; then 1928# Some versions of lex can't handle the definitions section of scanner.l . 1929# Try lexing it and complain if it can't deal. 1930 echo $ac_n "checking for capable lex""... $ac_c" 1>&6 1931echo "configure:1932: checking for capable lex" >&5 1932if eval "test \"`echo '$''{'tcpdump_cv_capable_lex'+set}'`\" = set"; then 1933 echo $ac_n "(cached) $ac_c" 1>&6 1934else 1935 if lex -t scanner.l > /dev/null 2>&1; then 1936 tcpdump_cv_capable_lex=yes 1937 else 1938 tcpdump_cv_capable_lex=insufficient 1939 fi 1940fi 1941 1942echo "$ac_t""$tcpdump_cv_capable_lex" 1>&6 1943 if test $tcpdump_cv_capable_lex = insufficient ; then 1944 { echo "configure: error: Your operating system's lex is insufficient to compile 1945 libpcap. flex is a lex replacement that has many advantages, including 1946 being able to compile libpcap. For more information, see 1947 http://www.gnu.org/software/flex/flex.html ." 1>&2; exit 1; } 1948 fi 1949fi 1950 1951case "$host_os" in 1952 1953aix*) 1954 cat >> confdefs.h <<\EOF 1955#define _SUN 1 1956EOF 1957 1958 ;; 1959 1960hpux9*) 1961 cat >> confdefs.h <<\EOF 1962#define HAVE_HPUX9 1 1963EOF 1964 1965 ;; 1966 1967hpux10.0*) 1968 ;; 1969 1970hpux10.1*) 1971 ;; 1972 1973hpux*) 1974 cat >> confdefs.h <<\EOF 1975#define HAVE_HPUX10_20 1 1976EOF 1977 1978 ;; 1979 1980sinix*) 1981 echo $ac_n "checking if SINIX compiler defines sinix""... $ac_c" 1>&6 1982echo "configure:1983: checking if SINIX compiler defines sinix" >&5 1983 if eval "test \"`echo '$''{'ac_cv_cc_sinix_defined'+set}'`\" = set"; then 1984 echo $ac_n "(cached) $ac_c" 1>&6 1985else 1986 cat > conftest.$ac_ext <<EOF 1987#line 1988 "configure" 1988#include "confdefs.h" 1989 1990int main() { 1991int i = sinix; 1992; return 0; } 1993EOF 1994if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1995 rm -rf conftest* 1996 ac_cv_cc_sinix_defined=yes 1997else 1998 echo "configure: failed program was:" >&5 1999 cat conftest.$ac_ext >&5 2000 rm -rf conftest* 2001 ac_cv_cc_sinix_defined=no 2002fi 2003rm -f conftest* 2004fi 2005 2006 echo "$ac_t""$ac_cv_cc_sinix_defined" 1>&6 2007 if test $ac_cv_cc_sinix_defined = no ; then 2008 cat >> confdefs.h <<\EOF 2009#define sinix 1 2010EOF 2011 2012 fi 2013 ;; 2014 2015solaris*) 2016 cat >> confdefs.h <<\EOF 2017#define HAVE_SOLARIS 1 2018EOF 2019 2020 ;; 2021esac 2022 2023# Extract the first word of "ranlib", so it can be a program name with args. 2024set dummy ranlib; ac_word=$2 2025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2026echo "configure:2027: checking for $ac_word" >&5 2027if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2028 echo $ac_n "(cached) $ac_c" 1>&6 2029else 2030 if test -n "$RANLIB"; then 2031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2032else 2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2034 ac_dummy="$PATH" 2035 for ac_dir in $ac_dummy; do 2036 test -z "$ac_dir" && ac_dir=. 2037 if test -f $ac_dir/$ac_word; then 2038 ac_cv_prog_RANLIB="ranlib" 2039 break 2040 fi 2041 done 2042 IFS="$ac_save_ifs" 2043 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2044fi 2045fi 2046RANLIB="$ac_cv_prog_RANLIB" 2047if test -n "$RANLIB"; then 2048 echo "$ac_t""$RANLIB" 1>&6 2049else 2050 echo "$ac_t""no" 1>&6 2051fi 2052 2053 2054rm -f os-proto.h 2055 if test "${LBL_CFLAGS+set}" = set; then 2056 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 2057 fi 2058 if test -f .devel ; then 2059 if test "$GCC" = yes ; then 2060 if test "${LBL_CFLAGS+set}" != set; then 2061 if test "$ac_cv_prog_cc_g" = yes ; then 2062 V_CCOPT="-g $V_CCOPT" 2063 fi 2064 V_CCOPT="$V_CCOPT -Wall" 2065 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2066 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 2067 fi 2068 fi 2069 else 2070 case "$target_os" in 2071 2072 irix6*) 2073 V_CCOPT="$V_CCOPT -n32" 2074 ;; 2075 2076 *) 2077 ;; 2078 esac 2079 fi 2080 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 2081 name="lbl/os-$os.h" 2082 if test -f $name ; then 2083 ln -s $name os-proto.h 2084 cat >> confdefs.h <<\EOF 2085#define HAVE_OS_PROTO_H 1 2086EOF 2087 2088 else 2089 echo "configure: warning: can't find $name" 1>&2 2090 fi 2091 fi 2092 2093echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 2094echo "configure:2095: checking if sockaddr struct has sa_len member" >&5 2095 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then 2096 echo $ac_n "(cached) $ac_c" 1>&6 2097else 2098 cat > conftest.$ac_ext <<EOF 2099#line 2100 "configure" 2100#include "confdefs.h" 2101 2102# include <sys/types.h> 2103# include <sys/socket.h> 2104int main() { 2105u_int i = sizeof(((struct sockaddr *)0)->sa_len) 2106; return 0; } 2107EOF 2108if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2109 rm -rf conftest* 2110 ac_cv_lbl_sockaddr_has_sa_len=yes 2111else 2112 echo "configure: failed program was:" >&5 2113 cat conftest.$ac_ext >&5 2114 rm -rf conftest* 2115 ac_cv_lbl_sockaddr_has_sa_len=no 2116fi 2117rm -f conftest* 2118fi 2119 2120 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6 2121 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 2122 cat >> confdefs.h <<\EOF 2123#define HAVE_SOCKADDR_SA_LEN 1 2124EOF 2125 2126 fi 2127 2128echo $ac_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member""... $ac_c" 1>&6 2129echo "configure:2130: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5 2130 if eval "test \"`echo '$''{'ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1'+set}'`\" = set"; then 2131 echo $ac_n "(cached) $ac_c" 1>&6 2132else 2133 cat > conftest.$ac_ext <<EOF 2134#line 2135 "configure" 2135#include "confdefs.h" 2136 2137# include <sys/types.h> 2138# include <sys/dlpi.h> 2139# include <sys/dlpi_ext.h> 2140int main() { 2141u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1) 2142; return 0; } 2143EOF 2144if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2145 rm -rf conftest* 2146 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes 2147else 2148 echo "configure: failed program was:" >&5 2149 cat conftest.$ac_ext >&5 2150 rm -rf conftest* 2151 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no 2152fi 2153rm -f conftest* 2154fi 2155 2156 echo "$ac_t""$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" 1>&6 2157 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then 2158 cat >> confdefs.h <<\EOF 2159#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1 2160EOF 2161 2162 fi 2163 2164echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6 2165echo "configure:2166: checking if unaligned accesses fail" >&5 2166 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then 2167 echo $ac_n "(cached) $ac_c" 1>&6 2168else 2169 case "$host_cpu" in 2170 2171 # XXX: should also check that they don't do weird things (like on arm) 2172 alpha*|arm*|hp*|mips*|sparc*|ia64) 2173 ac_cv_lbl_unaligned_fail=yes 2174 ;; 2175 2176 *) 2177 cat >conftest.c <<EOF 2178# include <sys/types.h> 2179# include <sys/wait.h> 2180# include <stdio.h> 2181 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 2182 main() { 2183 unsigned int i; 2184 pid_t pid; 2185 int status; 2186 /* avoid "core dumped" message */ 2187 pid = fork(); 2188 if (pid < 0) 2189 exit(2); 2190 if (pid > 0) { 2191 /* parent */ 2192 pid = waitpid(pid, &status, 0); 2193 if (pid < 0) 2194 exit(3); 2195 exit(!WIFEXITED(status)); 2196 } 2197 /* child */ 2198 i = *(unsigned int *)&a[1]; 2199 printf("%d\n", i); 2200 exit(0); 2201 } 2202EOF 2203 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 2204 conftest.c $LIBS >/dev/null 2>&1 2205 if test ! -x conftest ; then 2206 ac_cv_lbl_unaligned_fail=yes 2207 else 2208 ./conftest >conftest.out 2209 if test ! -s conftest.out ; then 2210 ac_cv_lbl_unaligned_fail=yes 2211 else 2212 ac_cv_lbl_unaligned_fail=no 2213 fi 2214 fi 2215 rm -f conftest* core core.conftest 2216 ;; 2217 esac 2218fi 2219 2220 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6 2221 if test $ac_cv_lbl_unaligned_fail = yes ; then 2222 cat >> confdefs.h <<\EOF 2223#define LBL_ALIGN 1 2224EOF 2225 2226 fi 2227 2228rm -f net 2229ln -s ${srcdir}/bpf/net net 2230 2231 2232 2233 2234 2235 2236 2237 2238# Find a good install program. We prefer a C program (faster), 2239# so one script is as good as another. But avoid the broken or 2240# incompatible versions: 2241# SysV /etc/install, /usr/sbin/install 2242# SunOS /usr/etc/install 2243# IRIX /sbin/install 2244# AIX /bin/install 2245# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2246# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2247# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2248# ./install, which can be erroneously created by make from ./install.sh. 2249echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2250echo "configure:2251: checking for a BSD compatible install" >&5 2251if test -z "$INSTALL"; then 2252if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2253 echo $ac_n "(cached) $ac_c" 1>&6 2254else 2255 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2256 for ac_dir in $PATH; do 2257 # Account for people who put trailing slashes in PATH elements. 2258 case "$ac_dir/" in 2259 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2260 *) 2261 # OSF1 and SCO ODT 3.0 have their own names for install. 2262 # Don't use installbsd from OSF since it installs stuff as root 2263 # by default. 2264 for ac_prog in ginstall scoinst install; do 2265 if test -f $ac_dir/$ac_prog; then 2266 if test $ac_prog = install && 2267 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2268 # AIX install. It has an incompatible calling convention. 2269 : 2270 else 2271 ac_cv_path_install="$ac_dir/$ac_prog -c" 2272 break 2 2273 fi 2274 fi 2275 done 2276 ;; 2277 esac 2278 done 2279 IFS="$ac_save_IFS" 2280 2281fi 2282 if test "${ac_cv_path_install+set}" = set; then 2283 INSTALL="$ac_cv_path_install" 2284 else 2285 # As a last resort, use the slow shell script. We don't cache a 2286 # path for INSTALL within a source directory, because that will 2287 # break other packages using the cache if that directory is 2288 # removed, or if the path is relative. 2289 INSTALL="$ac_install_sh" 2290 fi 2291fi 2292echo "$ac_t""$INSTALL" 1>&6 2293 2294# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2295# It thinks the first close brace ends the variable substitution. 2296test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2297 2298test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 2299 2300test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2301 2302 2303 2304 2305trap '' 1 2 15 2306cat > confcache <<\EOF 2307# This file is a shell script that caches the results of configure 2308# tests run on this system so they can be shared between configure 2309# scripts and configure runs. It is not useful on other systems. 2310# If it contains results you don't want to keep, you may remove or edit it. 2311# 2312# By default, configure uses ./config.cache as the cache file, 2313# creating it if it does not exist already. You can give configure 2314# the --cache-file=FILE option to use a different cache file; that is 2315# what configure does when it calls configure scripts in 2316# subdirectories, so they share the cache. 2317# Giving --cache-file=/dev/null disables caching, for debugging configure. 2318# config.status only pays attention to the cache file if you give it the 2319# --recheck option to rerun configure. 2320# 2321EOF 2322# The following way of writing the cache mishandles newlines in values, 2323# but we know of no workaround that is simple, portable, and efficient. 2324# So, don't put newlines in cache variables' values. 2325# Ultrix sh set writes to stderr and can't be redirected directly, 2326# and sets the high bit in the cache file unless we assign to the vars. 2327(set) 2>&1 | 2328 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2329 *ac_space=\ *) 2330 # `set' does not quote correctly, so add quotes (double-quote substitution 2331 # turns \\\\ into \\, and sed turns \\ into \). 2332 sed -n \ 2333 -e "s/'/'\\\\''/g" \ 2334 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2335 ;; 2336 *) 2337 # `set' quotes correctly as required by POSIX, so do not add quotes. 2338 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2339 ;; 2340 esac >> confcache 2341if cmp -s $cache_file confcache; then 2342 : 2343else 2344 if test -w $cache_file; then 2345 echo "updating cache $cache_file" 2346 cat confcache > $cache_file 2347 else 2348 echo "not updating unwritable cache $cache_file" 2349 fi 2350fi 2351rm -f confcache 2352 2353trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2354 2355test "x$prefix" = xNONE && prefix=$ac_default_prefix 2356# Let make expand exec_prefix. 2357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2358 2359# Any assignment to VPATH causes Sun make to only execute 2360# the first set of double-colon rules, so remove it if not needed. 2361# If there is a colon in the path, we need to keep it. 2362if test "x$srcdir" = x.; then 2363 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2364fi 2365 2366trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2367 2368DEFS=-DHAVE_CONFIG_H 2369 2370# Without the "./", some shells look in PATH for config.status. 2371: ${CONFIG_STATUS=./config.status} 2372 2373echo creating $CONFIG_STATUS 2374rm -f $CONFIG_STATUS 2375cat > $CONFIG_STATUS <<EOF 2376#! /bin/sh 2377# Generated automatically by configure. 2378# Run this file to recreate the current configuration. 2379# This directory was configured as follows, 2380# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2381# 2382# $0 $ac_configure_args 2383# 2384# Compiler output produced by configure, useful for debugging 2385# configure, is in ./config.log if it exists. 2386 2387ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2388for ac_option 2389do 2390 case "\$ac_option" in 2391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2392 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2393 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2394 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2395 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2396 exit 0 ;; 2397 -help | --help | --hel | --he | --h) 2398 echo "\$ac_cs_usage"; exit 0 ;; 2399 *) echo "\$ac_cs_usage"; exit 1 ;; 2400 esac 2401done 2402 2403ac_given_srcdir=$srcdir 2404ac_given_INSTALL="$INSTALL" 2405 2406trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2407EOF 2408cat >> $CONFIG_STATUS <<EOF 2409 2410# Protect against being on the right side of a sed subst in config.status. 2411sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2412 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2413$ac_vpsub 2414$extrasub 2415s%@SHELL@%$SHELL%g 2416s%@CFLAGS@%$CFLAGS%g 2417s%@CPPFLAGS@%$CPPFLAGS%g 2418s%@CXXFLAGS@%$CXXFLAGS%g 2419s%@FFLAGS@%$FFLAGS%g 2420s%@DEFS@%$DEFS%g 2421s%@LDFLAGS@%$LDFLAGS%g 2422s%@LIBS@%$LIBS%g 2423s%@exec_prefix@%$exec_prefix%g 2424s%@prefix@%$prefix%g 2425s%@program_transform_name@%$program_transform_name%g 2426s%@bindir@%$bindir%g 2427s%@sbindir@%$sbindir%g 2428s%@libexecdir@%$libexecdir%g 2429s%@datadir@%$datadir%g 2430s%@sysconfdir@%$sysconfdir%g 2431s%@sharedstatedir@%$sharedstatedir%g 2432s%@localstatedir@%$localstatedir%g 2433s%@libdir@%$libdir%g 2434s%@includedir@%$includedir%g 2435s%@oldincludedir@%$oldincludedir%g 2436s%@infodir@%$infodir%g 2437s%@mandir@%$mandir%g 2438s%@host@%$host%g 2439s%@host_alias@%$host_alias%g 2440s%@host_cpu@%$host_cpu%g 2441s%@host_vendor@%$host_vendor%g 2442s%@host_os@%$host_os%g 2443s%@target@%$target%g 2444s%@target_alias@%$target_alias%g 2445s%@target_cpu@%$target_cpu%g 2446s%@target_vendor@%$target_vendor%g 2447s%@target_os@%$target_os%g 2448s%@build@%$build%g 2449s%@build_alias@%$build_alias%g 2450s%@build_cpu@%$build_cpu%g 2451s%@build_vendor@%$build_vendor%g 2452s%@build_os@%$build_os%g 2453s%@SHLICC2@%$SHLICC2%g 2454s%@CC@%$CC%g 2455s%@CPP@%$CPP%g 2456s%@V_LEX@%$V_LEX%g 2457s%@V_YACC@%$V_YACC%g 2458s%@RANLIB@%$RANLIB%g 2459s%@V_CCOPT@%$V_CCOPT%g 2460s%@V_INCLS@%$V_INCLS%g 2461s%@V_PCAP@%$V_PCAP%g 2462s%@V_RANLIB@%$V_RANLIB%g 2463s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2464s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2465s%@INSTALL_DATA@%$INSTALL_DATA%g 2466 2467CEOF 2468EOF 2469 2470cat >> $CONFIG_STATUS <<\EOF 2471 2472# Split the substitutions into bite-sized pieces for seds with 2473# small command number limits, like on Digital OSF/1 and HP-UX. 2474ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2475ac_file=1 # Number of current file. 2476ac_beg=1 # First line for current file. 2477ac_end=$ac_max_sed_cmds # Line after last line for current file. 2478ac_more_lines=: 2479ac_sed_cmds="" 2480while $ac_more_lines; do 2481 if test $ac_beg -gt 1; then 2482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2483 else 2484 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2485 fi 2486 if test ! -s conftest.s$ac_file; then 2487 ac_more_lines=false 2488 rm -f conftest.s$ac_file 2489 else 2490 if test -z "$ac_sed_cmds"; then 2491 ac_sed_cmds="sed -f conftest.s$ac_file" 2492 else 2493 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2494 fi 2495 ac_file=`expr $ac_file + 1` 2496 ac_beg=$ac_end 2497 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2498 fi 2499done 2500if test -z "$ac_sed_cmds"; then 2501 ac_sed_cmds=cat 2502fi 2503EOF 2504 2505cat >> $CONFIG_STATUS <<EOF 2506 2507CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2508EOF 2509cat >> $CONFIG_STATUS <<\EOF 2510for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2512 case "$ac_file" in 2513 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2514 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2515 *) ac_file_in="${ac_file}.in" ;; 2516 esac 2517 2518 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2519 2520 # Remove last slash and all that follows it. Not all systems have dirname. 2521 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2523 # The file is in a subdirectory. 2524 test ! -d "$ac_dir" && mkdir "$ac_dir" 2525 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2526 # A "../" for each directory in $ac_dir_suffix. 2527 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2528 else 2529 ac_dir_suffix= ac_dots= 2530 fi 2531 2532 case "$ac_given_srcdir" in 2533 .) srcdir=. 2534 if test -z "$ac_dots"; then top_srcdir=. 2535 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2536 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2537 *) # Relative path. 2538 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2539 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2540 esac 2541 2542 case "$ac_given_INSTALL" in 2543 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2544 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2545 esac 2546 2547 echo creating "$ac_file" 2548 rm -f "$ac_file" 2549 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2550 case "$ac_file" in 2551 *Makefile*) ac_comsub="1i\\ 2552# $configure_input" ;; 2553 *) ac_comsub= ;; 2554 esac 2555 2556 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2557 sed -e "$ac_comsub 2558s%@configure_input@%$configure_input%g 2559s%@srcdir@%$srcdir%g 2560s%@top_srcdir@%$top_srcdir%g 2561s%@INSTALL@%$INSTALL%g 2562" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2563fi; done 2564rm -f conftest.s* 2565 2566# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2567# NAME is the cpp macro being defined and VALUE is the value it is being given. 2568# 2569# ac_d sets the value in "#define NAME VALUE" lines. 2570ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2571ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2572ac_dC='\3' 2573ac_dD='%g' 2574# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2575ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2576ac_uB='\([ ]\)%\1#\2define\3' 2577ac_uC=' ' 2578ac_uD='\4%g' 2579# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2580ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2581ac_eB='$%\1#\2define\3' 2582ac_eC=' ' 2583ac_eD='%g' 2584 2585if test "${CONFIG_HEADERS+set}" != set; then 2586EOF 2587cat >> $CONFIG_STATUS <<EOF 2588 CONFIG_HEADERS="config.h" 2589EOF 2590cat >> $CONFIG_STATUS <<\EOF 2591fi 2592for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2594 case "$ac_file" in 2595 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2596 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2597 *) ac_file_in="${ac_file}.in" ;; 2598 esac 2599 2600 echo creating $ac_file 2601 2602 rm -f conftest.frag conftest.in conftest.out 2603 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2604 cat $ac_file_inputs > conftest.in 2605 2606EOF 2607 2608# Transform confdefs.h into a sed script conftest.vals that substitutes 2609# the proper values into config.h.in to produce config.h. And first: 2610# Protect against being on the right side of a sed subst in config.status. 2611# Protect against being in an unquoted here document in config.status. 2612rm -f conftest.vals 2613cat > conftest.hdr <<\EOF 2614s/[\\&%]/\\&/g 2615s%[\\$`]%\\&%g 2616s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2617s%ac_d%ac_u%gp 2618s%ac_u%ac_e%gp 2619EOF 2620sed -n -f conftest.hdr confdefs.h > conftest.vals 2621rm -f conftest.hdr 2622 2623# This sed command replaces #undef with comments. This is necessary, for 2624# example, in the case of _POSIX_SOURCE, which is predefined and required 2625# on some systems where configure will not decide to define it. 2626cat >> conftest.vals <<\EOF 2627s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2628EOF 2629 2630# Break up conftest.vals because some shells have a limit on 2631# the size of here documents, and old seds have small limits too. 2632 2633rm -f conftest.tail 2634while : 2635do 2636 ac_lines=`grep -c . conftest.vals` 2637 # grep -c gives empty output for an empty file on some AIX systems. 2638 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2639 # Write a limited-size here document to conftest.frag. 2640 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2641 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2642 echo 'CEOF 2643 sed -f conftest.frag conftest.in > conftest.out 2644 rm -f conftest.in 2645 mv conftest.out conftest.in 2646' >> $CONFIG_STATUS 2647 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2648 rm -f conftest.vals 2649 mv conftest.tail conftest.vals 2650done 2651rm -f conftest.vals 2652 2653cat >> $CONFIG_STATUS <<\EOF 2654 rm -f conftest.frag conftest.h 2655 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2656 cat conftest.in >> conftest.h 2657 rm -f conftest.in 2658 if cmp -s $ac_file conftest.h 2>/dev/null; then 2659 echo "$ac_file is unchanged" 2660 rm -f conftest.h 2661 else 2662 # Remove last slash and all that follows it. Not all systems have dirname. 2663 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2665 # The file is in a subdirectory. 2666 test ! -d "$ac_dir" && mkdir "$ac_dir" 2667 fi 2668 rm -f $ac_file 2669 mv conftest.h $ac_file 2670 fi 2671fi; done 2672 2673EOF 2674cat >> $CONFIG_STATUS <<EOF 2675 2676EOF 2677cat >> $CONFIG_STATUS <<\EOF 2678 2679exit 0 2680EOF 2681chmod +x $CONFIG_STATUS 2682rm -fr confdefs* $ac_clean_files 2683test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2684 2685 2686if test -f .devel ; then 2687 make depend 2688fi 2689exit 0 2690