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