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