]> The Tcpdump Group git mirrors - tcpdump/blob - configure
add PPP to the ISO nlpid printer
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.182 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-smb enable possibly-buggy SMB printer default=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 fi
927 cd $ac_popdir
928 done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010 for ac_arg
1011 do
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 2)
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1035 ;;
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1038 fi
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1042 ;;
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1056 {
1057 echo
1058
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1066 {
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 ;;
1074 *)
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ;;
1078 esac;
1079 }
1080 echo
1081
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1103 do
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1108 fi
1109
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1119 fi
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1127 ' 0
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1180 fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1193 fi
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1219 *)
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1241 fi
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363 withval="$with_gcc"
1364
1365 fi;
1366 V_CCOPT="-O"
1367 V_INCLS=""
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1370 fi
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1373 fi
1374 if test -z "$CC" ; then
1375 case "$host_os" in
1376
1377 bsdi*)
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 if test $SHLICC2 = yes ; then
1415 CC=shlicc2
1416 export CC
1417 fi
1418 ;;
1419 esac
1420 fi
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1422 CC=cc
1423 export CC
1424 fi
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1612 fi
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630 fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1647 do
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$CC" && break
1684 done
1685 fi
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1689 do
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 test -n "$ac_ct_CC" && break
1726 done
1727
1728 CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767
1768 int
1769 main ()
1770 {
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820 done
1821 else
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896 done
1897 else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028
2029 int
2030 main ()
2031 {
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 ''\
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2199 'void exit (int);'
2200 do
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2296 V_CCOPT="-O2"
2297 else
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307 -e 's/\..*//'`
2308 fi
2309
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313 V_CCOPT="-O2"
2314 fi
2315 fi
2316 else
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364 case "$host_os" in
2365
2366 hpux*)
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425 ;;
2426
2427 *)
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2431 ;;
2432 esac
2433 fi
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437 case "$host_os" in
2438
2439 irix*)
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2441 ;;
2442
2443 osf*)
2444 V_CCOPT="$V_CCOPT -std1 -O"
2445 ;;
2446
2447 ultrix*)
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465 void c(const struct a *)
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_lbl_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509
2510 ac_cv_lbl_inline=""
2511 ac_lbl_cc_inline=no
2512 for ac_lbl_inline in inline __inline__ __inline
2513 do
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #define inline $ac_lbl_inline
2522 static inline struct iltest *foo(void);
2523 struct iltest {
2524 int iltest1;
2525 int iltest2;
2526 };
2527
2528 static inline struct iltest *
2529 foo()
2530 {
2531 static struct iltest xxx;
2532
2533 return &xxx;
2534 }
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_lbl_cc_inline=yes
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562 if test "$ac_lbl_cc_inline" = yes ; then
2563 break;
2564 fi
2565 done
2566 if test "$ac_lbl_cc_inline" = yes ; then
2567 ac_cv_lbl_inline=$ac_lbl_inline
2568 fi
2569 fi
2570
2571 if test ! -z "$ac_cv_lbl_inline" ; then
2572 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2574 else
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577 fi
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define inline $ac_cv_lbl_inline
2581 _ACEOF
2582
2583
2584 echo "$as_me:$LINENO: checking for __attribute__" >&5
2585 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586 if test "${ac_cv___attribute__+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597
2598 #include <stdlib.h>
2599
2600 int
2601 main ()
2602 {
2603
2604 static void foo(void) __attribute__ ((noreturn));
2605
2606 static void
2607 foo(void)
2608 {
2609 exit(1);
2610 }
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv___attribute__=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_cv___attribute__=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 if test "$ac_cv___attribute__" = "yes"; then
2639
2640 cat >>confdefs.h <<\_ACEOF
2641 #define HAVE___ATTRIBUTE__ 1
2642 _ACEOF
2643
2644 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2645 else
2646 V_DEFS="$V_DEFS -D_U_=\"\""
2647 fi
2648 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2649 echo "${ECHO_T}$ac_cv___attribute__" >&6
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2658 # On Suns, sometimes $CPP names a directory.
2659 if test -n "$CPP" && test -d "$CPP"; then
2660 CPP=
2661 fi
2662 if test -z "$CPP"; then
2663 if test "${ac_cv_prog_CPP+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 # Double quotes because CPP needs to be expanded
2667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2668 do
2669 ac_preproc_ok=false
2670 for ac_c_preproc_warn_flag in '' yes
2671 do
2672 # Use a header file that comes with gcc, so configuring glibc
2673 # with a fresh cross-compiler works.
2674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2675 # <limits.h> exists even on freestanding compilers.
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp. "Syntax error" is here to catch this case.
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 #ifdef __STDC__
2686 # include <limits.h>
2687 #else
2688 # include <assert.h>
2689 #endif
2690 Syntax error
2691 _ACEOF
2692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } >/dev/null; then
2700 if test -s conftest.err; then
2701 ac_cpp_err=$ac_c_preproc_warn_flag
2702 else
2703 ac_cpp_err=
2704 fi
2705 else
2706 ac_cpp_err=yes
2707 fi
2708 if test -z "$ac_cpp_err"; then
2709 :
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 # Broken: fails on valid input.
2715 continue
2716 fi
2717 rm -f conftest.err conftest.$ac_ext
2718
2719 # OK, works on sane cases. Now check whether non-existent headers
2720 # can be detected and how.
2721 cat >conftest.$ac_ext <<_ACEOF
2722 #line $LINENO "configure"
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #include <ac_nonexistent.h>
2729 _ACEOF
2730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } >/dev/null; then
2738 if test -s conftest.err; then
2739 ac_cpp_err=$ac_c_preproc_warn_flag
2740 else
2741 ac_cpp_err=
2742 fi
2743 else
2744 ac_cpp_err=yes
2745 fi
2746 if test -z "$ac_cpp_err"; then
2747 # Broken: success on invalid input.
2748 continue
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 # Passes both tests.
2754 ac_preproc_ok=:
2755 break
2756 fi
2757 rm -f conftest.err conftest.$ac_ext
2758
2759 done
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2763 break
2764 fi
2765
2766 done
2767 ac_cv_prog_CPP=$CPP
2768
2769 fi
2770 CPP=$ac_cv_prog_CPP
2771 else
2772 ac_cv_prog_CPP=$CPP
2773 fi
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2776 ac_preproc_ok=false
2777 for ac_c_preproc_warn_flag in '' yes
2778 do
2779 # Use a header file that comes with gcc, so configuring glibc
2780 # with a fresh cross-compiler works.
2781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2782 # <limits.h> exists even on freestanding compilers.
2783 # On the NeXT, cc -E runs the code through the compiler's parser,
2784 # not just through cpp. "Syntax error" is here to catch this case.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 #ifdef __STDC__
2793 # include <limits.h>
2794 #else
2795 # include <assert.h>
2796 #endif
2797 Syntax error
2798 _ACEOF
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev/null; then
2807 if test -s conftest.err; then
2808 ac_cpp_err=$ac_c_preproc_warn_flag
2809 else
2810 ac_cpp_err=
2811 fi
2812 else
2813 ac_cpp_err=yes
2814 fi
2815 if test -z "$ac_cpp_err"; then
2816 :
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 # Broken: fails on valid input.
2822 continue
2823 fi
2824 rm -f conftest.err conftest.$ac_ext
2825
2826 # OK, works on sane cases. Now check whether non-existent headers
2827 # can be detected and how.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #include <ac_nonexistent.h>
2836 _ACEOF
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null; then
2845 if test -s conftest.err; then
2846 ac_cpp_err=$ac_c_preproc_warn_flag
2847 else
2848 ac_cpp_err=
2849 fi
2850 else
2851 ac_cpp_err=yes
2852 fi
2853 if test -z "$ac_cpp_err"; then
2854 # Broken: success on invalid input.
2855 continue
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 # Passes both tests.
2861 ac_preproc_ok=:
2862 break
2863 fi
2864 rm -f conftest.err conftest.$ac_ext
2865
2866 done
2867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868 rm -f conftest.err conftest.$ac_ext
2869 if $ac_preproc_ok; then
2870 :
2871 else
2872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884
2885
2886 echo "$as_me:$LINENO: checking for egrep" >&5
2887 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2888 if test "${ac_cv_prog_egrep+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2892 then ac_cv_prog_egrep='grep -E'
2893 else ac_cv_prog_egrep='egrep'
2894 fi
2895 fi
2896 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2897 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2898 EGREP=$ac_cv_prog_egrep
2899
2900
2901 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2902 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2903 if test "${ac_cv_header_stdc+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #include <stdlib.h>
2914 #include <stdarg.h>
2915 #include <string.h>
2916 #include <float.h>
2917
2918 int
2919 main ()
2920 {
2921
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_header_stdc=yes
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ac_cv_header_stdc=no
2944 fi
2945 rm -f conftest.$ac_objext conftest.$ac_ext
2946
2947 if test $ac_cv_header_stdc = yes; then
2948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <string.h>
2957
2958 _ACEOF
2959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 $EGREP "memchr" >/dev/null 2>&1; then
2961 :
2962 else
2963 ac_cv_header_stdc=no
2964 fi
2965 rm -f conftest*
2966
2967 fi
2968
2969 if test $ac_cv_header_stdc = yes; then
2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 /* confdefs.h. */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2978 #include <stdlib.h>
2979
2980 _ACEOF
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 $EGREP "free" >/dev/null 2>&1; then
2983 :
2984 else
2985 ac_cv_header_stdc=no
2986 fi
2987 rm -f conftest*
2988
2989 fi
2990
2991 if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2994 :
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ctype.h>
3004 #if ((' ' & 0x0FF) == 0x020)
3005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 #else
3008 # define ISLOWER(c) \
3009 (('a' <= (c) && (c) <= 'i') \
3010 || ('j' <= (c) && (c) <= 'r') \
3011 || ('s' <= (c) && (c) <= 'z'))
3012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3013 #endif
3014
3015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3016 int
3017 main ()
3018 {
3019 int i;
3020 for (i = 0; i < 256; i++)
3021 if (XOR (islower (i), ISLOWER (i))
3022 || toupper (i) != TOUPPER (i))
3023 exit(2);
3024 exit (0);
3025 }
3026 _ACEOF
3027 rm -f conftest$ac_exeext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029 (eval $ac_link) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 :
3039 else
3040 echo "$as_me: program exited with status $ac_status" >&5
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 ( exit $ac_status )
3045 ac_cv_header_stdc=no
3046 fi
3047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3048 fi
3049 fi
3050 fi
3051 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3052 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3053 if test $ac_cv_header_stdc = yes; then
3054
3055 cat >>confdefs.h <<\_ACEOF
3056 #define STDC_HEADERS 1
3057 _ACEOF
3058
3059 fi
3060
3061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3072 inttypes.h stdint.h unistd.h
3073 do
3074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3075 echo "$as_me:$LINENO: checking for $ac_header" >&5
3076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 $ac_includes_default
3088
3089 #include <$ac_header>
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_Header=yes"
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 eval "$as_ac_Header=no"
3109 fi
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3111 fi
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3115 cat >>confdefs.h <<_ACEOF
3116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3117 _ACEOF
3118
3119 fi
3120
3121 done
3122
3123
3124
3125
3126
3127
3128 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3129 do
3130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3132 echo "$as_me:$LINENO: checking for $ac_header" >&5
3133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 fi
3137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3139 else
3140 # Is the header compilable?
3141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 $ac_includes_default
3151 #include <$ac_header>
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_header_compiler=yes
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_header_compiler=no
3171 fi
3172 rm -f conftest.$ac_objext conftest.$ac_ext
3173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3174 echo "${ECHO_T}$ac_header_compiler" >&6
3175
3176 # Is the header present?
3177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <$ac_header>
3187 _ACEOF
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 else
3199 ac_cpp_err=
3200 fi
3201 else
3202 ac_cpp_err=yes
3203 fi
3204 if test -z "$ac_cpp_err"; then
3205 ac_header_preproc=yes
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_header_preproc=no
3211 fi
3212 rm -f conftest.err conftest.$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3214 echo "${ECHO_T}$ac_header_preproc" >&6
3215
3216 # So? What about this header?
3217 case $ac_header_compiler:$ac_header_preproc in
3218 yes:no )
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3223 (
3224 cat <<\_ASBOX
3225 ## ------------------------------------ ##
3226 ## Report this to bug-autoconf@gnu.org. ##
3227 ## ------------------------------------ ##
3228 _ASBOX
3229 ) |
3230 sed "s/^/$as_me: WARNING: /" >&2
3231 ;;
3232 no:yes )
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3239 (
3240 cat <<\_ASBOX
3241 ## ------------------------------------ ##
3242 ## Report this to bug-autoconf@gnu.org. ##
3243 ## ------------------------------------ ##
3244 _ASBOX
3245 ) |
3246 sed "s/^/$as_me: WARNING: /" >&2
3247 ;;
3248 esac
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 eval "$as_ac_Header=$ac_header_preproc"
3255 fi
3256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258
3259 fi
3260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3261 cat >>confdefs.h <<_ACEOF
3262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3263 _ACEOF
3264
3265 fi
3266
3267 done
3268
3269
3270 for ac_header in netinet/if_ether.h
3271 do
3272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3273 echo "$as_me:$LINENO: checking for $ac_header" >&5
3274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/socket.h>
3287
3288 #include <$ac_header>
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 eval "$as_ac_Header=yes"
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 eval "$as_ac_Header=no"
3308 fi
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3314 cat >>confdefs.h <<_ACEOF
3315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3316 _ACEOF
3317
3318 fi
3319
3320 done
3321
3322 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3323 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3324 if test "${ac_cv_header_time+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #include <sys/types.h>
3335 #include <sys/time.h>
3336 #include <time.h>
3337
3338 int
3339 main ()
3340 {
3341 if ((struct tm *) 0)
3342 return 0;
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 ac_cv_header_time=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 ac_cv_header_time=no
3365 fi
3366 rm -f conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3369 echo "${ECHO_T}$ac_cv_header_time" >&6
3370 if test $ac_cv_header_time = yes; then
3371
3372 cat >>confdefs.h <<\_ACEOF
3373 #define TIME_WITH_SYS_TIME 1
3374 _ACEOF
3375
3376 fi
3377
3378
3379 case "$host_os" in
3380
3381 linux*)
3382 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3383 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3384 if test "$cross_compiling" = yes; then
3385 if test "${ac_cv_linux_vers+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_cv_linux_vers=unknown
3389 fi
3390
3391 else
3392 if test "${ac_cv_linux_vers+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 ac_cv_linux_vers=`uname -r 2>&1 | \
3396 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3397 fi
3398
3399 fi
3400 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3401 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3402 if test $ac_cv_linux_vers = unknown ; then
3403 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3404 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3405 { (exit 1); exit 1; }; }
3406 fi
3407 if test $ac_cv_linux_vers -lt 2 ; then
3408 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3409 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3410 { (exit 1); exit 1; }; }
3411 fi
3412 ;;
3413
3414 *)
3415 ;;
3416 esac
3417
3418
3419
3420 for ac_header in smi.h
3421 do
3422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 else
3432 # Is the header compilable?
3433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 $ac_includes_default
3443 #include <$ac_header>
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_header_compiler=yes
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 ac_header_compiler=no
3463 fi
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3466 echo "${ECHO_T}$ac_header_compiler" >&6
3467
3468 # Is the header present?
3469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <$ac_header>
3479 _ACEOF
3480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493 else
3494 ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497 ac_header_preproc=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 ac_header_preproc=no
3503 fi
3504 rm -f conftest.err conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3506 echo "${ECHO_T}$ac_header_preproc" >&6
3507
3508 # So? What about this header?
3509 case $ac_header_compiler:$ac_header_preproc in
3510 yes:no )
3511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3515 (
3516 cat <<\_ASBOX
3517 ## ------------------------------------ ##
3518 ## Report this to bug-autoconf@gnu.org. ##
3519 ## ------------------------------------ ##
3520 _ASBOX
3521 ) |
3522 sed "s/^/$as_me: WARNING: /" >&2
3523 ;;
3524 no:yes )
3525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3531 (
3532 cat <<\_ASBOX
3533 ## ------------------------------------ ##
3534 ## Report this to bug-autoconf@gnu.org. ##
3535 ## ------------------------------------ ##
3536 _ASBOX
3537 ) |
3538 sed "s/^/$as_me: WARNING: /" >&2
3539 ;;
3540 esac
3541 echo "$as_me:$LINENO: checking for $ac_header" >&5
3542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 eval "$as_ac_Header=$ac_header_preproc"
3547 fi
3548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3550
3551 fi
3552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3553 cat >>confdefs.h <<_ACEOF
3554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3555 _ACEOF
3556
3557 fi
3558
3559 done
3560
3561
3562 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3563 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3564 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 ac_check_lib_save_LIBS=$LIBS
3568 LIBS="-lsmi $LIBS"
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char smiInit ();
3584 int
3585 main ()
3586 {
3587 smiInit ();
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -s conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_cv_lib_smi_smiInit=yes
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 ac_cv_lib_smi_smiInit=no
3610 fi
3611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612 LIBS=$ac_check_lib_save_LIBS
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3615 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3616 if test $ac_cv_lib_smi_smiInit = yes; then
3617 cat >>confdefs.h <<_ACEOF
3618 #define HAVE_LIBSMI 1
3619 _ACEOF
3620
3621 LIBS="-lsmi $LIBS"
3622
3623 fi
3624
3625 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3626 then
3627 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3628 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3629 if test "$cross_compiling" = yes; then
3630 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3631 echo "${ECHO_T}not when cross-compiling" >&6
3632 libsmi=no
3633
3634 else
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 /* libsmi available check */
3643 #include <smi.h>
3644 main()
3645 {
3646 int current, revision, age, n;
3647 const int required = 2;
3648 if (smiInit(""))
3649 exit(1);
3650 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3651 exit(2);
3652 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3653 if (n != 3)
3654 exit(3);
3655 if (required < current - age || required > current)
3656 exit(4);
3657 exit(0);
3658 }
3659
3660 _ACEOF
3661 rm -f conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6
3674 cat >>confdefs.h <<\_ACEOF
3675 #define LIBSMI 1
3676 _ACEOF
3677
3678 libsmi=yes
3679 else
3680 echo "$as_me: program exited with status $ac_status" >&5
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ( exit $ac_status )
3685 case $? in
3686 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3687 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3688 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3689 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3690 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3691 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3692 4) echo "$as_me:$LINENO: result: no - too old" >&5
3693 echo "${ECHO_T}no - too old" >&6 ;;
3694 *) echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6 ;;
3696 esac
3697 libsmi=no
3698 fi
3699 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 fi
3702
3703 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3704 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3705 # Check whether --enable-smb or --disable-smb was given.
3706 if test "${enable_smb+set}" = set; then
3707 enableval="$enable_smb"
3708
3709 else
3710 enableval=yes
3711 fi;
3712 case "$enableval" in
3713 yes) echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6
3715 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3716 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3717 cat >>confdefs.h <<\_ACEOF
3718 #define TCPDUMP_DO_SMB 1
3719 _ACEOF
3720
3721 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3722 ;;
3723 *) echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3725 ;;
3726 esac
3727
3728
3729 # Check whether --with-user or --without-user was given.
3730 if test "${with_user+set}" = set; then
3731 withval="$with_user"
3732
3733 fi;
3734 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3735 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3736 if test ! -z "$with_user" ; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define WITH_USER "$withval"
3739 _ACEOF
3740
3741 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3742 echo "${ECHO_T}to \"$withval\"" >&6
3743 else
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748
3749 # Check whether --with-chroot or --without-chroot was given.
3750 if test "${with_chroot+set}" = set; then
3751 withval="$with_chroot"
3752
3753 fi;
3754 echo "$as_me:$LINENO: checking whether to chroot" >&5
3755 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3756 if test ! -z "$with_chroot" ; then
3757 cat >>confdefs.h <<_ACEOF
3758 #define WITH_CHROOT "$withval"
3759 _ACEOF
3760
3761 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3762 echo "${ECHO_T}to \"$withval\"" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3769 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3770 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3771 if test "${enable_ipv6+set}" = set; then
3772 enableval="$enable_ipv6"
3773 case "$enableval" in
3774 yes) echo "$as_me:$LINENO: result: yes" >&5
3775 echo "${ECHO_T}yes" >&6
3776 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3777 cat >>confdefs.h <<\_ACEOF
3778 #define INET6 1
3779 _ACEOF
3780
3781 ipv6=yes
3782 ;;
3783 *)
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 ipv6=no
3787 ;;
3788 esac
3789 else
3790 if test "$cross_compiling" = yes; then
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 ipv6=no
3794
3795 else
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line $LINENO "configure"
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 /* AF_INET6 available check */
3804 #include <sys/types.h>
3805 #include <sys/socket.h>
3806 main()
3807 {
3808 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3809 exit(1);
3810 else
3811 exit(0);
3812 }
3813
3814 _ACEOF
3815 rm -f conftest$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 echo "$as_me:$LINENO: result: yes" >&5
3827 echo "${ECHO_T}yes" >&6
3828 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3829 cat >>confdefs.h <<\_ACEOF
3830 #define INET6 1
3831 _ACEOF
3832
3833 ipv6=yes
3834 else
3835 echo "$as_me: program exited with status $ac_status" >&5
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ( exit $ac_status )
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 ipv6=no
3843 fi
3844 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 fi;
3847
3848 ipv6type=unknown
3849 ipv6lib=none
3850 ipv6trylibc=no
3851
3852 if test "$ipv6" = "yes"; then
3853 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3854 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3855 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3856 case $i in
3857 inria)
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <netinet/in.h>
3866 #ifdef IPV6_INRIA_VERSION
3867 yes
3868 #endif
3869 _ACEOF
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "yes" >/dev/null 2>&1; then
3872 ipv6type=$i;
3873 CFLAGS="-DINET6 $CFLAGS"
3874 fi
3875 rm -f conftest*
3876
3877 ;;
3878 kame)
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <netinet/in.h>
3887 #ifdef __KAME__
3888 yes
3889 #endif
3890 _ACEOF
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 $EGREP "yes" >/dev/null 2>&1; then
3893 ipv6type=$i;
3894 ipv6lib=inet6;
3895 ipv6libdir=/usr/local/v6/lib;
3896 ipv6trylibc=yes;
3897 CFLAGS="-DINET6 $CFLAGS"
3898 fi
3899 rm -f conftest*
3900
3901 ;;
3902 linux-glibc)
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <features.h>
3911 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3912 yes
3913 #endif
3914 _ACEOF
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "yes" >/dev/null 2>&1; then
3917 ipv6type=$i;
3918 CFLAGS="-DINET6 $CFLAGS"
3919 fi
3920 rm -f conftest*
3921
3922 ;;
3923 linux-libinet6)
3924 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3925 ipv6type=$i
3926 ipv6lib=inet6
3927 ipv6libdir=/usr/inet6/lib
3928 ipv6trylibc=yes;
3929 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3930 fi
3931 ;;
3932 toshiba)
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <sys/param.h>
3941 #ifdef _TOSHIBA_INET6
3942 yes
3943 #endif
3944 _ACEOF
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "yes" >/dev/null 2>&1; then
3947 ipv6type=$i;
3948 ipv6lib=inet6;
3949 ipv6libdir=/usr/local/v6/lib;
3950 CFLAGS="-DINET6 $CFLAGS"
3951 fi
3952 rm -f conftest*
3953
3954 ;;
3955 v6d)
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include </usr/local/v6/include/sys/v6config.h>
3964 #ifdef __V6D__
3965 yes
3966 #endif
3967 _ACEOF
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 $EGREP "yes" >/dev/null 2>&1; then
3970 ipv6type=$i;
3971 ipv6lib=v6;
3972 ipv6libdir=/usr/local/v6/lib;
3973 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3974 fi
3975 rm -f conftest*
3976
3977 ;;
3978 zeta)
3979 cat >conftest.$ac_ext <<_ACEOF
3980 #line $LINENO "configure"
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <sys/param.h>
3987 #ifdef _ZETA_MINAMI_INET6
3988 yes
3989 #endif
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "yes" >/dev/null 2>&1; then
3993 ipv6type=$i;
3994 ipv6lib=inet6;
3995 ipv6libdir=/usr/local/v6/lib;
3996 CFLAGS="-DINET6 $CFLAGS"
3997 fi
3998 rm -f conftest*
3999
4000 ;;
4001 esac
4002 if test "$ipv6type" != "unknown"; then
4003 break
4004 fi
4005 done
4006 echo "$as_me:$LINENO: result: $ipv6type" >&5
4007 echo "${ECHO_T}$ipv6type" >&6
4008 fi
4009
4010 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4011 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4012 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4013 echo "You have $ipv6lib library, using it"
4014 else
4015 if test "$ipv6trylibc" = "yes"; then
4016 echo "You do not have $ipv6lib library, using libc"
4017 else
4018 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4019 echo "You need to fetch lib$ipv6lib.a from appropriate"
4020 echo 'ipv6 kit and compile beforehand.'
4021 exit 1
4022 fi
4023 fi
4024 fi
4025
4026
4027 if test "$ipv6" = "yes"; then
4028 #
4029 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4030 # function in libc; there are "ngetaddrinfo()" and
4031 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4032 # "getaddrinfo" to be either "ngetaddrinfo" or
4033 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4034 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4035 #
4036 # So this test doesn't work on Tru64 5.1, and possibly
4037 # on other 5.x releases. This causes the configure
4038 # script to become confused, and results in libpcap
4039 # being unbuildable.
4040 #
4041 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4042 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4043 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 ac_func_search_save_LIBS=$LIBS
4047 ac_cv_search_getaddrinfo=no
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 #ifdef __cplusplus
4058 extern "C"
4059 #endif
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4062 char getaddrinfo ();
4063 int
4064 main ()
4065 {
4066 getaddrinfo ();
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_search_getaddrinfo="none required"
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 fi
4089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4090 if test "$ac_cv_search_getaddrinfo" = no; then
4091 for ac_lib in socket; do
4092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 #ifdef __cplusplus
4103 extern "C"
4104 #endif
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4107 char getaddrinfo ();
4108 int
4109 main ()
4110 {
4111 getaddrinfo ();
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118 (eval $ac_link) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_search_getaddrinfo="-l$ac_lib"
4129 break
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 fi
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4136 done
4137 fi
4138 LIBS=$ac_func_search_save_LIBS
4139 fi
4140 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4141 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4142 if test "$ac_cv_search_getaddrinfo" != no; then
4143 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4144 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4145 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4146 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 if test "$cross_compiling" = yes; then
4150 td_cv_buggygetaddrinfo=yes
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159
4160 #include <sys/types.h>
4161 #include <netdb.h>
4162 #include <string.h>
4163 #include <sys/socket.h>
4164 #include <netinet/in.h>
4165
4166 main()
4167 {
4168 int passive, gaierr, inet4 = 0, inet6 = 0;
4169 struct addrinfo hints, *ai, *aitop;
4170 char straddr[INET6_ADDRSTRLEN], strport[16];
4171
4172 for (passive = 0; passive <= 1; passive++) {
4173 memset(&hints, 0, sizeof(hints));
4174 hints.ai_family = AF_UNSPEC;
4175 hints.ai_flags = passive ? AI_PASSIVE : 0;
4176 hints.ai_socktype = SOCK_STREAM;
4177 hints.ai_protocol = IPPROTO_TCP;
4178 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4179 (void)gai_strerror(gaierr);
4180 goto bad;
4181 }
4182 for (ai = aitop; ai; ai = ai->ai_next) {
4183 if (ai->ai_addr == NULL ||
4184 ai->ai_addrlen == 0 ||
4185 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4186 straddr, sizeof(straddr), strport, sizeof(strport),
4187 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4188 goto bad;
4189 }
4190 switch (ai->ai_family) {
4191 case AF_INET:
4192 if (strcmp(strport, "54321") != 0) {
4193 goto bad;
4194 }
4195 if (passive) {
4196 if (strcmp(straddr, "0.0.0.0") != 0) {
4197 goto bad;
4198 }
4199 } else {
4200 if (strcmp(straddr, "127.0.0.1") != 0) {
4201 goto bad;
4202 }
4203 }
4204 inet4++;
4205 break;
4206 case AF_INET6:
4207 if (strcmp(strport, "54321") != 0) {
4208 goto bad;
4209 }
4210 if (passive) {
4211 if (strcmp(straddr, "::") != 0) {
4212 goto bad;
4213 }
4214 } else {
4215 if (strcmp(straddr, "::1") != 0) {
4216 goto bad;
4217 }
4218 }
4219 inet6++;
4220 break;
4221 case AF_UNSPEC:
4222 goto bad;
4223 break;
4224 #ifdef AF_UNIX
4225 case AF_UNIX:
4226 #else
4227 #ifdef AF_LOCAL
4228 case AF_LOCAL:
4229 #endif
4230 #endif
4231 default:
4232 /* another family support? */
4233 break;
4234 }
4235 }
4236 }
4237
4238 /* supported family should be 2, unsupported family should be 0 */
4239 if (!(inet4 == 0 || inet4 == 2))
4240 goto bad;
4241 if (!(inet6 == 0 || inet6 == 2))
4242 goto bad;
4243
4244 if (aitop)
4245 freeaddrinfo(aitop);
4246 exit(0);
4247
4248 bad:
4249 if (aitop)
4250 freeaddrinfo(aitop);
4251 exit(1);
4252 }
4253
4254 _ACEOF
4255 rm -f conftest$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 (eval $ac_try) 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 td_cv_buggygetaddrinfo=no
4267 else
4268 echo "$as_me: program exited with status $ac_status" >&5
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 ( exit $ac_status )
4273 td_cv_buggygetaddrinfo=yes
4274 fi
4275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 fi
4278
4279 if test "$td_cv_buggygetaddrinfo" = no; then
4280 echo "$as_me:$LINENO: result: good" >&5
4281 echo "${ECHO_T}good" >&6
4282 else
4283 echo "$as_me:$LINENO: result: buggy" >&5
4284 echo "${ECHO_T}buggy" >&6
4285 fi
4286
4287 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4288 #
4289 # XXX - it doesn't appear that "ipv6type" can ever be
4290 # set to "linux". Should this be testing for
4291 # "linux-glibc", or for that *or* "linux-libinet6"?
4292 # If the latter, note that "linux-libinet6" is also
4293 # the type given to some non-Linux OSes.
4294 #
4295 if test "$ipv6type" != "linux"; then
4296 echo 'Fatal: You must get working getaddrinfo() function.'
4297 echo ' or you can specify "--disable-ipv6"'.
4298 exit 1
4299 else
4300 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4301 echo ' Better upgrade your system library to newest version'
4302 echo ' of GNU C library (aka glibc).'
4303 fi
4304 fi
4305
4306 fi
4307
4308
4309
4310 for ac_func in getaddrinfo getnameinfo
4311 do
4312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4313 echo "$as_me:$LINENO: checking for $ac_func" >&5
4314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_var+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 #line $LINENO "configure"
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 #ifdef __cplusplus
4336 extern "C"
4337 {
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char $ac_func ();
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 char (*f) () = $ac_func;
4349 #endif
4350 #ifdef __cplusplus
4351 }
4352 #endif
4353
4354 int
4355 main ()
4356 {
4357 return f != $ac_func;
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_var=yes"
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 eval "$as_ac_var=no"
4380 fi
4381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4382 fi
4383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4385 if test `eval echo '${'$as_ac_var'}'` = yes; then
4386 cat >>confdefs.h <<_ACEOF
4387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4388 _ACEOF
4389
4390 else
4391 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4392 fi
4393 done
4394
4395
4396 fi
4397
4398 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4399 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4400 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <netdnet/dnetdb.h>
4411
4412 _ACEOF
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4415 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4416 else
4417 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4418 fi
4419 rm -f conftest*
4420
4421 fi
4422 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4423 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4424 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4425 cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4427 _ACEOF
4428
4429 fi
4430
4431 echo "$as_me:$LINENO: checking for char" >&5
4432 echo $ECHO_N "checking for char... $ECHO_C" >&6
4433 if test "${ac_cv_type_char+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 int
4445 main ()
4446 {
4447 if ((char *) 0)
4448 return 0;
4449 if (sizeof (char))
4450 return 0;
4451 ;
4452 return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_type_char=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_type_char=no
4473 fi
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4477 echo "${ECHO_T}$ac_cv_type_char" >&6
4478
4479 echo "$as_me:$LINENO: checking size of char" >&5
4480 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4481 if test "${ac_cv_sizeof_char+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 if test "$ac_cv_type_char" = yes; then
4485 # The cast to unsigned long works around a bug in the HP C Compiler
4486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4488 # This bug is HP SR number 8606223364.
4489 if test "$cross_compiling" = yes; then
4490 # Depending upon the size, compute the lo and hi bounds.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4499 int
4500 main ()
4501 {
4502 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4503 test_array [0] = 0
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_lo=0 ac_mid=0
4522 while :; do
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4535 test_array [0] = 0
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_hi=$ac_mid; break
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_lo=`expr $ac_mid + 1`
4559 if test $ac_lo -le $ac_mid; then
4560 ac_lo= ac_hi=
4561 break
4562 fi
4563 ac_mid=`expr 2 '*' $ac_mid + 1`
4564 fi
4565 rm -f conftest.$ac_objext conftest.$ac_ext
4566 done
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4583 test_array [0] = 0
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_hi=-1 ac_mid=-1
4602 while :; do
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4611 int
4612 main ()
4613 {
4614 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4615 test_array [0] = 0
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_lo=$ac_mid; break
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 ac_hi=`expr '(' $ac_mid ')' - 1`
4639 if test $ac_mid -le $ac_hi; then
4640 ac_lo= ac_hi=
4641 break
4642 fi
4643 ac_mid=`expr 2 '*' $ac_mid`
4644 fi
4645 rm -f conftest.$ac_objext conftest.$ac_ext
4646 done
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ac_lo= ac_hi=
4652 fi
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 rm -f conftest.$ac_objext conftest.$ac_ext
4656 # Binary search between lo and hi bounds.
4657 while test "x$ac_lo" != "x$ac_hi"; do
4658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4659 cat >conftest.$ac_ext <<_ACEOF
4660 #line $LINENO "configure"
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 int
4668 main ()
4669 {
4670 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4671 test_array [0] = 0
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_hi=$ac_mid
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4695 fi
4696 rm -f conftest.$ac_objext conftest.$ac_ext
4697 done
4698 case $ac_lo in
4699 ?*) ac_cv_sizeof_char=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (char), 77
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705 esac
4706 else
4707 if test "$cross_compiling" = yes; then
4708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 $ac_includes_default
4722 long longval () { return (long) (sizeof (char)); }
4723 unsigned long ulongval () { return (long) (sizeof (char)); }
4724 #include <stdio.h>
4725 #include <stdlib.h>
4726 int
4727 main ()
4728 {
4729
4730 FILE *f = fopen ("conftest.val", "w");
4731 if (! f)
4732 exit (1);
4733 if (((long) (sizeof (char))) < 0)
4734 {
4735 long i = longval ();
4736 if (i != ((long) (sizeof (char))))
4737 exit (1);
4738 fprintf (f, "%ld\n", i);
4739 }
4740 else
4741 {
4742 unsigned long i = ulongval ();
4743 if (i != ((long) (sizeof (char))))
4744 exit (1);
4745 fprintf (f, "%lu\n", i);
4746 }
4747 exit (ferror (f) || fclose (f) != 0);
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest$ac_exeext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_sizeof_char=`cat conftest.val`
4765 else
4766 echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 ( exit $ac_status )
4771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4772 See \`config.log' for more details." >&5
4773 echo "$as_me: error: cannot compute sizeof (char), 77
4774 See \`config.log' for more details." >&2;}
4775 { (exit 1); exit 1; }; }
4776 fi
4777 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 fi
4780 rm -f conftest.val
4781 else
4782 ac_cv_sizeof_char=0
4783 fi
4784 fi
4785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4786 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4787 cat >>confdefs.h <<_ACEOF
4788 #define SIZEOF_CHAR $ac_cv_sizeof_char
4789 _ACEOF
4790
4791
4792 echo "$as_me:$LINENO: checking for short" >&5
4793 echo $ECHO_N "checking for short... $ECHO_C" >&6
4794 if test "${ac_cv_type_short+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4805 int
4806 main ()
4807 {
4808 if ((short *) 0)
4809 return 0;
4810 if (sizeof (short))
4811 return 0;
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_type_short=yes
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_cv_type_short=no
4834 fi
4835 rm -f conftest.$ac_objext conftest.$ac_ext
4836 fi
4837 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4838 echo "${ECHO_T}$ac_cv_type_short" >&6
4839
4840 echo "$as_me:$LINENO: checking size of short" >&5
4841 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4842 if test "${ac_cv_sizeof_short+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 if test "$ac_cv_type_short" = yes; then
4846 # The cast to unsigned long works around a bug in the HP C Compiler
4847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849 # This bug is HP SR number 8606223364.
4850 if test "$cross_compiling" = yes; then
4851 # Depending upon the size, compute the lo and hi bounds.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 int
4861 main ()
4862 {
4863 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4864 test_array [0] = 0
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_lo=0 ac_mid=0
4883 while :; do
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line $LINENO "configure"
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_hi=$ac_mid; break
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_lo=`expr $ac_mid + 1`
4920 if test $ac_lo -le $ac_mid; then
4921 ac_lo= ac_hi=
4922 break
4923 fi
4924 ac_mid=`expr 2 '*' $ac_mid + 1`
4925 fi
4926 rm -f conftest.$ac_objext conftest.$ac_ext
4927 done
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4944 test_array [0] = 0
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_hi=-1 ac_mid=-1
4963 while :; do
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 int
4973 main ()
4974 {
4975 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4976 test_array [0] = 0
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_lo=$ac_mid; break
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_hi=`expr '(' $ac_mid ')' - 1`
5000 if test $ac_mid -le $ac_hi; then
5001 ac_lo= ac_hi=
5002 break
5003 fi
5004 ac_mid=`expr 2 '*' $ac_mid`
5005 fi
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5007 done
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_lo= ac_hi=
5013 fi
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5015 fi
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5017 # Binary search between lo and hi bounds.
5018 while test "x$ac_lo" != "x$ac_hi"; do
5019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5028 int
5029 main ()
5030 {
5031 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5032 test_array [0] = 0
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_hi=$ac_mid
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 ac_lo=`expr '(' $ac_mid ')' + 1`
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058 done
5059 case $ac_lo in
5060 ?*) ac_cv_sizeof_short=$ac_lo;;
5061 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5062 See \`config.log' for more details." >&5
5063 echo "$as_me: error: cannot compute sizeof (short), 77
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; } ;;
5066 esac
5067 else
5068 if test "$cross_compiling" = yes; then
5069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5070 See \`config.log' for more details." >&5
5071 echo "$as_me: error: cannot run test program while cross compiling
5072 See \`config.log' for more details." >&2;}
5073 { (exit 1); exit 1; }; }
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 long longval () { return (long) (sizeof (short)); }
5084 unsigned long ulongval () { return (long) (sizeof (short)); }
5085 #include <stdio.h>
5086 #include <stdlib.h>
5087 int
5088 main ()
5089 {
5090
5091 FILE *f = fopen ("conftest.val", "w");
5092 if (! f)
5093 exit (1);
5094 if (((long) (sizeof (short))) < 0)
5095 {
5096 long i = longval ();
5097 if (i != ((long) (sizeof (short))))
5098 exit (1);
5099 fprintf (f, "%ld\n", i);
5100 }
5101 else
5102 {
5103 unsigned long i = ulongval ();
5104 if (i != ((long) (sizeof (short))))
5105 exit (1);
5106 fprintf (f, "%lu\n", i);
5107 }
5108 exit (ferror (f) || fclose (f) != 0);
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_sizeof_short=`cat conftest.val`
5126 else
5127 echo "$as_me: program exited with status $ac_status" >&5
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 ( exit $ac_status )
5132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot compute sizeof (short), 77
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }
5137 fi
5138 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 fi
5141 rm -f conftest.val
5142 else
5143 ac_cv_sizeof_short=0
5144 fi
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5147 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5148 cat >>confdefs.h <<_ACEOF
5149 #define SIZEOF_SHORT $ac_cv_sizeof_short
5150 _ACEOF
5151
5152
5153 echo "$as_me:$LINENO: checking for int" >&5
5154 echo $ECHO_N "checking for int... $ECHO_C" >&6
5155 if test "${ac_cv_type_int+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 int
5167 main ()
5168 {
5169 if ((int *) 0)
5170 return 0;
5171 if (sizeof (int))
5172 return 0;
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -s conftest.$ac_objext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_type_int=yes
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 ac_cv_type_int=no
5195 fi
5196 rm -f conftest.$ac_objext conftest.$ac_ext
5197 fi
5198 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5199 echo "${ECHO_T}$ac_cv_type_int" >&6
5200
5201 echo "$as_me:$LINENO: checking size of int" >&5
5202 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5203 if test "${ac_cv_sizeof_int+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test "$ac_cv_type_int" = yes; then
5207 # The cast to unsigned long works around a bug in the HP C Compiler
5208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5210 # This bug is HP SR number 8606223364.
5211 if test "$cross_compiling" = yes; then
5212 # Depending upon the size, compute the lo and hi bounds.
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5221 int
5222 main ()
5223 {
5224 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5225 test_array [0] = 0
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_lo=0 ac_mid=0
5244 while :; do
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5253 int
5254 main ()
5255 {
5256 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5257 test_array [0] = 0
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_hi=$ac_mid; break
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_lo=`expr $ac_mid + 1`
5281 if test $ac_lo -le $ac_mid; then
5282 ac_lo= ac_hi=
5283 break
5284 fi
5285 ac_mid=`expr 2 '*' $ac_mid + 1`
5286 fi
5287 rm -f conftest.$ac_objext conftest.$ac_ext
5288 done
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5301 int
5302 main ()
5303 {
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5305 test_array [0] = 0
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi=-1 ac_mid=-1
5324 while :; do
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5333 int
5334 main ()
5335 {
5336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5337 test_array [0] = 0
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_lo=$ac_mid; break
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_hi=`expr '(' $ac_mid ')' - 1`
5361 if test $ac_mid -le $ac_hi; then
5362 ac_lo= ac_hi=
5363 break
5364 fi
5365 ac_mid=`expr 2 '*' $ac_mid`
5366 fi
5367 rm -f conftest.$ac_objext conftest.$ac_ext
5368 done
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_lo= ac_hi=
5374 fi
5375 rm -f conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5378 # Binary search between lo and hi bounds.
5379 while test "x$ac_lo" != "x$ac_hi"; do
5380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5381 cat >conftest.$ac_ext <<_ACEOF
5382 #line $LINENO "configure"
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 int
5390 main ()
5391 {
5392 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5393 test_array [0] = 0
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_hi=$ac_mid
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_lo=`expr '(' $ac_mid ')' + 1`
5417 fi
5418 rm -f conftest.$ac_objext conftest.$ac_ext
5419 done
5420 case $ac_lo in
5421 ?*) ac_cv_sizeof_int=$ac_lo;;
5422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5423 See \`config.log' for more details." >&5
5424 echo "$as_me: error: cannot compute sizeof (int), 77
5425 See \`config.log' for more details." >&2;}
5426 { (exit 1); exit 1; }; } ;;
5427 esac
5428 else
5429 if test "$cross_compiling" = yes; then
5430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5431 See \`config.log' for more details." >&5
5432 echo "$as_me: error: cannot run test program while cross compiling
5433 See \`config.log' for more details." >&2;}
5434 { (exit 1); exit 1; }; }
5435 else
5436 cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 long longval () { return (long) (sizeof (int)); }
5445 unsigned long ulongval () { return (long) (sizeof (int)); }
5446 #include <stdio.h>
5447 #include <stdlib.h>
5448 int
5449 main ()
5450 {
5451
5452 FILE *f = fopen ("conftest.val", "w");
5453 if (! f)
5454 exit (1);
5455 if (((long) (sizeof (int))) < 0)
5456 {
5457 long i = longval ();
5458 if (i != ((long) (sizeof (int))))
5459 exit (1);
5460 fprintf (f, "%ld\n", i);
5461 }
5462 else
5463 {
5464 unsigned long i = ulongval ();
5465 if (i != ((long) (sizeof (int))))
5466 exit (1);
5467 fprintf (f, "%lu\n", i);
5468 }
5469 exit (ferror (f) || fclose (f) != 0);
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_sizeof_int=`cat conftest.val`
5487 else
5488 echo "$as_me: program exited with status $ac_status" >&5
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492 ( exit $ac_status )
5493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot compute sizeof (int), 77
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; }
5498 fi
5499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5500 fi
5501 fi
5502 rm -f conftest.val
5503 else
5504 ac_cv_sizeof_int=0
5505 fi
5506 fi
5507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5508 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5509 cat >>confdefs.h <<_ACEOF
5510 #define SIZEOF_INT $ac_cv_sizeof_int
5511 _ACEOF
5512
5513
5514 echo "$as_me:$LINENO: checking for long" >&5
5515 echo $ECHO_N "checking for long... $ECHO_C" >&6
5516 if test "${ac_cv_type_long+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 int
5528 main ()
5529 {
5530 if ((long *) 0)
5531 return 0;
5532 if (sizeof (long))
5533 return 0;
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_type_long=yes
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cv_type_long=no
5556 fi
5557 rm -f conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5560 echo "${ECHO_T}$ac_cv_type_long" >&6
5561
5562 echo "$as_me:$LINENO: checking size of long" >&5
5563 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5564 if test "${ac_cv_sizeof_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test "$ac_cv_type_long" = yes; then
5568 # The cast to unsigned long works around a bug in the HP C Compiler
5569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5571 # This bug is HP SR number 8606223364.
5572 if test "$cross_compiling" = yes; then
5573 # Depending upon the size, compute the lo and hi bounds.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5582 int
5583 main ()
5584 {
5585 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5586 test_array [0] = 0
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_lo=0 ac_mid=0
5605 while :; do
5606 cat >conftest.$ac_ext <<_ACEOF
5607 #line $LINENO "configure"
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 int
5615 main ()
5616 {
5617 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5618 test_array [0] = 0
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_hi=$ac_mid; break
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_lo=`expr $ac_mid + 1`
5642 if test $ac_lo -le $ac_mid; then
5643 ac_lo= ac_hi=
5644 break
5645 fi
5646 ac_mid=`expr 2 '*' $ac_mid + 1`
5647 fi
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5649 done
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5662 int
5663 main ()
5664 {
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5666 test_array [0] = 0
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=-1 ac_mid=-1
5685 while :; do
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5694 int
5695 main ()
5696 {
5697 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5698 test_array [0] = 0
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_lo=$ac_mid; break
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721 ac_hi=`expr '(' $ac_mid ')' - 1`
5722 if test $ac_mid -le $ac_hi; then
5723 ac_lo= ac_hi=
5724 break
5725 fi
5726 ac_mid=`expr 2 '*' $ac_mid`
5727 fi
5728 rm -f conftest.$ac_objext conftest.$ac_ext
5729 done
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_lo= ac_hi=
5735 fi
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 rm -f conftest.$ac_objext conftest.$ac_ext
5739 # Binary search between lo and hi bounds.
5740 while test "x$ac_lo" != "x$ac_hi"; do
5741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5750 int
5751 main ()
5752 {
5753 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5754 test_array [0] = 0
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_hi=$ac_mid
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_lo=`expr '(' $ac_mid ')' + 1`
5778 fi
5779 rm -f conftest.$ac_objext conftest.$ac_ext
5780 done
5781 case $ac_lo in
5782 ?*) ac_cv_sizeof_long=$ac_lo;;
5783 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: cannot compute sizeof (long), 77
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; } ;;
5788 esac
5789 else
5790 if test "$cross_compiling" = yes; then
5791 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: cannot run test program while cross compiling
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 long longval () { return (long) (sizeof (long)); }
5806 unsigned long ulongval () { return (long) (sizeof (long)); }
5807 #include <stdio.h>
5808 #include <stdlib.h>
5809 int
5810 main ()
5811 {
5812
5813 FILE *f = fopen ("conftest.val", "w");
5814 if (! f)
5815 exit (1);
5816 if (((long) (sizeof (long))) < 0)
5817 {
5818 long i = longval ();
5819 if (i != ((long) (sizeof (long))))
5820 exit (1);
5821 fprintf (f, "%ld\n", i);
5822 }
5823 else
5824 {
5825 unsigned long i = ulongval ();
5826 if (i != ((long) (sizeof (long))))
5827 exit (1);
5828 fprintf (f, "%lu\n", i);
5829 }
5830 exit (ferror (f) || fclose (f) != 0);
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_sizeof_long=`cat conftest.val`
5848 else
5849 echo "$as_me: program exited with status $ac_status" >&5
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ( exit $ac_status )
5854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5855 See \`config.log' for more details." >&5
5856 echo "$as_me: error: cannot compute sizeof (long), 77
5857 See \`config.log' for more details." >&2;}
5858 { (exit 1); exit 1; }; }
5859 fi
5860 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 fi
5863 rm -f conftest.val
5864 else
5865 ac_cv_sizeof_long=0
5866 fi
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5869 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_LONG $ac_cv_sizeof_long
5872 _ACEOF
5873
5874
5875 echo "$as_me:$LINENO: checking for long long" >&5
5876 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5877 if test "${ac_cv_type_long_long+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 int
5889 main ()
5890 {
5891 if ((long long *) 0)
5892 return 0;
5893 if (sizeof (long long))
5894 return 0;
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -s conftest.$ac_objext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_type_long_long=yes
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cv_type_long_long=no
5917 fi
5918 rm -f conftest.$ac_objext conftest.$ac_ext
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5921 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5922
5923 echo "$as_me:$LINENO: checking size of long long" >&5
5924 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5925 if test "${ac_cv_sizeof_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 if test "$ac_cv_type_long_long" = yes; then
5929 # The cast to unsigned long works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 if test "$cross_compiling" = yes; then
5934 # Depending upon the size, compute the lo and hi bounds.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 int
5944 main ()
5945 {
5946 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5947 test_array [0] = 0
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_lo=0 ac_mid=0
5966 while :; do
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5979 test_array [0] = 0
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_hi=$ac_mid; break
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_lo=`expr $ac_mid + 1`
6003 if test $ac_lo -le $ac_mid; then
6004 ac_lo= ac_hi=
6005 break
6006 fi
6007 ac_mid=`expr 2 '*' $ac_mid + 1`
6008 fi
6009 rm -f conftest.$ac_objext conftest.$ac_ext
6010 done
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6023 int
6024 main ()
6025 {
6026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6027 test_array [0] = 0
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_hi=-1 ac_mid=-1
6046 while :; do
6047 cat >conftest.$ac_ext <<_ACEOF
6048 #line $LINENO "configure"
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 int
6056 main ()
6057 {
6058 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6059 test_array [0] = 0
6060
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_lo=$ac_mid; break
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_hi=`expr '(' $ac_mid ')' - 1`
6083 if test $ac_mid -le $ac_hi; then
6084 ac_lo= ac_hi=
6085 break
6086 fi
6087 ac_mid=`expr 2 '*' $ac_mid`
6088 fi
6089 rm -f conftest.$ac_objext conftest.$ac_ext
6090 done
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_lo= ac_hi=
6096 fi
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 rm -f conftest.$ac_objext conftest.$ac_ext
6100 # Binary search between lo and hi bounds.
6101 while test "x$ac_lo" != "x$ac_hi"; do
6102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line $LINENO "configure"
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 int
6112 main ()
6113 {
6114 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6115 test_array [0] = 0
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_hi=$ac_mid
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_lo=`expr '(' $ac_mid ')' + 1`
6139 fi
6140 rm -f conftest.$ac_objext conftest.$ac_ext
6141 done
6142 case $ac_lo in
6143 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6144 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6145 See \`config.log' for more details." >&5
6146 echo "$as_me: error: cannot compute sizeof (long long), 77
6147 See \`config.log' for more details." >&2;}
6148 { (exit 1); exit 1; }; } ;;
6149 esac
6150 else
6151 if test "$cross_compiling" = yes; then
6152 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6153 See \`config.log' for more details." >&5
6154 echo "$as_me: error: cannot run test program while cross compiling
6155 See \`config.log' for more details." >&2;}
6156 { (exit 1); exit 1; }; }
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 $ac_includes_default
6166 long longval () { return (long) (sizeof (long long)); }
6167 unsigned long ulongval () { return (long) (sizeof (long long)); }
6168 #include <stdio.h>
6169 #include <stdlib.h>
6170 int
6171 main ()
6172 {
6173
6174 FILE *f = fopen ("conftest.val", "w");
6175 if (! f)
6176 exit (1);
6177 if (((long) (sizeof (long long))) < 0)
6178 {
6179 long i = longval ();
6180 if (i != ((long) (sizeof (long long))))
6181 exit (1);
6182 fprintf (f, "%ld\n", i);
6183 }
6184 else
6185 {
6186 unsigned long i = ulongval ();
6187 if (i != ((long) (sizeof (long long))))
6188 exit (1);
6189 fprintf (f, "%lu\n", i);
6190 }
6191 exit (ferror (f) || fclose (f) != 0);
6192
6193 ;
6194 return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_sizeof_long_long=`cat conftest.val`
6209 else
6210 echo "$as_me: program exited with status $ac_status" >&5
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ( exit $ac_status )
6215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6216 See \`config.log' for more details." >&5
6217 echo "$as_me: error: cannot compute sizeof (long long), 77
6218 See \`config.log' for more details." >&2;}
6219 { (exit 1); exit 1; }; }
6220 fi
6221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 fi
6224 rm -f conftest.val
6225 else
6226 ac_cv_sizeof_long_long=0
6227 fi
6228 fi
6229 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6230 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6231 cat >>confdefs.h <<_ACEOF
6232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6233 _ACEOF
6234
6235
6236
6237
6238
6239 echo "$as_me:$LINENO: checking for addrinfo" >&5
6240 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6241 if test "${ac_cv_addrinfo+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat >conftest.$ac_ext <<_ACEOF
6245 #line $LINENO "configure"
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251
6252 # include <netdb.h>
6253 int
6254 main ()
6255 {
6256 struct addrinfo a
6257 ;
6258 return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_addrinfo=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_addrinfo=no
6279 fi
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6281 fi
6282
6283 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6284 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6285 if test $ac_cv_addrinfo = yes; then
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HAVE_ADDRINFO 1
6288 _ACEOF
6289
6290 else
6291 cat >>confdefs.h <<\_ACEOF
6292 #define NEED_ADDRINFO_H 1
6293 _ACEOF
6294
6295 fi
6296
6297 if test "$ac_cv_addrinfo" = no; then
6298 missing_includes=yes
6299 fi
6300
6301
6302 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6303 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6304 if test "${ac_cv_maxserv+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <netdb.h>
6315 #ifdef NI_MAXSERV
6316 yes
6317 #endif
6318 _ACEOF
6319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "yes" >/dev/null 2>&1; then
6321 ac_cv_maxserv=yes
6322 else
6323 ac_cv_maxserv=no
6324 fi
6325 rm -f conftest*
6326
6327 fi
6328
6329 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6330 echo "${ECHO_T}$ac_cv_maxserv" >&6
6331 if test $ac_cv_maxserv != yes; then
6332 cat >>confdefs.h <<\_ACEOF
6333 #define NEED_ADDRINFO_H 1
6334 _ACEOF
6335
6336 fi
6337
6338 if test "$ac_cv_maxserv" = no; then
6339 missing_includes=yes
6340 fi
6341
6342
6343 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6344 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6345 if test "${ac_cv_namereqd+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <netdb.h>
6356 #ifdef NI_NOFQDN
6357 yes
6358 #endif
6359 _ACEOF
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 $EGREP "yes" >/dev/null 2>&1; then
6362 ac_cv_namereqd=yes
6363 else
6364 ac_cv_namereqd=no
6365 fi
6366 rm -f conftest*
6367
6368 fi
6369
6370 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6371 echo "${ECHO_T}$ac_cv_namereqd" >&6
6372 if test $ac_cv_namereqd != yes; then
6373 cat >>confdefs.h <<\_ACEOF
6374 #define NEED_ADDRINFO_H 1
6375 _ACEOF
6376
6377 fi
6378
6379 if test "$ac_cv_namereqd" = no; then
6380 missing_includes=yes
6381 fi
6382
6383
6384 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6385 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6386 if test "${ac_cv_sa_storage+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396
6397 # include <sys/types.h>
6398 # include <sys/socket.h>
6399 int
6400 main ()
6401 {
6402 struct sockaddr_storage s
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -s conftest.$ac_objext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 ac_cv_sa_storage=yes
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 ac_cv_sa_storage=no
6425 fi
6426 rm -f conftest.$ac_objext conftest.$ac_ext
6427 fi
6428
6429 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6430 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6431 if test $ac_cv_sa_storage = yes; then
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_SOCKADDR_STORAGE 1
6434 _ACEOF
6435
6436 fi
6437
6438 if test "$ac_cv_sa_storage" = no; then
6439 missing_includes=yes
6440 fi
6441
6442
6443 ac_cv_addrsz=yes
6444 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6445 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6446 if test "${ac_cv_inaddrsz+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line $LINENO "configure"
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456
6457 # include <arpa/nameser.h>
6458 int
6459 main ()
6460 {
6461 int a = INADDRSZ
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_inaddrsz=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_cv_inaddrsz=no
6484 fi
6485 rm -f conftest.$ac_objext conftest.$ac_ext
6486 fi
6487
6488 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6489 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6490 if test $ac_cv_inaddrsz = yes; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_INADDRSZ 1
6493 _ACEOF
6494
6495 else
6496 ac_cv_addrsz=no
6497 fi
6498 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6499 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6500 if test "${ac_cv_in6addrsz+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510
6511 # include <arpa/nameser.h>
6512 int
6513 main ()
6514 {
6515 int a = IN6ADDRSZ
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_in6addrsz=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 ac_cv_in6addrsz=no
6538 fi
6539 rm -f conftest.$ac_objext conftest.$ac_ext
6540 fi
6541
6542 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6543 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6544 if test $ac_cv_in6addrsz = yes; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_IN6ADDRSZ 1
6547 _ACEOF
6548
6549 else
6550 ac_cv_addrsz=no
6551 fi
6552
6553 if test "$ac_cv_addrsz" = no; then
6554 missing_includes=yes
6555 fi
6556
6557
6558 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6559 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6560 if test "${ac_cv_res_inet6+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570
6571 # include <sys/types.h>
6572 # include <netinet/in.h>
6573 # include <resolv.h>
6574 int
6575 main ()
6576 {
6577 int a = RES_USE_INET6
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_res_inet6=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_cv_res_inet6=no
6600 fi
6601 rm -f conftest.$ac_objext conftest.$ac_ext
6602 fi
6603
6604 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6605 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6606 if test $ac_cv_res_inet6 = yes; then
6607 cat >>confdefs.h <<\_ACEOF
6608 #define HAVE_RES_USE_INET6 1
6609 _ACEOF
6610
6611 fi
6612
6613 if test "$ac_cv_res_inet6" = no; then
6614 missing_includes=yes
6615 fi
6616
6617
6618 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6619 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6620 if test "${ac_cv_res_state_ext+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630
6631 # include <sys/types.h>
6632 # include <netinet/in.h>
6633 # include <netinet6/in6.h>
6634 # include <resolv.h>
6635 int
6636 main ()
6637 {
6638 struct __res_state_ext e
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_res_state_ext=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_cv_res_state_ext=no
6661 fi
6662 rm -f conftest.$ac_objext conftest.$ac_ext
6663 fi
6664
6665 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6666 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6667 if test $ac_cv_res_state_ext = yes; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_RES_STATE_EXT 1
6670 _ACEOF
6671
6672 fi
6673
6674 if test "$ac_cv_res_state_ext" = no; then
6675 missing_includes=yes
6676 fi
6677
6678
6679 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6680 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6681 if test "${ac_cv_res_state+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691
6692 # include <sys/types.h>
6693 # include <netinet/in.h>
6694 # include <netinet6/in6.h>
6695 # include <resolv.h>
6696 int
6697 main ()
6698 {
6699 struct __res_state e; e.nsort = 0
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest.$ac_objext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_res_state=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_cv_res_state=no
6722 fi
6723 rm -f conftest.$ac_objext conftest.$ac_ext
6724 fi
6725
6726 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6727 echo "${ECHO_T}$ac_cv_res_state" >&6
6728 if test $ac_cv_res_state = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_NEW_RES_STATE 1
6731 _ACEOF
6732
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6744 do
6745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6746 echo "$as_me:$LINENO: checking for $ac_func" >&5
6747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6748 if eval "test \"\${$as_ac_var+set}\" = set"; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func (); below.
6760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761 <limits.h> exists even on freestanding compilers. */
6762 #ifdef __STDC__
6763 # include <limits.h>
6764 #else
6765 # include <assert.h>
6766 #endif
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 #ifdef __cplusplus
6769 extern "C"
6770 {
6771 #endif
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774 char $ac_func ();
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 choke me
6780 #else
6781 char (*f) () = $ac_func;
6782 #endif
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786
6787 int
6788 main ()
6789 {
6790 return f != $ac_func;
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 eval "$as_ac_var=yes"
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 eval "$as_ac_var=no"
6813 fi
6814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6815 fi
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6818 if test `eval echo '${'$as_ac_var'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6821 _ACEOF
6822
6823 else
6824 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6825 fi
6826 done
6827
6828
6829
6830 for ac_func in strftime
6831 do
6832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833 echo "$as_me:$LINENO: checking for $ac_func" >&5
6834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 /* System header to define __stub macros and hopefully few prototypes,
6846 which can conflict with char $ac_func (); below.
6847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848 <limits.h> exists even on freestanding compilers. */
6849 #ifdef __STDC__
6850 # include <limits.h>
6851 #else
6852 # include <assert.h>
6853 #endif
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 #ifdef __cplusplus
6856 extern "C"
6857 {
6858 #endif
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char $ac_func ();
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866 choke me
6867 #else
6868 char (*f) () = $ac_func;
6869 #endif
6870 #ifdef __cplusplus
6871 }
6872 #endif
6873
6874 int
6875 main ()
6876 {
6877 return f != $ac_func;
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 eval "$as_ac_var=no"
6900 fi
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 fi
6903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6905 if test `eval echo '${'$as_ac_var'}'` = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6908 _ACEOF
6909
6910 fi
6911 done
6912
6913
6914 for ac_func in ether_ntohost
6915 do
6916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6917 echo "$as_me:$LINENO: checking for $ac_func" >&5
6918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_var+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6933 #ifdef __STDC__
6934 # include <limits.h>
6935 #else
6936 # include <assert.h>
6937 #endif
6938 /* Override any gcc2 internal prototype to avoid an error. */
6939 #ifdef __cplusplus
6940 extern "C"
6941 {
6942 #endif
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6945 char $ac_func ();
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 choke me
6951 #else
6952 char (*f) () = $ac_func;
6953 #endif
6954 #ifdef __cplusplus
6955 }
6956 #endif
6957
6958 int
6959 main ()
6960 {
6961 return f != $ac_func;
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 eval "$as_ac_var=no"
6984 fi
6985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986 fi
6987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6989 if test `eval echo '${'$as_ac_var'}'` = yes; then
6990 cat >>confdefs.h <<_ACEOF
6991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6992 _ACEOF
6993
6994 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6995 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6996 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_buggy_ether_ntohost="not while cross-compiling"
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010
7011 #include <netdb.h>
7012 #include <sys/types.h>
7013 #include <sys/param.h>
7014 #include <sys/socket.h>
7015
7016 int
7017 main(int argc, char **argv)
7018 {
7019 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
7020 char name[MAXHOSTNAMELEN];
7021
7022 ether_ntohost(name, (struct ether_addr *)ea);
7023 exit(0);
7024 }
7025
7026 _ACEOF
7027 rm -f conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_buggy_ether_ntohost=no
7039 else
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ( exit $ac_status )
7045 ac_cv_buggy_ether_ntohost=yes
7046 fi
7047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
7051 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
7052 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define USE_ETHER_NTOHOST 1
7055 _ACEOF
7056
7057 fi
7058
7059 fi
7060 done
7061
7062
7063
7064 for ac_func in setlinebuf alarm
7065 do
7066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7067 echo "$as_me:$LINENO: checking for $ac_func" >&5
7068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7069 if eval "test \"\${$as_ac_var+set}\" = set"; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func (); below.
7081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 <limits.h> exists even on freestanding compilers. */
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088 /* Override any gcc2 internal prototype to avoid an error. */
7089 #ifdef __cplusplus
7090 extern "C"
7091 {
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7095 char $ac_func ();
7096 /* The GNU C library defines this for functions which it implements
7097 to always fail with ENOSYS. Some functions are actually named
7098 something starting with __ and the normal name is an alias. */
7099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 choke me
7101 #else
7102 char (*f) () = $ac_func;
7103 #endif
7104 #ifdef __cplusplus
7105 }
7106 #endif
7107
7108 int
7109 main ()
7110 {
7111 return f != $ac_func;
7112 ;
7113 return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 eval "$as_ac_var=yes"
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 fi
7137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7139 if test `eval echo '${'$as_ac_var'}'` = yes; then
7140 cat >>confdefs.h <<_ACEOF
7141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7142 _ACEOF
7143
7144 fi
7145 done
7146
7147
7148 needsnprintf=no
7149
7150
7151 for ac_func in vsnprintf snprintf
7152 do
7153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7154 echo "$as_me:$LINENO: checking for $ac_func" >&5
7155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7156 if eval "test \"\${$as_ac_var+set}\" = set"; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7161 /* confdefs.h. */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func (); below.
7168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7169 <limits.h> exists even on freestanding compilers. */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175 /* Override any gcc2 internal prototype to avoid an error. */
7176 #ifdef __cplusplus
7177 extern "C"
7178 {
7179 #endif
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char $ac_func ();
7183 /* The GNU C library defines this for functions which it implements
7184 to always fail with ENOSYS. Some functions are actually named
7185 something starting with __ and the normal name is an alias. */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 choke me
7188 #else
7189 char (*f) () = $ac_func;
7190 #endif
7191 #ifdef __cplusplus
7192 }
7193 #endif
7194
7195 int
7196 main ()
7197 {
7198 return f != $ac_func;
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 eval "$as_ac_var=yes"
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 eval "$as_ac_var=no"
7221 fi
7222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7223 fi
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7226 if test `eval echo '${'$as_ac_var'}'` = yes; then
7227 cat >>confdefs.h <<_ACEOF
7228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7229 _ACEOF
7230
7231 else
7232 needsnprintf=yes
7233 fi
7234 done
7235
7236 if test $needsnprintf = yes; then
7237 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7238 fi
7239
7240
7241 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7242 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7243 if test "${ac_cv_type_signal+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7254 #include <signal.h>
7255 #ifdef signal
7256 # undef signal
7257 #endif
7258 #ifdef __cplusplus
7259 extern "C" void (*signal (int, void (*)(int)))(int);
7260 #else
7261 void (*signal ()) ();
7262 #endif
7263
7264 int
7265 main ()
7266 {
7267 int i;
7268 ;
7269 return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_type_signal=void
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_cv_type_signal=int
7290 fi
7291 rm -f conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7294 echo "${ECHO_T}$ac_cv_type_signal" >&6
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define RETSIGTYPE $ac_cv_type_signal
7298 _ACEOF
7299
7300
7301 if test "$ac_cv_type_signal" = void ; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define RETSIGVAL
7304 _ACEOF
7305
7306 else
7307 cat >>confdefs.h <<\_ACEOF
7308 #define RETSIGVAL (0)
7309 _ACEOF
7310
7311 fi
7312 case "$host_os" in
7313
7314 irix*)
7315 cat >>confdefs.h <<\_ACEOF
7316 #define _BSD_SIGNALS 1
7317 _ACEOF
7318
7319 ;;
7320
7321 *)
7322
7323 for ac_func in sigaction
7324 do
7325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7326 echo "$as_me:$LINENO: checking for $ac_func" >&5
7327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_var+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func (); below.
7340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 <limits.h> exists even on freestanding compilers. */
7342 #ifdef __STDC__
7343 # include <limits.h>
7344 #else
7345 # include <assert.h>
7346 #endif
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 #ifdef __cplusplus
7349 extern "C"
7350 {
7351 #endif
7352 /* We use char because int might match the return type of a gcc2
7353 builtin and then its argument prototype would still apply. */
7354 char $ac_func ();
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 choke me
7360 #else
7361 char (*f) () = $ac_func;
7362 #endif
7363 #ifdef __cplusplus
7364 }
7365 #endif
7366
7367 int
7368 main ()
7369 {
7370 return f != $ac_func;
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 eval "$as_ac_var=yes"
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 eval "$as_ac_var=no"
7393 fi
7394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7395 fi
7396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7398 if test `eval echo '${'$as_ac_var'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 fi
7404 done
7405
7406 if test $ac_cv_func_sigaction = no ; then
7407
7408 for ac_func in sigset
7409 do
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_var+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 /* System header to define __stub macros and hopefully few prototypes,
7424 which can conflict with char $ac_func (); below.
7425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426 <limits.h> exists even on freestanding compilers. */
7427 #ifdef __STDC__
7428 # include <limits.h>
7429 #else
7430 # include <assert.h>
7431 #endif
7432 /* Override any gcc2 internal prototype to avoid an error. */
7433 #ifdef __cplusplus
7434 extern "C"
7435 {
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439 char $ac_func ();
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7444 choke me
7445 #else
7446 char (*f) () = $ac_func;
7447 #endif
7448 #ifdef __cplusplus
7449 }
7450 #endif
7451
7452 int
7453 main ()
7454 {
7455 return f != $ac_func;
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -s conftest$ac_exeext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 eval "$as_ac_var=yes"
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 eval "$as_ac_var=no"
7478 fi
7479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7480 fi
7481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7483 if test `eval echo '${'$as_ac_var'}'` = yes; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7486 _ACEOF
7487
7488 fi
7489 done
7490
7491 fi
7492 ;;
7493 esac
7494
7495 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7496 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7497 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 ac_func_search_save_LIBS=$LIBS
7501 ac_cv_search_dnet_htoa=no
7502 cat >conftest.$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 #ifdef __cplusplus
7512 extern "C"
7513 #endif
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char dnet_htoa ();
7517 int
7518 main ()
7519 {
7520 dnet_htoa ();
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527 (eval $ac_link) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_search_dnet_htoa="none required"
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 fi
7543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7544 if test "$ac_cv_search_dnet_htoa" = no; then
7545 for ac_lib in dnet; do
7546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554
7555 /* Override any gcc2 internal prototype to avoid an error. */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char dnet_htoa ();
7562 int
7563 main ()
7564 {
7565 dnet_htoa ();
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_search_dnet_htoa="-l$ac_lib"
7583 break
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 fi
7589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590 done
7591 fi
7592 LIBS=$ac_func_search_save_LIBS
7593 fi
7594 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7595 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7596 if test "$ac_cv_search_dnet_htoa" != no; then
7597 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7598 cat >>confdefs.h <<\_ACEOF
7599 #define HAVE_DNET_HTOA 1
7600 _ACEOF
7601
7602 fi
7603
7604
7605
7606 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7607 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7608 if test "${ac_cv_lib_rpc_main+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611 ac_check_lib_save_LIBS=$LIBS
7612 LIBS="-lrpc $LIBS"
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620
7621
7622 int
7623 main ()
7624 {
7625 main ();
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_lib_rpc_main=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_lib_rpc_main=no
7648 fi
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7653 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7654 if test $ac_cv_lib_rpc_main = yes; then
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_LIBRPC 1
7657 _ACEOF
7658
7659 LIBS="-lrpc $LIBS"
7660
7661 fi
7662
7663 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7664 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7665 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 ac_func_search_save_LIBS=$LIBS
7669 ac_cv_search_getrpcbynumber=no
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char getrpcbynumber ();
7685 int
7686 main ()
7687 {
7688 getrpcbynumber ();
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_search_getrpcbynumber="none required"
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 fi
7711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7712 if test "$ac_cv_search_getrpcbynumber" = no; then
7713 for ac_lib in nsl; do
7714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722
7723 /* Override any gcc2 internal prototype to avoid an error. */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729 char getrpcbynumber ();
7730 int
7731 main ()
7732 {
7733 getrpcbynumber ();
7734 ;
7735 return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_search_getrpcbynumber="-l$ac_lib"
7751 break
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 fi
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 done
7759 fi
7760 LIBS=$ac_func_search_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7763 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7764 if test "$ac_cv_search_getrpcbynumber" != no; then
7765 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7766
7767 fi
7768
7769
7770
7771
7772 # Most operating systems have gethostbyname() in the default searched
7773 # libraries (i.e. libc):
7774 # Some OSes (eg. Solaris) place it in libnsl
7775 # Some strange OSes (SINIX) have it in libsocket:
7776 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7777 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7778 if test "${ac_cv_search_gethostbyname+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 ac_func_search_save_LIBS=$LIBS
7782 ac_cv_search_gethostbyname=no
7783 cat >conftest.$ac_ext <<_ACEOF
7784 #line $LINENO "configure"
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790
7791 /* Override any gcc2 internal prototype to avoid an error. */
7792 #ifdef __cplusplus
7793 extern "C"
7794 #endif
7795 /* We use char because int might match the return type of a gcc2
7796 builtin and then its argument prototype would still apply. */
7797 char gethostbyname ();
7798 int
7799 main ()
7800 {
7801 gethostbyname ();
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext conftest$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808 (eval $ac_link) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 ac_cv_search_gethostbyname="none required"
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 fi
7824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7825 if test "$ac_cv_search_gethostbyname" = no; then
7826 for ac_lib in nsl socket resolv; do
7827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835
7836 /* Override any gcc2 internal prototype to avoid an error. */
7837 #ifdef __cplusplus
7838 extern "C"
7839 #endif
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842 char gethostbyname ();
7843 int
7844 main ()
7845 {
7846 gethostbyname ();
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -s conftest$ac_exeext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_search_gethostbyname="-l$ac_lib"
7864 break
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 fi
7870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7871 done
7872 fi
7873 LIBS=$ac_func_search_save_LIBS
7874 fi
7875 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7876 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7877 if test "$ac_cv_search_gethostbyname" != no; then
7878 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7879
7880 fi
7881
7882 # Unfortunately libsocket sometimes depends on libnsl and
7883 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7884 if test "$ac_cv_search_gethostbyname" = "no"
7885 then
7886 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7887 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7888 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891 ac_check_lib_save_LIBS=$LIBS
7892 LIBS="-lsocket -lnsl $LIBS"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900
7901 /* Override any gcc2 internal prototype to avoid an error. */
7902 #ifdef __cplusplus
7903 extern "C"
7904 #endif
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7907 char gethostbyname ();
7908 int
7909 main ()
7910 {
7911 gethostbyname ();
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_lib_socket_gethostbyname=yes
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_cv_lib_socket_gethostbyname=no
7934 fi
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7937 fi
7938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7940 if test $ac_cv_lib_socket_gethostbyname = yes; then
7941 LIBS="-lsocket -lnsl $LIBS"
7942 fi
7943
7944 fi
7945 echo "$as_me:$LINENO: checking for library containing socket" >&5
7946 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7947 if test "${ac_cv_search_socket+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 ac_func_search_save_LIBS=$LIBS
7951 ac_cv_search_socket=no
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char socket ();
7967 int
7968 main ()
7969 {
7970 socket ();
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_search_socket="none required"
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 fi
7993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7994 if test "$ac_cv_search_socket" = no; then
7995 for ac_lib in socket; do
7996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011 char socket ();
8012 int
8013 main ()
8014 {
8015 socket ();
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_search_socket="-l$ac_lib"
8033 break
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 fi
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 done
8041 fi
8042 LIBS=$ac_func_search_save_LIBS
8043 fi
8044 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8045 echo "${ECHO_T}$ac_cv_search_socket" >&6
8046 if test "$ac_cv_search_socket" != no; then
8047 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8048
8049 else
8050 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8051 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8052 if test "${ac_cv_lib_socket_socket+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 ac_check_lib_save_LIBS=$LIBS
8056 LIBS="-lsocket -lnsl $LIBS"
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064
8065 /* Override any gcc2 internal prototype to avoid an error. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8071 char socket ();
8072 int
8073 main ()
8074 {
8075 socket ();
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_lib_socket_socket=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 ac_cv_lib_socket_socket=no
8098 fi
8099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8101 fi
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8103 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8104 if test $ac_cv_lib_socket_socket = yes; then
8105 LIBS="-lsocket -lnsl $LIBS"
8106 fi
8107
8108 fi
8109
8110 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8111 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8112 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8113 if test "${ac_cv_search_putmsg+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 ac_func_search_save_LIBS=$LIBS
8117 ac_cv_search_putmsg=no
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 #ifdef __cplusplus
8128 extern "C"
8129 #endif
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132 char putmsg ();
8133 int
8134 main ()
8135 {
8136 putmsg ();
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_search_putmsg="none required"
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 fi
8159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8160 if test "$ac_cv_search_putmsg" = no; then
8161 for ac_lib in str; do
8162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170
8171 /* Override any gcc2 internal prototype to avoid an error. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8177 char putmsg ();
8178 int
8179 main ()
8180 {
8181 putmsg ();
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_search_putmsg="-l$ac_lib"
8199 break
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 fi
8205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206 done
8207 fi
8208 LIBS=$ac_func_search_save_LIBS
8209 fi
8210 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8211 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8212 if test "$ac_cv_search_putmsg" != no; then
8213 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8214
8215 fi
8216
8217
8218
8219 LBL_LIBS="$LIBS"
8220 pfopen=/usr/examples/packetfilter/pfopen.c
8221 if test -f $pfopen ; then
8222
8223 for ac_func in pfopen
8224 do
8225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8226 echo "$as_me:$LINENO: checking for $ac_func" >&5
8227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8228 if eval "test \"\${$as_ac_var+set}\" = set"; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 /* System header to define __stub macros and hopefully few prototypes,
8239 which can conflict with char $ac_func (); below.
8240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8241 <limits.h> exists even on freestanding compilers. */
8242 #ifdef __STDC__
8243 # include <limits.h>
8244 #else
8245 # include <assert.h>
8246 #endif
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 #ifdef __cplusplus
8249 extern "C"
8250 {
8251 #endif
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8254 char $ac_func ();
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259 choke me
8260 #else
8261 char (*f) () = $ac_func;
8262 #endif
8263 #ifdef __cplusplus
8264 }
8265 #endif
8266
8267 int
8268 main ()
8269 {
8270 return f != $ac_func;
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8277 (eval $ac_link) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 eval "$as_ac_var=yes"
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 eval "$as_ac_var=no"
8293 fi
8294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8295 fi
8296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 fi
8304 done
8305
8306 if test $ac_cv_func_pfopen = "no" ; then
8307 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8308 echo "${ECHO_T}Using $pfopen" >&6
8309 LIBS="$LIBS $pfopen"
8310 fi
8311 fi
8312 echo "$as_me:$LINENO: checking for local pcap library" >&5
8313 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8314 libpcap=FAIL
8315 lastdir=FAIL
8316 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8317 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8318 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8319 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8320 if test $lastdir = $basedir ; then
8321 continue;
8322 fi
8323 lastdir=$dir
8324 if test -r $dir/libpcap.a ; then
8325 libpcap=$dir/libpcap.a
8326 d=$dir
8327 fi
8328 done
8329 if test $libpcap = FAIL ; then
8330 echo "$as_me:$LINENO: result: not found" >&5
8331 echo "${ECHO_T}not found" >&6
8332 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8333 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8334 if test "${ac_cv_lib_pcap_main+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 ac_check_lib_save_LIBS=$LIBS
8338 LIBS="-lpcap $LIBS"
8339 cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346
8347
8348 int
8349 main ()
8350 {
8351 main ();
8352 ;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_cv_lib_pcap_main=yes
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8372
8373 ac_cv_lib_pcap_main=no
8374 fi
8375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8376 LIBS=$ac_check_lib_save_LIBS
8377 fi
8378 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8379 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8380 if test $ac_cv_lib_pcap_main = yes; then
8381 libpcap="-lpcap"
8382 fi
8383
8384 if test $libpcap = FAIL ; then
8385 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8386 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8387 { (exit 1); exit 1; }; }
8388 fi
8389 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8390 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8391 if test \( ! -r /usr/local/include/pcap.h \) -a \
8392 \( ! -r /usr/include/pcap.h \); then
8393 if test -r /usr/local/include/pcap/pcap.h; then
8394 d="/usr/local/include/pcap"
8395 elif test -r /usr/include/pcap/pcap.h; then
8396 d="/usr/include/pcap"
8397 fi
8398 fi
8399 if test -z "$d" ; then
8400 echo "$as_me:$LINENO: result: not found" >&5
8401 echo "${ECHO_T}not found" >&6
8402 else
8403 V_INCLS="-I$d $V_INCLS"
8404 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8405 echo "${ECHO_T}found -- -I$d added" >&6
8406 fi
8407 else
8408 V_PCAPDEP=$libpcap
8409 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8410 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8411 if test -r $d/pcap.h; then
8412 V_INCLS="-I$d $V_INCLS"
8413 elif test -r $places/pcap.h; then
8414 V_INCLS="-I$places $V_INCLS"
8415 else
8416 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8417 echo "$as_me: error: cannot find pcap.h" >&2;}
8418 { (exit see INSTALL); exit see INSTALL; }; }
8419 fi
8420 echo "$as_me:$LINENO: result: $libpcap" >&5
8421 echo "${ECHO_T}$libpcap" >&6
8422 fi
8423 LIBS="$libpcap $LIBS"
8424 case "$host_os" in
8425
8426 aix*)
8427 pseexe="/lib/pse.exp"
8428 echo "$as_me:$LINENO: checking for $pseexe" >&5
8429 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8430 if test -f $pseexe ; then
8431 echo "$as_me:$LINENO: result: yes" >&5
8432 echo "${ECHO_T}yes" >&6
8433 LIBS="$LIBS -I:$pseexe"
8434 fi
8435 #
8436 # We need "-lodm" and "-lcfg", as libpcap requires them on
8437 # AIX, and we just build a static libpcap.a and thus can't
8438 # arrange that when you link with libpcap you automatically
8439 # link with those libraries.
8440 #
8441 LIBS="$LIBS -lodm -lcfg"
8442 ;;
8443 esac
8444
8445 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8446 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8447 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char pcap_list_datalinks (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466 /* Override any gcc2 internal prototype to avoid an error. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 {
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char pcap_list_datalinks ();
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8478 choke me
8479 #else
8480 char (*f) () = pcap_list_datalinks;
8481 #endif
8482 #ifdef __cplusplus
8483 }
8484 #endif
8485
8486 int
8487 main ()
8488 {
8489 return f != pcap_list_datalinks;
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_func_pcap_list_datalinks=yes
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_func_pcap_list_datalinks=no
8512 fi
8513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 fi
8515 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8516 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8517 if test $ac_cv_func_pcap_list_datalinks = yes; then
8518 cat >>confdefs.h <<\_ACEOF
8519 #define HAVE_PCAP_LIST_DATALINKS 1
8520 _ACEOF
8521
8522 else
8523 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8524 fi
8525
8526 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8527 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8528 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 /* confdefs.h. */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char pcap_set_datalink (); below.
8540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8541 <limits.h> exists even on freestanding compilers. */
8542 #ifdef __STDC__
8543 # include <limits.h>
8544 #else
8545 # include <assert.h>
8546 #endif
8547 /* Override any gcc2 internal prototype to avoid an error. */
8548 #ifdef __cplusplus
8549 extern "C"
8550 {
8551 #endif
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8554 char pcap_set_datalink ();
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8559 choke me
8560 #else
8561 char (*f) () = pcap_set_datalink;
8562 #endif
8563 #ifdef __cplusplus
8564 }
8565 #endif
8566
8567 int
8568 main ()
8569 {
8570 return f != pcap_set_datalink;
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 ac_cv_func_pcap_set_datalink=yes
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ac_cv_func_pcap_set_datalink=no
8593 fi
8594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8595 fi
8596 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8597 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8598 if test $ac_cv_func_pcap_set_datalink = yes; then
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_PCAP_SET_DATALINK 1
8601 _ACEOF
8602
8603 fi
8604
8605 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8606 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8607 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 /* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char pcap_datalink_name_to_val (); below.
8619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620 <limits.h> exists even on freestanding compilers. */
8621 #ifdef __STDC__
8622 # include <limits.h>
8623 #else
8624 # include <assert.h>
8625 #endif
8626 /* Override any gcc2 internal prototype to avoid an error. */
8627 #ifdef __cplusplus
8628 extern "C"
8629 {
8630 #endif
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char pcap_datalink_name_to_val ();
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8638 choke me
8639 #else
8640 char (*f) () = pcap_datalink_name_to_val;
8641 #endif
8642 #ifdef __cplusplus
8643 }
8644 #endif
8645
8646 int
8647 main ()
8648 {
8649 return f != pcap_datalink_name_to_val;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_func_pcap_datalink_name_to_val=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_func_pcap_datalink_name_to_val=no
8672 fi
8673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8676 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8677 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8678
8679 cat >>confdefs.h <<\_ACEOF
8680 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8681 _ACEOF
8682
8683 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8684 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8685 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 cat >conftest.$ac_ext <<_ACEOF
8689 #line $LINENO "configure"
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char pcap_datalink_val_to_description (); below.
8697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698 <limits.h> exists even on freestanding compilers. */
8699 #ifdef __STDC__
8700 # include <limits.h>
8701 #else
8702 # include <assert.h>
8703 #endif
8704 /* Override any gcc2 internal prototype to avoid an error. */
8705 #ifdef __cplusplus
8706 extern "C"
8707 {
8708 #endif
8709 /* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8711 char pcap_datalink_val_to_description ();
8712 /* The GNU C library defines this for functions which it implements
8713 to always fail with ENOSYS. Some functions are actually named
8714 something starting with __ and the normal name is an alias. */
8715 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8716 choke me
8717 #else
8718 char (*f) () = pcap_datalink_val_to_description;
8719 #endif
8720 #ifdef __cplusplus
8721 }
8722 #endif
8723
8724 int
8725 main ()
8726 {
8727 return f != pcap_datalink_val_to_description;
8728 ;
8729 return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_func_pcap_datalink_val_to_description=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 ac_cv_func_pcap_datalink_val_to_description=no
8750 fi
8751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8752 fi
8753 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8754 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8755 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8756 cat >>confdefs.h <<\_ACEOF
8757 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8758 _ACEOF
8759
8760 else
8761 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8762 fi
8763
8764
8765 else
8766 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8767 fi
8768
8769
8770
8771 for ac_func in pcap_breakloop
8772 do
8773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8774 echo "$as_me:$LINENO: checking for $ac_func" >&5
8775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_var+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8790 #ifdef __STDC__
8791 # include <limits.h>
8792 #else
8793 # include <assert.h>
8794 #endif
8795 /* Override any gcc2 internal prototype to avoid an error. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 {
8799 #endif
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8802 char $ac_func ();
8803 /* The GNU C library defines this for functions which it implements
8804 to always fail with ENOSYS. Some functions are actually named
8805 something starting with __ and the normal name is an alias. */
8806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8807 choke me
8808 #else
8809 char (*f) () = $ac_func;
8810 #endif
8811 #ifdef __cplusplus
8812 }
8813 #endif
8814
8815 int
8816 main ()
8817 {
8818 return f != $ac_func;
8819 ;
8820 return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 eval "$as_ac_var=yes"
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 eval "$as_ac_var=no"
8841 fi
8842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8846 if test `eval echo '${'$as_ac_var'}'` = yes; then
8847 cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8849 _ACEOF
8850
8851 fi
8852 done
8853
8854
8855
8856 #
8857 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8858 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8859 #
8860 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8861 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8862 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8863 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8864 # it does not ship with a libc symbol "inet_ntop()", it ships with
8865 # "_inet_ntop()", and has a #define macro in one of the system headers
8866 # to rename it.
8867 #
8868 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8869 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8870 cat >conftest.$ac_ext <<_ACEOF
8871 #line $LINENO "configure"
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 #include <sys/types.h>
8878 #include <sys/socket.h>
8879 #include <netinet/in.h>
8880 #include <arpa/inet.h>
8881 int
8882 main ()
8883 {
8884 char src[4], dst[128];
8885 inet_ntop(AF_INET, src, dst, sizeof(dst));
8886 ;
8887 return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 echo "$as_me:$LINENO: result: yes" >&5
8903 echo "${ECHO_T}yes" >&6
8904 else
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 echo "$as_me:$LINENO: result: no" >&5
8909 echo "${ECHO_T}no" >&6
8910 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8911 fi
8912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913 echo "$as_me:$LINENO: checking for inet_pton" >&5
8914 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 #include <sys/types.h>
8923 #include <sys/socket.h>
8924 #include <netinet/in.h>
8925 #include <arpa/inet.h>
8926 int
8927 main ()
8928 {
8929 char src[128], dst[4];
8930 inet_pton(AF_INET, src, dst);
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948 echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6
8955 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8956 fi
8957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8958 echo "$as_me:$LINENO: checking for inet_aton" >&5
8959 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8960 cat >conftest.$ac_ext <<_ACEOF
8961 #line $LINENO "configure"
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <netinet/in.h>
8969 #include <arpa/inet.h>
8970 int
8971 main ()
8972 {
8973 char src[128];
8974 struct in_addr dst;
8975 inet_aton(src, &dst);
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6
9000 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9001 fi
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003
9004
9005 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9006 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9007 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line $LINENO "configure"
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017
9018 # include <sys/types.h>
9019 # include <sys/socket.h>
9020 int
9021 main ()
9022 {
9023 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030 (eval $ac_compile) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_sockaddr_has_sa_len=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_cv_sockaddr_has_sa_len=no
9046 fi
9047 rm -f conftest.$ac_objext conftest.$ac_ext
9048 fi
9049
9050 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9051 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9052 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_SOCKADDR_SA_LEN 1
9055 _ACEOF
9056
9057 fi
9058
9059 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9060 missing_includes=yes
9061 fi
9062
9063
9064
9065
9066 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9067 do
9068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9069 echo "$as_me:$LINENO: checking for $ac_func" >&5
9070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_var+set}\" = set"; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 /* System header to define __stub macros and hopefully few prototypes,
9082 which can conflict with char $ac_func (); below.
9083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9084 <limits.h> exists even on freestanding compilers. */
9085 #ifdef __STDC__
9086 # include <limits.h>
9087 #else
9088 # include <assert.h>
9089 #endif
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 #ifdef __cplusplus
9092 extern "C"
9093 {
9094 #endif
9095 /* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097 char $ac_func ();
9098 /* The GNU C library defines this for functions which it implements
9099 to always fail with ENOSYS. Some functions are actually named
9100 something starting with __ and the normal name is an alias. */
9101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9102 choke me
9103 #else
9104 char (*f) () = $ac_func;
9105 #endif
9106 #ifdef __cplusplus
9107 }
9108 #endif
9109
9110 int
9111 main ()
9112 {
9113 return f != $ac_func;
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 eval "$as_ac_var=yes"
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 eval "$as_ac_var=no"
9136 fi
9137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9138 fi
9139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9141 if test `eval echo '${'$as_ac_var'}'` = yes; then
9142 cat >>confdefs.h <<_ACEOF
9143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9144 _ACEOF
9145
9146 fi
9147 done
9148
9149 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9150 savedcflags="$CFLAGS"
9151 CFLAGS="$CFLAGS $V_INCLS"
9152 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9153 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9154 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 #include <pcap.h>
9165
9166 int
9167 main ()
9168 {
9169 if ((pcap_if_t *) 0)
9170 return 0;
9171 if (sizeof (pcap_if_t))
9172 return 0;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -s conftest.$ac_objext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_type_pcap_if_t=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_type_pcap_if_t=no
9195 fi
9196 rm -f conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9199 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9200 if test $ac_cv_type_pcap_if_t = yes; then
9201
9202 cat >>confdefs.h <<_ACEOF
9203 #define HAVE_PCAP_IF_T 1
9204 _ACEOF
9205
9206
9207 fi
9208
9209 CFLAGS="$savedcflags"
9210 fi
9211
9212 if test $ac_cv_func_pcap_lib_version = "no" ; then
9213 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9214 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222
9223 int
9224 main ()
9225 {
9226
9227 extern char pcap_version[];
9228
9229 return (int)pcap_version;
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_lbl_cv_pcap_version_defined=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_lbl_cv_pcap_version_defined=no
9253 fi
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9256 echo "$as_me:$LINENO: result: yes" >&5
9257 echo "${ECHO_T}yes" >&6
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_PCAP_VERSION 1
9260 _ACEOF
9261
9262 else
9263 echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6
9265 fi
9266 fi
9267 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9268 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 /* confdefs.h. */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276
9277 int
9278 main ()
9279 {
9280
9281 extern int pcap_debug;
9282
9283 return pcap_debug;
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_lbl_cv_pcap_debug_defined=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 ac_lbl_cv_pcap_debug_defined=no
9307 fi
9308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9309 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9310 echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6
9312 cat >>confdefs.h <<\_ACEOF
9313 #define HAVE_PCAP_DEBUG 1
9314 _ACEOF
9315
9316 else
9317 echo "$as_me:$LINENO: result: no" >&5
9318 echo "${ECHO_T}no" >&6
9319 #
9320 # OK, what about "yydebug"?
9321 #
9322 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9323 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331
9332 int
9333 main ()
9334 {
9335
9336 extern int yydebug;
9337
9338 return yydebug;
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_lbl_cv_yydebug_defined=yes
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_lbl_cv_yydebug_defined=no
9362 fi
9363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9364 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9365 echo "$as_me:$LINENO: result: yes" >&5
9366 echo "${ECHO_T}yes" >&6
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_YYDEBUG 1
9369 _ACEOF
9370
9371 else
9372 echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6
9374 fi
9375 fi
9376
9377 for ac_func in bpf_dump
9378 do
9379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9380 echo "$as_me:$LINENO: checking for $ac_func" >&5
9381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_var+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char $ac_func (); below.
9394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9395 <limits.h> exists even on freestanding compilers. */
9396 #ifdef __STDC__
9397 # include <limits.h>
9398 #else
9399 # include <assert.h>
9400 #endif
9401 /* Override any gcc2 internal prototype to avoid an error. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 {
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408 char $ac_func ();
9409 /* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9413 choke me
9414 #else
9415 char (*f) () = $ac_func;
9416 #endif
9417 #ifdef __cplusplus
9418 }
9419 #endif
9420
9421 int
9422 main ()
9423 {
9424 return f != $ac_func;
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 eval "$as_ac_var=yes"
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 eval "$as_ac_var=no"
9447 fi
9448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9449 fi
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9452 if test `eval echo '${'$as_ac_var'}'` = yes; then
9453 cat >>confdefs.h <<_ACEOF
9454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9455 _ACEOF
9456
9457 else
9458 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9459 fi
9460 done
9461
9462
9463 V_GROUP=0
9464 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9465 V_GROUP=wheel
9466 fi
9467 case "$host_os" in
9468
9469 aix*)
9470 cat >>confdefs.h <<\_ACEOF
9471 #define _SUN 1
9472 _ACEOF
9473
9474 ;;
9475
9476 irix*)
9477 V_GROUP=sys
9478 ;;
9479
9480 osf*)
9481 V_GROUP=system
9482 ;;
9483
9484 solaris*)
9485 V_GROUP=sys
9486 ;;
9487 esac
9488
9489 if test -f /dev/bpf0 ; then
9490 V_GROUP=bpf
9491 fi
9492
9493 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9494 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9495 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line $LINENO "configure"
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505
9506 # include "confdefs.h"
9507 # include <sys/types.h>
9508 # if STDC_HEADERS
9509 # include <stdlib.h>
9510 # include <stddef.h>
9511 # endif
9512 int
9513 main ()
9514 {
9515 int8_t i
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522 (eval $ac_compile) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_lbl_have_int8_t=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_cv_lbl_have_int8_t=no
9538 fi
9539 rm -f conftest.$ac_objext conftest.$ac_ext
9540 fi
9541
9542 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9543 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9544 if test $ac_cv_lbl_have_int8_t = no ; then
9545 cat >>confdefs.h <<\_ACEOF
9546 #define int8_t signed char
9547 _ACEOF
9548
9549 fi
9550 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9551 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9552 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562
9563 # include "confdefs.h"
9564 # include <sys/types.h>
9565 # if STDC_HEADERS
9566 # include <stdlib.h>
9567 # include <stddef.h>
9568 # endif
9569 int
9570 main ()
9571 {
9572 u_int8_t i
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -s conftest.$ac_objext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 (eval $ac_try) 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 ac_cv_lbl_have_u_int8_t=yes
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 ac_cv_lbl_have_u_int8_t=no
9595 fi
9596 rm -f conftest.$ac_objext conftest.$ac_ext
9597 fi
9598
9599 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9600 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9601 if test $ac_cv_lbl_have_u_int8_t = no ; then
9602 cat >>confdefs.h <<\_ACEOF
9603 #define u_int8_t u_char
9604 _ACEOF
9605
9606 fi
9607 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9608 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9609 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619
9620 # include "confdefs.h"
9621 # include <sys/types.h>
9622 # if STDC_HEADERS
9623 # include <stdlib.h>
9624 # include <stddef.h>
9625 # endif
9626 int
9627 main ()
9628 {
9629 int16_t i
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_lbl_have_int16_t=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_cv_lbl_have_int16_t=no
9652 fi
9653 rm -f conftest.$ac_objext conftest.$ac_ext
9654 fi
9655
9656 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9657 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9658 if test $ac_cv_lbl_have_int16_t = no ; then
9659 cat >>confdefs.h <<\_ACEOF
9660 #define int16_t short
9661 _ACEOF
9662
9663 fi
9664 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9665 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9666 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676
9677 # include "confdefs.h"
9678 # include <sys/types.h>
9679 # if STDC_HEADERS
9680 # include <stdlib.h>
9681 # include <stddef.h>
9682 # endif
9683 int
9684 main ()
9685 {
9686 u_int16_t i
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -s conftest.$ac_objext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_lbl_have_u_int16_t=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_cv_lbl_have_u_int16_t=no
9709 fi
9710 rm -f conftest.$ac_objext conftest.$ac_ext
9711 fi
9712
9713 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9714 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9715 if test $ac_cv_lbl_have_u_int16_t = no ; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define u_int16_t u_short
9718 _ACEOF
9719
9720 fi
9721 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9722 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9723 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 /* confdefs.h. */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733
9734 # include "confdefs.h"
9735 # include <sys/types.h>
9736 # if STDC_HEADERS
9737 # include <stdlib.h>
9738 # include <stddef.h>
9739 # endif
9740 int
9741 main ()
9742 {
9743 int32_t i
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9750 (eval $ac_compile) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -s conftest.$ac_objext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_lbl_have_int32_t=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_lbl_have_int32_t=no
9766 fi
9767 rm -f conftest.$ac_objext conftest.$ac_ext
9768 fi
9769
9770 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9771 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9772 if test $ac_cv_lbl_have_int32_t = no ; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define int32_t int
9775 _ACEOF
9776
9777 fi
9778 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9779 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9780 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790
9791 # include "confdefs.h"
9792 # include <sys/types.h>
9793 # if STDC_HEADERS
9794 # include <stdlib.h>
9795 # include <stddef.h>
9796 # endif
9797 int
9798 main ()
9799 {
9800 u_int32_t i
9801 ;
9802 return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -s conftest.$ac_objext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_cv_lbl_have_u_int32_t=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_cv_lbl_have_u_int32_t=no
9823 fi
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9825 fi
9826
9827 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9828 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9829 if test $ac_cv_lbl_have_u_int32_t = no ; then
9830 cat >>confdefs.h <<\_ACEOF
9831 #define u_int32_t u_int
9832 _ACEOF
9833
9834 fi
9835 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
9836 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
9837 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847
9848 # include "confdefs.h"
9849 # include <sys/types.h>
9850 # if STDC_HEADERS
9851 # include <stdlib.h>
9852 # include <stddef.h>
9853 # endif
9854 int
9855 main ()
9856 {
9857 int64_t i
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -s conftest.$ac_objext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_cv_lbl_have_int64_t=yes
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ac_cv_lbl_have_int64_t=no
9880 fi
9881 rm -f conftest.$ac_objext conftest.$ac_ext
9882 fi
9883
9884 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
9885 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
9886 if test $ac_cv_lbl_have_int64_t = no ; then
9887 cat >>confdefs.h <<\_ACEOF
9888 #define int64_t long long
9889 _ACEOF
9890
9891 fi
9892 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
9893 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
9894 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904
9905 # include "confdefs.h"
9906 # include <sys/types.h>
9907 # if STDC_HEADERS
9908 # include <stdlib.h>
9909 # include <stddef.h>
9910 # endif
9911 int
9912 main ()
9913 {
9914 u_int64_t i
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -s conftest.$ac_objext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_lbl_have_u_int64_t=yes
9932 else
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 ac_cv_lbl_have_u_int64_t=no
9937 fi
9938 rm -f conftest.$ac_objext conftest.$ac_ext
9939 fi
9940
9941 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
9942 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
9943 if test $ac_cv_lbl_have_u_int64_t = no ; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define u_int64_t unsigned long long
9946 _ACEOF
9947
9948 fi
9949
9950 #
9951 # We can't just check for <inttypes.h> - some systems have one that
9952 # doesn't define all the PRI[doxu]64 macros.
9953 #
9954
9955 for ac_header in inttypes.h
9956 do
9957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 fi
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9966 else
9967 # Is the header compilable?
9968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 $ac_includes_default
9978 #include <$ac_header>
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_header_compiler=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_header_compiler=no
9998 fi
9999 rm -f conftest.$ac_objext conftest.$ac_ext
10000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10001 echo "${ECHO_T}$ac_header_compiler" >&6
10002
10003 # Is the header present?
10004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10007 #line $LINENO "configure"
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <$ac_header>
10014 _ACEOF
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null; then
10023 if test -s conftest.err; then
10024 ac_cpp_err=$ac_c_preproc_warn_flag
10025 else
10026 ac_cpp_err=
10027 fi
10028 else
10029 ac_cpp_err=yes
10030 fi
10031 if test -z "$ac_cpp_err"; then
10032 ac_header_preproc=yes
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_header_preproc=no
10038 fi
10039 rm -f conftest.err conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6
10042
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc in
10045 yes:no )
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050 (
10051 cat <<\_ASBOX
10052 ## ------------------------------------ ##
10053 ## Report this to bug-autoconf@gnu.org. ##
10054 ## ------------------------------------ ##
10055 _ASBOX
10056 ) |
10057 sed "s/^/$as_me: WARNING: /" >&2
10058 ;;
10059 no:yes )
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066 (
10067 cat <<\_ASBOX
10068 ## ------------------------------------ ##
10069 ## Report this to bug-autoconf@gnu.org. ##
10070 ## ------------------------------------ ##
10071 _ASBOX
10072 ) |
10073 sed "s/^/$as_me: WARNING: /" >&2
10074 ;;
10075 esac
10076 echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 eval "$as_ac_Header=$ac_header_preproc"
10082 fi
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10085
10086 fi
10087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10088 cat >>confdefs.h <<_ACEOF
10089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10090 _ACEOF
10091
10092 #
10093 # OK, we have inttypes.h, but does it define those macros?
10094 #
10095 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10096 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098
10099 #line $LINENO "configure"
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105
10106 #include <inttypes.h>
10107 #include <stdio.h>
10108 #include <sys/types.h>
10109
10110 main()
10111 {
10112 printf("%" PRId64 "\n", (u_int64_t)1);
10113 printf("%" PRIo64 "\n", (u_int64_t)1);
10114 printf("%" PRIx64 "\n", (u_int64_t)1);
10115 printf("%" PRIu64 "\n", (u_int64_t)1);
10116 }
10117
10118
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132
10133 echo "$as_me:$LINENO: result: yes" >&5
10134 echo "${ECHO_T}yes" >&6
10135 ac_lbl_inttypes_h_defines_formats=yes
10136
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141
10142 echo "$as_me:$LINENO: result: no" >&5
10143 echo "${ECHO_T}no" >&6
10144 ac_lbl_inttypes_h_defines_formats=no
10145
10146 fi
10147 rm -f conftest.$ac_objext conftest.$ac_ext
10148
10149 else
10150
10151 #
10152 # We don't have inttypes.h, so it obviously can't define those
10153 # macros.
10154 #
10155 ac_lbl_inttypes_h_defines_formats=no
10156
10157 fi
10158
10159 done
10160
10161 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define INTTYPES_H_DEFINES_FORMATS 1
10164 _ACEOF
10165
10166 else
10167
10168 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10169 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10170 if test "$cross_compiling" = yes; then
10171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10172 See \`config.log' for more details." >&5
10173 echo "$as_me: error: cannot run test program while cross compiling
10174 See \`config.log' for more details." >&2;}
10175 { (exit 1); exit 1; }; }
10176 else
10177 cat >conftest.$ac_ext <<_ACEOF
10178
10179 #line $LINENO "configure"
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185
10186 # ifdef HAVE_INTTYPES_H
10187 #include <inttypes.h>
10188 # endif
10189 #include <stdio.h>
10190 #include <sys/types.h>
10191
10192 main()
10193 {
10194 u_int64_t t = 1;
10195 char strbuf[16+1];
10196 sprintf(strbuf, "%016llx", t << 32);
10197 if (strcmp(strbuf, "0000000100000000") == 0)
10198 exit(0);
10199 else
10200 exit(1);
10201 }
10202
10203
10204 _ACEOF
10205 rm -f conftest$ac_exeext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207 (eval $ac_link) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216
10217 cat >>confdefs.h <<\_ACEOF
10218 #define PRId64 "lld"
10219 _ACEOF
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define PRIo64 "llo"
10223 _ACEOF
10224
10225 cat >>confdefs.h <<\_ACEOF
10226 #define PRIx64 "llx"
10227 _ACEOF
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define PRIu64 "llu"
10231 _ACEOF
10232
10233 echo "$as_me:$LINENO: result: yes" >&5
10234 echo "${ECHO_T}yes" >&6
10235
10236 else
10237 echo "$as_me: program exited with status $ac_status" >&5
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 ( exit $ac_status )
10242
10243 echo "$as_me:$LINENO: result: no" >&5
10244 echo "${ECHO_T}no" >&6
10245
10246
10247 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10248 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10249 if test "$cross_compiling" = yes; then
10250 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10251 See \`config.log' for more details." >&5
10252 echo "$as_me: error: cannot run test program while cross compiling
10253 See \`config.log' for more details." >&2;}
10254 { (exit 1); exit 1; }; }
10255 else
10256 cat >conftest.$ac_ext <<_ACEOF
10257
10258 #line $LINENO "configure"
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264
10265 # ifdef HAVE_INTTYPES_H
10266 #include <inttypes.h>
10267 # endif
10268 #include <stdio.h>
10269 #include <sys/types.h>
10270
10271 main()
10272 {
10273 u_int64_t t = 1;
10274 char strbuf[16+1];
10275 sprintf(strbuf, "%016Lx", t << 32);
10276 if (strcmp(strbuf, "0000000100000000") == 0)
10277 exit(0);
10278 else
10279 exit(1);
10280 }
10281
10282
10283 _ACEOF
10284 rm -f conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295
10296 cat >>confdefs.h <<\_ACEOF
10297 #define PRId64 "Ld"
10298 _ACEOF
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define PRIo64 "Lo"
10302 _ACEOF
10303
10304 cat >>confdefs.h <<\_ACEOF
10305 #define PRIx64 "Lx"
10306 _ACEOF
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define PRIu64 "Lu"
10310 _ACEOF
10311
10312 echo "$as_me:$LINENO: result: yes" >&5
10313 echo "${ECHO_T}yes" >&6
10314
10315 else
10316 echo "$as_me: program exited with status $ac_status" >&5
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ( exit $ac_status )
10321
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10324
10325
10326 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10327 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10328 if test "$cross_compiling" = yes; then
10329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10330 See \`config.log' for more details." >&5
10331 echo "$as_me: error: cannot run test program while cross compiling
10332 See \`config.log' for more details." >&2;}
10333 { (exit 1); exit 1; }; }
10334 else
10335 cat >conftest.$ac_ext <<_ACEOF
10336
10337 #line $LINENO "configure"
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343
10344 # ifdef HAVE_INTTYPES_H
10345 #include <inttypes.h>
10346 # endif
10347 #include <stdio.h>
10348 #include <sys/types.h>
10349
10350 main()
10351 {
10352 u_int64_t t = 1;
10353 char strbuf[16+1];
10354 sprintf(strbuf, "%016qx", t << 32);
10355 if (strcmp(strbuf, "0000000100000000") == 0)
10356 exit(0);
10357 else
10358 exit(1);
10359 }
10360
10361
10362 _ACEOF
10363 rm -f conftest$ac_exeext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374
10375 cat >>confdefs.h <<\_ACEOF
10376 #define PRId64 "qd"
10377 _ACEOF
10378
10379 cat >>confdefs.h <<\_ACEOF
10380 #define PRIo64 "qo"
10381 _ACEOF
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define PRIx64 "qx"
10385 _ACEOF
10386
10387 cat >>confdefs.h <<\_ACEOF
10388 #define PRIu64 "qu"
10389 _ACEOF
10390
10391 echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6
10393
10394 else
10395 echo "$as_me: program exited with status $ac_status" >&5
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ( exit $ac_status )
10400
10401 echo "$as_me:$LINENO: result: no" >&5
10402 echo "${ECHO_T}no" >&6
10403
10404 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10405 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10406 { (exit 1); exit 1; }; }
10407
10408
10409 fi
10410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10411 fi
10412
10413
10414
10415 fi
10416 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10417 fi
10418
10419
10420
10421 fi
10422 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10423 fi
10424
10425 fi
10426
10427 rm -f os-proto.h
10428 if test "${LBL_CFLAGS+set}" = set; then
10429 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10430 fi
10431 if test -f .devel ; then
10432 if test "$GCC" = yes ; then
10433 if test "${LBL_CFLAGS+set}" != set; then
10434 if test "$ac_cv_prog_cc_g" = yes ; then
10435 V_CCOPT="-g $V_CCOPT"
10436 fi
10437 V_CCOPT="$V_CCOPT -Wall"
10438 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10439 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10440 fi
10441 fi
10442 else
10443 case "$host_os" in
10444
10445 irix6*)
10446 V_CCOPT="$V_CCOPT -n32"
10447 ;;
10448
10449 *)
10450 ;;
10451 esac
10452 fi
10453 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10454 name="lbl/os-$os.h"
10455 if test -f $name ; then
10456 ln -s $name os-proto.h
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_OS_PROTO_H 1
10459 _ACEOF
10460
10461 else
10462 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10463 echo "$as_me: WARNING: can't find $name" >&2;}
10464 fi
10465 fi
10466
10467 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10468 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10469 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 #line $LINENO "configure"
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479
10480 # include <sys/types.h>
10481 # include <sys/socket.h>
10482 int
10483 main ()
10484 {
10485 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -s conftest.$ac_objext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_lbl_sockaddr_has_sa_len=yes
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 ac_cv_lbl_sockaddr_has_sa_len=no
10508 fi
10509 rm -f conftest.$ac_objext conftest.$ac_ext
10510 fi
10511
10512 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10513 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10514 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10515 cat >>confdefs.h <<\_ACEOF
10516 #define HAVE_SOCKADDR_SA_LEN 1
10517 _ACEOF
10518
10519 fi
10520
10521 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10522 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10523 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 case "$host_cpu" in
10527
10528 #
10529 # These are CPU types where:
10530 #
10531 # the CPU faults on an unaligned access, but at least some
10532 # OSes that support that CPU catch the fault and simulate
10533 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10534 # the simulation is slow, so we don't want to use it;
10535 #
10536 # the CPU, I infer (from the old
10537 #
10538 # XXX: should also check that they don't do weird things (like on arm)
10539 #
10540 # comment) doesn't fault on unaligned accesses, but doesn't
10541 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10542 #
10543 # for whatever reason, the test program doesn't work
10544 # (this has been claimed to be the case for several of those
10545 # CPUs - I don't know what the problem is; the problem
10546 # was reported as "the test program dumps core" for SuperH,
10547 # but that's what the test program is *supposed* to do -
10548 # it dumps core before it writes anything, so the test
10549 # for an empty output file should find an empty output
10550 # file and conclude that unaligned accesses don't work).
10551 #
10552 # This run-time test won't work if you're cross-compiling, so
10553 # in order to support cross-compiling for a particular CPU,
10554 # we have to wire in the list of CPU types anyway, as far as
10555 # I know, so perhaps we should just have a set of CPUs on
10556 # which we know it doesn't work, a set of CPUs on which we
10557 # know it does work, and have the script just fail on other
10558 # cpu types and update it when such a failure occurs.
10559 #
10560 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
10561 ac_cv_lbl_unaligned_fail=yes
10562 ;;
10563
10564 *)
10565 cat >conftest.c <<EOF
10566 # include <sys/types.h>
10567 # include <sys/wait.h>
10568 # include <stdio.h>
10569 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10570 main() {
10571 unsigned int i;
10572 pid_t pid;
10573 int status;
10574 /* avoid "core dumped" message */
10575 pid = fork();
10576 if (pid < 0)
10577 exit(2);
10578 if (pid > 0) {
10579 /* parent */
10580 pid = waitpid(pid, &status, 0);
10581 if (pid < 0)
10582 exit(3);
10583 exit(!WIFEXITED(status));
10584 }
10585 /* child */
10586 i = *(unsigned int *)&a[1];
10587 printf("%d\n", i);
10588 exit(0);
10589 }
10590 EOF
10591 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10592 conftest.c $LIBS >/dev/null 2>&1
10593 if test ! -x conftest ; then
10594 ac_cv_lbl_unaligned_fail=yes
10595 else
10596 ./conftest >conftest.out
10597 if test ! -s conftest.out ; then
10598 ac_cv_lbl_unaligned_fail=yes
10599 else
10600 ac_cv_lbl_unaligned_fail=no
10601 fi
10602 fi
10603 rm -f conftest* core core.conftest
10604 ;;
10605 esac
10606 fi
10607
10608 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10609 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
10610 if test $ac_cv_lbl_unaligned_fail = yes ; then
10611 cat >>confdefs.h <<\_ACEOF
10612 #define LBL_ALIGN 1
10613 _ACEOF
10614
10615 fi
10616
10617
10618 echo "$as_me:$LINENO: checking for h_errno" >&5
10619 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
10620 if test "${ac_cv_var_h_errno+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630
10631 # include <sys/types.h>
10632 # include <netdb.h>
10633 int
10634 main ()
10635 {
10636 int foo = h_errno;
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_var_h_errno=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 ac_cv_var_h_errno=no
10659 fi
10660 rm -f conftest.$ac_objext conftest.$ac_ext
10661 fi
10662
10663 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
10664 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
10665 if test "$ac_cv_var_h_errno" = "yes"; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_H_ERRNO 1
10668 _ACEOF
10669
10670 fi
10671
10672
10673
10674 # Check whether --with-crypto or --without-crypto was given.
10675 if test "${with_crypto+set}" = set; then
10676 withval="$with_crypto"
10677
10678 else
10679
10680 echo "$as_me:$LINENO: checking for SSLeay" >&5
10681 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
10682 ac_cv_ssleay_path=no
10683 incdir=no
10684
10685 Xprefix=`eval echo $prefix`
10686
10687 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
10688 #
10689 # XXX - is there a better way to check if a given library is
10690 # in a given directory than checking each of the possible
10691 # shared library suffixes?
10692 #
10693 # Are there any other suffixes we need to look for? Do we have to
10694 # worry about ".so.{version}"?
10695 #
10696 # Or should we just look for "libcrypto.*"?
10697 #
10698 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
10699 -f $dir/lib/libcrypto.so -o \
10700 -f $dir/lib/libcrypto.sl -o \
10701 -f $dir/lib/libcrypto.dylib \); then
10702 ac_cv_ssleay_path=$dir
10703 fi
10704 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
10705 incdir="-I$dir/include"
10706 fi
10707 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
10708 break;
10709 else
10710 ac_cv_ssleay_path=no
10711 incdir=no
10712 fi
10713 done
10714 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
10715 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
10716 if test "$ac_cv_ssleay_path" != no; then
10717 V_INCLS="$V_INCLS $incdir"
10718 LDFLAGS="-L$dir/lib $LDFLAGS"
10719 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
10720 LIBS="$LIBS -lRSAglue"
10721 fi
10722 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
10723 LIBS="$LIBS -lrsaref"
10724 fi
10725
10726 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
10727 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10728 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lcrypto $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740
10741 /* Override any gcc2 internal prototype to avoid an error. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 /* We use char because int might match the return type of a gcc2
10746 builtin and then its argument prototype would still apply. */
10747 char DES_cbc_encrypt ();
10748 int
10749 main ()
10750 {
10751 DES_cbc_encrypt ();
10752 ;
10753 return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_lib_crypto_DES_cbc_encrypt=yes
10769 else
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 ac_cv_lib_crypto_DES_cbc_encrypt=no
10774 fi
10775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10777 fi
10778 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
10779 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
10780 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_LIBCRYPTO 1
10783 _ACEOF
10784
10785 LIBS="-lcrypto $LIBS"
10786
10787 fi
10788
10789
10790 CPPFLAGS="$CPPFLAGS $V_INCLS"
10791
10792 for ac_header in openssl/evp.h
10793 do
10794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 fi
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803 else
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <$ac_header>
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_header_compiler=yes
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 ac_header_compiler=no
10835 fi
10836 rm -f conftest.$ac_objext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838 echo "${ECHO_T}$ac_header_compiler" >&6
10839
10840 # Is the header present?
10841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <$ac_header>
10851 _ACEOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null; then
10860 if test -s conftest.err; then
10861 ac_cpp_err=$ac_c_preproc_warn_flag
10862 else
10863 ac_cpp_err=
10864 fi
10865 else
10866 ac_cpp_err=yes
10867 fi
10868 if test -z "$ac_cpp_err"; then
10869 ac_header_preproc=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 ac_header_preproc=no
10875 fi
10876 rm -f conftest.err conftest.$ac_ext
10877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10878 echo "${ECHO_T}$ac_header_preproc" >&6
10879
10880 # So? What about this header?
10881 case $ac_header_compiler:$ac_header_preproc in
10882 yes:no )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10887 (
10888 cat <<\_ASBOX
10889 ## ------------------------------------ ##
10890 ## Report this to bug-autoconf@gnu.org. ##
10891 ## ------------------------------------ ##
10892 _ASBOX
10893 ) |
10894 sed "s/^/$as_me: WARNING: /" >&2
10895 ;;
10896 no:yes )
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10903 (
10904 cat <<\_ASBOX
10905 ## ------------------------------------ ##
10906 ## Report this to bug-autoconf@gnu.org. ##
10907 ## ------------------------------------ ##
10908 _ASBOX
10909 ) |
10910 sed "s/^/$as_me: WARNING: /" >&2
10911 ;;
10912 esac
10913 echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 eval "$as_ac_Header=$ac_header_preproc"
10919 fi
10920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10922
10923 fi
10924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927 _ACEOF
10928
10929 fi
10930
10931 done
10932
10933 fi
10934
10935 fi;
10936
10937 if test "$missing_includes" = "yes"; then
10938 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
10939 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
10940 fi
10941
10942
10943
10944
10945
10946
10947
10948
10949 # Find a good install program. We prefer a C program (faster),
10950 # so one script is as good as another. But avoid the broken or
10951 # incompatible versions:
10952 # SysV /etc/install, /usr/sbin/install
10953 # SunOS /usr/etc/install
10954 # IRIX /sbin/install
10955 # AIX /bin/install
10956 # AmigaOS /C/install, which installs bootblocks on floppy discs
10957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10960 # ./install, which can be erroneously created by make from ./install.sh.
10961 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10963 if test -z "$INSTALL"; then
10964 if test "${ac_cv_path_install+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 # Account for people who put trailing slashes in PATH elements.
10973 case $as_dir/ in
10974 ./ | .// | /cC/* | \
10975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10976 /usr/ucb/* ) ;;
10977 *)
10978 # OSF1 and SCO ODT 3.0 have their own names for install.
10979 # Don't use installbsd from OSF since it installs stuff as root
10980 # by default.
10981 for ac_prog in ginstall scoinst install; do
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10984 if test $ac_prog = install &&
10985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10986 # AIX install. It has an incompatible calling convention.
10987 :
10988 elif test $ac_prog = install &&
10989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10990 # program-specific install script used by HP pwplus--don't use.
10991 :
10992 else
10993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10994 break 3
10995 fi
10996 fi
10997 done
10998 done
10999 ;;
11000 esac
11001 done
11002
11003
11004 fi
11005 if test "${ac_cv_path_install+set}" = set; then
11006 INSTALL=$ac_cv_path_install
11007 else
11008 # As a last resort, use the slow shell script. We don't cache a
11009 # path for INSTALL within a source directory, because that will
11010 # break other packages using the cache if that directory is
11011 # removed, or if the path is relative.
11012 INSTALL=$ac_install_sh
11013 fi
11014 fi
11015 echo "$as_me:$LINENO: result: $INSTALL" >&5
11016 echo "${ECHO_T}$INSTALL" >&6
11017
11018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11019 # It thinks the first close brace ends the variable substitution.
11020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11021
11022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11023
11024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11025
11026
11027 ac_config_headers="$ac_config_headers config.h"
11028
11029
11030 ac_config_commands="$ac_config_commands default-1"
11031
11032 ac_config_files="$ac_config_files Makefile"
11033 cat >confcache <<\_ACEOF
11034 # This file is a shell script that caches the results of configure
11035 # tests run on this system so they can be shared between configure
11036 # scripts and configure runs, see configure's option --config-cache.
11037 # It is not useful on other systems. If it contains results you don't
11038 # want to keep, you may remove or edit it.
11039 #
11040 # config.status only pays attention to the cache file if you give it
11041 # the --recheck option to rerun configure.
11042 #
11043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11045 # following values.
11046
11047 _ACEOF
11048
11049 # The following way of writing the cache mishandles newlines in values,
11050 # but we know of no workaround that is simple, portable, and efficient.
11051 # So, don't put newlines in cache variables' values.
11052 # Ultrix sh set writes to stderr and can't be redirected directly,
11053 # and sets the high bit in the cache file unless we assign to the vars.
11054 {
11055 (set) 2>&1 |
11056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11057 *ac_space=\ *)
11058 # `set' does not quote correctly, so add quotes (double-quote
11059 # substitution turns \\\\ into \\, and sed turns \\ into \).
11060 sed -n \
11061 "s/'/'\\\\''/g;
11062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11063 ;;
11064 *)
11065 # `set' quotes correctly as required by POSIX, so do not add quotes.
11066 sed -n \
11067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11068 ;;
11069 esac;
11070 } |
11071 sed '
11072 t clear
11073 : clear
11074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11075 t end
11076 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11077 : end' >>confcache
11078 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11079 if test -w $cache_file; then
11080 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11081 cat confcache >$cache_file
11082 else
11083 echo "not updating unwritable cache $cache_file"
11084 fi
11085 fi
11086 rm -f confcache
11087
11088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11089 # Let make expand exec_prefix.
11090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11091
11092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11094 # trailing colons and then remove the whole line if VPATH becomes empty
11095 # (actually we leave an empty line to preserve line numbers).
11096 if test "x$srcdir" = x.; then
11097 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11098 s/:*\$(srcdir):*/:/;
11099 s/:*\${srcdir}:*/:/;
11100 s/:*@srcdir@:*/:/;
11101 s/^\([^=]*=[ ]*\):*/\1/;
11102 s/:*$//;
11103 s/^[^=]*=[ ]*$//;
11104 }'
11105 fi
11106
11107 DEFS=-DHAVE_CONFIG_H
11108
11109 ac_libobjs=
11110 ac_ltlibobjs=
11111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11112 # 1. Remove the extension, and $U if already installed.
11113 ac_i=`echo "$ac_i" |
11114 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11115 # 2. Add them.
11116 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11117 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11118 done
11119 LIBOBJS=$ac_libobjs
11120
11121 LTLIBOBJS=$ac_ltlibobjs
11122
11123
11124
11125 : ${CONFIG_STATUS=./config.status}
11126 ac_clean_files_save=$ac_clean_files
11127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11128 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11129 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11130 cat >$CONFIG_STATUS <<_ACEOF
11131 #! $SHELL
11132 # Generated by $as_me.
11133 # Run this file to recreate the current configuration.
11134 # Compiler output produced by configure, useful for debugging
11135 # configure, is in config.log if it exists.
11136
11137 debug=false
11138 ac_cs_recheck=false
11139 ac_cs_silent=false
11140 SHELL=\${CONFIG_SHELL-$SHELL}
11141 _ACEOF
11142
11143 cat >>$CONFIG_STATUS <<\_ACEOF
11144 ## --------------------- ##
11145 ## M4sh Initialization. ##
11146 ## --------------------- ##
11147
11148 # Be Bourne compatible
11149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11150 emulate sh
11151 NULLCMD=:
11152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11153 # is contrary to our usage. Disable this feature.
11154 alias -g '${1+"$@"}'='"$@"'
11155 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11156 set -o posix
11157 fi
11158
11159 # Support unset when possible.
11160 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11161 as_unset=unset
11162 else
11163 as_unset=false
11164 fi
11165
11166
11167 # Work around bugs in pre-3.0 UWIN ksh.
11168 $as_unset ENV MAIL MAILPATH
11169 PS1='$ '
11170 PS2='> '
11171 PS4='+ '
11172
11173 # NLS nuisances.
11174 for as_var in \
11175 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11176 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11177 LC_TELEPHONE LC_TIME
11178 do
11179 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11180 eval $as_var=C; export $as_var
11181 else
11182 $as_unset $as_var
11183 fi
11184 done
11185
11186 # Required to use basename.
11187 if expr a : '\(a\)' >/dev/null 2>&1; then
11188 as_expr=expr
11189 else
11190 as_expr=false
11191 fi
11192
11193 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11194 as_basename=basename
11195 else
11196 as_basename=false
11197 fi
11198
11199
11200 # Name of the executable.
11201 as_me=`$as_basename "$0" ||
11202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11203 X"$0" : 'X\(//\)$' \| \
11204 X"$0" : 'X\(/\)$' \| \
11205 . : '\(.\)' 2>/dev/null ||
11206 echo X/"$0" |
11207 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11208 /^X\/\(\/\/\)$/{ s//\1/; q; }
11209 /^X\/\(\/\).*/{ s//\1/; q; }
11210 s/.*/./; q'`
11211
11212
11213 # PATH needs CR, and LINENO needs CR and PATH.
11214 # Avoid depending upon Character Ranges.
11215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11218 as_cr_digits='0123456789'
11219 as_cr_alnum=$as_cr_Letters$as_cr_digits
11220
11221 # The user is always right.
11222 if test "${PATH_SEPARATOR+set}" != set; then
11223 echo "#! /bin/sh" >conf$$.sh
11224 echo "exit 0" >>conf$$.sh
11225 chmod +x conf$$.sh
11226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11227 PATH_SEPARATOR=';'
11228 else
11229 PATH_SEPARATOR=:
11230 fi
11231 rm -f conf$$.sh
11232 fi
11233
11234
11235 as_lineno_1=$LINENO
11236 as_lineno_2=$LINENO
11237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11238 test "x$as_lineno_1" != "x$as_lineno_2" &&
11239 test "x$as_lineno_3" = "x$as_lineno_2" || {
11240 # Find who we are. Look in the path if we contain no path at all
11241 # relative or not.
11242 case $0 in
11243 *[\\/]* ) as_myself=$0 ;;
11244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11250 done
11251
11252 ;;
11253 esac
11254 # We did not find ourselves, most probably we were run as `sh COMMAND'
11255 # in which case we are not to be found in the path.
11256 if test "x$as_myself" = x; then
11257 as_myself=$0
11258 fi
11259 if test ! -f "$as_myself"; then
11260 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11261 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11262 { (exit 1); exit 1; }; }
11263 fi
11264 case $CONFIG_SHELL in
11265 '')
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11268 do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for as_base in sh bash ksh sh5; do
11272 case $as_dir in
11273 /*)
11274 if ("$as_dir/$as_base" -c '
11275 as_lineno_1=$LINENO
11276 as_lineno_2=$LINENO
11277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11278 test "x$as_lineno_1" != "x$as_lineno_2" &&
11279 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11280 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11281 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11282 CONFIG_SHELL=$as_dir/$as_base
11283 export CONFIG_SHELL
11284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11285 fi;;
11286 esac
11287 done
11288 done
11289 ;;
11290 esac
11291
11292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11293 # uniformly replaced by the line number. The first 'sed' inserts a
11294 # line-number line before each line; the second 'sed' does the real
11295 # work. The second script uses 'N' to pair each line-number line
11296 # with the numbered line, and appends trailing '-' during
11297 # substitution so that $LINENO is not a special case at line end.
11298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11299 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11300 sed '=' <$as_myself |
11301 sed '
11302 N
11303 s,$,-,
11304 : loop
11305 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11306 t loop
11307 s,-$,,
11308 s,^['$as_cr_digits']*\n,,
11309 ' >$as_me.lineno &&
11310 chmod +x $as_me.lineno ||
11311 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11312 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11313 { (exit 1); exit 1; }; }
11314
11315 # Don't try to exec as it changes $[0], causing all sort of problems
11316 # (the dirname of $[0] is not the place where we might find the
11317 # original and so on. Autoconf is especially sensible to this).
11318 . ./$as_me.lineno
11319 # Exit status is that of the last command.
11320 exit
11321 }
11322
11323
11324 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11325 *c*,-n*) ECHO_N= ECHO_C='
11326 ' ECHO_T=' ' ;;
11327 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11328 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11329 esac
11330
11331 if expr a : '\(a\)' >/dev/null 2>&1; then
11332 as_expr=expr
11333 else
11334 as_expr=false
11335 fi
11336
11337 rm -f conf$$ conf$$.exe conf$$.file
11338 echo >conf$$.file
11339 if ln -s conf$$.file conf$$ 2>/dev/null; then
11340 # We could just check for DJGPP; but this test a) works b) is more generic
11341 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11342 if test -f conf$$.exe; then
11343 # Don't use ln at all; we don't have any links
11344 as_ln_s='cp -p'
11345 else
11346 as_ln_s='ln -s'
11347 fi
11348 elif ln conf$$.file conf$$ 2>/dev/null; then
11349 as_ln_s=ln
11350 else
11351 as_ln_s='cp -p'
11352 fi
11353 rm -f conf$$ conf$$.exe conf$$.file
11354
11355 if mkdir -p . 2>/dev/null; then
11356 as_mkdir_p=:
11357 else
11358 as_mkdir_p=false
11359 fi
11360
11361 as_executable_p="test -f"
11362
11363 # Sed expression to map a string onto a valid CPP name.
11364 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11365
11366 # Sed expression to map a string onto a valid variable name.
11367 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11368
11369
11370 # IFS
11371 # We need space, tab and new line, in precisely that order.
11372 as_nl='
11373 '
11374 IFS=" $as_nl"
11375
11376 # CDPATH.
11377 $as_unset CDPATH
11378
11379 exec 6>&1
11380
11381 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11382 # report actual input values of CONFIG_FILES etc. instead of their
11383 # values after options handling. Logging --version etc. is OK.
11384 exec 5>>config.log
11385 {
11386 echo
11387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11388 ## Running $as_me. ##
11389 _ASBOX
11390 } >&5
11391 cat >&5 <<_CSEOF
11392
11393 This file was extended by $as_me, which was
11394 generated by GNU Autoconf 2.57. Invocation command line was
11395
11396 CONFIG_FILES = $CONFIG_FILES
11397 CONFIG_HEADERS = $CONFIG_HEADERS
11398 CONFIG_LINKS = $CONFIG_LINKS
11399 CONFIG_COMMANDS = $CONFIG_COMMANDS
11400 $ $0 $@
11401
11402 _CSEOF
11403 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11404 echo >&5
11405 _ACEOF
11406
11407 # Files that config.status was made for.
11408 if test -n "$ac_config_files"; then
11409 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11410 fi
11411
11412 if test -n "$ac_config_headers"; then
11413 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11414 fi
11415
11416 if test -n "$ac_config_links"; then
11417 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11418 fi
11419
11420 if test -n "$ac_config_commands"; then
11421 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11422 fi
11423
11424 cat >>$CONFIG_STATUS <<\_ACEOF
11425
11426 ac_cs_usage="\
11427 \`$as_me' instantiates files from templates according to the
11428 current configuration.
11429
11430 Usage: $0 [OPTIONS] [FILE]...
11431
11432 -h, --help print this help, then exit
11433 -V, --version print version number, then exit
11434 -q, --quiet do not print progress messages
11435 -d, --debug don't remove temporary files
11436 --recheck update $as_me by reconfiguring in the same conditions
11437 --file=FILE[:TEMPLATE]
11438 instantiate the configuration file FILE
11439 --header=FILE[:TEMPLATE]
11440 instantiate the configuration header FILE
11441
11442 Configuration files:
11443 $config_files
11444
11445 Configuration headers:
11446 $config_headers
11447
11448 Configuration commands:
11449 $config_commands
11450
11451 Report bugs to <bug-autoconf@gnu.org>."
11452 _ACEOF
11453
11454 cat >>$CONFIG_STATUS <<_ACEOF
11455 ac_cs_version="\\
11456 config.status
11457 configured by $0, generated by GNU Autoconf 2.57,
11458 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11459
11460 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11461 Free Software Foundation, Inc.
11462 This config.status script is free software; the Free Software Foundation
11463 gives unlimited permission to copy, distribute and modify it."
11464 srcdir=$srcdir
11465 INSTALL="$INSTALL"
11466 _ACEOF
11467
11468 cat >>$CONFIG_STATUS <<\_ACEOF
11469 # If no file are specified by the user, then we need to provide default
11470 # value. By we need to know if files were specified by the user.
11471 ac_need_defaults=:
11472 while test $# != 0
11473 do
11474 case $1 in
11475 --*=*)
11476 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11477 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11478 ac_shift=:
11479 ;;
11480 -*)
11481 ac_option=$1
11482 ac_optarg=$2
11483 ac_shift=shift
11484 ;;
11485 *) # This is not an option, so the user has probably given explicit
11486 # arguments.
11487 ac_option=$1
11488 ac_need_defaults=false;;
11489 esac
11490
11491 case $ac_option in
11492 # Handling of the options.
11493 _ACEOF
11494 cat >>$CONFIG_STATUS <<\_ACEOF
11495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11496 ac_cs_recheck=: ;;
11497 --version | --vers* | -V )
11498 echo "$ac_cs_version"; exit 0 ;;
11499 --he | --h)
11500 # Conflict between --help and --header
11501 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11502 Try \`$0 --help' for more information." >&5
11503 echo "$as_me: error: ambiguous option: $1
11504 Try \`$0 --help' for more information." >&2;}
11505 { (exit 1); exit 1; }; };;
11506 --help | --hel | -h )
11507 echo "$ac_cs_usage"; exit 0 ;;
11508 --debug | --d* | -d )
11509 debug=: ;;
11510 --file | --fil | --fi | --f )
11511 $ac_shift
11512 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11513 ac_need_defaults=false;;
11514 --header | --heade | --head | --hea )
11515 $ac_shift
11516 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11517 ac_need_defaults=false;;
11518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11520 ac_cs_silent=: ;;
11521
11522 # This is an error.
11523 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11524 Try \`$0 --help' for more information." >&5
11525 echo "$as_me: error: unrecognized option: $1
11526 Try \`$0 --help' for more information." >&2;}
11527 { (exit 1); exit 1; }; } ;;
11528
11529 *) ac_config_targets="$ac_config_targets $1" ;;
11530
11531 esac
11532 shift
11533 done
11534
11535 ac_configure_extra_args=
11536
11537 if $ac_cs_silent; then
11538 exec 6>/dev/null
11539 ac_configure_extra_args="$ac_configure_extra_args --silent"
11540 fi
11541
11542 _ACEOF
11543 cat >>$CONFIG_STATUS <<_ACEOF
11544 if \$ac_cs_recheck; then
11545 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11546 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11547 fi
11548
11549 _ACEOF
11550
11551 cat >>$CONFIG_STATUS <<_ACEOF
11552 #
11553 # INIT-COMMANDS section.
11554 #
11555
11556
11557
11558 _ACEOF
11559
11560
11561
11562 cat >>$CONFIG_STATUS <<\_ACEOF
11563 for ac_config_target in $ac_config_targets
11564 do
11565 case "$ac_config_target" in
11566 # Handling of arguments.
11567 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11568 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11569 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11572 { (exit 1); exit 1; }; };;
11573 esac
11574 done
11575
11576 # If the user did not use the arguments to specify the items to instantiate,
11577 # then the envvar interface is used. Set only those that are not.
11578 # We use the long form for the default assignment because of an extremely
11579 # bizarre bug on SunOS 4.1.3.
11580 if $ac_need_defaults; then
11581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11584 fi
11585
11586 # Have a temporary directory for convenience. Make it in the build tree
11587 # simply because there is no reason to put it here, and in addition,
11588 # creating and moving files from /tmp can sometimes cause problems.
11589 # Create a temporary directory, and hook for its removal unless debugging.
11590 $debug ||
11591 {
11592 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11593 trap '{ (exit 1); exit 1; }' 1 2 13 15
11594 }
11595
11596 # Create a (secure) tmp directory for tmp files.
11597
11598 {
11599 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11600 test -n "$tmp" && test -d "$tmp"
11601 } ||
11602 {
11603 tmp=./confstat$$-$RANDOM
11604 (umask 077 && mkdir $tmp)
11605 } ||
11606 {
11607 echo "$me: cannot create a temporary directory in ." >&2
11608 { (exit 1); exit 1; }
11609 }
11610
11611 _ACEOF
11612
11613 cat >>$CONFIG_STATUS <<_ACEOF
11614
11615 #
11616 # CONFIG_FILES section.
11617 #
11618
11619 # No need to generate the scripts if there are no CONFIG_FILES.
11620 # This happens for instance when ./config.status config.h
11621 if test -n "\$CONFIG_FILES"; then
11622 # Protect against being on the right side of a sed subst in config.status.
11623 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11624 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11625 s,@SHELL@,$SHELL,;t t
11626 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11627 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11628 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11629 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11630 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11631 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11632 s,@exec_prefix@,$exec_prefix,;t t
11633 s,@prefix@,$prefix,;t t
11634 s,@program_transform_name@,$program_transform_name,;t t
11635 s,@bindir@,$bindir,;t t
11636 s,@sbindir@,$sbindir,;t t
11637 s,@libexecdir@,$libexecdir,;t t
11638 s,@datadir@,$datadir,;t t
11639 s,@sysconfdir@,$sysconfdir,;t t
11640 s,@sharedstatedir@,$sharedstatedir,;t t
11641 s,@localstatedir@,$localstatedir,;t t
11642 s,@libdir@,$libdir,;t t
11643 s,@includedir@,$includedir,;t t
11644 s,@oldincludedir@,$oldincludedir,;t t
11645 s,@infodir@,$infodir,;t t
11646 s,@mandir@,$mandir,;t t
11647 s,@build_alias@,$build_alias,;t t
11648 s,@host_alias@,$host_alias,;t t
11649 s,@target_alias@,$target_alias,;t t
11650 s,@DEFS@,$DEFS,;t t
11651 s,@ECHO_C@,$ECHO_C,;t t
11652 s,@ECHO_N@,$ECHO_N,;t t
11653 s,@ECHO_T@,$ECHO_T,;t t
11654 s,@LIBS@,$LIBS,;t t
11655 s,@build@,$build,;t t
11656 s,@build_cpu@,$build_cpu,;t t
11657 s,@build_vendor@,$build_vendor,;t t
11658 s,@build_os@,$build_os,;t t
11659 s,@host@,$host,;t t
11660 s,@host_cpu@,$host_cpu,;t t
11661 s,@host_vendor@,$host_vendor,;t t
11662 s,@host_os@,$host_os,;t t
11663 s,@SHLICC2@,$SHLICC2,;t t
11664 s,@CC@,$CC,;t t
11665 s,@CFLAGS@,$CFLAGS,;t t
11666 s,@LDFLAGS@,$LDFLAGS,;t t
11667 s,@CPPFLAGS@,$CPPFLAGS,;t t
11668 s,@ac_ct_CC@,$ac_ct_CC,;t t
11669 s,@EXEEXT@,$EXEEXT,;t t
11670 s,@OBJEXT@,$OBJEXT,;t t
11671 s,@CPP@,$CPP,;t t
11672 s,@EGREP@,$EGREP,;t t
11673 s,@LIBOBJS@,$LIBOBJS,;t t
11674 s,@V_CCOPT@,$V_CCOPT,;t t
11675 s,@V_DEFS@,$V_DEFS,;t t
11676 s,@V_GROUP@,$V_GROUP,;t t
11677 s,@V_INCLS@,$V_INCLS,;t t
11678 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
11679 s,@LOCALSRC@,$LOCALSRC,;t t
11680 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11681 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11682 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11684 CEOF
11685
11686 _ACEOF
11687
11688 cat >>$CONFIG_STATUS <<\_ACEOF
11689 # Split the substitutions into bite-sized pieces for seds with
11690 # small command number limits, like on Digital OSF/1 and HP-UX.
11691 ac_max_sed_lines=48
11692 ac_sed_frag=1 # Number of current file.
11693 ac_beg=1 # First line for current file.
11694 ac_end=$ac_max_sed_lines # Line after last line for current file.
11695 ac_more_lines=:
11696 ac_sed_cmds=
11697 while $ac_more_lines; do
11698 if test $ac_beg -gt 1; then
11699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11700 else
11701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11702 fi
11703 if test ! -s $tmp/subs.frag; then
11704 ac_more_lines=false
11705 else
11706 # The purpose of the label and of the branching condition is to
11707 # speed up the sed processing (if there are no `@' at all, there
11708 # is no need to browse any of the substitutions).
11709 # These are the two extra sed commands mentioned above.
11710 (echo ':t
11711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11712 if test -z "$ac_sed_cmds"; then
11713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11714 else
11715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11716 fi
11717 ac_sed_frag=`expr $ac_sed_frag + 1`
11718 ac_beg=$ac_end
11719 ac_end=`expr $ac_end + $ac_max_sed_lines`
11720 fi
11721 done
11722 if test -z "$ac_sed_cmds"; then
11723 ac_sed_cmds=cat
11724 fi
11725 fi # test -n "$CONFIG_FILES"
11726
11727 _ACEOF
11728 cat >>$CONFIG_STATUS <<\_ACEOF
11729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11731 case $ac_file in
11732 - | *:- | *:-:* ) # input from stdin
11733 cat >$tmp/stdin
11734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11738 * ) ac_file_in=$ac_file.in ;;
11739 esac
11740
11741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11744 X"$ac_file" : 'X\(//\)[^/]' \| \
11745 X"$ac_file" : 'X\(//\)$' \| \
11746 X"$ac_file" : 'X\(/\)' \| \
11747 . : '\(.\)' 2>/dev/null ||
11748 echo X"$ac_file" |
11749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11751 /^X\(\/\/\)$/{ s//\1/; q; }
11752 /^X\(\/\).*/{ s//\1/; q; }
11753 s/.*/./; q'`
11754 { if $as_mkdir_p; then
11755 mkdir -p "$ac_dir"
11756 else
11757 as_dir="$ac_dir"
11758 as_dirs=
11759 while test ! -d "$as_dir"; do
11760 as_dirs="$as_dir $as_dirs"
11761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11763 X"$as_dir" : 'X\(//\)[^/]' \| \
11764 X"$as_dir" : 'X\(//\)$' \| \
11765 X"$as_dir" : 'X\(/\)' \| \
11766 . : '\(.\)' 2>/dev/null ||
11767 echo X"$as_dir" |
11768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11770 /^X\(\/\/\)$/{ s//\1/; q; }
11771 /^X\(\/\).*/{ s//\1/; q; }
11772 s/.*/./; q'`
11773 done
11774 test ! -n "$as_dirs" || mkdir $as_dirs
11775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11777 { (exit 1); exit 1; }; }; }
11778
11779 ac_builddir=.
11780
11781 if test "$ac_dir" != .; then
11782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11783 # A "../" for each directory in $ac_dir_suffix.
11784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11785 else
11786 ac_dir_suffix= ac_top_builddir=
11787 fi
11788
11789 case $srcdir in
11790 .) # No --srcdir option. We are building in place.
11791 ac_srcdir=.
11792 if test -z "$ac_top_builddir"; then
11793 ac_top_srcdir=.
11794 else
11795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11796 fi ;;
11797 [\\/]* | ?:[\\/]* ) # Absolute path.
11798 ac_srcdir=$srcdir$ac_dir_suffix;
11799 ac_top_srcdir=$srcdir ;;
11800 *) # Relative path.
11801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11803 esac
11804 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11805 # absolute.
11806 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11807 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11808 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11809 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11810
11811
11812 case $INSTALL in
11813 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11814 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11815 esac
11816
11817 if test x"$ac_file" != x-; then
11818 { echo "$as_me:$LINENO: creating $ac_file" >&5
11819 echo "$as_me: creating $ac_file" >&6;}
11820 rm -f "$ac_file"
11821 fi
11822 # Let's still pretend it is `configure' which instantiates (i.e., don't
11823 # use $as_me), people would be surprised to read:
11824 # /* config.h. Generated by config.status. */
11825 if test x"$ac_file" = x-; then
11826 configure_input=
11827 else
11828 configure_input="$ac_file. "
11829 fi
11830 configure_input=$configure_input"Generated from `echo $ac_file_in |
11831 sed 's,.*/,,'` by configure."
11832
11833 # First look for the input files in the build tree, otherwise in the
11834 # src tree.
11835 ac_file_inputs=`IFS=:
11836 for f in $ac_file_in; do
11837 case $f in
11838 -) echo $tmp/stdin ;;
11839 [\\/$]*)
11840 # Absolute (can't be DOS-style, as IFS=:)
11841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11842 echo "$as_me: error: cannot find input file: $f" >&2;}
11843 { (exit 1); exit 1; }; }
11844 echo $f;;
11845 *) # Relative
11846 if test -f "$f"; then
11847 # Build tree
11848 echo $f
11849 elif test -f "$srcdir/$f"; then
11850 # Source tree
11851 echo $srcdir/$f
11852 else
11853 # /dev/null tree
11854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11855 echo "$as_me: error: cannot find input file: $f" >&2;}
11856 { (exit 1); exit 1; }; }
11857 fi;;
11858 esac
11859 done` || { (exit 1); exit 1; }
11860 _ACEOF
11861 cat >>$CONFIG_STATUS <<_ACEOF
11862 sed "$ac_vpsub
11863 $extrasub
11864 _ACEOF
11865 cat >>$CONFIG_STATUS <<\_ACEOF
11866 :t
11867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11868 s,@configure_input@,$configure_input,;t t
11869 s,@srcdir@,$ac_srcdir,;t t
11870 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11871 s,@top_srcdir@,$ac_top_srcdir,;t t
11872 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11873 s,@builddir@,$ac_builddir,;t t
11874 s,@abs_builddir@,$ac_abs_builddir,;t t
11875 s,@top_builddir@,$ac_top_builddir,;t t
11876 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11877 s,@INSTALL@,$ac_INSTALL,;t t
11878 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11879 rm -f $tmp/stdin
11880 if test x"$ac_file" != x-; then
11881 mv $tmp/out $ac_file
11882 else
11883 cat $tmp/out
11884 rm -f $tmp/out
11885 fi
11886
11887 done
11888 _ACEOF
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11890
11891 #
11892 # CONFIG_HEADER section.
11893 #
11894
11895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11897 #
11898 # ac_d sets the value in "#define NAME VALUE" lines.
11899 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11900 ac_dB='[ ].*$,\1#\2'
11901 ac_dC=' '
11902 ac_dD=',;t'
11903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11904 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11905 ac_uB='$,\1#\2define\3'
11906 ac_uC=' '
11907 ac_uD=',;t'
11908
11909 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11911 case $ac_file in
11912 - | *:- | *:-:* ) # input from stdin
11913 cat >$tmp/stdin
11914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11918 * ) ac_file_in=$ac_file.in ;;
11919 esac
11920
11921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11922 echo "$as_me: creating $ac_file" >&6;}
11923
11924 # First look for the input files in the build tree, otherwise in the
11925 # src tree.
11926 ac_file_inputs=`IFS=:
11927 for f in $ac_file_in; do
11928 case $f in
11929 -) echo $tmp/stdin ;;
11930 [\\/$]*)
11931 # Absolute (can't be DOS-style, as IFS=:)
11932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11933 echo "$as_me: error: cannot find input file: $f" >&2;}
11934 { (exit 1); exit 1; }; }
11935 echo $f;;
11936 *) # Relative
11937 if test -f "$f"; then
11938 # Build tree
11939 echo $f
11940 elif test -f "$srcdir/$f"; then
11941 # Source tree
11942 echo $srcdir/$f
11943 else
11944 # /dev/null tree
11945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11946 echo "$as_me: error: cannot find input file: $f" >&2;}
11947 { (exit 1); exit 1; }; }
11948 fi;;
11949 esac
11950 done` || { (exit 1); exit 1; }
11951 # Remove the trailing spaces.
11952 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11953
11954 _ACEOF
11955
11956 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11957 # `conftest.undefs', that substitutes the proper values into
11958 # config.h.in to produce config.h. The first handles `#define'
11959 # templates, and the second `#undef' templates.
11960 # And first: Protect against being on the right side of a sed subst in
11961 # config.status. Protect against being in an unquoted here document
11962 # in config.status.
11963 rm -f conftest.defines conftest.undefs
11964 # Using a here document instead of a string reduces the quoting nightmare.
11965 # Putting comments in sed scripts is not portable.
11966 #
11967 # `end' is used to avoid that the second main sed command (meant for
11968 # 0-ary CPP macros) applies to n-ary macro definitions.
11969 # See the Autoconf documentation for `clear'.
11970 cat >confdef2sed.sed <<\_ACEOF
11971 s/[\\&,]/\\&/g
11972 s,[\\$`],\\&,g
11973 t clear
11974 : clear
11975 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11976 t end
11977 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11978 : end
11979 _ACEOF
11980 # If some macros were called several times there might be several times
11981 # the same #defines, which is useless. Nevertheless, we may not want to
11982 # sort them, since we want the *last* AC-DEFINE to be honored.
11983 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11984 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11985 rm -f confdef2sed.sed
11986
11987 # This sed command replaces #undef with comments. This is necessary, for
11988 # example, in the case of _POSIX_SOURCE, which is predefined and required
11989 # on some systems where configure will not decide to define it.
11990 cat >>conftest.undefs <<\_ACEOF
11991 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11992 _ACEOF
11993
11994 # Break up conftest.defines because some shells have a limit on the size
11995 # of here documents, and old seds have small limits too (100 cmds).
11996 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11997 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11998 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11999 echo ' :' >>$CONFIG_STATUS
12000 rm -f conftest.tail
12001 while grep . conftest.defines >/dev/null
12002 do
12003 # Write a limited-size here document to $tmp/defines.sed.
12004 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12005 # Speed up: don't consider the non `#define' lines.
12006 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12007 # Work around the forget-to-reset-the-flag bug.
12008 echo 't clr' >>$CONFIG_STATUS
12009 echo ': clr' >>$CONFIG_STATUS
12010 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12011 echo 'CEOF
12012 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12013 rm -f $tmp/in
12014 mv $tmp/out $tmp/in
12015 ' >>$CONFIG_STATUS
12016 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12017 rm -f conftest.defines
12018 mv conftest.tail conftest.defines
12019 done
12020 rm -f conftest.defines
12021 echo ' fi # grep' >>$CONFIG_STATUS
12022 echo >>$CONFIG_STATUS
12023
12024 # Break up conftest.undefs because some shells have a limit on the size
12025 # of here documents, and old seds have small limits too (100 cmds).
12026 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12027 rm -f conftest.tail
12028 while grep . conftest.undefs >/dev/null
12029 do
12030 # Write a limited-size here document to $tmp/undefs.sed.
12031 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12032 # Speed up: don't consider the non `#undef'
12033 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12034 # Work around the forget-to-reset-the-flag bug.
12035 echo 't clr' >>$CONFIG_STATUS
12036 echo ': clr' >>$CONFIG_STATUS
12037 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12038 echo 'CEOF
12039 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12040 rm -f $tmp/in
12041 mv $tmp/out $tmp/in
12042 ' >>$CONFIG_STATUS
12043 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12044 rm -f conftest.undefs
12045 mv conftest.tail conftest.undefs
12046 done
12047 rm -f conftest.undefs
12048
12049 cat >>$CONFIG_STATUS <<\_ACEOF
12050 # Let's still pretend it is `configure' which instantiates (i.e., don't
12051 # use $as_me), people would be surprised to read:
12052 # /* config.h. Generated by config.status. */
12053 if test x"$ac_file" = x-; then
12054 echo "/* Generated by configure. */" >$tmp/config.h
12055 else
12056 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12057 fi
12058 cat $tmp/in >>$tmp/config.h
12059 rm -f $tmp/in
12060 if test x"$ac_file" != x-; then
12061 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12063 echo "$as_me: $ac_file is unchanged" >&6;}
12064 else
12065 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067 X"$ac_file" : 'X\(//\)[^/]' \| \
12068 X"$ac_file" : 'X\(//\)$' \| \
12069 X"$ac_file" : 'X\(/\)' \| \
12070 . : '\(.\)' 2>/dev/null ||
12071 echo X"$ac_file" |
12072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12074 /^X\(\/\/\)$/{ s//\1/; q; }
12075 /^X\(\/\).*/{ s//\1/; q; }
12076 s/.*/./; q'`
12077 { if $as_mkdir_p; then
12078 mkdir -p "$ac_dir"
12079 else
12080 as_dir="$ac_dir"
12081 as_dirs=
12082 while test ! -d "$as_dir"; do
12083 as_dirs="$as_dir $as_dirs"
12084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12086 X"$as_dir" : 'X\(//\)[^/]' \| \
12087 X"$as_dir" : 'X\(//\)$' \| \
12088 X"$as_dir" : 'X\(/\)' \| \
12089 . : '\(.\)' 2>/dev/null ||
12090 echo X"$as_dir" |
12091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12093 /^X\(\/\/\)$/{ s//\1/; q; }
12094 /^X\(\/\).*/{ s//\1/; q; }
12095 s/.*/./; q'`
12096 done
12097 test ! -n "$as_dirs" || mkdir $as_dirs
12098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12100 { (exit 1); exit 1; }; }; }
12101
12102 rm -f $ac_file
12103 mv $tmp/config.h $ac_file
12104 fi
12105 else
12106 cat $tmp/config.h
12107 rm -f $tmp/config.h
12108 fi
12109 done
12110 _ACEOF
12111 cat >>$CONFIG_STATUS <<\_ACEOF
12112
12113 #
12114 # CONFIG_COMMANDS section.
12115 #
12116 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12117 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12118 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12119 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12121 X"$ac_dest" : 'X\(//\)[^/]' \| \
12122 X"$ac_dest" : 'X\(//\)$' \| \
12123 X"$ac_dest" : 'X\(/\)' \| \
12124 . : '\(.\)' 2>/dev/null ||
12125 echo X"$ac_dest" |
12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12128 /^X\(\/\/\)$/{ s//\1/; q; }
12129 /^X\(\/\).*/{ s//\1/; q; }
12130 s/.*/./; q'`
12131 ac_builddir=.
12132
12133 if test "$ac_dir" != .; then
12134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12135 # A "../" for each directory in $ac_dir_suffix.
12136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12137 else
12138 ac_dir_suffix= ac_top_builddir=
12139 fi
12140
12141 case $srcdir in
12142 .) # No --srcdir option. We are building in place.
12143 ac_srcdir=.
12144 if test -z "$ac_top_builddir"; then
12145 ac_top_srcdir=.
12146 else
12147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12148 fi ;;
12149 [\\/]* | ?:[\\/]* ) # Absolute path.
12150 ac_srcdir=$srcdir$ac_dir_suffix;
12151 ac_top_srcdir=$srcdir ;;
12152 *) # Relative path.
12153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12155 esac
12156 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12157 # absolute.
12158 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12159 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12160 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12161 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12162
12163
12164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12165 echo "$as_me: executing $ac_dest commands" >&6;}
12166 case $ac_dest in
12167 default-1 ) if test -f .devel; then
12168 echo timestamp > stamp-h
12169 cat Makefile-devel-adds >> Makefile
12170 make depend
12171 fi ;;
12172 esac
12173 done
12174 _ACEOF
12175
12176 cat >>$CONFIG_STATUS <<\_ACEOF
12177
12178 { (exit 0); exit 0; }
12179 _ACEOF
12180 chmod +x $CONFIG_STATUS
12181 ac_clean_files=$ac_clean_files_save
12182
12183
12184 # configure is writing to config.log, and then calls config.status.
12185 # config.status does its own redirection, appending to config.log.
12186 # Unfortunately, on DOS this fails, as config.log is still kept open
12187 # by configure, so config.status won't be able to write to it; its
12188 # output is simply discarded. So we exec the FD to /dev/null,
12189 # effectively closing config.log, so it can be properly (re)opened and
12190 # appended to by config.status. When coming back to configure, we
12191 # need to make the FD available again.
12192 if test "$no_create" != yes; then
12193 ac_cs_success=:
12194 ac_config_status_args=
12195 test "$silent" = yes &&
12196 ac_config_status_args="$ac_config_status_args --quiet"
12197 exec 5>/dev/null
12198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12199 exec 5>>config.log
12200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12201 # would make configure fail if this is the last instruction.
12202 $ac_cs_success || { (exit 1); exit 1; }
12203 fi
12204
12205 exit 0