3 # From configure.in Revision: 1.98
8 # Try compiling a sample of the type of code that appears in
9 # gencode.c with "inline", "__inline__", and "__inline".
11 # Autoconf's AC_C_INLINE, at least in autoconf 2.13, isn't good enough,
12 # as it just tests whether a function returning "int" can be inlined;
13 # at least some versions of HP's C compiler can inline that, but can't
14 # inline a function that returns a struct pointer.
52 # Guess values for system-dependent variables and create Makefiles.
53 # Generated automatically using autoconf version 2.13
54 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
56 # This configure script is free software; the Free Software Foundation
57 # gives unlimited permission to copy, distribute and modify it.
61 ac_default_prefix
=/usr
/local
62 # Any additions from configure.in:
64 --without-gcc don't use gcc"
66 --disable-protochain disable \"protochain\" insn"
68 --with-pcap=TYPE use packet capture TYPE"
70 --enable-ipv6 build IPv6-capable version"
72 --enable-optimizer-dbg build optimizer debugging code"
74 --enable-yydebug build parser debugging code"
76 --without-flex don't use flex"
78 --without-bison don't use bison"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file
=.
/config.cache
93 program_transform_name
=s
,x
,x
,
101 bindir
='${exec_prefix}/bin'
102 sbindir
='${exec_prefix}/sbin'
103 libexecdir
='${exec_prefix}/libexec'
104 datadir
='${prefix}/share'
105 sysconfdir
='${prefix}/etc'
106 sharedstatedir
='${prefix}/com'
107 localstatedir
='${prefix}/var'
108 libdir
='${exec_prefix}/lib'
109 includedir
='${prefix}/include'
110 oldincludedir
='/usr/include'
111 infodir
='${prefix}/info'
112 mandir
='${prefix}/man'
114 # Initialize some other variables.
117 SHELL
=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
144 bindir
="$ac_optarg" ;;
146 -build |
--build |
--buil |
--bui |
--bu)
148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
149 build
="$ac_optarg" ;;
151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
153 ac_prev
=cache_file
;;
154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
156 cache_file
="$ac_optarg" ;;
158 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
160 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
162 datadir
="$ac_optarg" ;;
164 -disable-* |
--disable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* |
--enable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
188 |
--exec |
--exe |
--ex)
189 ac_prev
=exec_prefix
;;
190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
192 |
--exec=* |
--exe=* |
--ex=*)
193 exec_prefix
="$ac_optarg" ;;
195 -gas |
--gas |
--ga |
--g)
196 # Obsolete; use --with-gas.
199 -help |
--help |
--hel |
--he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host |
--host |
--hos |
--ho)
256 -host=* |
--host=* |
--hos=* |
--ho=*)
259 -includedir |
--includedir |
--includedi |
--included |
--include \
260 |
--includ |
--inclu |
--incl |
--inc)
261 ac_prev
=includedir
;;
262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
264 includedir
="$ac_optarg" ;;
266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
269 infodir
="$ac_optarg" ;;
271 -libdir |
--libdir |
--libdi |
--libd)
273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
274 libdir
="$ac_optarg" ;;
276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
277 |
--libexe |
--libex |
--libe)
278 ac_prev
=libexecdir
;;
279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
280 |
--libexe=* |
--libex=* |
--libe=*)
281 libexecdir
="$ac_optarg" ;;
283 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
284 |
--localstate |
--localstat |
--localsta |
--localst \
285 |
--locals |
--local |
--loca |
--loc |
--lo)
286 ac_prev
=localstatedir
;;
287 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
288 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
289 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
290 localstatedir
="$ac_optarg" ;;
292 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
294 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
295 mandir
="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
305 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
306 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
309 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
310 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
311 |
--oldin |
--oldi |
--old |
--ol |
--o)
312 ac_prev
=oldincludedir
;;
313 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
314 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
315 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
316 oldincludedir
="$ac_optarg" ;;
318 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
320 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
321 prefix
="$ac_optarg" ;;
323 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
324 |
--program-pre |
--program-pr |
--program-p)
325 ac_prev
=program_prefix
;;
326 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
327 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
328 program_prefix
="$ac_optarg" ;;
330 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
331 |
--program-suf |
--program-su |
--program-s)
332 ac_prev
=program_suffix
;;
333 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
334 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
335 program_suffix
="$ac_optarg" ;;
337 -program-transform-name |
--program-transform-name \
338 |
--program-transform-nam |
--program-transform-na \
339 |
--program-transform-n |
--program-transform- \
340 |
--program-transform |
--program-transfor \
341 |
--program-transfo |
--program-transf \
342 |
--program-trans |
--program-tran \
343 |
--progr-tra |
--program-tr |
--program-t)
344 ac_prev
=program_transform_name
;;
345 -program-transform-name=* |
--program-transform-name=* \
346 |
--program-transform-nam=* |
--program-transform-na=* \
347 |
--program-transform-n=* |
--program-transform-=* \
348 |
--program-transform=* |
--program-transfor=* \
349 |
--program-transfo=* |
--program-transf=* \
350 |
--program-trans=* |
--program-tran=* \
351 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
352 program_transform_name
="$ac_optarg" ;;
354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
355 |
-silent |
--silent |
--silen |
--sile |
--sil)
358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
362 sbindir
="$ac_optarg" ;;
364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
368 ac_prev
=sharedstatedir
;;
369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
373 sharedstatedir
="$ac_optarg" ;;
375 -site |
--site |
--sit)
377 -site=* |
--site=* |
--sit=*)
380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
383 srcdir
="$ac_optarg" ;;
385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
387 ac_prev
=sysconfdir
;;
388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
390 sysconfdir
="$ac_optarg" ;;
392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
395 target
="$ac_optarg" ;;
397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
400 -version |
--version |
--versio |
--versi |
--vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* |
--without-*)
418 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
431 |
--x-incl |
--x-inc |
--x-in |
--x-i)
432 ac_prev
=x_includes
;;
433 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
434 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
435 x_includes
="$ac_optarg" ;;
437 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
438 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
439 ac_prev
=x_libraries
;;
440 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
441 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
442 x_libraries
="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE
; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c) ;;
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
496 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest
* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file
=pcap.c
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted
=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted
=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE
; then
547 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
591 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
592 if test -f $ac_dir/install-sh
; then
594 ac_install_sh
="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh
; then
598 ac_install_sh
="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605 ac_config_guess
=$ac_aux_dir/config.guess
606 ac_config_sub
=$ac_aux_dir/config.sub
607 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
610 # Do some error checking and defaulting for the host and target type.
612 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
615 # 1. You are not allowed to specify --host, --target, and nonopt at the
617 # 2. Host defaults to nonopt.
618 # 3. If nonopt is not specified, then host defaults to the current host,
619 # as determined by config.guess.
620 # 4. Target and build default to nonopt.
621 # 5. If nonopt is not specified, then target and build default to host.
623 # The aliases save the names the user supplied, while $host etc.
624 # will get canonicalized.
625 case $host---$target---$nonopt in
626 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
627 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
631 # Make sure we can run config.sub.
632 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
633 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
636 echo $ac_n "checking host system type""... $ac_c" 1>&6
637 echo "configure:638: checking host system type" >&5
640 case "$host_alias" in
644 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
645 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
647 *) host_alias
=$nonopt ;;
651 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
652 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$host" 1>&6
657 echo $ac_n "checking target system type""... $ac_c" 1>&6
658 echo "configure:659: checking target system type" >&5
661 case "$target_alias" in
664 NONE
) target_alias
=$host_alias ;;
665 *) target_alias
=$nonopt ;;
669 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
670 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$target" 1>&6
675 echo $ac_n "checking build system type""... $ac_c" 1>&6
676 echo "configure:677: checking build system type" >&5
679 case "$build_alias" in
682 NONE
) build_alias
=$host_alias ;;
683 *) build_alias
=$nonopt ;;
687 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
688 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$build" 1>&6
693 test "$host_alias" != "$target_alias" &&
694 test "$program_prefix$program_suffix$program_transform_name" = \
696 program_prefix
=${target_alias}-
703 # Check whether --with-gcc or --without-gcc was given.
704 if test "${with_gcc+set}" = set; then
711 if test "${srcdir}" != "." ; then
712 V_INCLS
="-I\$(srcdir)"
714 if test "${CFLAGS+set}" = set; then
717 if test -z "$CC" ; then
721 # Extract the first word of "shlicc2", so it can be a program name with args.
722 set dummy shlicc2
; ac_word
=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$SHLICC2"; then
729 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
733 for ac_dir
in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir
=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_SHLICC2
="yes"
741 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
744 SHLICC2
="$ac_cv_prog_SHLICC2"
745 if test -n "$SHLICC2"; then
746 echo "$ac_t""$SHLICC2" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test $SHLICC2 = yes ; then
758 if test -z "$CC" -a "$with_gcc" = no
; then
762 # Extract the first word of "gcc", so it can be a program name with args.
763 set dummy gcc
; ac_word
=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 if test -n "$CC"; then
770 ac_cv_prog_CC
="$CC" # Let the user override the test.
772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
774 for ac_dir
in $ac_dummy; do
775 test -z "$ac_dir" && ac_dir
=.
776 if test -f $ac_dir/$ac_word; then
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
788 echo "$ac_t""no" 1>&6
791 if test -z "$CC"; then
792 # Extract the first word of "cc", so it can be a program name with args.
793 set dummy cc
; ac_word
=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$CC"; then
800 ac_cv_prog_CC
="$CC" # Let the user override the test.
802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
805 for ac_dir
in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir
=.
807 if test -f $ac_dir/$ac_word; then
808 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
817 if test $ac_prog_rejected = yes; then
818 # We found a bogon in the path, so make sure we never use it.
819 set dummy
$ac_cv_prog_CC
821 if test $# -gt 0; then
822 # We chose a different compiler from the bogus one.
823 # However, it has the same basename, so the bogon will be chosen
824 # first if we set CC to just the basename; use the full file name.
826 set dummy
"$ac_dir/$ac_word" "$@"
834 if test -n "$CC"; then
835 echo "$ac_t""$CC" 1>&6
837 echo "$ac_t""no" 1>&6
840 if test -z "$CC"; then
843 # Extract the first word of "cl", so it can be a program name with args.
844 set dummy cl
; ac_word
=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$CC"; then
851 ac_cv_prog_CC
="$CC" # Let the user override the test.
853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
855 for ac_dir
in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir
=.
857 if test -f $ac_dir/$ac_word; then
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
869 echo "$ac_t""no" 1>&6
874 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
878 echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
882 ac_cpp
='$CPP $CPPFLAGS'
883 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
884 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
885 cross_compiling
=$ac_cv_prog_cc_cross
887 cat > conftest.
$ac_ext << EOF
889 #line 890 "configure"
890 #include "confdefs.h"
894 if { (eval echo configure
:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
895 ac_cv_prog_cc_works
=yes
896 # If we can't run a trivial program, we are probably using a cross compiler.
897 if (.
/conftest
; exit) 2>/dev
/null
; then
898 ac_cv_prog_cc_cross
=no
900 ac_cv_prog_cc_cross
=yes
903 echo "configure: failed program was:" >&5
904 cat conftest.
$ac_ext >&5
905 ac_cv_prog_cc_works
=no
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp
='$CPP $CPPFLAGS'
911 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling
=$ac_cv_prog_cc_cross
915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
916 if test $ac_cv_prog_cc_works = no
; then
917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922 cross_compiling
=$ac_cv_prog_cc_cross
924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925 echo "configure:926: checking whether we are using GNU C" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.c
<<EOF
934 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
943 if test $ac_cv_prog_gcc = yes; then
949 ac_test_CFLAGS
="${CFLAGS+set}"
950 ac_save_CFLAGS
="$CFLAGS"
952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
953 echo "configure:954: checking whether ${CC-cc} accepts -g" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 echo 'void f(){}' > conftest.c
958 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
968 if test "$ac_test_CFLAGS" = set; then
969 CFLAGS
="$ac_save_CFLAGS"
970 elif test $ac_cv_prog_cc_g = yes; then
971 if test "$GCC" = yes; then
977 if test "$GCC" = yes; then
984 if test "$GCC" = yes ; then
985 if test "$SHLICC2" = yes ; then
989 echo $ac_n "checking gcc version""... $ac_c" 1>&6
990 echo "configure:991: checking gcc version" >&5
991 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
995 sed -e '/^gcc version /!d' \
996 -e 's/^gcc version //' \
997 -e 's/ .*//' -e 's/^[^0-9]*//' \
1001 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1002 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1007 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1008 echo "configure:1009: checking that $CC handles ansi prototypes" >&5
1009 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.
$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1015 #include <sys/types.h>
1017 int frob(int, char *)
1020 if { (eval echo configure
:1021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1022 ac_cv_lbl_cc_ansi_prototypes
=yes
1024 echo "configure: failed program was:" >&5
1025 cat conftest.
$ac_ext >&5
1027 ac_cv_lbl_cc_ansi_prototypes
=no
1032 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1033 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1034 case "$target_os" in
1037 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1038 echo "configure:1039: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1039 savedcflags
="$CFLAGS"
1040 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1041 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 cat > conftest.
$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <sys/types.h>
1049 int frob(int, char *)
1052 if { (eval echo configure
:1053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1054 ac_cv_lbl_cc_hpux_cc_aa
=yes
1056 echo "configure: failed program was:" >&5
1057 cat conftest.
$ac_ext >&5
1059 ac_cv_lbl_cc_hpux_cc_aa
=no
1064 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1065 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1066 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1068 CFLAGS
="$savedcflags"
1069 V_CCOPT
="-Aa $V_CCOPT"
1070 cat >> confdefs.h
<<\EOF
1071 #define _HPUX_SOURCE 1
1077 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1081 V_INCLS
="$V_INCLS -I/usr/local/include"
1082 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1084 case "$target_os" in
1087 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1091 V_CCOPT
="$V_CCOPT -std1 -g3"
1095 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1096 echo "configure:1097: checking that Ultrix $CC hacks const in prototypes" >&5
1097 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1103 #include <sys/types.h>
1105 struct a { int b; };
1106 void c(const struct a *)
1109 if { (eval echo configure
:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1111 ac_cv_lbl_cc_const_proto
=yes
1113 echo "configure: failed program was:" >&5
1114 cat conftest.
$ac_ext >&5
1116 ac_cv_lbl_cc_const_proto
=no
1121 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1122 if test $ac_cv_lbl_cc_const_proto = no
; then
1123 cat >> confdefs.h
<<\EOF
1132 echo $ac_n "checking for inline""... $ac_c" 1>&6
1133 echo "configure:1134: checking for inline" >&5
1134 if eval "test \"`echo '$''{'ac_cv_lbl_inline'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1140 for ac_lbl_inline
in inline __inline__ __inline
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 #define inline $ac_lbl_inline
1146 static inline struct iltest *foo(void);
1152 static inline struct iltest *
1155 static struct iltest xxx;
1163 if { (eval echo configure
:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1165 ac_lbl_cc_inline
=yes
1167 echo "configure: failed program was:" >&5
1168 cat conftest.
$ac_ext >&5
1171 if test "$ac_lbl_cc_inline" = yes ; then
1175 if test "$ac_lbl_cc_inline" = yes ; then
1176 ac_cv_lbl_inline
=$ac_lbl_inline
1180 if test ! -z "$ac_cv_lbl_inline" ; then
1181 echo "$ac_t""$ac_cv_lbl_inline" 1>&6
1183 echo "$ac_t""no" 1>&6
1185 cat >> confdefs.h
<<EOF
1186 #define inline $ac_cv_lbl_inline
1190 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1191 echo "configure:1192: checking for __attribute__" >&5
1192 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.
$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1204 static void foo(void) __attribute__ ((noreturn));
1214 if { (eval echo configure
:1215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1216 ac_cv___attribute__
=yes
1218 echo "configure: failed program was:" >&5
1219 cat conftest.
$ac_ext >&5
1221 ac_cv___attribute__
=no
1226 if test "$ac_cv___attribute__" = "yes"; then
1227 cat >> confdefs.h
<<\EOF
1228 #define HAVE___ATTRIBUTE__ 1
1232 echo "$ac_t""$ac_cv___attribute__" 1>&6
1235 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
1236 echo "configure:1237: checking for u_int8_t using $CC" >&5
1237 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1244 # include "confdefs.h"
1245 # include <sys/types.h>
1247 # include <stdlib.h>
1248 # include <stddef.h>
1254 if { (eval echo configure
:1255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1256 ac_cv_lbl_have_u_int8_t
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 ac_cv_lbl_have_u_int8_t
=no
1266 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
1267 if test $ac_cv_lbl_have_u_int8_t = no
; then
1268 cat >> confdefs.h
<<\EOF
1269 #define u_int8_t u_char
1273 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
1274 echo "configure:1275: checking for u_int16_t using $CC" >&5
1275 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 cat > conftest.
$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1282 # include "confdefs.h"
1283 # include <sys/types.h>
1285 # include <stdlib.h>
1286 # include <stddef.h>
1292 if { (eval echo configure
:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 ac_cv_lbl_have_u_int16_t
=yes
1296 echo "configure: failed program was:" >&5
1297 cat conftest.
$ac_ext >&5
1299 ac_cv_lbl_have_u_int16_t
=no
1304 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
1305 if test $ac_cv_lbl_have_u_int16_t = no
; then
1306 cat >> confdefs.h
<<\EOF
1307 #define u_int16_t u_short
1311 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
1312 echo "configure:1313: checking for u_int32_t using $CC" >&5
1313 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1320 # include "confdefs.h"
1321 # include <sys/types.h>
1323 # include <stdlib.h>
1324 # include <stddef.h>
1330 if { (eval echo configure
:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 ac_cv_lbl_have_u_int32_t
=yes
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1337 ac_cv_lbl_have_u_int32_t
=no
1342 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
1343 if test $ac_cv_lbl_have_u_int32_t = no
; then
1344 cat >> confdefs.h
<<\EOF
1345 #define u_int32_t u_int
1350 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1351 echo "configure:1352: checking how to run the C preprocessor" >&5
1352 # On Suns, sometimes $CPP names a directory.
1353 if test -n "$CPP" && test -d "$CPP"; then
1356 if test -z "$CPP"; then
1357 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 # This must be in double quotes, not single quotes, because CPP may get
1361 # substituted into the Makefile and "${CC-cc}" will confuse make.
1363 # On the NeXT, cc -E runs the code through the compiler's parser,
1364 # not just through cpp.
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1371 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1372 { (eval echo configure
:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1373 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1374 if test -z "$ac_err"; then
1378 echo "configure: failed program was:" >&5
1379 cat conftest.
$ac_ext >&5
1381 CPP
="${CC-cc} -E -traditional-cpp"
1382 cat > conftest.
$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1388 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1389 { (eval echo configure
:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1390 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1391 if test -z "$ac_err"; then
1395 echo "configure: failed program was:" >&5
1396 cat conftest.
$ac_ext >&5
1398 CPP
="${CC-cc} -nologo -E"
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure
:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1408 if test -z "$ac_err"; then
1412 echo "configure: failed program was:" >&5
1413 cat conftest.
$ac_ext >&5
1422 ac_cv_prog_CPP
="$CPP"
1424 CPP
="$ac_cv_prog_CPP"
1426 ac_cv_prog_CPP
="$CPP"
1428 echo "$ac_t""$CPP" 1>&6
1430 for ac_hdr
in sys
/ioccom.h sys
/sockio.h ifaddrs.h limits.h netinet
/if_ether.h
1432 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1434 echo "configure:1435: checking for $ac_hdr" >&5
1435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1444 { (eval echo configure
:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1445 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1446 if test -z "$ac_err"; then
1448 eval "ac_cv_header_$ac_safe=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 eval "ac_cv_header_$ac_safe=no"
1458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1461 cat >> confdefs.h
<<EOF
1462 #define $ac_tr_hdr 1
1466 echo "$ac_t""no" 1>&6
1471 if test "$GCC" = yes ; then
1472 echo $ac_n "checking for ANSI ioctl definitions""... $ac_c" 1>&6
1473 echo "configure:1474: checking for ANSI ioctl definitions" >&5
1474 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_fixincludes'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 cat > conftest.
$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 * This generates a "duplicate case value" when fixincludes
1484 # include <sys/types.h>
1485 # include <sys/time.h>
1486 # include <sys/ioctl.h>
1487 # ifdef HAVE_SYS_IOCCOM_H
1488 # include <sys/ioccom.h>
1497 if { (eval echo configure
:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 ac_cv_lbl_gcc_fixincludes
=yes
1501 echo "configure: failed program was:" >&5
1502 cat conftest.
$ac_ext >&5
1504 ac_cv_lbl_gcc_fixincludes
=no
1509 echo "$ac_t""$ac_cv_lbl_gcc_fixincludes" 1>&6
1510 if test $ac_cv_lbl_gcc_fixincludes = no
; then
1511 # Don't cache failure
1512 unset ac_cv_lbl_gcc_fixincludes
1513 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; }
1517 for ac_func
in ether_hostton strerror strlcpy
1519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_func" >&5
1521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 cat > conftest.
$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1527 /* System header to define __stub macros and hopefully few prototypes,
1528 which can conflict with char $ac_func(); below. */
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1537 /* The GNU C library defines this for functions which it implements
1538 to always fail with ENOSYS. Some functions are actually named
1539 something starting with __ and the normal name is an alias. */
1540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1548 if { (eval echo configure
:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1550 eval "ac_cv_func_$ac_func=yes"
1552 echo "configure: failed program was:" >&5
1553 cat conftest.
$ac_ext >&5
1555 eval "ac_cv_func_$ac_func=no"
1560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1563 cat >> confdefs.h
<<EOF
1564 #define $ac_tr_func 1
1568 echo "$ac_t""no" 1>&6
1573 echo $ac_n "checking if --disable-protochain option is specified""... $ac_c" 1>&6
1574 echo "configure:1575: checking if --disable-protochain option is specified" >&5
1575 # Check whether --enable-protochain or --disable-protochain was given.
1576 if test "${enable_protochain+set}" = set; then
1577 enableval
="$enable_protochain"
1581 case "x$enable_protochain" in
1582 xyes
) enable_protochain
=enabled
;;
1583 xno
) enable_protochain
=disabled
;;
1584 x
) enable_protochain
=enabled
;;
1587 if test "$enable_protochain" = "disabled"; then
1588 cat >> confdefs.h
<<\EOF
1589 #define NO_PROTOCHAIN 1
1593 echo "$ac_t""${enable_protochain}" 1>&6
1595 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
1596 { echo "configure: error: pcap type not determined when cross-compiling; use --with-pcap=..." 1>&2; exit 1; }
1598 # Check whether --with-pcap or --without-pcap was given.
1599 if test "${with_pcap+set}" = set; then
1600 withval
="$with_pcap"
1604 echo $ac_n "checking packet capture type""... $ac_c" 1>&6
1605 echo "configure:1606: checking packet capture type" >&5
1606 if test ! -z "$with_pcap" ; then
1608 elif test -r /dev
/bpf0
; then
1610 elif test -r /usr
/include
/net
/pfilt.h
; then
1612 elif test -r /dev
/enet
; then
1614 elif test -r /dev
/nit
; then
1616 elif test -r /usr
/include
/sys
/net
/nit.h
; then
1618 elif test -r /usr
/include
/linux
/socket.h
; then
1620 elif test -r /usr
/include
/net
/raw.h
; then
1622 elif test -r /usr
/include
/odmi.h
; then
1624 # On AIX, the BPF devices might not yet be present - they're
1625 # created the first time libpcap runs after booting.
1626 # We check for odmi.h instead.
1629 elif test -r /usr
/include
/sys
/dlpi.h
; then
1631 elif test -c /dev
/bpf0
; then # check again in case not readable
1633 elif test -c /dev
/enet
; then # check again in case not readable
1635 elif test -c /dev
/nit
; then # check again in case not readable
1640 echo "$ac_t""$V_PCAP" 1>&6
1642 echo $ac_n "checking for getifaddrs""... $ac_c" 1>&6
1643 echo "configure:1644: checking for getifaddrs" >&5
1644 if eval "test \"`echo '$''{'ac_cv_func_getifaddrs'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.
$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* System header to define __stub macros and hopefully few prototypes,
1651 which can conflict with char getifaddrs(); below. */
1653 /* Override any gcc2 internal prototype to avoid an error. */
1654 /* We use char because int might match the return type of a gcc2
1655 builtin and then its argument prototype would still apply. */
1660 /* The GNU C library defines this for functions which it implements
1661 to always fail with ENOSYS. Some functions are actually named
1662 something starting with __ and the normal name is an alias. */
1663 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
1671 if { (eval echo configure
:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1673 eval "ac_cv_func_getifaddrs=yes"
1675 echo "configure: failed program was:" >&5
1676 cat conftest.
$ac_ext >&5
1678 eval "ac_cv_func_getifaddrs=no"
1683 if eval "test \"`echo '$ac_cv_func_'getifaddrs`\" = yes"; then
1684 echo "$ac_t""yes" 1>&6
1687 # We have "getifaddrs()", so we use that to get the list
1692 echo "$ac_t""no" 1>&6
1695 # Well, we don't have "getifaddrs()", so we have to use some
1696 # other mechanism; determine what that mechanism is.
1698 # The first thing we use is the type of capture mechanism,
1699 # which is somewhat of a proxy for the OS we're using.
1705 # This might be Solaris 8 or later, with SIOCGLIFCONF,
1706 # or it might be some other OS, with just SIOCGIFCONF.
1708 echo $ac_n "checking whether we have SIOCGLIFCONF""... $ac_c" 1>&6
1709 echo "configure:1710: checking whether we have SIOCGLIFCONF" >&5
1710 if eval "test \"`echo '$''{'ac_cv_lbl_have_siocglifconf'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <sys/param.h>
1717 #include <sys/file.h>
1718 #include <sys/ioctl.h>
1719 #include <sys/socket.h>
1720 #include <sys/sockio.h>
1722 ioctl(0, SIOCGLIFCONF, (char *)0);
1725 if { (eval echo configure
:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 ac_cv_lbl_have_siocglifconf
=yes
1729 echo "configure: failed program was:" >&5
1730 cat conftest.
$ac_ext >&5
1732 ac_cv_lbl_have_siocglifconf
=no
1737 echo "$ac_t""$ac_cv_lbl_have_siocglifconf" 1>&6
1738 if test $ac_cv_lbl_have_siocglifconf = yes ; then
1747 # We can't capture, so we can't open any capture
1748 # devices, so we won't return any interfaces.
1755 # Assume we just have SIOCGIFCONF.
1756 # (XXX - on at least later Linux kernels, there's
1757 # another mechanism, and we should be using that
1766 echo $ac_n "checking if --enable-ipv6 option is specified""... $ac_c" 1>&6
1767 echo "configure:1768: checking if --enable-ipv6 option is specified" >&5
1768 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1769 if test "${enable_ipv6+set}" = set; then
1770 enableval
="$enable_ipv6"
1774 if test "$enable_ipv6" = "yes"; then
1775 cat >> confdefs.h
<<\EOF
1780 echo "$ac_t""${enable_ipv6-no}" 1>&6
1782 echo $ac_n "checking whether to build optimizer debugging code""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether to build optimizer debugging code" >&5
1784 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
1785 if test "${enable_optimizer_dbg+set}" = set; then
1786 enableval
="$enable_optimizer_dbg"
1790 if test "$enable_optimizer_dbg" = "yes"; then
1791 cat >> confdefs.h
<<\EOF
1796 echo "$ac_t""${enable_optimizer_dbg-no}" 1>&6
1798 echo $ac_n "checking whether to build parser debugging code""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether to build parser debugging code" >&5
1800 # Check whether --enable-yydebug or --disable-yydebug was given.
1801 if test "${enable_yydebug+set}" = set; then
1802 enableval
="$enable_yydebug"
1806 if test "$enable_yydebug" = "yes"; then
1807 cat >> confdefs.h
<<\EOF
1812 echo "$ac_t""${enable_yydebug-no}" 1>&6
1817 for ac_hdr
in sys
/bufmod.h sys
/dlpi_ext.h
1819 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_hdr" >&5
1822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 cat > conftest.
$ac_ext <<EOF
1826 #line 1827 "configure"
1827 #include "confdefs.h"
1830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure
:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1835 eval "ac_cv_header_$ac_safe=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1841 eval "ac_cv_header_$ac_safe=no"
1845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1848 cat >> confdefs.h
<<EOF
1849 #define $ac_tr_hdr 1
1853 echo "$ac_t""no" 1>&6
1857 echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
1858 echo "configure:1859: checking for /dev/dlpi device" >&5
1859 if test -c /dev
/dlpi
; then
1860 echo "$ac_t""yes" 1>&6
1861 cat >> confdefs.h
<<\EOF
1862 #define HAVE_DEV_DLPI 1
1866 echo "$ac_t""no" 1>&6
1868 echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $dir directory" >&5
1870 if test -d $dir ; then
1871 echo "$ac_t""yes" 1>&6
1872 cat >> confdefs.h
<<EOF
1873 #define PCAP_DEV_PREFIX "$dir"
1877 echo "$ac_t""no" 1>&6
1883 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1884 echo "configure:1885: checking Linux kernel version" >&5
1885 if test "$cross_compiling" = yes; then
1886 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 ac_cv_linux_vers
=unknown
1893 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 ac_cv_linux_vers
=`uname -r 2>&1 | \
1897 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1901 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1902 if test $ac_cv_linux_vers = unknown
; then
1903 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1905 if test $ac_cv_linux_vers -lt 2 ; then
1906 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1908 echo $ac_n "checking if if_packet.h has tpacket_stats defined""... $ac_c" 1>&6
1909 echo "configure:1910: checking if if_packet.h has tpacket_stats defined" >&5
1910 if eval "test \"`echo '$''{'ac_cv_lbl_tpacket_stats'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1917 # include <linux/if_packet.h>
1919 struct tpacket_stats stats
1922 if { (eval echo configure
:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 ac_cv_lbl_tpacket_stats
=yes
1926 echo "configure: failed program was:" >&5
1927 cat conftest.
$ac_ext >&5
1929 ac_cv_lbl_tpacket_stats
=no
1934 echo "$ac_t""$ac_cv_lbl_tpacket_stats" 1>&6
1935 if test $ac_cv_lbl_tpacket_stats = yes; then
1936 cat >> confdefs.h
<<\EOF
1937 #define HAVE_TPACKET_STATS 1
1944 echo "configure: warning: cannot determine packet capture interface" 1>&2
1945 echo "configure: warning: (see the INSTALL doc for more info)" 1>&2
1950 echo $ac_n "checking whether we have /proc/net/dev""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether we have /proc/net/dev" >&5
1952 if test -r /proc
/net
/dev
; then
1953 ac_cv_lbl_proc_net_dev
=yes
1955 ac_cv_lbl_proc_net_dev
=no
1957 if test $ac_cv_lbl_proc_net_dev = yes; then
1958 cat >> confdefs.h
<<\EOF
1959 #define HAVE_PROC_NET_DEV 1
1963 echo "$ac_t""$ac_cv_lbl_proc_net_dev" 1>&6
1965 # Check whether --with-flex or --without-flex was given.
1966 if test "${with_flex+set}" = set; then
1967 withval
="$with_flex"
1971 # Check whether --with-bison or --without-bison was given.
1972 if test "${with_bison+set}" = set; then
1973 withval
="$with_bison"
1977 if test "$with_flex" = no
; then
1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
1983 set dummy
$ac_prog; ac_word
=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_prog_V_LEX'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 if test -n "$V_LEX"; then
1990 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
1992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1994 for ac_dir
in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir
=.
1996 if test -f $ac_dir/$ac_word; then
1997 ac_cv_prog_V_LEX
="$ac_prog"
2004 V_LEX
="$ac_cv_prog_V_LEX"
2005 if test -n "$V_LEX"; then
2006 echo "$ac_t""$V_LEX" 1>&6
2008 echo "$ac_t""no" 1>&6
2011 test -n "$V_LEX" && break
2013 test -n "$V_LEX" || V_LEX
="lex"
2016 if test "$V_LEX" = flex
; then
2017 # The -V flag was added in 2.4
2018 echo $ac_n "checking for flex 2.4 or higher""... $ac_c" 1>&6
2019 echo "configure:2020: checking for flex 2.4 or higher" >&5
2020 if eval "test \"`echo '$''{'ac_cv_lbl_flex_v24'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if flex
-V >/dev
/null
2>&1; then
2024 ac_cv_lbl_flex_v24
=yes
2026 ac_cv_lbl_flex_v24
=no
2030 echo "$ac_t""$ac_cv_lbl_flex_v24" 1>&6
2031 if test $ac_cv_lbl_flex_v24 = no
; then
2032 s
="2.4 or higher required"
2033 echo "configure: warning: ignoring obsolete flex executable ($s)" 1>&2
2037 if test "$with_bison" = no
; then
2040 for ac_prog
in bison
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy
$ac_prog; ac_word
=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_V_YACC'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test -n "$V_YACC"; then
2050 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
2052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2054 for ac_dir
in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir
=.
2056 if test -f $ac_dir/$ac_word; then
2057 ac_cv_prog_V_YACC
="$ac_prog"
2064 V_YACC
="$ac_cv_prog_V_YACC"
2065 if test -n "$V_YACC"; then
2066 echo "$ac_t""$V_YACC" 1>&6
2068 echo "$ac_t""no" 1>&6
2071 test -n "$V_YACC" && break
2073 test -n "$V_YACC" || V_YACC
="yacc"
2076 if test "$V_YACC" = bison
; then
2079 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
2080 echo "configure: warning: don't have both flex and bison; reverting to lex/yacc" 1>&2
2084 if test "$V_LEX" = flex
-a -n "pcap_" ; then
2085 V_LEX
="$V_LEX -Ppcap_"
2086 V_YACC
="$V_YACC -p pcap_"
2088 if test "$V_LEX" = lex ; then
2089 # Some versions of lex can't handle the definitions section of scanner.l .
2090 # Try lexing it and complain if it can't deal.
2091 echo $ac_n "checking for capable lex""... $ac_c" 1>&6
2092 echo "configure:2093: checking for capable lex" >&5
2093 if eval "test \"`echo '$''{'tcpdump_cv_capable_lex'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 if lex -t scanner.l
> /dev
/null
2>&1; then
2097 tcpdump_cv_capable_lex
=yes
2099 tcpdump_cv_capable_lex
=insufficient
2103 echo "$ac_t""$tcpdump_cv_capable_lex" 1>&6
2104 if test $tcpdump_cv_capable_lex = insufficient
; then
2105 { echo "configure: error: Your operating system's lex is insufficient to compile
2106 libpcap. flex is a lex replacement that has many advantages, including
2107 being able to compile libpcap. For more information, see
2108 http://www.gnu.org/software/flex/flex.html ." 1>&2; exit 1; }
2115 cat >> confdefs.h
<<\EOF
2122 cat >> confdefs.h
<<\EOF
2123 #define HAVE_HPUX9 1
2135 cat >> confdefs.h
<<\EOF
2136 #define HAVE_HPUX10_20 1
2142 echo $ac_n "checking if SINIX compiler defines sinix""... $ac_c" 1>&6
2143 echo "configure:2144: checking if SINIX compiler defines sinix" >&5
2144 if eval "test \"`echo '$''{'ac_cv_cc_sinix_defined'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2155 if { (eval echo configure
:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 ac_cv_cc_sinix_defined
=yes
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 ac_cv_cc_sinix_defined
=no
2167 echo "$ac_t""$ac_cv_cc_sinix_defined" 1>&6
2168 if test $ac_cv_cc_sinix_defined = no
; then
2169 cat >> confdefs.h
<<\EOF
2177 cat >> confdefs.h
<<\EOF
2178 #define HAVE_SOLARIS 1
2184 # Extract the first word of "ranlib", so it can be a program name with args.
2185 set dummy ranlib
; ac_word
=$2
2186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_word" >&5
2188 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 if test -n "$RANLIB"; then
2192 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2194 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2196 for ac_dir
in $ac_dummy; do
2197 test -z "$ac_dir" && ac_dir
=.
2198 if test -f $ac_dir/$ac_word; then
2199 ac_cv_prog_RANLIB
="ranlib"
2204 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2207 RANLIB
="$ac_cv_prog_RANLIB"
2208 if test -n "$RANLIB"; then
2209 echo "$ac_t""$RANLIB" 1>&6
2211 echo "$ac_t""no" 1>&6
2216 if test "${LBL_CFLAGS+set}" = set; then
2217 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
2219 if test -f .devel
; then
2220 if test "$GCC" = yes ; then
2221 if test "${LBL_CFLAGS+set}" != set; then
2222 if test "$ac_cv_prog_cc_g" = yes ; then
2223 V_CCOPT
="-g $V_CCOPT"
2225 V_CCOPT
="$V_CCOPT -Wall"
2226 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2227 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
2231 case "$target_os" in
2234 V_CCOPT
="$V_CCOPT -n32"
2241 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
2243 if test -f $name ; then
2244 ln -s $name os-proto.h
2245 cat >> confdefs.h
<<\EOF
2246 #define HAVE_OS_PROTO_H 1
2250 echo "configure: warning: can't find $name" 1>&2
2254 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2255 echo "configure:2256: checking if sockaddr struct has sa_len member" >&5
2256 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2263 # include <sys/types.h>
2264 # include <sys/socket.h>
2266 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2269 if { (eval echo configure
:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2271 ac_cv_lbl_sockaddr_has_sa_len
=yes
2273 echo "configure: failed program was:" >&5
2274 cat conftest.
$ac_ext >&5
2276 ac_cv_lbl_sockaddr_has_sa_len
=no
2281 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
2282 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
2283 cat >> confdefs.h
<<\EOF
2284 #define HAVE_SOCKADDR_SA_LEN 1
2289 echo $ac_n "checking if sockaddr_storage struct exists""... $ac_c" 1>&6
2290 echo "configure:2291: checking if sockaddr_storage struct exists" >&5
2291 if eval "test \"`echo '$''{'ac_cv_lbl_has_sockaddr_storage'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.
$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2298 # include <sys/types.h>
2299 # include <sys/socket.h>
2301 u_int i = sizeof (struct sockaddr_storage)
2304 if { (eval echo configure
:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2306 ac_cv_lbl_has_sockaddr_storage
=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 ac_cv_lbl_has_sockaddr_storage
=no
2316 echo "$ac_t""$ac_cv_lbl_has_sockaddr_storage" 1>&6
2317 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
2318 cat >> confdefs.h
<<\EOF
2319 #define HAVE_SOCKADDR_STORAGE 1
2324 echo $ac_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member""... $ac_c" 1>&6
2325 echo "configure:2326: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
2326 if eval "test \"`echo '$''{'ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2333 # include <sys/types.h>
2334 # include <sys/dlpi.h>
2335 # include <sys/dlpi_ext.h>
2337 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
2340 if { (eval echo configure
:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2342 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
2352 echo "$ac_t""$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" 1>&6
2353 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
2354 cat >> confdefs.h
<<\EOF
2355 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
2360 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
2361 echo "configure:2362: checking if unaligned accesses fail" >&5
2362 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2368 # These are CPU types where:
2370 # the CPU faults on an unaligned access, but at least some
2371 # OSes that support that CPU catch the fault and simulate
2372 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
2373 # the simulation is slow, so we don't want to use it;
2375 # the CPU, I infer (from the old
2377 # XXX: should also check that they don't do weird things (like on arm)
2379 # comment) doesn't fault on unaligned accesses, but doesn't
2380 # do a normal unaligned fetch, either (e.g., presumably, ARM);
2382 # for whatever reason, the test program doesn't work
2383 # (this has been claimed to be the case for several of those
2384 # CPUs - I don't know what the problem is; the problem
2385 # was reported as "the test program dumps core" for SuperH,
2386 # but that's what the test program is *supposed* to do -
2387 # it dumps core before it writes anything, so the test
2388 # for an empty output file should find an empty output
2389 # file and conclude that unaligned accesses don't work).
2391 # This run-time test won't work if you're cross-compiling, so
2392 # in order to support cross-compiling for a particular CPU,
2393 # we have to wire in the list of CPU types anyway, as far as
2394 # I know, so perhaps we should just have a set of CPUs on
2395 # which we know it doesn't work, a set of CPUs on which we
2396 # know it does work, and have the script just fail on other
2397 # cpu types and update it when such a failure occurs.
2399 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64
)
2400 ac_cv_lbl_unaligned_fail
=yes
2404 cat >conftest.c
<<EOF
2405 # include <sys/types.h>
2406 # include <sys/wait.h>
2408 unsigned char a[5] = { 1, 2, 3, 4, 5 };
2413 /* avoid "core dumped" message */
2419 pid = waitpid(pid, &status, 0);
2422 exit(!WIFEXITED(status));
2425 i = *(unsigned int *)&a[1];
2430 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
2431 conftest.c
$LIBS >/dev
/null
2>&1
2432 if test ! -x conftest
; then
2433 ac_cv_lbl_unaligned_fail
=yes
2435 .
/conftest
>conftest.out
2436 if test ! -s conftest.out
; then
2437 ac_cv_lbl_unaligned_fail
=yes
2439 ac_cv_lbl_unaligned_fail
=no
2442 rm -f conftest
* core core.conftest
2447 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
2448 if test $ac_cv_lbl_unaligned_fail = yes ; then
2449 cat >> confdefs.h
<<\EOF
2456 ln -s ${srcdir}/bpf
/net net
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2478 echo "configure:2479: checking for a BSD compatible install" >&5
2479 if test -z "$INSTALL"; then
2480 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2484 for ac_dir
in $PATH; do
2485 # Account for people who put trailing slashes in PATH elements.
2487 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2492 for ac_prog
in ginstall scoinst
install; do
2493 if test -f $ac_dir/$ac_prog; then
2494 if test $ac_prog = install &&
2495 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2496 # AIX install. It has an incompatible calling convention.
2499 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL
="$ac_cv_path_install"
2513 # As a last resort, use the slow shell script. We don't cache a
2514 # path for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the path is relative.
2517 INSTALL
="$ac_install_sh"
2520 echo "$ac_t""$INSTALL" 1>&6
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2528 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2534 cat > confcache
<<\EOF
2535 # This file is a shell script that caches the results of configure
2536 # tests run on this system so they can be shared between configure
2537 # scripts and configure runs. It is not useful on other systems.
2538 # If it contains results you don't want to keep, you may remove or edit it.
2540 # By default, configure uses ./config.cache as the cache file,
2541 # creating it if it does not exist already. You can give configure
2542 # the --cache-file=FILE option to use a different cache file; that is
2543 # what configure does when it calls configure scripts in
2544 # subdirectories, so they share the cache.
2545 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2546 # config.status only pays attention to the cache file if you give it the
2547 # --recheck option to rerun configure.
2550 # The following way of writing the cache mishandles newlines in values,
2551 # but we know of no workaround that is simple, portable, and efficient.
2552 # So, don't put newlines in cache variables' values.
2553 # Ultrix sh set writes to stderr and can't be redirected directly,
2554 # and sets the high bit in the cache file unless we assign to the vars.
2556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2558 # `set' does not quote correctly, so add quotes (double-quote substitution
2559 # turns \\\\ into \\, and sed turns \\ into \).
2561 -e "s/'/'\\\\''/g" \
2562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2565 # `set' quotes correctly as required by POSIX, so do not add quotes.
2566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2569 if cmp -s $cache_file confcache
; then
2572 if test -w $cache_file; then
2573 echo "updating cache $cache_file"
2574 cat confcache
> $cache_file
2576 echo "not updating unwritable cache $cache_file"
2581 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2583 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2584 # Let make expand exec_prefix.
2585 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2587 # Any assignment to VPATH causes Sun make to only execute
2588 # the first set of double-colon rules, so remove it if not needed.
2589 # If there is a colon in the path, we need to keep it.
2590 if test "x$srcdir" = x.
; then
2591 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2594 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2596 DEFS
=-DHAVE_CONFIG_H
2598 # Without the "./", some shells look in PATH for config.status.
2599 : ${CONFIG_STATUS=./config.status}
2601 echo creating
$CONFIG_STATUS
2602 rm -f $CONFIG_STATUS
2603 cat > $CONFIG_STATUS <<EOF
2605 # Generated automatically by configure.
2606 # Run this file to recreate the current configuration.
2607 # This directory was configured as follows,
2608 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2610 # $0 $ac_configure_args
2612 # Compiler output produced by configure, useful for debugging
2613 # configure, is in ./config.log if it exists.
2615 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2618 case "\$ac_option" in
2619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2620 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2621 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2622 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2623 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2625 -help | --help | --hel | --he | --h)
2626 echo "\$ac_cs_usage"; exit 0 ;;
2627 *) echo "\$ac_cs_usage"; exit 1 ;;
2631 ac_given_srcdir=$srcdir
2632 ac_given_INSTALL="$INSTALL"
2634 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2636 cat >> $CONFIG_STATUS <<EOF
2638 # Protect against being on the right side of a sed subst in config.status.
2639 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2640 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2644 s%@CFLAGS@%$CFLAGS%g
2645 s%@CPPFLAGS@%$CPPFLAGS%g
2646 s%@CXXFLAGS@%$CXXFLAGS%g
2647 s%@FFLAGS@%$FFLAGS%g
2649 s%@LDFLAGS@%$LDFLAGS%g
2651 s%@exec_prefix@%$exec_prefix%g
2652 s%@prefix@%$prefix%g
2653 s%@program_transform_name@%$program_transform_name%g
2654 s%@bindir@%$bindir%g
2655 s%@sbindir@%$sbindir%g
2656 s%@libexecdir@%$libexecdir%g
2657 s%@datadir@%$datadir%g
2658 s%@sysconfdir@%$sysconfdir%g
2659 s%@sharedstatedir@%$sharedstatedir%g
2660 s%@localstatedir@%$localstatedir%g
2661 s%@libdir@%$libdir%g
2662 s%@includedir@%$includedir%g
2663 s%@oldincludedir@%$oldincludedir%g
2664 s%@infodir@%$infodir%g
2665 s%@mandir@%$mandir%g
2667 s%@host_alias@%$host_alias%g
2668 s%@host_cpu@%$host_cpu%g
2669 s%@host_vendor@%$host_vendor%g
2670 s%@host_os@%$host_os%g
2671 s%@target@%$target%g
2672 s%@target_alias@%$target_alias%g
2673 s%@target_cpu@%$target_cpu%g
2674 s%@target_vendor@%$target_vendor%g
2675 s%@target_os@%$target_os%g
2677 s%@build_alias@%$build_alias%g
2678 s%@build_cpu@%$build_cpu%g
2679 s%@build_vendor@%$build_vendor%g
2680 s%@build_os@%$build_os%g
2681 s%@SHLICC2@%$SHLICC2%g
2685 s%@V_YACC@%$V_YACC%g
2686 s%@RANLIB@%$RANLIB%g
2687 s%@V_CCOPT@%$V_CCOPT%g
2688 s%@V_INCLS@%$V_INCLS%g
2689 s%@V_PCAP@%$V_PCAP%g
2690 s%@V_FINDALLDEVS@%$V_FINDALLDEVS%g
2691 s%@V_RANLIB@%$V_RANLIB%g
2692 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2693 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2694 s%@INSTALL_DATA@%$INSTALL_DATA%g
2699 cat >> $CONFIG_STATUS <<\EOF
2701 # Split the substitutions into bite-sized pieces for seds with
2702 # small command number limits, like on Digital OSF/1 and HP-UX.
2703 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2704 ac_file
=1 # Number of current file.
2705 ac_beg
=1 # First line for current file.
2706 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2709 while $ac_more_lines; do
2710 if test $ac_beg -gt 1; then
2711 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2713 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2715 if test ! -s conftest.s
$ac_file; then
2717 rm -f conftest.s
$ac_file
2719 if test -z "$ac_sed_cmds"; then
2720 ac_sed_cmds
="sed -f conftest.s$ac_file"
2722 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2724 ac_file
=`expr $ac_file + 1`
2726 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2729 if test -z "$ac_sed_cmds"; then
2734 cat >> $CONFIG_STATUS <<EOF
2736 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2738 cat >> $CONFIG_STATUS <<\EOF
2739 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2742 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2743 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2744 *) ac_file_in
="${ac_file}.in" ;;
2747 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2749 # Remove last slash and all that follows it. Not all systems have dirname.
2750 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2752 # The file is in a subdirectory.
2753 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2754 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2755 # A "../" for each directory in $ac_dir_suffix.
2756 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2758 ac_dir_suffix
= ac_dots
=
2761 case "$ac_given_srcdir" in
2763 if test -z "$ac_dots"; then top_srcdir
=.
2764 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2765 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2767 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2768 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2771 case "$ac_given_INSTALL" in
2772 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2773 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2776 echo creating
"$ac_file"
2778 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2780 *Makefile
*) ac_comsub
="1i\\
2781 # $configure_input" ;;
2785 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2787 s%@configure_input@%$configure_input%g
2788 s%@srcdir@%$srcdir%g
2789 s%@top_srcdir@%$top_srcdir%g
2790 s%@INSTALL@%$INSTALL%g
2791 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2798 # ac_d sets the value in "#define NAME VALUE" lines.
2799 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2800 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2803 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2804 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2805 ac_uB
='\([ ]\)%\1#\2define\3'
2808 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2809 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2810 ac_eB
='$%\1#\2define\3'
2814 if test "${CONFIG_HEADERS+set}" != set; then
2816 cat >> $CONFIG_STATUS <<EOF
2817 CONFIG_HEADERS="config.h"
2819 cat >> $CONFIG_STATUS <<\EOF
2821 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2824 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2825 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2826 *) ac_file_in
="${ac_file}.in" ;;
2829 echo creating
$ac_file
2831 rm -f conftest.frag conftest.
in conftest.out
2832 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2833 cat $ac_file_inputs > conftest.
in
2837 # Transform confdefs.h into a sed script conftest.vals that substitutes
2838 # the proper values into config.h.in to produce config.h. And first:
2839 # Protect against being on the right side of a sed subst in config.status.
2840 # Protect against being in an unquoted here document in config.status.
2842 cat > conftest.hdr
<<\EOF
2845 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2849 sed -n -f conftest.hdr confdefs.h > conftest.vals
2852 # This sed command replaces #undef with comments. This is necessary, for
2853 # example, in the case of _POSIX_SOURCE, which is predefined and required
2854 # on some systems where configure will not decide to define it.
2855 cat >> conftest.vals <<\EOF
2856 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2859 # Break up conftest.vals because some shells have a limit on
2860 # the size of here documents, and old seds have small limits too.
2865 ac_lines=`grep -c . conftest.vals
`
2866 # grep -c gives empty output for an empty file on some AIX systems.
2867 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2868 # Write a limited-size here document to conftest.frag.
2869 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2870 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2872 sed -f conftest.frag conftest.in > conftest.out
2874 mv conftest.out conftest.in
2876 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2878 mv conftest.tail conftest.vals
2882 cat >> $CONFIG_STATUS <<\EOF
2883 rm -f conftest.frag conftest.h
2884 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2885 cat conftest.in >> conftest.h
2887 if cmp -s $ac_file conftest.h 2>/dev/null; then
2888 echo "$ac_file is unchanged"
2891 # Remove last slash and all that follows it. Not all systems have dirname.
2892 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2893 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2894 # The file is in a subdirectory.
2895 test ! -d "$ac_dir" && mkdir "$ac_dir"
2898 mv conftest.h $ac_file
2903 cat >> $CONFIG_STATUS <<EOF
2906 cat >> $CONFIG_STATUS <<\EOF
2910 chmod +x $CONFIG_STATUS
2911 rm -fr confdefs* $ac_clean_files
2912 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2915 if test -f .devel ; then