Obfuscate RCS ID matching so that CVS doesn't expand it.
[netbsd-mini2440.git] / dist / ntp / configure
blob293c7b30e0469c12793efd77fdb8c7dbefa23cf8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for ntp 4.2.4p7.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # Name of the host.
395 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396 # so uname gets run too.
397 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399 exec 6>&1
402 # Initializations.
404 ac_default_prefix=/usr/local
405 ac_config_libobj_dir=.
406 cross_compiling=no
407 subdirs=
408 MFLAGS=
409 MAKEFLAGS=
410 SHELL=${CONFIG_SHELL-/bin/sh}
412 # Maximum number of lines to put in a shell here document.
413 # This variable seems obsolete. It should probably be removed, and
414 # only ac_max_sed_lines should be used.
415 : ${ac_max_here_lines=38}
417 # Identity of this package.
418 PACKAGE_NAME='ntp'
419 PACKAGE_TARNAME='ntp'
420 PACKAGE_VERSION='4.2.4p7'
421 PACKAGE_STRING='ntp 4.2.4p7'
422 PACKAGE_BUGREPORT=''
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subdirs_all="$ac_subdirs_all arlib"
462 ac_subdirs_all="$ac_subdirs_all sntp"
463 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS BINSUBDIR subdirs ARLIB_DIR LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR HAVE_INLINE LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB LCRYPTO EF_PROGS EF_LIBS MAKE_CHECK_LAYOUT TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM LSCF LIBOBJS LTLIBOBJS'
464 ac_subst_files=''
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
504 ac_prev=
505 for ac_option
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
518 case $ac_option in
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 bindir=$ac_optarg ;;
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535 cache_file=$ac_optarg ;;
537 --config-cache | -C)
538 cache_file=config.cache ;;
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir=$ac_optarg ;;
546 -disable-* | --disable-*)
547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
555 -enable-* | --enable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 case $ac_option in
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_$ac_feature='$ac_optarg'" ;;
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix=$ac_optarg ;;
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
581 -help | --help | --hel | --he | -h)
582 ac_init_help=long ;;
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
598 includedir=$ac_optarg ;;
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 libdir=$ac_optarg ;;
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
615 libexecdir=$ac_optarg ;;
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624 localstatedir=$ac_optarg ;;
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 mandir=$ac_optarg ;;
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
637 no_create=yes ;;
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 no_recursion=yes ;;
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650 oldincludedir=$ac_optarg ;;
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 prefix=$ac_optarg ;;
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662 program_prefix=$ac_optarg ;;
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669 program_suffix=$ac_optarg ;;
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
686 program_transform_name=$ac_optarg ;;
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 ac_prev=sbindir ;;
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 | --sbi=* | --sb=*)
696 sbindir=$ac_optarg ;;
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
701 | --sha | --sh)
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 | --sha=* | --sh=*)
707 sharedstatedir=$ac_optarg ;;
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
712 site=$ac_optarg ;;
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 srcdir=$ac_optarg ;;
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724 sysconfdir=$ac_optarg ;;
726 -target | --target | --targe | --targ | --tar | --ta | --t)
727 ac_prev=target_alias ;;
728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729 target_alias=$ac_optarg ;;
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
737 -with-* | --with-*)
738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 case $ac_option in
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 *) ac_optarg=yes ;;
747 esac
748 eval "with_$ac_package='$ac_optarg'" ;;
750 -without-* | --without-*)
751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768 x_includes=$ac_optarg ;;
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775 x_libraries=$ac_optarg ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
782 *=*)
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
790 export $ac_envvar ;;
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 esac
801 done
803 if test -n "$ac_prev"; then
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
846 cross_compiling=yes
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853 test "$silent" = yes && exec 6>/dev/null
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
872 srcdir=$ac_confdir
873 if test ! -r $srcdir/$ac_unique_file; then
874 srcdir=..
876 else
877 ac_srcdir_defaulted=no
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
883 else
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CC_set=${CC+set}
905 ac_env_CC_value=$CC
906 ac_cv_env_CC_set=${CC+set}
907 ac_cv_env_CC_value=$CC
908 ac_env_CFLAGS_set=${CFLAGS+set}
909 ac_env_CFLAGS_value=$CFLAGS
910 ac_cv_env_CFLAGS_set=${CFLAGS+set}
911 ac_cv_env_CFLAGS_value=$CFLAGS
912 ac_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_env_LDFLAGS_value=$LDFLAGS
914 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_cv_env_LDFLAGS_value=$LDFLAGS
916 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_env_CPPFLAGS_value=$CPPFLAGS
918 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
920 ac_env_CPP_set=${CPP+set}
921 ac_env_CPP_value=$CPP
922 ac_cv_env_CPP_set=${CPP+set}
923 ac_cv_env_CPP_value=$CPP
926 # Report the --help message.
928 if test "$ac_init_help" = "long"; then
929 # Omit some internal or obsolete options to make the list less imposing.
930 # This message is too long to be a string in the A/UX 3.1 sh.
931 cat <<_ACEOF
932 \`configure' configures ntp 4.2.4p7 to adapt to many kinds of systems.
934 Usage: $0 [OPTION]... [VAR=VALUE]...
936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
937 VAR=VALUE. See below for descriptions of some of the useful variables.
939 Defaults for the options are specified in brackets.
941 Configuration:
942 -h, --help display this help and exit
943 --help=short display options specific to this package
944 --help=recursive display the short help of all the included packages
945 -V, --version display version information and exit
946 -q, --quiet, --silent do not print \`checking...' messages
947 --cache-file=FILE cache test results in FILE [disabled]
948 -C, --config-cache alias for \`--cache-file=config.cache'
949 -n, --no-create do not create output files
950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
952 _ACEOF
954 cat <<_ACEOF
955 Installation directories:
956 --prefix=PREFIX install architecture-independent files in PREFIX
957 [$ac_default_prefix]
958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 [PREFIX]
961 By default, \`make install' will install all the files in
962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
964 for instance \`--prefix=\$HOME'.
966 For better control, use the options below.
968 Fine tuning of the installation directories:
969 --bindir=DIR user executables [EPREFIX/bin]
970 --sbindir=DIR system admin executables [EPREFIX/sbin]
971 --libexecdir=DIR program executables [EPREFIX/libexec]
972 --datadir=DIR read-only architecture-independent data [PREFIX/share]
973 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
974 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
975 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
976 --libdir=DIR object code libraries [EPREFIX/lib]
977 --includedir=DIR C header files [PREFIX/include]
978 --oldincludedir=DIR C header files for non-gcc [/usr/include]
979 --infodir=DIR info documentation [PREFIX/info]
980 --mandir=DIR man documentation [PREFIX/man]
981 _ACEOF
983 cat <<\_ACEOF
985 Program names:
986 --program-prefix=PREFIX prepend PREFIX to installed program names
987 --program-suffix=SUFFIX append SUFFIX to installed program names
988 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990 System types:
991 --build=BUILD configure for building on BUILD [guessed]
992 --host=HOST cross-compile to build programs to run on HOST [BUILD]
993 _ACEOF
996 if test -n "$ac_init_help"; then
997 case $ac_init_help in
998 short | recursive ) echo "Configuration of ntp 4.2.4p7:";;
999 esac
1000 cat <<\_ACEOF
1002 Optional Features:
1003 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1004 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1005 --disable-dependency-tracking speeds up one-time build
1006 --enable-dependency-tracking do not reject slow dependency extractors
1007 --enable-shared[=PKGS]
1008 build shared libraries [default=no]
1009 --enable-local-libopts Force using the supplied libopts tearoff code
1010 --disable-libopts-install
1011 Do not install libopts with client installation
1012 --disable-optional-args not wanting optional option args
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --enable-getifaddrs s Enable the use of getifaddrs() [yes|no|glibc].
1019 glibc: Use getifaddrs() in glibc if you know it
1020 supports IPv6.
1021 --enable-debugging + include debugging code
1022 --enable-debug-timing - include processing time debugging code (costs
1023 performance)
1024 --enable-dst-minutes n minutes per DST adjustment [60]
1025 --enable-ignore-dns-errors
1026 - retry DNS queries on any error
1027 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1028 --enable-GPSVME - TrueTime GPS receiver/VME interface
1029 --enable-all-clocks + include all suitable non-PARSE clocks:
1030 --enable-ACTS s ACTS modem service
1031 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1032 --enable-ARCRON-MSF + Arcron MSF receiver
1033 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1034 --enable-ATOM s ATOM PPS interface
1035 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1036 --enable-CHU + CHU modem/decoder
1037 --enable-AUDIO-CHU s CHU audio/decoder
1038 --enable-DATUM s Datum Programmable Time System
1039 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1040 --enable-FG + Forum Graphic GPS
1041 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1042 --enable-HOPFSERIAL + hopf serial clock device
1043 --enable-HOPFPCI + hopf 6039 PCI board
1044 --enable-HPGPS + HP 58503A GPS receiver
1045 --enable-IRIG s IRIG audio decoder
1046 --enable-JJY + JJY receiver
1047 --enable-JUPITER s Rockwell Jupiter GPS receiver
1048 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1049 --enable-LOCAL-CLOCK + local clock reference
1050 --enable-MX4200 s Magnavox MX4200 GPS receiver
1051 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1052 --enable-NMEA + NMEA GPS receiver
1053 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1054 --enable-PALISADE s Palisade clock
1055 --enable-PCF + Conrad parallel port radio clock
1056 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1057 --enable-RIPENCC - RIPENCC specific Trimble driver
1058 --enable-SHM s SHM clock attached thru shared memory
1059 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1060 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1061 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1062 --enable-TT560 - TrueTime 560 IRIG-B decoder
1063 --enable-ULINK + Ultralink WWVB receiver
1064 --enable-WWV s WWV Audio receiver
1065 --enable-ZYFER + Zyfer GPStarplus receiver
1066 --enable-parse-clocks - include all suitable PARSE clocks:
1067 --enable-COMPUTIME s Diem Computime Radio Clock
1068 --enable-DCF7000 s ELV/DCF7000 clock
1069 --enable-HOPF6021 s HOPF 6021 clock
1070 --enable-MEINBERG s Meinberg clocks
1071 --enable-RAWDCF s DCF77 raw time code
1072 --enable-RCC8000 s RCC 8000 clock
1073 --enable-SCHMID s Schmid DCF77 clock
1074 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1075 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1076 --enable-WHARTON s WHARTON 400A Series clock
1077 --enable-VARITEXT s VARITEXT clock
1078 --enable-kmem s read /dev/kmem for tick and/or tickadj
1079 --enable-accurate-adjtime
1080 s the adjtime() call is accurate
1081 --enable-tick=VALUE s force a value for 'tick'
1082 --enable-tickadj=VALUE s force a value for 'tickadj'
1083 --enable-simulator - build/install the NTPD simulator?
1084 --enable-slew-always s always slew the time
1085 --enable-step-slew s step and slew the time
1086 --enable-ntpdate-step s if ntpdate should step the time
1087 --enable-hourly-todr-sync
1088 s if we should sync TODR hourly
1089 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1090 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1091 --enable-nist - if we should enable the NIST lockclock scheme
1092 --enable-ntp-signd - Provide support for Samba's signing daemon,
1093 =/var/run/ntp_signd
1094 --enable-wintime - Provide the windows symmetric client hack
1095 --enable-clockctl s Use /dev/clockctl for non-root clock control
1096 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1097 --enable-ipv6 s use IPv6?
1099 Optional Packages:
1100 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1101 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1102 --with-autoopts-config specify the config-info script
1103 --with-regex-header a reg expr header is specified
1104 --with-libregex libregex installation prefix
1105 --with-libregex-cflags libregex compile flags
1106 --with-libregex-libs libregex link command arguments
1107 --with-binsubdir bin ={bin,sbin}
1108 --with-arlib - Compile the async resolver library?
1109 --without-rpath s Disable auto-added -R linker paths
1110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1111 --with-pic try to use only PIC/non-PIC objects [default=use
1112 both]
1113 --with-tags[=TAGS]
1114 include additional configurations [automatic]
1115 --with-openssl-libdir + =/something/reasonable
1116 --with-openssl-incdir + =/something/reasonable
1117 --with-crypto + =openssl
1118 --with-electricfence - compile with ElectricFence malloc debugger
1119 --with-kame - =/usr/local/v6
1121 Some influential environment variables:
1122 CC C compiler command
1123 CFLAGS C compiler flags
1124 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1125 nonstandard directory <lib dir>
1126 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1127 headers in a nonstandard directory <include dir>
1128 CPP C preprocessor
1130 Use these variables to override the choices made by `configure' or to help
1131 it to find libraries and programs with nonstandard names/locations.
1133 _ACEOF
1136 if test "$ac_init_help" = "recursive"; then
1137 # If there are subdirs, report their specific --help.
1138 ac_popdir=`pwd`
1139 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1140 test -d $ac_dir || continue
1141 ac_builddir=.
1143 if test "$ac_dir" != .; then
1144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1145 # A "../" for each directory in $ac_dir_suffix.
1146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1147 else
1148 ac_dir_suffix= ac_top_builddir=
1151 case $srcdir in
1152 .) # No --srcdir option. We are building in place.
1153 ac_srcdir=.
1154 if test -z "$ac_top_builddir"; then
1155 ac_top_srcdir=.
1156 else
1157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1158 fi ;;
1159 [\\/]* | ?:[\\/]* ) # Absolute path.
1160 ac_srcdir=$srcdir$ac_dir_suffix;
1161 ac_top_srcdir=$srcdir ;;
1162 *) # Relative path.
1163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1165 esac
1167 # Do not use `cd foo && pwd` to compute absolute paths, because
1168 # the directories may not exist.
1169 case `pwd` in
1170 .) ac_abs_builddir="$ac_dir";;
1172 case "$ac_dir" in
1173 .) ac_abs_builddir=`pwd`;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1176 esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1181 case ${ac_top_builddir}. in
1182 .) ac_abs_top_builddir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1185 esac;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_srcdir=$ac_srcdir;;
1190 case $ac_srcdir in
1191 .) ac_abs_srcdir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1194 esac;;
1195 esac
1196 case $ac_abs_builddir in
1197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1199 case $ac_top_srcdir in
1200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1203 esac;;
1204 esac
1206 cd $ac_dir
1207 # Check for guested configure; otherwise get Cygnus style configure.
1208 if test -f $ac_srcdir/configure.gnu; then
1209 echo
1210 $SHELL $ac_srcdir/configure.gnu --help=recursive
1211 elif test -f $ac_srcdir/configure; then
1212 echo
1213 $SHELL $ac_srcdir/configure --help=recursive
1214 elif test -f $ac_srcdir/configure.ac ||
1215 test -f $ac_srcdir/configure.in; then
1216 echo
1217 $ac_configure --help
1218 else
1219 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1221 cd $ac_popdir
1222 done
1225 test -n "$ac_init_help" && exit 0
1226 if $ac_init_version; then
1227 cat <<\_ACEOF
1228 ntp configure 4.2.4p7
1229 generated by GNU Autoconf 2.59
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1234 _ACEOF
1235 exit 0
1237 exec 5>config.log
1238 cat >&5 <<_ACEOF
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1242 It was created by ntp $as_me 4.2.4p7, which was
1243 generated by GNU Autoconf 2.59. Invocation command line was
1245 $ $0 $@
1247 _ACEOF
1249 cat <<_ASUNAME
1250 ## --------- ##
1251 ## Platform. ##
1252 ## --------- ##
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1271 _ASUNAME
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1276 IFS=$as_save_IFS
1277 test -z "$as_dir" && as_dir=.
1278 echo "PATH: $as_dir"
1279 done
1281 } >&5
1283 cat >&5 <<_ACEOF
1286 ## ----------- ##
1287 ## Core tests. ##
1288 ## ----------- ##
1290 _ACEOF
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1298 ac_configure_args=
1299 ac_configure_args0=
1300 ac_configure_args1=
1301 ac_sep=
1302 ac_must_keep_next=false
1303 for ac_pass in 1 2
1305 for ac_arg
1307 case $ac_arg in
1308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1311 continue ;;
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 esac
1315 case $ac_pass in
1316 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319 if test $ac_must_keep_next = true; then
1320 ac_must_keep_next=false # Got value, back to normal.
1321 else
1322 case $ac_arg in
1323 *=* | --config-cache | -C | -disable-* | --disable-* \
1324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326 | -with-* | --with-* | -without-* | --without-* | --x)
1327 case "$ac_configure_args0 " in
1328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329 esac
1331 -* ) ac_must_keep_next=true ;;
1332 esac
1334 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335 # Get rid of the leading space.
1336 ac_sep=" "
1338 esac
1339 done
1340 done
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log. We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350 # Save into config.log some information that might help in debugging.
1352 echo
1354 cat <<\_ASBOX
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1358 _ASBOX
1359 echo
1360 # The following way of writing the cache mishandles newlines in values,
1362 (set) 2>&1 |
1363 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364 *ac_space=\ *)
1365 sed -n \
1366 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1370 sed -n \
1371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1373 esac;
1375 echo
1377 cat <<\_ASBOX
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1381 _ASBOX
1382 echo
1383 for ac_var in $ac_subst_vars
1385 eval ac_val=$`echo $ac_var`
1386 echo "$ac_var='"'"'$ac_val'"'"'"
1387 done | sort
1388 echo
1390 if test -n "$ac_subst_files"; then
1391 cat <<\_ASBOX
1392 ## ------------- ##
1393 ## Output files. ##
1394 ## ------------- ##
1395 _ASBOX
1396 echo
1397 for ac_var in $ac_subst_files
1399 eval ac_val=$`echo $ac_var`
1400 echo "$ac_var='"'"'$ac_val'"'"'"
1401 done | sort
1402 echo
1405 if test -s confdefs.h; then
1406 cat <<\_ASBOX
1407 ## ----------- ##
1408 ## confdefs.h. ##
1409 ## ----------- ##
1410 _ASBOX
1411 echo
1412 sed "/^$/d" confdefs.h | sort
1413 echo
1415 test "$ac_signal" != 0 &&
1416 echo "$as_me: caught signal $ac_signal"
1417 echo "$as_me: exit $exit_status"
1418 } >&5
1419 rm -f core *.core &&
1420 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421 exit $exit_status
1423 for ac_signal in 1 2 13 15; do
1424 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425 done
1426 ac_signal=0
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431 echo >confdefs.h
1433 # Predefined preprocessor variables.
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1437 _ACEOF
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442 _ACEOF
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1447 _ACEOF
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1452 _ACEOF
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457 _ACEOF
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463 if test "x$prefix" != xNONE; then
1464 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465 else
1466 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469 for ac_site_file in $CONFIG_SITE; do
1470 if test -r "$ac_site_file"; then
1471 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473 sed 's/^/| /' "$ac_site_file" >&5
1474 . "$ac_site_file"
1476 done
1478 if test -r "$cache_file"; then
1479 # Some versions of bash will fail to source /dev/null (special
1480 # files actually), so we avoid doing that.
1481 if test -f "$cache_file"; then
1482 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1483 echo "$as_me: loading cache $cache_file" >&6;}
1484 case $cache_file in
1485 [\\/]* | ?:[\\/]* ) . $cache_file;;
1486 *) . ./$cache_file;;
1487 esac
1489 else
1490 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1491 echo "$as_me: creating cache $cache_file" >&6;}
1492 >$cache_file
1495 # Check that the precious variables saved in the cache have kept the same
1496 # value.
1497 ac_cache_corrupted=false
1498 for ac_var in `(set) 2>&1 |
1499 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1500 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1501 eval ac_new_set=\$ac_env_${ac_var}_set
1502 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1503 eval ac_new_val="\$ac_env_${ac_var}_value"
1504 case $ac_old_set,$ac_new_set in
1505 set,)
1506 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1507 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1508 ac_cache_corrupted=: ;;
1509 ,set)
1510 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1511 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1512 ac_cache_corrupted=: ;;
1513 ,);;
1515 if test "x$ac_old_val" != "x$ac_new_val"; then
1516 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1517 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1518 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1519 echo "$as_me: former value: $ac_old_val" >&2;}
1520 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1521 echo "$as_me: current value: $ac_new_val" >&2;}
1522 ac_cache_corrupted=:
1523 fi;;
1524 esac
1525 # Pass precious variables to config.status.
1526 if test "$ac_new_set" = set; then
1527 case $ac_new_val in
1528 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 *) ac_arg=$ac_var=$ac_new_val ;;
1531 esac
1532 case " $ac_configure_args " in
1533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1534 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535 esac
1537 done
1538 if $ac_cache_corrupted; then
1539 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1546 ac_ext=c
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1578 am__api_version="1.9"
1579 ac_aux_dir=
1580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1581 if test -f $ac_dir/install-sh; then
1582 ac_aux_dir=$ac_dir
1583 ac_install_sh="$ac_aux_dir/install-sh -c"
1584 break
1585 elif test -f $ac_dir/install.sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install.sh -c"
1588 break
1589 elif test -f $ac_dir/shtool; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/shtool install -c"
1592 break
1594 done
1595 if test -z "$ac_aux_dir"; then
1596 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1597 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1598 { (exit 1); exit 1; }; }
1600 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1601 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1602 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604 # Find a good install program. We prefer a C program (faster),
1605 # so one script is as good as another. But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1610 # AIX /bin/install
1611 # AmigaOS /C/install, which installs bootblocks on floppy discs
1612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1615 # OS/2's system install, which has a completely different semantic
1616 # ./install, which can be erroneously created by make from ./install.sh.
1617 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1618 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1619 if test -z "$INSTALL"; then
1620 if test "${ac_cv_path_install+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 # Account for people who put trailing slashes in PATH elements.
1629 case $as_dir/ in
1630 ./ | .// | /cC/* | \
1631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1632 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1633 /usr/ucb/* ) ;;
1635 # OSF1 and SCO ODT 3.0 have their own names for install.
1636 # Don't use installbsd from OSF since it installs stuff as root
1637 # by default.
1638 for ac_prog in ginstall scoinst install; do
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1641 if test $ac_prog = install &&
1642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1643 # AIX install. It has an incompatible calling convention.
1645 elif test $ac_prog = install &&
1646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # program-specific install script used by HP pwplus--don't use.
1649 else
1650 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1651 break 3
1654 done
1655 done
1657 esac
1658 done
1662 if test "${ac_cv_path_install+set}" = set; then
1663 INSTALL=$ac_cv_path_install
1664 else
1665 # As a last resort, use the slow shell script. We don't cache a
1666 # path for INSTALL within a source directory, because that will
1667 # break other packages using the cache if that directory is
1668 # removed, or if the path is relative.
1669 INSTALL=$ac_install_sh
1672 echo "$as_me:$LINENO: result: $INSTALL" >&5
1673 echo "${ECHO_T}$INSTALL" >&6
1675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1676 # It thinks the first close brace ends the variable substitution.
1677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1684 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1685 # Just in case
1686 sleep 1
1687 echo timestamp > conftest.file
1688 # Do `set' in a subshell so we don't clobber the current shell's
1689 # arguments. Must try -L first in case configure is actually a
1690 # symlink; some systems play weird games with the mod time of symlinks
1691 # (eg FreeBSD returns the mod time of the symlink's containing
1692 # directory).
1693 if (
1694 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1695 if test "$*" = "X"; then
1696 # -L didn't work.
1697 set X `ls -t $srcdir/configure conftest.file`
1699 rm -f conftest.file
1700 if test "$*" != "X $srcdir/configure conftest.file" \
1701 && test "$*" != "X conftest.file $srcdir/configure"; then
1703 # If neither matched, then we have a broken ls. This can happen
1704 # if, for instance, CONFIG_SHELL is bash and it inherits a
1705 # broken ls alias from the environment. This has actually
1706 # happened. Such a system could not be considered "sane".
1707 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1708 alias in your environment" >&5
1709 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1710 alias in your environment" >&2;}
1711 { (exit 1); exit 1; }; }
1714 test "$2" = conftest.file
1716 then
1717 # Ok.
1719 else
1720 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1721 Check your system clock" >&5
1722 echo "$as_me: error: newly created file is older than distributed files!
1723 Check your system clock" >&2;}
1724 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1728 test "$program_prefix" != NONE &&
1729 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1730 # Use a double $ so make ignores it.
1731 test "$program_suffix" != NONE &&
1732 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1733 # Double any \ or $. echo might interpret backslashes.
1734 # By default was `s,x,x', remove it if useless.
1735 cat <<\_ACEOF >conftest.sed
1736 s/[\\$]/&&/g;s/;s,x,x,$//
1737 _ACEOF
1738 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1739 rm conftest.sed
1741 # expand $ac_aux_dir to an absolute path
1742 am_aux_dir=`cd $ac_aux_dir && pwd`
1744 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1745 # Use eval to expand $SHELL
1746 if eval "$MISSING --run true"; then
1747 am_missing_run="$MISSING --run "
1748 else
1749 am_missing_run=
1750 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1751 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1754 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1755 # We used to keeping the `.' as first argument, in order to
1756 # allow $(mkdir_p) to be used without argument. As in
1757 # $(mkdir_p) $(somedir)
1758 # where $(somedir) is conditionally defined. However this is wrong
1759 # for two reasons:
1760 # 1. if the package is installed by a user who cannot write `.'
1761 # make install will fail,
1762 # 2. the above comment should most certainly read
1763 # $(mkdir_p) $(DESTDIR)$(somedir)
1764 # so it does not work when $(somedir) is undefined and
1765 # $(DESTDIR) is not.
1766 # To support the latter case, we have to write
1767 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1768 # so the `.' trick is pointless.
1769 mkdir_p='mkdir -p --'
1770 else
1771 # On NextStep and OpenStep, the `mkdir' command does not
1772 # recognize any option. It will interpret all options as
1773 # directories to create, and then abort because `.' already
1774 # exists.
1775 for d in ./-p ./--version;
1777 test -d $d && rmdir $d
1778 done
1779 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1780 if test -f "$ac_aux_dir/mkinstalldirs"; then
1781 mkdir_p='$(mkinstalldirs)'
1782 else
1783 mkdir_p='$(install_sh) -d'
1787 for ac_prog in gawk mawk nawk awk
1789 # Extract the first word of "$ac_prog", so it can be a program name with args.
1790 set dummy $ac_prog; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_AWK+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$AWK"; then
1797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_AWK="$ac_prog"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1810 done
1811 done
1815 AWK=$ac_cv_prog_AWK
1816 if test -n "$AWK"; then
1817 echo "$as_me:$LINENO: result: $AWK" >&5
1818 echo "${ECHO_T}$AWK" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1824 test -n "$AWK" && break
1825 done
1827 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1828 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1830 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 cat >conftest.make <<\_ACEOF
1834 all:
1835 @echo 'ac_maketemp="$(MAKE)"'
1836 _ACEOF
1837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1838 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1839 if test -n "$ac_maketemp"; then
1840 eval ac_cv_prog_make_${ac_make}_set=yes
1841 else
1842 eval ac_cv_prog_make_${ac_make}_set=no
1844 rm -f conftest.make
1846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1847 echo "$as_me:$LINENO: result: yes" >&5
1848 echo "${ECHO_T}yes" >&6
1849 SET_MAKE=
1850 else
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 SET_MAKE="MAKE=${MAKE-make}"
1856 rm -rf .tst 2>/dev/null
1857 mkdir .tst 2>/dev/null
1858 if test -d .tst; then
1859 am__leading_dot=.
1860 else
1861 am__leading_dot=_
1863 rmdir .tst 2>/dev/null
1865 # test to see if srcdir already configured
1866 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1867 test -f $srcdir/config.status; then
1868 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1869 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1870 { (exit 1); exit 1; }; }
1873 # test whether we have cygpath
1874 if test -z "$CYGPATH_W"; then
1875 if (cygpath --version) >/dev/null 2>/dev/null; then
1876 CYGPATH_W='cygpath -w'
1877 else
1878 CYGPATH_W=echo
1883 # Define the identity of the package.
1884 PACKAGE='ntp'
1885 VERSION='4.2.4p7'
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE "$PACKAGE"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define VERSION "$VERSION"
1895 _ACEOF
1897 # Some tools Automake needs.
1899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1913 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1915 # Installed binaries are usually stripped using `strip' when the user
1916 # run `make install-strip'. However `strip' might not be the right
1917 # tool to use in cross-compilation environments, therefore Automake
1918 # will honor the `STRIP' environment variable to overrule this program.
1919 if test "$cross_compiling" != no; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1922 set dummy ${ac_tool_prefix}strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_STRIP+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$STRIP"; then
1929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1942 done
1943 done
1947 STRIP=$ac_cv_prog_STRIP
1948 if test -n "$STRIP"; then
1949 echo "$as_me:$LINENO: result: $STRIP" >&5
1950 echo "${ECHO_T}$STRIP" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1957 if test -z "$ac_cv_prog_STRIP"; then
1958 ac_ct_STRIP=$STRIP
1959 # Extract the first word of "strip", so it can be a program name with args.
1960 set dummy strip; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$ac_ct_STRIP"; then
1967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 ac_cv_prog_ac_ct_STRIP="strip"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 break 2
1980 done
1981 done
1983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1987 if test -n "$ac_ct_STRIP"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1989 echo "${ECHO_T}$ac_ct_STRIP" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 STRIP=$ac_ct_STRIP
1996 else
1997 STRIP="$ac_cv_prog_STRIP"
2001 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2003 # We need awk for the "check" target. The system "awk" is bad on
2004 # some platforms.
2005 # Always define AMTAR for backward compatibility.
2007 AMTAR=${AMTAR-"${am_missing_run}tar"}
2009 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2015 # Make sure we can run config.sub.
2016 $ac_config_sub sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2018 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 ac_cv_build_alias=$build_alias
2027 test -z "$ac_cv_build_alias" &&
2028 ac_cv_build_alias=`$ac_config_guess`
2029 test -z "$ac_cv_build_alias" &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2035 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6
2041 build=$ac_cv_build
2042 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2043 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2044 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2047 echo "$as_me:$LINENO: checking host system type" >&5
2048 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2049 if test "${ac_cv_host+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 ac_cv_host_alias=$host_alias
2053 test -z "$ac_cv_host_alias" &&
2054 ac_cv_host_alias=$ac_cv_build_alias
2055 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2056 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2057 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2058 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062 echo "${ECHO_T}$ac_cv_host" >&6
2063 host=$ac_cv_host
2064 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2065 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2066 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2070 cat >>confdefs.h <<_ACEOF
2071 #define STR_SYSTEM "$host"
2072 _ACEOF
2074 ac_config_headers="$ac_config_headers config.h"
2078 ac_cv_var_atom_ok=no
2079 ac_cv_var_oncore_ok=no
2080 ac_cv_var_parse_ok=no
2081 ac_cv_var_ripe_ncc_ok=no
2082 ac_cv_var_jupiter_ok=no
2084 iCFLAGS="$CFLAGS"
2086 DEPDIR="${am__leading_dot}deps"
2088 ac_config_commands="$ac_config_commands depfiles"
2091 am_make=${MAKE-make}
2092 cat > confinc << 'END'
2093 am__doit:
2094 @echo done
2095 .PHONY: am__doit
2097 # If we don't find an include directive, just comment out the code.
2098 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2099 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2100 am__include="#"
2101 am__quote=
2102 _am_result=none
2103 # First try GNU make style include.
2104 echo "include confinc" > confmf
2105 # We grep out `Entering directory' and `Leaving directory'
2106 # messages which can occur if `w' ends up in MAKEFLAGS.
2107 # In particular we don't look at `^make:' because GNU make might
2108 # be invoked under some other name (usually "gmake"), in which
2109 # case it prints its new name instead of `make'.
2110 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2111 am__include=include
2112 am__quote=
2113 _am_result=GNU
2115 # Now try BSD make style include.
2116 if test "$am__include" = "#"; then
2117 echo '.include "confinc"' > confmf
2118 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2119 am__include=.include
2120 am__quote="\""
2121 _am_result=BSD
2126 echo "$as_me:$LINENO: result: $_am_result" >&5
2127 echo "${ECHO_T}$_am_result" >&6
2128 rm -f confinc confmf
2130 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2131 if test "${enable_dependency_tracking+set}" = set; then
2132 enableval="$enable_dependency_tracking"
2135 if test "x$enable_dependency_tracking" != xno; then
2136 am_depcomp="$ac_aux_dir/depcomp"
2137 AMDEPBACKSLASH='\'
2141 if test "x$enable_dependency_tracking" != xno; then
2142 AMDEP_TRUE=
2143 AMDEP_FALSE='#'
2144 else
2145 AMDEP_TRUE='#'
2146 AMDEP_FALSE=
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2193 if test -z "$ac_cv_prog_CC"; then
2194 ac_ct_CC=$CC
2195 # Extract the first word of "gcc", so it can be a program name with args.
2196 set dummy gcc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_CC="gcc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2225 else
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6
2267 else
2268 echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2273 if test -z "$ac_cv_prog_CC"; then
2274 ac_ct_CC=$CC
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_ac_ct_CC="cc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302 if test -n "$ac_ct_CC"; then
2303 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304 echo "${ECHO_T}$ac_ct_CC" >&6
2305 else
2306 echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2310 CC=$ac_ct_CC
2311 else
2312 CC="$ac_cv_prog_CC"
2316 if test -z "$CC"; then
2317 # Extract the first word of "cc", so it can be a program name with args.
2318 set dummy cc; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 else
2327 ac_prog_rejected=no
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2336 ac_prog_rejected=yes
2337 continue
2339 ac_cv_prog_CC="cc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2346 if test $ac_prog_rejected = yes; then
2347 # We found a bogon in the path, so make sure we never use it.
2348 set dummy $ac_cv_prog_CC
2349 shift
2350 if test $# != 0; then
2351 # We chose a different compiler from the bogus one.
2352 # However, it has the same basename, so the bogon will be chosen
2353 # first if we set CC to just the basename; use the full file name.
2354 shift
2355 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6
2364 else
2365 echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 for ac_prog in cl
2374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2395 done
2396 done
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2404 else
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2409 test -n "$CC" && break
2410 done
2412 if test -z "$CC"; then
2413 ac_ct_CC=$CC
2414 for ac_prog in cl
2416 # Extract the first word of "$ac_prog", so it can be a program name with args.
2417 set dummy $ac_prog; ac_word=$2
2418 echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_ac_ct_CC="$ac_prog"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2443 if test -n "$ac_ct_CC"; then
2444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2445 echo "${ECHO_T}$ac_ct_CC" >&6
2446 else
2447 echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2451 test -n "$ac_ct_CC" && break
2452 done
2454 CC=$ac_ct_CC
2460 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: no acceptable C compiler found in \$PATH
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2466 # Provide some information about the compiler.
2467 echo "$as_me:$LINENO:" \
2468 "checking for C compiler version" >&5
2469 ac_compiler=`set X $ac_compile; echo $2`
2470 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2471 (eval $ac_compiler --version </dev/null >&5) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2476 (eval $ac_compiler -v </dev/null >&5) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2480 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2481 (eval $ac_compiler -V </dev/null >&5) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2494 main ()
2498 return 0;
2500 _ACEOF
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2505 # of exeext.
2506 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2509 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2510 (eval $ac_link_default) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # Find the output, starting from the most likely. This scheme is
2515 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2516 # resort.
2518 # Be careful to initialize this variable, since it used to be cached.
2519 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2520 ac_cv_exeext=
2521 # b.out is created by i960 compilers.
2522 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2524 test -f "$ac_file" || continue
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2528 conftest.$ac_ext )
2529 # This is the source file.
2531 [ab].out )
2532 # We found the default executable, but exeext='' is most
2533 # certainly right.
2534 break;;
2535 *.* )
2536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 # FIXME: I believe we export ac_cv_exeext for Libtool,
2538 # but it would be cool to find out if it's true. Does anybody
2539 # maintain Libtool? --akim.
2540 export ac_cv_exeext
2541 break;;
2543 break;;
2544 esac
2545 done
2546 else
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2551 See \`config.log' for more details." >&5
2552 echo "$as_me: error: C compiler cannot create executables
2553 See \`config.log' for more details." >&2;}
2554 { (exit 77); exit 77; }; }
2557 ac_exeext=$ac_cv_exeext
2558 echo "$as_me:$LINENO: result: $ac_file" >&5
2559 echo "${ECHO_T}$ac_file" >&6
2561 # Check the compiler produces executables we can run. If not, either
2562 # the compiler is broken, or we cross compile.
2563 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2564 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2565 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2566 # If not cross compiling, check that we can run a simple program.
2567 if test "$cross_compiling" != yes; then
2568 if { ac_try='./$ac_file'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 cross_compiling=no
2575 else
2576 if test "$cross_compiling" = maybe; then
2577 cross_compiling=yes
2578 else
2579 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2589 echo "$as_me:$LINENO: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6
2592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check the compiler produces executables we can run. If not, either
2595 # the compiler is broken, or we cross compile.
2596 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2598 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 echo "${ECHO_T}$cross_compiling" >&6
2601 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2609 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2610 # work properly (i.e., refer to `conftest.exe'), while it won't with
2611 # `rm'.
2612 for ac_file in conftest.exe conftest conftest.*; do
2613 test -f "$ac_file" || continue
2614 case $ac_file in
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 export ac_cv_exeext
2618 break;;
2619 * ) break;;
2620 esac
2621 done
2622 else
2623 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2630 rm -f conftest$ac_cv_exeext
2631 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2632 echo "${ECHO_T}$ac_cv_exeext" >&6
2634 rm -f conftest.$ac_ext
2635 EXEEXT=$ac_cv_exeext
2636 ac_exeext=$EXEEXT
2637 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2638 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2639 if test "${ac_cv_objext+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h. */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2650 main ()
2654 return 0;
2656 _ACEOF
2657 rm -f conftest.o conftest.obj
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2664 case $ac_file in
2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2666 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2667 break;;
2668 esac
2669 done
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2675 See \`config.log' for more details." >&5
2676 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2677 See \`config.log' for more details." >&2;}
2678 { (exit 1); exit 1; }; }
2681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2683 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2684 echo "${ECHO_T}$ac_cv_objext" >&6
2685 OBJEXT=$ac_cv_objext
2686 ac_objext=$OBJEXT
2687 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2688 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2689 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 main ()
2702 #ifndef __GNUC__
2703 choke me
2704 #endif
2707 return 0;
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_compiler_gnu=yes
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 ac_compiler_gnu=no
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 CFLAGS="-g"
2749 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cc_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 main ()
2766 return 0;
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag"
2779 || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_prog_cc_g=yes
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 ac_cv_prog_cc_g=no
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2801 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2802 if test "$ac_test_CFLAGS" = set; then
2803 CFLAGS=$ac_save_CFLAGS
2804 elif test $ac_cv_prog_cc_g = yes; then
2805 if test "$GCC" = yes; then
2806 CFLAGS="-g -O2"
2807 else
2808 CFLAGS="-g"
2810 else
2811 if test "$GCC" = yes; then
2812 CFLAGS="-O2"
2813 else
2814 CFLAGS=
2817 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2818 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2819 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 ac_cv_prog_cc_stdc=no
2823 ac_save_CC=$CC
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830 #include <stdarg.h>
2831 #include <stdio.h>
2832 #include <sys/types.h>
2833 #include <sys/stat.h>
2834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2835 struct buf { int x; };
2836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837 static char *e (p, i)
2838 char **p;
2839 int i;
2841 return p[i];
2843 static char *f (char * (*g) (char **, int), char **p, ...)
2845 char *s;
2846 va_list v;
2847 va_start (v,p);
2848 s = g (p, va_arg (v,int));
2849 va_end (v);
2850 return s;
2853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2854 function prototypes and stuff, but not '\xHH' hex character constants.
2855 These don't provoke an error unfortunately, instead are silently treated
2856 as 'x'. The following induces an error, until -std1 is added to get
2857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2858 array size at least. It's necessary to write '\x00'==0 to get something
2859 that's true only with -std1. */
2860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2862 int test (int i, double x);
2863 struct s1 {int (*f) (int a);};
2864 struct s2 {int (*f) (double a);};
2865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2866 int argc;
2867 char **argv;
2869 main ()
2871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2873 return 0;
2875 _ACEOF
2876 # Don't try gcc -ansi; that turns off useful extensions and
2877 # breaks some systems' header files.
2878 # AIX -qlanglvl=ansi
2879 # Ultrix and OSF/1 -std1
2880 # HP-UX 10.20 and later -Ae
2881 # HP-UX older versions -Aa -D_HPUX_SOURCE
2882 # SVR4 -Xc -D__EXTENSIONS__
2883 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2885 CC="$ac_save_CC $ac_arg"
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 ac_cv_prog_cc_stdc=$ac_arg
2909 break
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.err conftest.$ac_objext
2916 done
2917 rm -f conftest.$ac_ext conftest.$ac_objext
2918 CC=$ac_save_CC
2922 case "x$ac_cv_prog_cc_stdc" in
2923 x|xno)
2924 echo "$as_me:$LINENO: result: none needed" >&5
2925 echo "${ECHO_T}none needed" >&6 ;;
2927 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2928 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2929 CC="$CC $ac_cv_prog_cc_stdc" ;;
2930 esac
2932 # Some people use a C++ compiler to compile C. Since we use `exit',
2933 # in C++ we need to declare it. In case someone uses the same compiler
2934 # for both compiling C and C++ we need to have the C++ compiler decide
2935 # the declaration of exit, since it's the most demanding environment.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #ifndef __cplusplus
2938 choke me
2939 #endif
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 for ac_declaration in \
2964 '' \
2965 'extern "C" void std::exit (int) throw (); using std::exit;' \
2966 'extern "C" void std::exit (int); using std::exit;' \
2967 'extern "C" void exit (int) throw ();' \
2968 'extern "C" void exit (int);' \
2969 'void exit (int);'
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977 $ac_declaration
2978 #include <stdlib.h>
2980 main ()
2982 exit (42);
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 continue
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 $ac_declaration
3025 main ()
3027 exit (42);
3029 return 0;
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag"
3042 || test ! -s conftest.err'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 break
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 done
3062 rm -f conftest*
3063 if test -n "$ac_declaration"; then
3064 echo '#ifdef __cplusplus' >>confdefs.h
3065 echo $ac_declaration >>confdefs.h
3066 echo '#endif' >>confdefs.h
3069 else
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 depcc="$CC" am_compiler_list=
3083 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3084 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3085 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3089 # We make a subdir and do the tests there. Otherwise we can end up
3090 # making bogus files that we don't know about and never remove. For
3091 # instance it was reported that on HP-UX the gcc test will end up
3092 # making a dummy file named `D' -- because `-MD' means `put the output
3093 # in D'.
3094 mkdir conftest.dir
3095 # Copy depcomp to subdir because otherwise we won't find it if we're
3096 # using a relative directory.
3097 cp "$am_depcomp" conftest.dir
3098 cd conftest.dir
3099 # We will build objects and dependencies in a subdirectory because
3100 # it helps to detect inapplicable dependency modes. For instance
3101 # both Tru64's cc and ICC support -MD to output dependencies as a
3102 # side effect of compilation, but ICC will put the dependencies in
3103 # the current directory while Tru64 will put them in the object
3104 # directory.
3105 mkdir sub
3107 am_cv_CC_dependencies_compiler_type=none
3108 if test "$am_compiler_list" = ""; then
3109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3111 for depmode in $am_compiler_list; do
3112 # Setup a source with many dependencies, because some compilers
3113 # like to wrap large dependency lists on column 80 (with \), and
3114 # we should not choose a depcomp mode which is confused by this.
3116 # We need to recreate these files for each test, as the compiler may
3117 # overwrite some of them when testing with obscure command lines.
3118 # This happens at least with the AIX C compiler.
3119 : > sub/conftest.c
3120 for i in 1 2 3 4 5 6; do
3121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3122 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3123 # Solaris 8's {/usr,}/bin/sh.
3124 touch sub/conftst$i.h
3125 done
3126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3128 case $depmode in
3129 nosideeffect)
3130 # after this tag, mechanisms are not by side-effect, so they'll
3131 # only be used when explicitly requested
3132 if test "x$enable_dependency_tracking" = xyes; then
3133 continue
3134 else
3135 break
3138 none) break ;;
3139 esac
3140 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3141 # mode. It turns out that the SunPro C++ compiler does not properly
3142 # handle `-M -o', and we need to detect this.
3143 if depmode=$depmode \
3144 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3146 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3147 >/dev/null 2>conftest.err &&
3148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3149 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3151 # icc doesn't choke on unknown options, it will just issue warnings
3152 # or remarks (even with -Werror). So we grep stderr for any message
3153 # that says an option was ignored or not supported.
3154 # When given -MP, icc 7.0 and 7.1 complain thusly:
3155 # icc: Command line warning: ignoring option '-M'; no argument required
3156 # The diagnosis changed in icc 8.0:
3157 # icc: Command line remark: option '-MP' not supported
3158 if (grep 'ignoring option' conftest.err ||
3159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3160 am_cv_CC_dependencies_compiler_type=$depmode
3161 break
3164 done
3166 cd ..
3167 rm -rf conftest.dir
3168 else
3169 am_cv_CC_dependencies_compiler_type=none
3173 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3174 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3175 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3180 test "x$enable_dependency_tracking" != xno \
3181 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3182 am__fastdepCC_TRUE=
3183 am__fastdepCC_FALSE='#'
3184 else
3185 am__fastdepCC_TRUE='#'
3186 am__fastdepCC_FALSE=
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3198 # On Suns, sometimes $CPP names a directory.
3199 if test -n "$CPP" && test -d "$CPP"; then
3200 CPP=
3202 if test -z "$CPP"; then
3203 if test "${ac_cv_prog_CPP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 # Double quotes because CPP needs to be expanded
3207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 ac_preproc_ok=false
3210 for ac_c_preproc_warn_flag in '' yes
3212 # Use a header file that comes with gcc, so configuring glibc
3213 # with a fresh cross-compiler works.
3214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215 # <limits.h> exists even on freestanding compilers.
3216 # On the NeXT, cc -E runs the code through the compiler's parser,
3217 # not just through cpp. "Syntax error" is here to catch this case.
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #ifdef __STDC__
3225 # include <limits.h>
3226 #else
3227 # include <assert.h>
3228 #endif
3229 Syntax error
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3245 else
3246 ac_cpp_err=yes
3248 if test -z "$ac_cpp_err"; then
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 # Broken: fails on valid input.
3255 continue
3257 rm -f conftest.err conftest.$ac_ext
3259 # OK, works on sane cases. Now check whether non-existent headers
3260 # can be detected and how.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <ac_nonexistent.h>
3268 _ACEOF
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3280 else
3281 ac_cpp_err=
3283 else
3284 ac_cpp_err=yes
3286 if test -z "$ac_cpp_err"; then
3287 # Broken: success on invalid input.
3288 continue
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Passes both tests.
3294 ac_preproc_ok=:
3295 break
3297 rm -f conftest.err conftest.$ac_ext
3299 done
3300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3301 rm -f conftest.err conftest.$ac_ext
3302 if $ac_preproc_ok; then
3303 break
3306 done
3307 ac_cv_prog_CPP=$CPP
3310 CPP=$ac_cv_prog_CPP
3311 else
3312 ac_cv_prog_CPP=$CPP
3314 echo "$as_me:$LINENO: result: $CPP" >&5
3315 echo "${ECHO_T}$CPP" >&6
3316 ac_preproc_ok=false
3317 for ac_c_preproc_warn_flag in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349 else
3350 ac_cpp_err=
3352 else
3353 ac_cpp_err=yes
3355 if test -z "$ac_cpp_err"; then
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3362 continue
3364 rm -f conftest.err conftest.$ac_ext
3366 # OK, works on sane cases. Now check whether non-existent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 else
3388 ac_cpp_err=
3390 else
3391 ac_cpp_err=yes
3393 if test -z "$ac_cpp_err"; then
3394 # Broken: success on invalid input.
3395 continue
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Passes both tests.
3401 ac_preproc_ok=:
3402 break
3404 rm -f conftest.err conftest.$ac_ext
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3411 else
3412 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3413 See \`config.log' for more details." >&5
3414 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3415 See \`config.log' for more details." >&2;}
3416 { (exit 1); exit 1; }; }
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 echo "$as_me:$LINENO: checking for egrep" >&5
3427 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3428 if test "${ac_cv_prog_egrep+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3432 then ac_cv_prog_egrep='grep -E'
3433 else ac_cv_prog_egrep='egrep'
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3437 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3438 EGREP=$ac_cv_prog_egrep
3442 echo "$as_me:$LINENO: checking for AIX" >&5
3443 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #ifdef _AIX
3452 #endif
3454 _ACEOF
3455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3456 $EGREP "yes" >/dev/null 2>&1; then
3457 echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3459 cat >>confdefs.h <<\_ACEOF
3460 #define _ALL_SOURCE 1
3461 _ACEOF
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3467 rm -f conftest*
3470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3472 if test "${ac_cv_header_stdc+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <stdlib.h>
3482 #include <stdarg.h>
3483 #include <string.h>
3484 #include <float.h>
3487 main ()
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_header_stdc=yes
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 ac_cv_header_stdc=no
3523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525 if test $ac_cv_header_stdc = yes; then
3526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <string.h>
3535 _ACEOF
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 $EGREP "memchr" >/dev/null 2>&1; then
3539 else
3540 ac_cv_header_stdc=no
3542 rm -f conftest*
3546 if test $ac_cv_header_stdc = yes; then
3547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <stdlib.h>
3556 _ACEOF
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "free" >/dev/null 2>&1; then
3560 else
3561 ac_cv_header_stdc=no
3563 rm -f conftest*
3567 if test $ac_cv_header_stdc = yes; then
3568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3569 if test "$cross_compiling" = yes; then
3571 else
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <ctype.h>
3579 #if ((' ' & 0x0FF) == 0x020)
3580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3582 #else
3583 # define ISLOWER(c) \
3584 (('a' <= (c) && (c) <= 'i') \
3585 || ('j' <= (c) && (c) <= 'r') \
3586 || ('s' <= (c) && (c) <= 'z'))
3587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3588 #endif
3590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3592 main ()
3594 int i;
3595 for (i = 0; i < 256; i++)
3596 if (XOR (islower (i), ISLOWER (i))
3597 || toupper (i) != TOUPPER (i))
3598 exit(2);
3599 exit (0);
3601 _ACEOF
3602 rm -f conftest$ac_exeext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3614 else
3615 echo "$as_me: program exited with status $ac_status" >&5
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ( exit $ac_status )
3620 ac_cv_header_stdc=no
3622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3627 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3628 if test $ac_cv_header_stdc = yes; then
3630 cat >>confdefs.h <<\_ACEOF
3631 #define STDC_HEADERS 1
3632 _ACEOF
3636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3647 inttypes.h stdint.h unistd.h
3649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3650 echo "$as_me:$LINENO: checking for $ac_header" >&5
3651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 $ac_includes_default
3663 #include <$ac_header>
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_c_werror_flag"
3675 || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 eval "$as_ac_Header=yes"
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 eval "$as_ac_Header=no"
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3699 cat >>confdefs.h <<_ACEOF
3700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3701 _ACEOF
3705 done
3708 if test "${ac_cv_header_minix_config_h+set}" = set; then
3709 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3711 if test "${ac_cv_header_minix_config_h+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3715 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3716 else
3717 # Is the header compilable?
3718 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3719 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 $ac_includes_default
3727 #include <minix/config.h>
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_header_compiler=yes
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 ac_header_compiler=no
3758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3760 echo "${ECHO_T}$ac_header_compiler" >&6
3762 # Is the header present?
3763 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3764 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <minix/config.h>
3772 _ACEOF
3773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null; then
3781 if test -s conftest.err; then
3782 ac_cpp_err=$ac_c_preproc_warn_flag
3783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3784 else
3785 ac_cpp_err=
3787 else
3788 ac_cpp_err=yes
3790 if test -z "$ac_cpp_err"; then
3791 ac_header_preproc=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 ac_header_preproc=no
3798 rm -f conftest.err conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3800 echo "${ECHO_T}$ac_header_preproc" >&6
3802 # So? What about this header?
3803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3804 yes:no: )
3805 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3806 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3808 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3809 ac_header_preproc=yes
3811 no:yes:* )
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3813 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3815 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3816 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3817 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3819 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3821 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3823 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3825 cat <<\_ASBOX
3826 ## ------------------------------ ##
3827 ## Report this to the ntp lists. ##
3828 ## ------------------------------ ##
3829 _ASBOX
3831 sed "s/^/$as_me: WARNING: /" >&2
3833 esac
3834 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3835 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3836 if test "${ac_cv_header_minix_config_h+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 ac_cv_header_minix_config_h=$ac_header_preproc
3841 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3842 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3845 if test $ac_cv_header_minix_config_h = yes; then
3846 MINIX=yes
3847 else
3848 MINIX=
3852 if test "$MINIX" = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define _POSIX_SOURCE 1
3856 _ACEOF
3859 cat >>confdefs.h <<\_ACEOF
3860 #define _POSIX_1_SOURCE 2
3861 _ACEOF
3864 cat >>confdefs.h <<\_ACEOF
3865 #define _MINIX 1
3866 _ACEOF
3871 # So far, the only shared library we might use is libopts.
3872 # It's a small library - we might as well use a static version of it.
3873 # Check whether --enable-shared or --disable-shared was given.
3874 if test "${enable_shared+set}" = set; then
3875 enableval="$enable_shared"
3876 p=${PACKAGE-default}
3877 case $enableval in
3878 yes) enable_shared=yes ;;
3879 no) enable_shared=no ;;
3881 enable_shared=no
3882 # Look at the argument we got. We use all the common list separators.
3883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3884 for pkg in $enableval; do
3885 IFS="$lt_save_ifs"
3886 if test "X$pkg" = "X$p"; then
3887 enable_shared=yes
3889 done
3890 IFS="$lt_save_ifs"
3892 esac
3893 else
3894 enable_shared=no
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3907 echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3909 if test "${ac_cv_prog_CC+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3926 done
3927 done
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 echo "$as_me:$LINENO: result: $CC" >&5
3934 echo "${ECHO_T}$CC" >&6
3935 else
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3941 if test -z "$ac_cv_prog_CC"; then
3942 ac_ct_CC=$CC
3943 # Extract the first word of "gcc", so it can be a program name with args.
3944 set dummy gcc; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_CC="gcc"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3964 done
3965 done
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3972 echo "${ECHO_T}$ac_ct_CC" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 CC=$ac_ct_CC
3979 else
3980 CC="$ac_cv_prog_CC"
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}cc; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_CC+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC="${ac_tool_prefix}cc"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 echo "$as_me:$LINENO: result: $CC" >&5
4014 echo "${ECHO_T}$CC" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_CC"; then
4022 ac_ct_CC=$CC
4023 # Extract the first word of "cc", so it can be a program name with args.
4024 set dummy cc; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_CC="cc"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4052 echo "${ECHO_T}$ac_ct_CC" >&6
4053 else
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 CC=$ac_ct_CC
4059 else
4060 CC="$ac_cv_prog_CC"
4064 if test -z "$CC"; then
4065 # Extract the first word of "cc", so it can be a program name with args.
4066 set dummy cc; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_CC+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074 else
4075 ac_prog_rejected=no
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4084 ac_prog_rejected=yes
4085 continue
4087 ac_cv_prog_CC="cc"
4088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4091 done
4092 done
4094 if test $ac_prog_rejected = yes; then
4095 # We found a bogon in the path, so make sure we never use it.
4096 set dummy $ac_cv_prog_CC
4097 shift
4098 if test $# != 0; then
4099 # We chose a different compiler from the bogus one.
4100 # However, it has the same basename, so the bogon will be chosen
4101 # first if we set CC to just the basename; use the full file name.
4102 shift
4103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110 echo "$as_me:$LINENO: result: $CC" >&5
4111 echo "${ECHO_T}$CC" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4118 if test -z "$CC"; then
4119 if test -n "$ac_tool_prefix"; then
4120 for ac_prog in cl
4122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4143 done
4144 done
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150 echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4152 else
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4157 test -n "$CC" && break
4158 done
4160 if test -z "$CC"; then
4161 ac_ct_CC=$CC
4162 for ac_prog in cl
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 if test -n "$ac_ct_CC"; then
4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CC="$ac_prog"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193 echo "${ECHO_T}$ac_ct_CC" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4199 test -n "$ac_ct_CC" && break
4200 done
4202 CC=$ac_ct_CC
4208 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details." >&5
4210 echo "$as_me: error: no acceptable C compiler found in \$PATH
4211 See \`config.log' for more details." >&2;}
4212 { (exit 1); exit 1; }; }
4214 # Provide some information about the compiler.
4215 echo "$as_me:$LINENO:" \
4216 "checking for C compiler version" >&5
4217 ac_compiler=`set X $ac_compile; echo $2`
4218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4219 (eval $ac_compiler --version </dev/null >&5) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4224 (eval $ac_compiler -v </dev/null >&5) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }
4228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4229 (eval $ac_compiler -V </dev/null >&5) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }
4234 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4235 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4236 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 main ()
4249 #ifndef __GNUC__
4250 choke me
4251 #endif
4254 return 0;
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>conftest.er1
4260 ac_status=$?
4261 grep -v '^ *+' conftest.er1 >conftest.err
4262 rm -f conftest.er1
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -z "$ac_c_werror_flag"
4267 || test ! -s conftest.err'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_compiler_gnu=yes
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_compiler_gnu=no
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4290 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4291 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4292 GCC=`test $ac_compiler_gnu = yes && echo yes`
4293 ac_test_CFLAGS=${CFLAGS+set}
4294 ac_save_CFLAGS=$CFLAGS
4295 CFLAGS="-g"
4296 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4297 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4298 if test "${ac_cv_prog_cc_g+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4309 main ()
4313 return 0;
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag"
4326 || test ! -s conftest.err'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_prog_cc_g=yes
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_prog_cc_g=no
4345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4348 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4349 if test "$ac_test_CFLAGS" = set; then
4350 CFLAGS=$ac_save_CFLAGS
4351 elif test $ac_cv_prog_cc_g = yes; then
4352 if test "$GCC" = yes; then
4353 CFLAGS="-g -O2"
4354 else
4355 CFLAGS="-g"
4357 else
4358 if test "$GCC" = yes; then
4359 CFLAGS="-O2"
4360 else
4361 CFLAGS=
4364 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4365 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4366 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 ac_cv_prog_cc_stdc=no
4370 ac_save_CC=$CC
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <stdarg.h>
4378 #include <stdio.h>
4379 #include <sys/types.h>
4380 #include <sys/stat.h>
4381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4382 struct buf { int x; };
4383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4384 static char *e (p, i)
4385 char **p;
4386 int i;
4388 return p[i];
4390 static char *f (char * (*g) (char **, int), char **p, ...)
4392 char *s;
4393 va_list v;
4394 va_start (v,p);
4395 s = g (p, va_arg (v,int));
4396 va_end (v);
4397 return s;
4400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4401 function prototypes and stuff, but not '\xHH' hex character constants.
4402 These don't provoke an error unfortunately, instead are silently treated
4403 as 'x'. The following induces an error, until -std1 is added to get
4404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4405 array size at least. It's necessary to write '\x00'==0 to get something
4406 that's true only with -std1. */
4407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4409 int test (int i, double x);
4410 struct s1 {int (*f) (int a);};
4411 struct s2 {int (*f) (double a);};
4412 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4413 int argc;
4414 char **argv;
4416 main ()
4418 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4420 return 0;
4422 _ACEOF
4423 # Don't try gcc -ansi; that turns off useful extensions and
4424 # breaks some systems' header files.
4425 # AIX -qlanglvl=ansi
4426 # Ultrix and OSF/1 -std1
4427 # HP-UX 10.20 and later -Ae
4428 # HP-UX older versions -Aa -D_HPUX_SOURCE
4429 # SVR4 -Xc -D__EXTENSIONS__
4430 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4432 CC="$ac_save_CC $ac_arg"
4433 rm -f conftest.$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag"
4443 || test ! -s conftest.err'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; } &&
4449 { ac_try='test -s conftest.$ac_objext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_cv_prog_cc_stdc=$ac_arg
4456 break
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4462 rm -f conftest.err conftest.$ac_objext
4463 done
4464 rm -f conftest.$ac_ext conftest.$ac_objext
4465 CC=$ac_save_CC
4469 case "x$ac_cv_prog_cc_stdc" in
4470 x|xno)
4471 echo "$as_me:$LINENO: result: none needed" >&5
4472 echo "${ECHO_T}none needed" >&6 ;;
4474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4475 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4476 CC="$CC $ac_cv_prog_cc_stdc" ;;
4477 esac
4479 # Some people use a C++ compiler to compile C. Since we use `exit',
4480 # in C++ we need to declare it. In case someone uses the same compiler
4481 # for both compiling C and C++ we need to have the C++ compiler decide
4482 # the declaration of exit, since it's the most demanding environment.
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #ifndef __cplusplus
4485 choke me
4486 #endif
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 for ac_declaration in \
4511 '' \
4512 'extern "C" void std::exit (int) throw (); using std::exit;' \
4513 'extern "C" void std::exit (int); using std::exit;' \
4514 'extern "C" void exit (int) throw ();' \
4515 'extern "C" void exit (int);' \
4516 'void exit (int);'
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_declaration
4525 #include <stdlib.h>
4527 main ()
4529 exit (42);
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 continue
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_declaration
4572 main ()
4574 exit (42);
4576 return 0;
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581 (eval $ac_compile) 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag"
4589 || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 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 break
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 done
4609 rm -f conftest*
4610 if test -n "$ac_declaration"; then
4611 echo '#ifdef __cplusplus' >>confdefs.h
4612 echo $ac_declaration >>confdefs.h
4613 echo '#endif' >>confdefs.h
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628 depcc="$CC" am_compiler_list=
4630 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4631 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4632 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4636 # We make a subdir and do the tests there. Otherwise we can end up
4637 # making bogus files that we don't know about and never remove. For
4638 # instance it was reported that on HP-UX the gcc test will end up
4639 # making a dummy file named `D' -- because `-MD' means `put the output
4640 # in D'.
4641 mkdir conftest.dir
4642 # Copy depcomp to subdir because otherwise we won't find it if we're
4643 # using a relative directory.
4644 cp "$am_depcomp" conftest.dir
4645 cd conftest.dir
4646 # We will build objects and dependencies in a subdirectory because
4647 # it helps to detect inapplicable dependency modes. For instance
4648 # both Tru64's cc and ICC support -MD to output dependencies as a
4649 # side effect of compilation, but ICC will put the dependencies in
4650 # the current directory while Tru64 will put them in the object
4651 # directory.
4652 mkdir sub
4654 am_cv_CC_dependencies_compiler_type=none
4655 if test "$am_compiler_list" = ""; then
4656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4666 : > sub/conftest.c
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670 # Solaris 8's {/usr,}/bin/sh.
4671 touch sub/conftst$i.h
4672 done
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4675 case $depmode in
4676 nosideeffect)
4677 # after this tag, mechanisms are not by side-effect, so they'll
4678 # only be used when explicitly requested
4679 if test "x$enable_dependency_tracking" = xyes; then
4680 continue
4681 else
4682 break
4685 none) break ;;
4686 esac
4687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4688 # mode. It turns out that the SunPro C++ compiler does not properly
4689 # handle `-M -o', and we need to detect this.
4690 if depmode=$depmode \
4691 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4692 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4693 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4694 >/dev/null 2>conftest.err &&
4695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698 # icc doesn't choke on unknown options, it will just issue warnings
4699 # or remarks (even with -Werror). So we grep stderr for any message
4700 # that says an option was ignored or not supported.
4701 # When given -MP, icc 7.0 and 7.1 complain thusly:
4702 # icc: Command line warning: ignoring option '-M'; no argument required
4703 # The diagnosis changed in icc 8.0:
4704 # icc: Command line remark: option '-MP' not supported
4705 if (grep 'ignoring option' conftest.err ||
4706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707 am_cv_CC_dependencies_compiler_type=$depmode
4708 break
4711 done
4713 cd ..
4714 rm -rf conftest.dir
4715 else
4716 am_cv_CC_dependencies_compiler_type=none
4720 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4721 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4727 test "x$enable_dependency_tracking" != xno \
4728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4729 am__fastdepCC_TRUE=
4730 am__fastdepCC_FALSE='#'
4731 else
4732 am__fastdepCC_TRUE='#'
4733 am__fastdepCC_FALSE=
4737 # Ralf Wildenhues: With per-target flags we need CC_C_O
4738 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
4739 if test "x$CC" != xcc; then
4740 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4741 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4742 else
4743 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4744 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4746 set dummy $CC; ac_cc=`echo $2 |
4747 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4748 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4759 main ()
4763 return 0;
4765 _ACEOF
4766 # Make sure it works both with $CC and with simple cc.
4767 # We do the test twice because some compilers refuse to overwrite an
4768 # existing .o file with -o, though they will create one.
4769 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4770 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); };
4780 then
4781 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4782 if test "x$CC" != xcc; then
4783 # Test first that cc exists at all.
4784 if { ac_try='cc -c conftest.$ac_ext >&5'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); };
4801 then
4802 # cc works too.
4804 else
4805 # cc exists but doesn't like -o.
4806 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4810 else
4811 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4813 rm -f conftest*
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4817 echo "$as_me:$LINENO: result: yes" >&5
4818 echo "${ECHO_T}yes" >&6
4819 else
4820 echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6
4823 cat >>confdefs.h <<\_ACEOF
4824 #define NO_MINUS_C_MINUS_O 1
4825 _ACEOF
4829 # FIXME: we rely on the cache variable name because
4830 # there is no other way.
4831 set dummy $CC
4832 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4834 # Losing compiler, so override with the script.
4835 # FIXME: It is wrong to rewrite CC.
4836 # But if we don't then we get into trouble of one sort or another.
4837 # A longer-term fix would be to have automake use am__CC in this case,
4838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4839 CC="$am_aux_dir/compile $CC"
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4849 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4850 # On Suns, sometimes $CPP names a directory.
4851 if test -n "$CPP" && test -d "$CPP"; then
4852 CPP=
4854 if test -z "$CPP"; then
4855 if test "${ac_cv_prog_CPP+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 # Double quotes because CPP needs to be expanded
4859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 ac_preproc_ok=false
4862 for ac_c_preproc_warn_flag in '' yes
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881 Syntax error
4882 _ACEOF
4883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_c_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894 else
4895 ac_cpp_err=
4897 else
4898 ac_cpp_err=yes
4900 if test -z "$ac_cpp_err"; then
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 # Broken: fails on valid input.
4907 continue
4909 rm -f conftest.err conftest.$ac_ext
4911 # OK, works on sane cases. Now check whether non-existent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4920 _ACEOF
4921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_c_preproc_warn_flag
4931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4932 else
4933 ac_cpp_err=
4935 else
4936 ac_cpp_err=yes
4938 if test -z "$ac_cpp_err"; then
4939 # Broken: success on invalid input.
4940 continue
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4949 rm -f conftest.err conftest.$ac_ext
4951 done
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then
4955 break
4958 done
4959 ac_cv_prog_CPP=$CPP
4962 CPP=$ac_cv_prog_CPP
4963 else
4964 ac_cv_prog_CPP=$CPP
4966 echo "$as_me:$LINENO: result: $CPP" >&5
4967 echo "${ECHO_T}$CPP" >&6
4968 ac_preproc_ok=false
4969 for ac_c_preproc_warn_flag in '' yes
4971 # Use a header file that comes with gcc, so configuring glibc
4972 # with a fresh cross-compiler works.
4973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974 # <limits.h> exists even on freestanding compilers.
4975 # On the NeXT, cc -E runs the code through the compiler's parser,
4976 # not just through cpp. "Syntax error" is here to catch this case.
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4988 Syntax error
4989 _ACEOF
4990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null; then
4998 if test -s conftest.err; then
4999 ac_cpp_err=$ac_c_preproc_warn_flag
5000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5001 else
5002 ac_cpp_err=
5004 else
5005 ac_cpp_err=yes
5007 if test -z "$ac_cpp_err"; then
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 # Broken: fails on valid input.
5014 continue
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether non-existent headers
5019 # can be detected and how.
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <ac_nonexistent.h>
5027 _ACEOF
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev/null; then
5036 if test -s conftest.err; then
5037 ac_cpp_err=$ac_c_preproc_warn_flag
5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039 else
5040 ac_cpp_err=
5042 else
5043 ac_cpp_err=yes
5045 if test -z "$ac_cpp_err"; then
5046 # Broken: success on invalid input.
5047 continue
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 # Passes both tests.
5053 ac_preproc_ok=:
5054 break
5056 rm -f conftest.err conftest.$ac_ext
5058 done
5059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5060 rm -f conftest.err conftest.$ac_ext
5061 if $ac_preproc_ok; then
5063 else
5064 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5065 See \`config.log' for more details." >&5
5066 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5067 See \`config.log' for more details." >&2;}
5068 { (exit 1); exit 1; }; }
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
5079 case "$host" in
5080 *-*-amigaos)
5081 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
5083 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
5084 case "$GCC" in
5085 yes)
5087 *) CFLAGS="$CFLAGS -Wp,-H18816"
5089 esac
5091 *-pc-cygwin*)
5092 CFLAGS="$CFLAGS -DSYS_CYGWIN32"
5094 i386-sequent-sysv4)
5095 case "$CC" in
5097 CFLAGS="$CFLAGS -Wc,+abi-socket"
5099 esac
5101 *-*-mpeix*)
5102 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
5103 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
5104 LIBS="$LIBS -lcurses"
5106 *-*-solaris*)
5107 # see "man standards".
5108 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
5109 # -D_XOPEN_SOURCE=600 seems OK for c99
5110 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
5111 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
5112 libxnet=-lxnet
5114 esac
5117 echo "$as_me:$LINENO: checking additional compiler flags" >&5
5118 echo $ECHO_N "checking additional compiler flags... $ECHO_C" >&6
5119 if test "${ac_cv_os_cflags+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5123 case "${host_os}" in
5124 irix6* )
5125 case "${CC}" in
5126 cc )
5127 # do not use 64-bit compiler
5128 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
5130 esac
5132 # HMS: am-utils needed this but we don't (apparently)
5133 # osf[[1-3]]* )
5134 # # get the right version of struct sockaddr
5135 # case "${CC}" in
5136 # cc )
5137 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
5138 # ;;
5139 # * )
5140 # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
5141 # ;;
5142 # esac
5143 # ;;
5144 # osf* )
5145 # # get the right version of struct sockaddr
5146 # case "${CC}" in
5147 # cc )
5148 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
5149 # ;;
5150 # * )
5151 # ac_cv_os_cflags="-D_SOCKADDR_LEN"
5152 # ;;
5153 # esac
5154 # ;;
5155 aix[1-3]* )
5156 ac_cv_os_cflags="" ;;
5157 aix4.[0-2]* )
5158 # turn on additional headers
5159 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5161 aix* )
5162 # avoid circular dependencies in yp headers
5163 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5165 OFF-sunos4* )
5166 # make sure passing whole structures is handled in gcc
5167 case "${CC}" in
5168 gcc )
5169 ac_cv_os_cflags="-fpcc-struct-return"
5171 esac
5173 sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
5174 ac_cv_os_cflags="" ;;
5175 solaris* | sunos* )
5176 # turn on 64-bit file offset interface
5177 case "${CC}" in
5179 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
5181 esac
5183 hpux* )
5184 # use Ansi compiler on HPUX
5185 case "${CC}" in
5186 cc )
5187 ac_cv_os_cflags="-Ae"
5189 esac
5191 darwin* | rhapsody* )
5192 ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
5195 ac_cv_os_cflags=""
5197 esac
5200 echo "$as_me:$LINENO: result: $ac_cv_os_cflags" >&5
5201 echo "${ECHO_T}$ac_cv_os_cflags" >&6
5202 CFLAGS="$CFLAGS $ac_cv_os_cflags"
5205 # NTP has (so far) been relying on leading-edge autogen.
5206 # Therefore, by default:
5207 # - use the version we ship with
5208 # - do not install it
5209 # - build a static copy (AC_DISABLE_SHARED - done earlier)
5210 case "${enable_local_libopts+set}" in
5211 set) ;;
5212 *) enable_local_libopts=yes ;;
5213 esac
5214 case "${enable_libopts_install+set}" in
5215 set) ;;
5216 *) enable_libopts_install=no ;;
5217 esac
5219 NEED_LIBOPTS_DIR=''
5221 LIBOPTS_DIR=libopts
5223 # Check whether --enable-local-libopts or --disable-local-libopts was given.
5224 if test "${enable_local_libopts+set}" = set; then
5225 enableval="$enable_local_libopts"
5227 if test x$enableval = xyes ; then
5228 { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
5229 echo "$as_me: Using supplied libopts tearoff" >&6;}
5230 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5231 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5232 NEED_LIBOPTS_DIR=true
5236 # Check whether --enable-libopts-install or --disable-libopts-install was given.
5237 if test "${enable_libopts_install+set}" = set; then
5238 enableval="$enable_libopts_install"
5243 if test "X${enable_libopts_install}" != Xno; then
5244 INSTALL_LIBOPTS_TRUE=
5245 INSTALL_LIBOPTS_FALSE='#'
5246 else
5247 INSTALL_LIBOPTS_TRUE='#'
5248 INSTALL_LIBOPTS_FALSE=
5252 if test -z "${NEED_LIBOPTS_DIR}" ; then
5253 echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
5254 echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
5256 # Check whether --with-autoopts-config or --without-autoopts-config was given.
5257 if test "${with_autoopts_config+set}" = set; then
5258 withval="$with_autoopts_config"
5259 lo_cv_with_autoopts_config=${with_autoopts_config}
5260 else
5261 echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
5262 echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
5263 if test "${lo_cv_with_autoopts_config+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if autoopts-config --help 2>/dev/null 1>&2
5267 then lo_cv_with_autoopts_config=autoopts-config
5268 elif libopts-config --help 2>/dev/null 1>&2
5269 then lo_cv_with_autoopts_config=libopts-config
5270 else lo_cv_with_autoopts_config=no ; fi
5272 echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
5273 echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
5275 fi; # end of AC_ARG_WITH
5277 if test "${lo_cv_test_autoopts+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5281 if test -z "${lo_cv_with_autoopts_config}" \
5282 -o X"${lo_cv_with_autoopts_config}" = Xno
5283 then
5284 if autoopts-config --help 2>/dev/null 1>&2
5285 then lo_cv_with_autoopts_config=autoopts-config
5286 elif libopts-config --help 2>/dev/null 1>&2
5287 then lo_cv_with_autoopts_config=libopts-config
5288 else lo_cv_with_autoopts_config=false ; fi
5290 lo_cv_test_autoopts=`
5291 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
5292 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
5293 then lo_cv_test_autoopts=no ; fi
5296 # end of CACHE_VAL
5297 echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
5298 echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
5300 if test "X${lo_cv_test_autoopts}" != Xno
5301 then
5302 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
5303 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
5304 else
5305 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5306 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5307 NEED_LIBOPTS_DIR=true
5309 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
5313 if test -n "${NEED_LIBOPTS_DIR}"; then
5314 NEED_LIBOPTS_TRUE=
5315 NEED_LIBOPTS_FALSE='#'
5316 else
5317 NEED_LIBOPTS_TRUE='#'
5318 NEED_LIBOPTS_FALSE=
5323 LIBOPTS_DIR=libopts
5325 ac_config_files="$ac_config_files libopts/Makefile"
5329 if test -n "${NEED_LIBOPTS_DIR}" ; then
5332 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
5333 # =================
5334 # AC_HEADER_STDC
5335 # =================
5336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5338 if test "${ac_cv_header_stdc+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <stdlib.h>
5348 #include <stdarg.h>
5349 #include <string.h>
5350 #include <float.h>
5353 main ()
5357 return 0;
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_header_stdc=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 ac_cv_header_stdc=no
5389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <string.h>
5401 _ACEOF
5402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403 $EGREP "memchr" >/dev/null 2>&1; then
5405 else
5406 ac_cv_header_stdc=no
5408 rm -f conftest*
5412 if test $ac_cv_header_stdc = yes; then
5413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <stdlib.h>
5422 _ACEOF
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "free" >/dev/null 2>&1; then
5426 else
5427 ac_cv_header_stdc=no
5429 rm -f conftest*
5433 if test $ac_cv_header_stdc = yes; then
5434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5435 if test "$cross_compiling" = yes; then
5437 else
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <ctype.h>
5445 #if ((' ' & 0x0FF) == 0x020)
5446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5448 #else
5449 # define ISLOWER(c) \
5450 (('a' <= (c) && (c) <= 'i') \
5451 || ('j' <= (c) && (c) <= 'r') \
5452 || ('s' <= (c) && (c) <= 'z'))
5453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5454 #endif
5456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5458 main ()
5460 int i;
5461 for (i = 0; i < 256; i++)
5462 if (XOR (islower (i), ISLOWER (i))
5463 || toupper (i) != TOUPPER (i))
5464 exit(2);
5465 exit (0);
5467 _ACEOF
5468 rm -f conftest$ac_exeext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5480 else
5481 echo "$as_me: program exited with status $ac_status" >&5
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ( exit $ac_status )
5486 ac_cv_header_stdc=no
5488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5494 if test $ac_cv_header_stdc = yes; then
5496 cat >>confdefs.h <<\_ACEOF
5497 #define STDC_HEADERS 1
5498 _ACEOF
5502 # =================
5503 # AC_HEADER_DIRENT
5504 # =================
5510 ac_header_dirent=no
5511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5512 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5513 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5514 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <sys/types.h>
5525 #include <$ac_hdr>
5528 main ()
5530 if ((DIR *) 0)
5531 return 0;
5533 return 0;
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 eval "$as_ac_Header=yes"
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 eval "$as_ac_Header=no"
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5572 _ACEOF
5574 ac_header_dirent=$ac_hdr; break
5577 done
5578 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5579 if test $ac_header_dirent = dirent.h; then
5580 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5581 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5582 if test "${ac_cv_search_opendir+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 ac_func_search_save_LIBS=$LIBS
5586 ac_cv_search_opendir=no
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 #ifdef __cplusplus
5596 extern "C"
5597 #endif
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5600 char opendir ();
5602 main ()
5604 opendir ();
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag"
5619 || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest$ac_exeext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 ac_cv_search_opendir="none required"
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5639 if test "$ac_cv_search_opendir" = no; then
5640 for ac_lib in dir; do
5641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5655 char opendir ();
5657 main ()
5659 opendir ();
5661 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_search_opendir="-l$ac_lib"
5687 break
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5693 rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 done
5697 LIBS=$ac_func_search_save_LIBS
5699 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5700 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5701 if test "$ac_cv_search_opendir" != no; then
5702 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5706 else
5707 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5708 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5709 if test "${ac_cv_search_opendir+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 ac_func_search_save_LIBS=$LIBS
5713 ac_cv_search_opendir=no
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727 char opendir ();
5729 main ()
5731 opendir ();
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_search_opendir="none required"
5759 else
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5764 rm -f conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766 if test "$ac_cv_search_opendir" = no; then
5767 for ac_lib in x; do
5768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h. */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char opendir ();
5784 main ()
5786 opendir ();
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest$ac_exeext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_search_opendir="-l$ac_lib"
5814 break
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 done
5824 LIBS=$ac_func_search_save_LIBS
5826 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5827 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5828 if test "$ac_cv_search_opendir" != no; then
5829 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5836 # =================
5837 # AC_CHECK_HEADERS
5838 # =================
5859 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
5860 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
5861 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
5862 utime.h sysexits.h
5864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866 echo "$as_me:$LINENO: checking for $ac_header" >&5
5867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5873 else
5874 # Is the header compilable?
5875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 #include <$ac_header>
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_header_compiler=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_header_compiler=no
5915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5917 echo "${ECHO_T}$ac_header_compiler" >&6
5919 # Is the header present?
5920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <$ac_header>
5929 _ACEOF
5930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null; then
5938 if test -s conftest.err; then
5939 ac_cpp_err=$ac_c_preproc_warn_flag
5940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5941 else
5942 ac_cpp_err=
5944 else
5945 ac_cpp_err=yes
5947 if test -z "$ac_cpp_err"; then
5948 ac_header_preproc=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5955 rm -f conftest.err conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5957 echo "${ECHO_T}$ac_header_preproc" >&6
5959 # So? What about this header?
5960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5961 yes:no: )
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5966 ac_header_preproc=yes
5968 no:yes:* )
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5982 cat <<\_ASBOX
5983 ## ------------------------------ ##
5984 ## Report this to the ntp lists. ##
5985 ## ------------------------------ ##
5986 _ASBOX
5988 sed "s/^/$as_me: WARNING: /" >&2
5990 esac
5991 echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 eval "$as_ac_Header=\$ac_header_preproc"
5998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6003 cat >>confdefs.h <<_ACEOF
6004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005 _ACEOF
6009 done
6012 # --------------------------------------------
6013 # Verify certain entries from AC_CHECK_HEADERS
6014 # --------------------------------------------
6015 for f in sys_types sys_mman sys_param sys_stat sys_wait \
6016 string errno stdlib memory setjmp
6017 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6018 test "${as_ac_var}" = set || \
6019 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
6020 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
6021 { (exit 1); exit 1; }; }
6022 done
6024 # ================================================
6025 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6026 # if varargs.h is present define HAVE_VARARGS_H.
6027 # ================================================
6030 for ac_header in stdarg.h varargs.h
6032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6041 else
6042 # Is the header compilable?
6043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6052 #include <$ac_header>
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_header_compiler=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_header_compiler=no
6083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6085 echo "${ECHO_T}$ac_header_compiler" >&6
6087 # Is the header present?
6088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <$ac_header>
6097 _ACEOF
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null; then
6106 if test -s conftest.err; then
6107 ac_cpp_err=$ac_c_preproc_warn_flag
6108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6109 else
6110 ac_cpp_err=
6112 else
6113 ac_cpp_err=yes
6115 if test -z "$ac_cpp_err"; then
6116 ac_header_preproc=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_header_preproc=no
6123 rm -f conftest.err conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6125 echo "${ECHO_T}$ac_header_preproc" >&6
6127 # So? What about this header?
6128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6129 yes:no: )
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6134 ac_header_preproc=yes
6136 no:yes:* )
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6150 cat <<\_ASBOX
6151 ## ------------------------------ ##
6152 ## Report this to the ntp lists. ##
6153 ## ------------------------------ ##
6154 _ASBOX
6156 sed "s/^/$as_me: WARNING: /" >&2
6158 esac
6159 echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 eval "$as_ac_Header=\$ac_header_preproc"
6166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF
6174 break
6177 done
6179 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6180 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
6181 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
6182 { (exit 1); exit 1; }; }
6185 # ================================================
6186 # Similarly for the string.h and strings.h headers
6187 # ================================================
6190 for ac_header in string.h strings.h
6192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6194 echo "$as_me:$LINENO: checking for $ac_header" >&5
6195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6201 else
6202 # Is the header compilable?
6203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212 #include <$ac_header>
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216 (eval $ac_compile) 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_c_werror_flag"
6224 || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest.$ac_objext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_header_compiler=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_header_compiler=no
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6245 echo "${ECHO_T}$ac_header_compiler" >&6
6247 # Is the header present?
6248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <$ac_header>
6257 _ACEOF
6258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } >/dev/null; then
6266 if test -s conftest.err; then
6267 ac_cpp_err=$ac_c_preproc_warn_flag
6268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6269 else
6270 ac_cpp_err=
6272 else
6273 ac_cpp_err=yes
6275 if test -z "$ac_cpp_err"; then
6276 ac_header_preproc=yes
6277 else
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_header_preproc=no
6283 rm -f conftest.err conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285 echo "${ECHO_T}$ac_header_preproc" >&6
6287 # So? What about this header?
6288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6289 yes:no: )
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6294 ac_header_preproc=yes
6296 no:yes:* )
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6310 cat <<\_ASBOX
6311 ## ------------------------------ ##
6312 ## Report this to the ntp lists. ##
6313 ## ------------------------------ ##
6314 _ASBOX
6316 sed "s/^/$as_me: WARNING: /" >&2
6318 esac
6319 echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 eval "$as_ac_Header=\$ac_header_preproc"
6326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331 cat >>confdefs.h <<_ACEOF
6332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 _ACEOF
6334 break
6337 done
6339 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6340 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
6341 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
6342 { (exit 1); exit 1; }; }
6345 # =====================
6346 # ...and limits headers
6347 # =====================
6351 for ac_header in limits.h sys/limits.h values.h
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6362 else
6363 # Is the header compilable?
6364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 #include <$ac_header>
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_header_compiler=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_header_compiler=no
6404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6406 echo "${ECHO_T}$ac_header_compiler" >&6
6408 # Is the header present?
6409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <$ac_header>
6418 _ACEOF
6419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } >/dev/null; then
6427 if test -s conftest.err; then
6428 ac_cpp_err=$ac_c_preproc_warn_flag
6429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6430 else
6431 ac_cpp_err=
6433 else
6434 ac_cpp_err=yes
6436 if test -z "$ac_cpp_err"; then
6437 ac_header_preproc=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_preproc=no
6444 rm -f conftest.err conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6446 echo "${ECHO_T}$ac_header_preproc" >&6
6448 # So? What about this header?
6449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6450 yes:no: )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6455 ac_header_preproc=yes
6457 no:yes:* )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6471 cat <<\_ASBOX
6472 ## ------------------------------ ##
6473 ## Report this to the ntp lists. ##
6474 ## ------------------------------ ##
6475 _ASBOX
6477 sed "s/^/$as_me: WARNING: /" >&2
6479 esac
6480 echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 eval "$as_ac_Header=\$ac_header_preproc"
6487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6492 cat >>confdefs.h <<_ACEOF
6493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 _ACEOF
6495 break
6498 done
6500 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6501 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
6502 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
6503 { (exit 1); exit 1; }; }
6506 # ========================
6507 # ...and int types headers
6508 # ========================
6511 for ac_header in stdint.h inttypes.h
6513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 else
6523 # Is the header compilable?
6524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 #include <$ac_header>
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_c_werror_flag"
6545 || test ! -s conftest.err'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_header_compiler=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_header_compiler=no
6564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6566 echo "${ECHO_T}$ac_header_compiler" >&6
6568 # Is the header present?
6569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <$ac_header>
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null; then
6587 if test -s conftest.err; then
6588 ac_cpp_err=$ac_c_preproc_warn_flag
6589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 else
6591 ac_cpp_err=
6593 else
6594 ac_cpp_err=yes
6596 if test -z "$ac_cpp_err"; then
6597 ac_header_preproc=yes
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_header_preproc=no
6604 rm -f conftest.err conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6606 echo "${ECHO_T}$ac_header_preproc" >&6
6608 # So? What about this header?
6609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 yes:no: )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6615 ac_header_preproc=yes
6617 no:yes:* )
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 cat <<\_ASBOX
6632 ## ------------------------------ ##
6633 ## Report this to the ntp lists. ##
6634 ## ------------------------------ ##
6635 _ASBOX
6637 sed "s/^/$as_me: WARNING: /" >&2
6639 esac
6640 echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6655 break
6658 done
6660 echo "$as_me:$LINENO: checking for int8_t" >&5
6661 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
6662 if test "${ac_cv_type_int8_t+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 $ac_includes_default
6673 main ()
6675 if ((int8_t *) 0)
6676 return 0;
6677 if (sizeof (int8_t))
6678 return 0;
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -z "$ac_c_werror_flag"
6693 || test ! -s conftest.err'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_type_int8_t=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 ac_cv_type_int8_t=no
6712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6714 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
6715 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
6716 if test $ac_cv_type_int8_t = yes; then
6718 cat >>confdefs.h <<_ACEOF
6719 #define HAVE_INT8_T 1
6720 _ACEOF
6724 echo "$as_me:$LINENO: checking for uint8_t" >&5
6725 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
6726 if test "${ac_cv_type_uint8_t+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 $ac_includes_default
6737 main ()
6739 if ((uint8_t *) 0)
6740 return 0;
6741 if (sizeof (uint8_t))
6742 return 0;
6744 return 0;
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749 (eval $ac_compile) 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -z "$ac_c_werror_flag"
6757 || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_type_uint8_t=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_type_uint8_t=no
6776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6779 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
6780 if test $ac_cv_type_uint8_t = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_UINT8_T 1
6784 _ACEOF
6788 echo "$as_me:$LINENO: checking for int16_t" >&5
6789 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6790 if test "${ac_cv_type_int16_t+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 $ac_includes_default
6801 main ()
6803 if ((int16_t *) 0)
6804 return 0;
6805 if (sizeof (int16_t))
6806 return 0;
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_type_int16_t=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_type_int16_t=no
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6843 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6844 if test $ac_cv_type_int16_t = yes; then
6846 cat >>confdefs.h <<_ACEOF
6847 #define HAVE_INT16_T 1
6848 _ACEOF
6852 echo "$as_me:$LINENO: checking for uint16_t" >&5
6853 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6854 if test "${ac_cv_type_uint16_t+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 $ac_includes_default
6865 main ()
6867 if ((uint16_t *) 0)
6868 return 0;
6869 if (sizeof (uint16_t))
6870 return 0;
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_type_uint16_t=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 ac_cv_type_uint16_t=no
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6907 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6908 if test $ac_cv_type_uint16_t = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_UINT16_T 1
6912 _ACEOF
6916 echo "$as_me:$LINENO: checking for int32_t" >&5
6917 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6918 if test "${ac_cv_type_int32_t+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6929 main ()
6931 if ((int32_t *) 0)
6932 return 0;
6933 if (sizeof (int32_t))
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_type_int32_t=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_int32_t=no
6968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6971 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6972 if test $ac_cv_type_int32_t = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_INT32_T 1
6976 _ACEOF
6980 echo "$as_me:$LINENO: checking for uint32_t" >&5
6981 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6982 if test "${ac_cv_type_uint32_t+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 $ac_includes_default
6993 main ()
6995 if ((uint32_t *) 0)
6996 return 0;
6997 if (sizeof (uint32_t))
6998 return 0;
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_cv_type_uint32_t=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_type_uint32_t=no
7032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7036 if test $ac_cv_type_uint32_t = yes; then
7038 cat >>confdefs.h <<_ACEOF
7039 #define HAVE_UINT32_T 1
7040 _ACEOF
7044 echo "$as_me:$LINENO: checking for intptr_t" >&5
7045 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
7046 if test "${ac_cv_type_intptr_t+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7057 main ()
7059 if ((intptr_t *) 0)
7060 return 0;
7061 if (sizeof (intptr_t))
7062 return 0;
7064 return 0;
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag"
7077 || test ! -s conftest.err'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest.$ac_objext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_type_intptr_t=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_cv_type_intptr_t=no
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
7099 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
7100 if test $ac_cv_type_intptr_t = yes; then
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_INTPTR_T 1
7104 _ACEOF
7108 echo "$as_me:$LINENO: checking for uint_t" >&5
7109 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
7110 if test "${ac_cv_type_uint_t+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7121 main ()
7123 if ((uint_t *) 0)
7124 return 0;
7125 if (sizeof (uint_t))
7126 return 0;
7128 return 0;
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133 (eval $ac_compile) 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try='test -z "$ac_c_werror_flag"
7141 || test ! -s conftest.err'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; } &&
7147 { ac_try='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_uint_t=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_cv_type_uint_t=no
7160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
7164 if test $ac_cv_type_uint_t = yes; then
7166 cat >>confdefs.h <<_ACEOF
7167 #define HAVE_UINT_T 1
7168 _ACEOF
7174 # ====================
7175 # uintptr type & sizes
7176 # ====================
7177 echo "$as_me:$LINENO: checking for uintptr_t" >&5
7178 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
7179 if test "${ac_cv_type_uintptr_t+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 $ac_includes_default
7190 main ()
7192 if ((uintptr_t *) 0)
7193 return 0;
7194 if (sizeof (uintptr_t))
7195 return 0;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202 (eval $ac_compile) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag"
7210 || test ! -s conftest.err'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest.$ac_objext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_type_uintptr_t=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_cv_type_uintptr_t=no
7229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7231 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7232 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
7233 if test $ac_cv_type_uintptr_t = yes; then
7235 cat >>confdefs.h <<_ACEOF
7236 #define HAVE_UINTPTR_T 1
7237 _ACEOF
7240 else
7242 cat >>confdefs.h <<\_ACEOF
7243 #define uintptr_t unsigned long
7244 _ACEOF
7248 echo "$as_me:$LINENO: checking for char*" >&5
7249 echo $ECHO_N "checking for char*... $ECHO_C" >&6
7250 if test "${ac_cv_type_charp+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7261 main ()
7263 if ((char* *) 0)
7264 return 0;
7265 if (sizeof (char*))
7266 return 0;
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 ac_cv_type_charp=yes
7294 else
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_type_charp=no
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
7303 echo "${ECHO_T}$ac_cv_type_charp" >&6
7305 echo "$as_me:$LINENO: checking size of char*" >&5
7306 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
7307 if test "${ac_cv_sizeof_charp+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 if test "$ac_cv_type_charp" = yes; then
7311 # The cast to unsigned long works around a bug in the HP C Compiler
7312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7314 # This bug is HP SR number 8606223364.
7315 if test "$cross_compiling" = yes; then
7316 # Depending upon the size, compute the lo and hi bounds.
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7325 main ()
7327 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
7328 test_array [0] = 0
7331 return 0;
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_lo=0 ac_mid=0
7357 while :; do
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_includes_default
7366 main ()
7368 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
7369 test_array [0] = 0
7372 return 0;
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_hi=$ac_mid; break
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_lo=`expr $ac_mid + 1`
7403 if test $ac_lo -le $ac_mid; then
7404 ac_lo= ac_hi=
7405 break
7407 ac_mid=`expr 2 '*' $ac_mid + 1`
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 done
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 $ac_includes_default
7423 main ()
7425 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
7426 test_array [0] = 0
7429 return 0;
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_c_werror_flag"
7442 || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 ac_hi=-1 ac_mid=-1
7455 while :; do
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7464 main ()
7466 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
7467 test_array [0] = 0
7470 return 0;
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475 (eval $ac_compile) 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -z "$ac_c_werror_flag"
7483 || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_lo=$ac_mid; break
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_hi=`expr '(' $ac_mid ')' - 1`
7501 if test $ac_mid -le $ac_hi; then
7502 ac_lo= ac_hi=
7503 break
7505 ac_mid=`expr 2 '*' $ac_mid`
7507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508 done
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_lo= ac_hi=
7515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7518 # Binary search between lo and hi bounds.
7519 while test "x$ac_lo" != "x$ac_hi"; do
7520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7529 main ()
7531 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
7532 test_array [0] = 0
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_hi=$ac_mid
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_lo=`expr '(' $ac_mid ')' + 1`
7567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7568 done
7569 case $ac_lo in
7570 ?*) ac_cv_sizeof_charp=$ac_lo;;
7571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
7572 See \`config.log' for more details." >&5
7573 echo "$as_me: error: cannot compute sizeof (char*), 77
7574 See \`config.log' for more details." >&2;}
7575 { (exit 1); exit 1; }; } ;;
7576 esac
7577 else
7578 if test "$cross_compiling" = yes; then
7579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7580 See \`config.log' for more details." >&5
7581 echo "$as_me: error: cannot run test program while cross compiling
7582 See \`config.log' for more details." >&2;}
7583 { (exit 1); exit 1; }; }
7584 else
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 long longval () { return (long) (sizeof (char*)); }
7593 unsigned long ulongval () { return (long) (sizeof (char*)); }
7594 #include <stdio.h>
7595 #include <stdlib.h>
7597 main ()
7600 FILE *f = fopen ("conftest.val", "w");
7601 if (! f)
7602 exit (1);
7603 if (((long) (sizeof (char*))) < 0)
7605 long i = longval ();
7606 if (i != ((long) (sizeof (char*))))
7607 exit (1);
7608 fprintf (f, "%ld\n", i);
7610 else
7612 unsigned long i = ulongval ();
7613 if (i != ((long) (sizeof (char*))))
7614 exit (1);
7615 fprintf (f, "%lu\n", i);
7617 exit (ferror (f) || fclose (f) != 0);
7620 return 0;
7622 _ACEOF
7623 rm -f conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_cv_sizeof_charp=`cat conftest.val`
7635 else
7636 echo "$as_me: program exited with status $ac_status" >&5
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ( exit $ac_status )
7641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
7642 See \`config.log' for more details." >&5
7643 echo "$as_me: error: cannot compute sizeof (char*), 77
7644 See \`config.log' for more details." >&2;}
7645 { (exit 1); exit 1; }; }
7647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7650 rm -f conftest.val
7651 else
7652 ac_cv_sizeof_charp=0
7655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
7656 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
7657 cat >>confdefs.h <<_ACEOF
7658 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7659 _ACEOF
7662 echo "$as_me:$LINENO: checking for int" >&5
7663 echo $ECHO_N "checking for int... $ECHO_C" >&6
7664 if test "${ac_cv_type_int+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7675 main ()
7677 if ((int *) 0)
7678 return 0;
7679 if (sizeof (int))
7680 return 0;
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687 (eval $ac_compile) 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest.$ac_objext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_type_int=yes
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_cv_type_int=no
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7717 echo "${ECHO_T}$ac_cv_type_int" >&6
7719 echo "$as_me:$LINENO: checking size of int" >&5
7720 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7721 if test "${ac_cv_sizeof_int+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 if test "$ac_cv_type_int" = yes; then
7725 # The cast to unsigned long works around a bug in the HP C Compiler
7726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7728 # This bug is HP SR number 8606223364.
7729 if test "$cross_compiling" = yes; then
7730 # Depending upon the size, compute the lo and hi bounds.
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7739 main ()
7741 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7742 test_array [0] = 0
7745 return 0;
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_lo=0 ac_mid=0
7771 while :; do
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 $ac_includes_default
7780 main ()
7782 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7783 test_array [0] = 0
7786 return 0;
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_hi=$ac_mid; break
7812 else
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 ac_lo=`expr $ac_mid + 1`
7817 if test $ac_lo -le $ac_mid; then
7818 ac_lo= ac_hi=
7819 break
7821 ac_mid=`expr 2 '*' $ac_mid + 1`
7823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824 done
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7837 main ()
7839 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7840 test_array [0] = 0
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_hi=-1 ac_mid=-1
7869 while :; do
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7878 main ()
7880 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7881 test_array [0] = 0
7884 return 0;
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_c_werror_flag"
7897 || test ! -s conftest.err'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; } &&
7903 { ac_try='test -s conftest.$ac_objext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_lo=$ac_mid; break
7910 else
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 ac_hi=`expr '(' $ac_mid ')' - 1`
7915 if test $ac_mid -le $ac_hi; then
7916 ac_lo= ac_hi=
7917 break
7919 ac_mid=`expr 2 '*' $ac_mid`
7921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7922 done
7923 else
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_lo= ac_hi=
7929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7932 # Binary search between lo and hi bounds.
7933 while test "x$ac_lo" != "x$ac_hi"; do
7934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7941 $ac_includes_default
7943 main ()
7945 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7946 test_array [0] = 0
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_hi=$ac_mid
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_lo=`expr '(' $ac_mid ')' + 1`
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7982 done
7983 case $ac_lo in
7984 ?*) ac_cv_sizeof_int=$ac_lo;;
7985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7986 See \`config.log' for more details." >&5
7987 echo "$as_me: error: cannot compute sizeof (int), 77
7988 See \`config.log' for more details." >&2;}
7989 { (exit 1); exit 1; }; } ;;
7990 esac
7991 else
7992 if test "$cross_compiling" = yes; then
7993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7994 See \`config.log' for more details." >&5
7995 echo "$as_me: error: cannot run test program while cross compiling
7996 See \`config.log' for more details." >&2;}
7997 { (exit 1); exit 1; }; }
7998 else
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8006 long longval () { return (long) (sizeof (int)); }
8007 unsigned long ulongval () { return (long) (sizeof (int)); }
8008 #include <stdio.h>
8009 #include <stdlib.h>
8011 main ()
8014 FILE *f = fopen ("conftest.val", "w");
8015 if (! f)
8016 exit (1);
8017 if (((long) (sizeof (int))) < 0)
8019 long i = longval ();
8020 if (i != ((long) (sizeof (int))))
8021 exit (1);
8022 fprintf (f, "%ld\n", i);
8024 else
8026 unsigned long i = ulongval ();
8027 if (i != ((long) (sizeof (int))))
8028 exit (1);
8029 fprintf (f, "%lu\n", i);
8031 exit (ferror (f) || fclose (f) != 0);
8034 return 0;
8036 _ACEOF
8037 rm -f conftest$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_sizeof_int=`cat conftest.val`
8049 else
8050 echo "$as_me: program exited with status $ac_status" >&5
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ( exit $ac_status )
8055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8056 See \`config.log' for more details." >&5
8057 echo "$as_me: error: cannot compute sizeof (int), 77
8058 See \`config.log' for more details." >&2;}
8059 { (exit 1); exit 1; }; }
8061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8064 rm -f conftest.val
8065 else
8066 ac_cv_sizeof_int=0
8069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8070 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8071 cat >>confdefs.h <<_ACEOF
8072 #define SIZEOF_INT $ac_cv_sizeof_int
8073 _ACEOF
8076 echo "$as_me:$LINENO: checking for long" >&5
8077 echo $ECHO_N "checking for long... $ECHO_C" >&6
8078 if test "${ac_cv_type_long+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8089 main ()
8091 if ((long *) 0)
8092 return 0;
8093 if (sizeof (long))
8094 return 0;
8096 return 0;
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag"
8109 || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest.$ac_objext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_type_long=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_cv_type_long=no
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8131 echo "${ECHO_T}$ac_cv_type_long" >&6
8133 echo "$as_me:$LINENO: checking size of long" >&5
8134 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8135 if test "${ac_cv_sizeof_long+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 if test "$ac_cv_type_long" = yes; then
8139 # The cast to unsigned long works around a bug in the HP C Compiler
8140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8142 # This bug is HP SR number 8606223364.
8143 if test "$cross_compiling" = yes; then
8144 # Depending upon the size, compute the lo and hi bounds.
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 $ac_includes_default
8153 main ()
8155 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8156 test_array [0] = 0
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8164 (eval $ac_compile) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest.$ac_objext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_lo=0 ac_mid=0
8185 while :; do
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8194 main ()
8196 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8197 test_array [0] = 0
8200 return 0;
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8205 (eval $ac_compile) 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag"
8213 || test ! -s conftest.err'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 (eval $ac_try) 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_hi=$ac_mid; break
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_lo=`expr $ac_mid + 1`
8231 if test $ac_lo -le $ac_mid; then
8232 ac_lo= ac_hi=
8233 break
8235 ac_mid=`expr 2 '*' $ac_mid + 1`
8237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 done
8239 else
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 $ac_includes_default
8251 main ()
8253 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8254 test_array [0] = 0
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_hi=-1 ac_mid=-1
8283 while :; do
8284 cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h. */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8292 main ()
8294 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8295 test_array [0] = 0
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_lo=$ac_mid; break
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_hi=`expr '(' $ac_mid ')' - 1`
8329 if test $ac_mid -le $ac_hi; then
8330 ac_lo= ac_hi=
8331 break
8333 ac_mid=`expr 2 '*' $ac_mid`
8335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8336 done
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_lo= ac_hi=
8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 # Binary search between lo and hi bounds.
8347 while test "x$ac_lo" != "x$ac_hi"; do
8348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8357 main ()
8359 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8360 test_array [0] = 0
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_hi=$ac_mid
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_lo=`expr '(' $ac_mid ')' + 1`
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396 done
8397 case $ac_lo in
8398 ?*) ac_cv_sizeof_long=$ac_lo;;
8399 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8400 See \`config.log' for more details." >&5
8401 echo "$as_me: error: cannot compute sizeof (long), 77
8402 See \`config.log' for more details." >&2;}
8403 { (exit 1); exit 1; }; } ;;
8404 esac
8405 else
8406 if test "$cross_compiling" = yes; then
8407 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8408 See \`config.log' for more details." >&5
8409 echo "$as_me: error: cannot run test program while cross compiling
8410 See \`config.log' for more details." >&2;}
8411 { (exit 1); exit 1; }; }
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 long longval () { return (long) (sizeof (long)); }
8421 unsigned long ulongval () { return (long) (sizeof (long)); }
8422 #include <stdio.h>
8423 #include <stdlib.h>
8425 main ()
8428 FILE *f = fopen ("conftest.val", "w");
8429 if (! f)
8430 exit (1);
8431 if (((long) (sizeof (long))) < 0)
8433 long i = longval ();
8434 if (i != ((long) (sizeof (long))))
8435 exit (1);
8436 fprintf (f, "%ld\n", i);
8438 else
8440 unsigned long i = ulongval ();
8441 if (i != ((long) (sizeof (long))))
8442 exit (1);
8443 fprintf (f, "%lu\n", i);
8445 exit (ferror (f) || fclose (f) != 0);
8448 return 0;
8450 _ACEOF
8451 rm -f conftest$ac_exeext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8453 (eval $ac_link) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_sizeof_long=`cat conftest.val`
8463 else
8464 echo "$as_me: program exited with status $ac_status" >&5
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ( exit $ac_status )
8469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8470 See \`config.log' for more details." >&5
8471 echo "$as_me: error: cannot compute sizeof (long), 77
8472 See \`config.log' for more details." >&2;}
8473 { (exit 1); exit 1; }; }
8475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8478 rm -f conftest.val
8479 else
8480 ac_cv_sizeof_long=0
8483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8484 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8485 cat >>confdefs.h <<_ACEOF
8486 #define SIZEOF_LONG $ac_cv_sizeof_long
8487 _ACEOF
8490 echo "$as_me:$LINENO: checking for short" >&5
8491 echo $ECHO_N "checking for short... $ECHO_C" >&6
8492 if test "${ac_cv_type_short+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8503 main ()
8505 if ((short *) 0)
8506 return 0;
8507 if (sizeof (short))
8508 return 0;
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_type_short=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_type_short=no
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8545 echo "${ECHO_T}$ac_cv_type_short" >&6
8547 echo "$as_me:$LINENO: checking size of short" >&5
8548 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8549 if test "${ac_cv_sizeof_short+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 if test "$ac_cv_type_short" = yes; then
8553 # The cast to unsigned long works around a bug in the HP C Compiler
8554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8556 # This bug is HP SR number 8606223364.
8557 if test "$cross_compiling" = yes; then
8558 # Depending upon the size, compute the lo and hi bounds.
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 $ac_includes_default
8567 main ()
8569 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8570 test_array [0] = 0
8573 return 0;
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_lo=0 ac_mid=0
8599 while :; do
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8608 main ()
8610 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8611 test_array [0] = 0
8614 return 0;
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619 (eval $ac_compile) 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag"
8627 || test ! -s conftest.err'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; } &&
8633 { ac_try='test -s conftest.$ac_objext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_hi=$ac_mid; break
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_lo=`expr $ac_mid + 1`
8645 if test $ac_lo -le $ac_mid; then
8646 ac_lo= ac_hi=
8647 break
8649 ac_mid=`expr 2 '*' $ac_mid + 1`
8651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8652 done
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8665 main ()
8667 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8668 test_array [0] = 0
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676 (eval $ac_compile) 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest.$ac_objext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_hi=-1 ac_mid=-1
8697 while :; do
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8706 main ()
8708 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8709 test_array [0] = 0
8712 return 0;
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717 (eval $ac_compile) 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest.$ac_objext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_lo=$ac_mid; break
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_hi=`expr '(' $ac_mid ')' - 1`
8743 if test $ac_mid -le $ac_hi; then
8744 ac_lo= ac_hi=
8745 break
8747 ac_mid=`expr 2 '*' $ac_mid`
8749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750 done
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_lo= ac_hi=
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 # Binary search between lo and hi bounds.
8761 while test "x$ac_lo" != "x$ac_hi"; do
8762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 $ac_includes_default
8771 main ()
8773 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8774 test_array [0] = 0
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_c_werror_flag"
8790 || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_hi=$ac_mid
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_lo=`expr '(' $ac_mid ')' + 1`
8809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8810 done
8811 case $ac_lo in
8812 ?*) ac_cv_sizeof_short=$ac_lo;;
8813 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8814 See \`config.log' for more details." >&5
8815 echo "$as_me: error: cannot compute sizeof (short), 77
8816 See \`config.log' for more details." >&2;}
8817 { (exit 1); exit 1; }; } ;;
8818 esac
8819 else
8820 if test "$cross_compiling" = yes; then
8821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8822 See \`config.log' for more details." >&5
8823 echo "$as_me: error: cannot run test program while cross compiling
8824 See \`config.log' for more details." >&2;}
8825 { (exit 1); exit 1; }; }
8826 else
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 $ac_includes_default
8834 long longval () { return (long) (sizeof (short)); }
8835 unsigned long ulongval () { return (long) (sizeof (short)); }
8836 #include <stdio.h>
8837 #include <stdlib.h>
8839 main ()
8842 FILE *f = fopen ("conftest.val", "w");
8843 if (! f)
8844 exit (1);
8845 if (((long) (sizeof (short))) < 0)
8847 long i = longval ();
8848 if (i != ((long) (sizeof (short))))
8849 exit (1);
8850 fprintf (f, "%ld\n", i);
8852 else
8854 unsigned long i = ulongval ();
8855 if (i != ((long) (sizeof (short))))
8856 exit (1);
8857 fprintf (f, "%lu\n", i);
8859 exit (ferror (f) || fclose (f) != 0);
8862 return 0;
8864 _ACEOF
8865 rm -f conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_sizeof_short=`cat conftest.val`
8877 else
8878 echo "$as_me: program exited with status $ac_status" >&5
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 ( exit $ac_status )
8883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8884 See \`config.log' for more details." >&5
8885 echo "$as_me: error: cannot compute sizeof (short), 77
8886 See \`config.log' for more details." >&2;}
8887 { (exit 1); exit 1; }; }
8889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8892 rm -f conftest.val
8893 else
8894 ac_cv_sizeof_short=0
8897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8898 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8899 cat >>confdefs.h <<_ACEOF
8900 #define SIZEOF_SHORT $ac_cv_sizeof_short
8901 _ACEOF
8905 # ----------------------------------------------------------------------
8906 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8907 # ----------------------------------------------------------------------
8909 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
8910 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
8911 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 ac_check_lib_save_LIBS=$LIBS
8915 LIBS="-lgen $LIBS"
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8923 /* Override any gcc2 internal prototype to avoid an error. */
8924 #ifdef __cplusplus
8925 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char pathfind ();
8931 main ()
8933 pathfind ();
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_lib_gen_pathfind=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 ac_cv_lib_gen_pathfind=no
8967 rm -f conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8971 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
8972 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
8973 if test $ac_cv_lib_gen_pathfind = yes; then
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_LIBGEN 1
8976 _ACEOF
8978 LIBS="-lgen $LIBS"
8983 for ac_func in vprintf
8985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986 echo "$as_me:$LINENO: checking for $ac_func" >&5
8987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_var+set}\" = set"; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8999 #define $ac_func innocuous_$ac_func
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char $ac_func (); below.
9003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9004 <limits.h> exists even on freestanding compilers. */
9006 #ifdef __STDC__
9007 # include <limits.h>
9008 #else
9009 # include <assert.h>
9010 #endif
9012 #undef $ac_func
9014 /* Override any gcc2 internal prototype to avoid an error. */
9015 #ifdef __cplusplus
9016 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9021 char $ac_func ();
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9026 choke me
9027 #else
9028 char (*f) () = $ac_func;
9029 #endif
9030 #ifdef __cplusplus
9032 #endif
9035 main ()
9037 return f != $ac_func;
9039 return 0;
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -z "$ac_c_werror_flag"
9052 || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 eval "$as_ac_var=yes"
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 eval "$as_ac_var=no"
9071 rm -f conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9076 if test `eval echo '${'$as_ac_var'}'` = yes; then
9077 cat >>confdefs.h <<_ACEOF
9078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9079 _ACEOF
9081 echo "$as_me:$LINENO: checking for _doprnt" >&5
9082 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9083 if test "${ac_cv_func__doprnt+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9094 #define _doprnt innocuous__doprnt
9096 /* System header to define __stub macros and hopefully few prototypes,
9097 which can conflict with char _doprnt (); below.
9098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9099 <limits.h> exists even on freestanding compilers. */
9101 #ifdef __STDC__
9102 # include <limits.h>
9103 #else
9104 # include <assert.h>
9105 #endif
9107 #undef _doprnt
9109 /* Override any gcc2 internal prototype to avoid an error. */
9110 #ifdef __cplusplus
9111 extern "C"
9113 #endif
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9116 char _doprnt ();
9117 /* The GNU C library defines this for functions which it implements
9118 to always fail with ENOSYS. Some functions are actually named
9119 something starting with __ and the normal name is an alias. */
9120 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9121 choke me
9122 #else
9123 char (*f) () = _doprnt;
9124 #endif
9125 #ifdef __cplusplus
9127 #endif
9130 main ()
9132 return f != _doprnt;
9134 return 0;
9136 _ACEOF
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 ac_cv_func__doprnt=yes
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 ac_cv_func__doprnt=no
9166 rm -f conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9170 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9171 if test $ac_cv_func__doprnt = yes; then
9173 cat >>confdefs.h <<\_ACEOF
9174 #define HAVE_DOPRNT 1
9175 _ACEOF
9180 done
9189 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
9191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9205 #define $ac_func innocuous_$ac_func
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char $ac_func (); below.
9209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9210 <limits.h> exists even on freestanding compilers. */
9212 #ifdef __STDC__
9213 # include <limits.h>
9214 #else
9215 # include <assert.h>
9216 #endif
9218 #undef $ac_func
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9224 #endif
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9227 char $ac_func ();
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9232 choke me
9233 #else
9234 char (*f) () = $ac_func;
9235 #endif
9236 #ifdef __cplusplus
9238 #endif
9241 main ()
9243 return f != $ac_func;
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 eval "$as_ac_var=yes"
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 eval "$as_ac_var=no"
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9282 if test `eval echo '${'$as_ac_var'}'` = yes; then
9283 cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9285 _ACEOF
9288 done
9290 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
9292 # Check to see if a reg expr header is specified.
9295 # Check whether --with-regex-header or --without-regex-header was given.
9296 if test "${with_regex_header+set}" = set; then
9297 withval="$with_regex_header"
9298 libopts_cv_with_regex_header=${with_regex_header}
9299 else
9300 echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
9301 echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
9302 if test "${libopts_cv_with_regex_header+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 libopts_cv_with_regex_header=no
9307 echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
9308 echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
9310 fi; # end of AC_ARG_WITH
9312 if test "X${libopts_cv_with_regex_header}" != Xno
9313 then
9314 cat >>confdefs.h <<_ACEOF
9315 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
9316 _ACEOF
9318 else
9320 cat >>confdefs.h <<\_ACEOF
9321 #define REGEX_HEADER <regex.h>
9322 _ACEOF
9328 # Check to see if a working libregex can be found.
9331 # Check whether --with-libregex or --without-libregex was given.
9332 if test "${with_libregex+set}" = set; then
9333 withval="$with_libregex"
9334 libopts_cv_with_libregex_root=${with_libregex}
9335 else
9336 echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
9337 echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
9338 if test "${libopts_cv_with_libregex_root+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 libopts_cv_with_libregex_root=no
9343 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
9344 echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
9346 fi; # end of AC_ARG_WITH libregex
9348 if test "${with_libguile+set}" = set && \
9349 test "${withval}" = no
9350 then ## disabled by request
9351 libopts_cv_with_libregex_root=no
9352 libopts_cv_with_libregex_cflags=no
9353 libopts_cv_with_libregex_libs=no
9354 else
9357 # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
9358 if test "${with_libregex_cflags+set}" = set; then
9359 withval="$with_libregex_cflags"
9360 libopts_cv_with_libregex_cflags=${with_regex_cflags}
9361 else
9362 echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
9363 echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
9364 if test "${libopts_cv_with_libregex_cflags+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 libopts_cv_with_libregex_cflags=no
9369 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
9370 echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
9372 fi; # end of AC_ARG_WITH libregex-cflags
9375 # Check whether --with-libregex-libs or --without-libregex-libs was given.
9376 if test "${with_libregex_libs+set}" = set; then
9377 withval="$with_libregex_libs"
9378 libopts_cv_with_libregex_libs=${with_regex_libs}
9379 else
9380 echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
9381 echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
9382 if test "${libopts_cv_with_libregex_libs+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 libopts_cv_with_libregex_libs=no
9387 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
9388 echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
9390 fi; # end of AC_ARG_WITH libregex-libs
9392 case "X${libopts_cv_with_libregex_cflags}" in
9393 Xyes|Xno|X )
9394 case "X${libopts_cv_with_libregex_root}" in
9395 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
9396 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
9397 esac
9398 esac
9399 case "X${libopts_cv_with_libregex_libs}" in
9400 Xyes|Xno|X )
9401 case "X${libopts_cv_with_libregex_root}" in
9402 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
9403 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
9404 esac
9405 esac
9406 libopts_save_CPPFLAGS="${CPPFLAGS}"
9407 libopts_save_LIBS="${LIBS}"
9408 fi ## disabled by request
9410 case "X${libopts_cv_with_libregex_cflags}" in
9411 Xyes|Xno|X )
9412 libopts_cv_with_libregex_cflags="" ;;
9413 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
9414 esac
9415 case "X${libopts_cv_with_libregex_libs}" in
9416 Xyes|Xno|X )
9417 libopts_cv_with_libregex_libs="" ;;
9419 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
9420 esac
9421 LIBREGEX_CFLAGS=""
9422 LIBREGEX_LIBS=""
9423 echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
9424 echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
9425 if test "${libopts_cv_with_libregex+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9429 if test "$cross_compiling" = yes; then
9430 libopts_cv_with_libregex=no
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <stdio.h>
9439 #include <stdlib.h>
9440 #include <sys/types.h>
9441 #include REGEX_HEADER
9442 static regex_t re;
9443 void comp_re( char const* pzPat ) {
9444 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
9445 if (res == 0) return;
9446 exit( res ); }
9447 int main() {
9448 regmatch_t m[2];
9449 comp_re( "^.*\$" );
9450 comp_re( "()|no.*" );
9451 comp_re( "." );
9452 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
9453 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
9454 fputs( "error: regex -->.<-- did not match\n", stderr );
9455 return 1;
9457 return 0; }
9458 _ACEOF
9459 rm -f conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 libopts_cv_with_libregex=yes
9471 else
9472 echo "$as_me: program exited with status $ac_status" >&5
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ( exit $ac_status )
9477 libopts_cv_with_libregex=no
9479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9480 fi # end of AC_TRY_RUN
9483 # end of AC_CACHE_VAL for libopts_cv_with_libregex
9484 echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
9485 echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
9487 if test "X${libopts_cv_with_libregex}" != Xno
9488 then
9490 cat >>confdefs.h <<\_ACEOF
9491 #define WITH_LIBREGEX 1
9492 _ACEOF
9494 else
9495 CPPFLAGS="${libopts_save_CPPFLAGS}"
9496 LIBS="${libopts_save_LIBS}"
9501 # Check to see if pathfind(3) works.
9503 echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
9504 echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
9505 if test "${libopts_cv_run_pathfind+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9509 if test "$cross_compiling" = yes; then
9510 libopts_cv_run_pathfind=no
9512 else
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 #include <string.h>
9520 #include <stdlib.h>
9521 int main (int argc, char** argv) {
9522 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
9523 return (pz == 0) ? 1 : 0;
9525 _ACEOF
9526 rm -f conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 libopts_cv_run_pathfind=yes
9538 else
9539 echo "$as_me: program exited with status $ac_status" >&5
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ( exit $ac_status )
9544 libopts_cv_run_pathfind=no
9546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9547 fi # end of TRY_RUN
9550 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
9551 echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
9552 echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
9554 if test "X${libopts_cv_run_pathfind}" != Xno
9555 then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PATHFIND 1
9559 _ACEOF
9565 # Check to see if /dev/zero is readable device.
9567 echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
9568 echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
9569 if test "${libopts_cv_test_dev_zero+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9573 libopts_cv_test_dev_zero=`exec 2> /dev/null
9574 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
9575 test -z "${dzero}" && exit 1
9576 echo ${dzero}`
9577 if test $? -ne 0
9578 then libopts_cv_test_dev_zero=no
9579 elif test -z "$libopts_cv_test_dev_zero"
9580 then libopts_cv_test_dev_zero=no
9584 # end of CACHE_VAL of libopts_cv_test_dev_zero
9585 echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
9586 echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
9588 if test "X${libopts_cv_test_dev_zero}" != Xno
9589 then
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_DEV_ZERO 1
9593 _ACEOF
9599 # Check to see if we have a functional realpath(3C).
9601 echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
9602 echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
9603 if test "${libopts_cv_run_realpath+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9607 if test "$cross_compiling" = yes; then
9608 libopts_cv_run_realpath=no
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 #include <limits.h>
9618 #include <stdlib.h>
9619 int main (int argc, char** argv) {
9620 #ifndef PATH_MAX
9621 choke me!!
9622 #else
9623 char zPath[PATH_MAX+1];
9624 #endif
9625 char *pz = realpath(argv[0], zPath);
9626 return (pz == zPath) ? 0 : 1;
9628 _ACEOF
9629 rm -f conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 libopts_cv_run_realpath=yes
9641 else
9642 echo "$as_me: program exited with status $ac_status" >&5
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ( exit $ac_status )
9647 libopts_cv_run_realpath=no
9649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9650 fi # end of TRY_RUN
9653 # end of AC_CACHE_VAL for libopts_cv_run_realpath
9654 echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
9655 echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
9657 if test "X${libopts_cv_run_realpath}" != Xno
9658 then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_REALPATH 1
9662 _ACEOF
9668 # Check to see if strftime() works.
9670 echo "$as_me:$LINENO: checking whether strftime() works" >&5
9671 echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
9672 if test "${libopts_cv_run_strftime+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9676 if test "$cross_compiling" = yes; then
9677 libopts_cv_run_strftime=no
9679 else
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 #include <time.h>
9687 #include <string.h>
9688 char t_buf[ 64 ];
9689 int main() {
9690 static char const z[] = "Thursday Aug 28 240";
9691 struct tm tm;
9692 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
9693 tm.tm_min = 44; /* minutes after the hour [0, 59] */
9694 tm.tm_hour = 12; /* hour since midnight [0, 23] */
9695 tm.tm_mday = 28; /* day of the month [1, 31] */
9696 tm.tm_mon = 7; /* months since January [0, 11] */
9697 tm.tm_year = 86; /* years since 1900 */
9698 tm.tm_wday = 4; /* days since Sunday [0, 6] */
9699 tm.tm_yday = 239; /* days since January 1 [0, 365] */
9700 tm.tm_isdst = 1; /* flag for daylight savings time */
9701 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
9702 return (strcmp( t_buf, z ) != 0); }
9703 _ACEOF
9704 rm -f conftest$ac_exeext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706 (eval $ac_link) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 libopts_cv_run_strftime=yes
9716 else
9717 echo "$as_me: program exited with status $ac_status" >&5
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ( exit $ac_status )
9722 libopts_cv_run_strftime=no
9724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9725 fi # end of TRY_RUN
9728 # end of AC_CACHE_VAL for libopts_cv_run_strftime
9729 echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
9730 echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
9732 if test "X${libopts_cv_run_strftime}" != Xno
9733 then
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_STRFTIME 1
9737 _ACEOF
9743 # Check to see if fopen accepts "b" mode.
9745 echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
9746 echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
9747 if test "${libopts_cv_run_fopen_binary+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9751 if test "$cross_compiling" = yes; then
9752 libopts_cv_run_fopen_binary=no
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 #include <stdio.h>
9762 int main (int argc, char** argv) {
9763 FILE* fp = fopen("conftest.$ac_ext", "rb");
9764 return (fp == NULL) ? 1 : fclose(fp); }
9765 _ACEOF
9766 rm -f conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 libopts_cv_run_fopen_binary=yes
9778 else
9779 echo "$as_me: program exited with status $ac_status" >&5
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ( exit $ac_status )
9784 libopts_cv_run_fopen_binary=no
9786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9787 fi # end of TRY_RUN
9790 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
9791 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
9792 echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
9794 if test "X${libopts_cv_run_fopen_binary}" != Xno
9795 then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define FOPEN_BINARY_FLAG "b"
9799 _ACEOF
9801 else
9803 cat >>confdefs.h <<\_ACEOF
9804 #define FOPEN_BINARY_FLAG ""
9805 _ACEOF
9811 # Check to see if fopen accepts "t" mode.
9813 echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
9814 echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
9815 if test "${libopts_cv_run_fopen_text+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9819 if test "$cross_compiling" = yes; then
9820 libopts_cv_run_fopen_text=no
9822 else
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <stdio.h>
9830 int main (int argc, char** argv) {
9831 FILE* fp = fopen("conftest.$ac_ext", "rt");
9832 return (fp == NULL) ? 1 : fclose(fp); }
9833 _ACEOF
9834 rm -f conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 libopts_cv_run_fopen_text=yes
9846 else
9847 echo "$as_me: program exited with status $ac_status" >&5
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ( exit $ac_status )
9852 libopts_cv_run_fopen_text=no
9854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9855 fi # end of TRY_RUN
9858 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
9859 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
9860 echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
9862 if test "X${libopts_cv_run_fopen_text}" != Xno
9863 then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define FOPEN_TEXT_FLAG "t"
9867 _ACEOF
9869 else
9871 cat >>confdefs.h <<\_ACEOF
9872 #define FOPEN_TEXT_FLAG ""
9873 _ACEOF
9879 # Check to see if not wanting optional option args.
9881 # Check whether --enable-optional-args or --disable-optional-args was given.
9882 if test "${enable_optional_args+set}" = set; then
9883 enableval="$enable_optional_args"
9884 libopts_cv_enable_optional_args=${enable_optional_args}
9885 else
9886 echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
9887 echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
9888 if test "${libopts_cv_enable_optional_args+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 libopts_cv_enable_optional_args=yes
9893 echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
9894 echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
9896 fi; # end of AC_ARG_ENABLE
9898 if test "X${libopts_cv_enable_optional_args}" = Xno
9899 then
9901 cat >>confdefs.h <<\_ACEOF
9902 #define NO_OPTIONAL_OPT_ARGS 1
9903 _ACEOF
9910 else
9912 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
9913 # =================
9914 # AC_HEADER_STDC
9915 # =================
9916 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9918 if test "${ac_cv_header_stdc+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 #include <stdlib.h>
9928 #include <stdarg.h>
9929 #include <string.h>
9930 #include <float.h>
9933 main ()
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_cv_header_stdc=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 ac_cv_header_stdc=no
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9971 if test $ac_cv_header_stdc = yes; then
9972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 #include <string.h>
9981 _ACEOF
9982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9983 $EGREP "memchr" >/dev/null 2>&1; then
9985 else
9986 ac_cv_header_stdc=no
9988 rm -f conftest*
9992 if test $ac_cv_header_stdc = yes; then
9993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <stdlib.h>
10002 _ACEOF
10003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10004 $EGREP "free" >/dev/null 2>&1; then
10006 else
10007 ac_cv_header_stdc=no
10009 rm -f conftest*
10013 if test $ac_cv_header_stdc = yes; then
10014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10015 if test "$cross_compiling" = yes; then
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <ctype.h>
10025 #if ((' ' & 0x0FF) == 0x020)
10026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10028 #else
10029 # define ISLOWER(c) \
10030 (('a' <= (c) && (c) <= 'i') \
10031 || ('j' <= (c) && (c) <= 'r') \
10032 || ('s' <= (c) && (c) <= 'z'))
10033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10034 #endif
10036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10038 main ()
10040 int i;
10041 for (i = 0; i < 256; i++)
10042 if (XOR (islower (i), ISLOWER (i))
10043 || toupper (i) != TOUPPER (i))
10044 exit(2);
10045 exit (0);
10047 _ACEOF
10048 rm -f conftest$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050 (eval $ac_link) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10060 else
10061 echo "$as_me: program exited with status $ac_status" >&5
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ( exit $ac_status )
10066 ac_cv_header_stdc=no
10068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10074 if test $ac_cv_header_stdc = yes; then
10076 cat >>confdefs.h <<\_ACEOF
10077 #define STDC_HEADERS 1
10078 _ACEOF
10082 # =================
10083 # AC_HEADER_DIRENT
10084 # =================
10090 ac_header_dirent=no
10091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10092 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10093 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10094 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <sys/types.h>
10105 #include <$ac_hdr>
10108 main ()
10110 if ((DIR *) 0)
10111 return 0;
10113 return 0;
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
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); }; } &&
10132 { ac_try='test -s conftest.$ac_objext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 eval "$as_ac_Header=yes"
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 eval "$as_ac_Header=no"
10145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10150 cat >>confdefs.h <<_ACEOF
10151 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10152 _ACEOF
10154 ac_header_dirent=$ac_hdr; break
10157 done
10158 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10159 if test $ac_header_dirent = dirent.h; then
10160 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10162 if test "${ac_cv_search_opendir+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 ac_func_search_save_LIBS=$LIBS
10166 ac_cv_search_opendir=no
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10174 /* Override any gcc2 internal prototype to avoid an error. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 /* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180 char opendir ();
10182 main ()
10184 opendir ();
10186 return 0;
10188 _ACEOF
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_search_opendir="none required"
10212 else
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10217 rm -f conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 if test "$ac_cv_search_opendir" = no; then
10220 for ac_lib in dir; do
10221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10229 /* Override any gcc2 internal prototype to avoid an error. */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 /* We use char because int might match the return type of a gcc2
10234 builtin and then its argument prototype would still apply. */
10235 char opendir ();
10237 main ()
10239 opendir ();
10241 return 0;
10243 _ACEOF
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246 (eval $ac_link) 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_cv_search_opendir="-l$ac_lib"
10267 break
10268 else
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10273 rm -f conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 done
10277 LIBS=$ac_func_search_save_LIBS
10279 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10280 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10281 if test "$ac_cv_search_opendir" != no; then
10282 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10286 else
10287 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10289 if test "${ac_cv_search_opendir+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292 ac_func_search_save_LIBS=$LIBS
10293 ac_cv_search_opendir=no
10294 cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h. */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 #ifdef __cplusplus
10303 extern "C"
10304 #endif
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307 char opendir ();
10309 main ()
10311 opendir ();
10313 return 0;
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest$ac_exeext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_cv_search_opendir="none required"
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10344 rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 if test "$ac_cv_search_opendir" = no; then
10347 for ac_lib in x; do
10348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char opendir ();
10364 main ()
10366 opendir ();
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_c_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_search_opendir="-l$ac_lib"
10394 break
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10400 rm -f conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 done
10404 LIBS=$ac_func_search_save_LIBS
10406 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10407 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10408 if test "$ac_cv_search_opendir" != no; then
10409 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10416 # =================
10417 # AC_CHECK_HEADERS
10418 # =================
10439 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
10440 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
10441 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
10442 utime.h sysexits.h
10444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
10447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453 else
10454 # Is the header compilable?
10455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 #include <$ac_header>
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_header_compiler=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_header_compiler=no
10495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 echo "${ECHO_T}$ac_header_compiler" >&6
10499 # Is the header present?
10500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <$ac_header>
10509 _ACEOF
10510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_c_preproc_warn_flag
10520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10521 else
10522 ac_cpp_err=
10524 else
10525 ac_cpp_err=yes
10527 if test -z "$ac_cpp_err"; then
10528 ac_header_preproc=yes
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_header_preproc=no
10535 rm -f conftest.err conftest.$ac_ext
10536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537 echo "${ECHO_T}$ac_header_preproc" >&6
10539 # So? What about this header?
10540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 yes:no: )
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546 ac_header_preproc=yes
10548 no:yes:* )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10562 cat <<\_ASBOX
10563 ## ------------------------------ ##
10564 ## Report this to the ntp lists. ##
10565 ## ------------------------------ ##
10566 _ASBOX
10568 sed "s/^/$as_me: WARNING: /" >&2
10570 esac
10571 echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 eval "$as_ac_Header=\$ac_header_preproc"
10578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585 _ACEOF
10589 done
10592 # --------------------------------------------
10593 # Verify certain entries from AC_CHECK_HEADERS
10594 # --------------------------------------------
10595 for f in sys_types sys_mman sys_param sys_stat sys_wait \
10596 string errno stdlib memory setjmp
10597 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
10598 test "${as_ac_var}" = set || \
10599 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
10600 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
10601 { (exit 1); exit 1; }; }
10602 done
10604 # ================================================
10605 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
10606 # if varargs.h is present define HAVE_VARARGS_H.
10607 # ================================================
10610 for ac_header in stdarg.h varargs.h
10612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10614 echo "$as_me:$LINENO: checking for $ac_header" >&5
10615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10621 else
10622 # Is the header compilable?
10623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <$ac_header>
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_header_compiler=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_header_compiler=no
10663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6
10667 # Is the header present?
10668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <$ac_header>
10677 _ACEOF
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } >/dev/null; then
10686 if test -s conftest.err; then
10687 ac_cpp_err=$ac_c_preproc_warn_flag
10688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10689 else
10690 ac_cpp_err=
10692 else
10693 ac_cpp_err=yes
10695 if test -z "$ac_cpp_err"; then
10696 ac_header_preproc=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_header_preproc=no
10703 rm -f conftest.err conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10705 echo "${ECHO_T}$ac_header_preproc" >&6
10707 # So? What about this header?
10708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10709 yes:no: )
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10714 ac_header_preproc=yes
10716 no:yes:* )
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10730 cat <<\_ASBOX
10731 ## ------------------------------ ##
10732 ## Report this to the ntp lists. ##
10733 ## ------------------------------ ##
10734 _ASBOX
10736 sed "s/^/$as_me: WARNING: /" >&2
10738 esac
10739 echo "$as_me:$LINENO: checking for $ac_header" >&5
10740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 eval "$as_ac_Header=\$ac_header_preproc"
10746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 _ACEOF
10754 break
10757 done
10759 if test `eval echo '${'$as_ac_Header'}'` != yes; then
10760 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
10761 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
10762 { (exit 1); exit 1; }; }
10765 # ================================================
10766 # Similarly for the string.h and strings.h headers
10767 # ================================================
10770 for ac_header in string.h strings.h
10772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo "$as_me:$LINENO: checking for $ac_header" >&5
10775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10781 else
10782 # Is the header compilable?
10783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 $ac_includes_default
10792 #include <$ac_header>
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10796 (eval $ac_compile) 2>conftest.er1
10797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag"
10804 || test ! -s conftest.err'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_header_compiler=yes
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_header_compiler=no
10823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10825 echo "${ECHO_T}$ac_header_compiler" >&6
10827 # Is the header present?
10828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <$ac_header>
10837 _ACEOF
10838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } >/dev/null; then
10846 if test -s conftest.err; then
10847 ac_cpp_err=$ac_c_preproc_warn_flag
10848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10849 else
10850 ac_cpp_err=
10852 else
10853 ac_cpp_err=yes
10855 if test -z "$ac_cpp_err"; then
10856 ac_header_preproc=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_header_preproc=no
10863 rm -f conftest.err conftest.$ac_ext
10864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10865 echo "${ECHO_T}$ac_header_preproc" >&6
10867 # So? What about this header?
10868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10869 yes:no: )
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10874 ac_header_preproc=yes
10876 no:yes:* )
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&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 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10890 cat <<\_ASBOX
10891 ## ------------------------------ ##
10892 ## Report this to the ntp lists. ##
10893 ## ------------------------------ ##
10894 _ASBOX
10896 sed "s/^/$as_me: WARNING: /" >&2
10898 esac
10899 echo "$as_me:$LINENO: checking for $ac_header" >&5
10900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 eval "$as_ac_Header=\$ac_header_preproc"
10906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10914 break
10917 done
10919 if test `eval echo '${'$as_ac_Header'}'` != yes; then
10920 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
10921 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
10922 { (exit 1); exit 1; }; }
10925 # =====================
10926 # ...and limits headers
10927 # =====================
10931 for ac_header in limits.h sys/limits.h values.h
10933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10935 echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10942 else
10943 # Is the header compilable?
10944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 $ac_includes_default
10953 #include <$ac_header>
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_c_werror_flag"
10965 || test ! -s conftest.err'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_header_compiler=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_compiler=no
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10986 echo "${ECHO_T}$ac_header_compiler" >&6
10988 # Is the header present?
10989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <$ac_header>
10998 _ACEOF
10999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev/null; then
11007 if test -s conftest.err; then
11008 ac_cpp_err=$ac_c_preproc_warn_flag
11009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11010 else
11011 ac_cpp_err=
11013 else
11014 ac_cpp_err=yes
11016 if test -z "$ac_cpp_err"; then
11017 ac_header_preproc=yes
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 yes:no: )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11037 no:yes:* )
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11051 cat <<\_ASBOX
11052 ## ------------------------------ ##
11053 ## Report this to the ntp lists. ##
11054 ## ------------------------------ ##
11055 _ASBOX
11057 sed "s/^/$as_me: WARNING: /" >&2
11059 esac
11060 echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 eval "$as_ac_Header=\$ac_header_preproc"
11067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11072 cat >>confdefs.h <<_ACEOF
11073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11074 _ACEOF
11075 break
11078 done
11080 if test `eval echo '${'$as_ac_Header'}'` != yes; then
11081 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
11082 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
11083 { (exit 1); exit 1; }; }
11086 # ========================
11087 # ...and int types headers
11088 # ========================
11091 for ac_header in stdint.h inttypes.h
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11095 echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11102 else
11103 # Is the header compilable?
11104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 $ac_includes_default
11113 #include <$ac_header>
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117 (eval $ac_compile) 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag"
11125 || test ! -s conftest.err'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest.$ac_objext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_header_compiler=yes
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_header_compiler=no
11144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11146 echo "${ECHO_T}$ac_header_compiler" >&6
11148 # Is the header present?
11149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 #include <$ac_header>
11158 _ACEOF
11159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } >/dev/null; then
11167 if test -s conftest.err; then
11168 ac_cpp_err=$ac_c_preproc_warn_flag
11169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11170 else
11171 ac_cpp_err=
11173 else
11174 ac_cpp_err=yes
11176 if test -z "$ac_cpp_err"; then
11177 ac_header_preproc=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ac_header_preproc=no
11184 rm -f conftest.err conftest.$ac_ext
11185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11186 echo "${ECHO_T}$ac_header_preproc" >&6
11188 # So? What about this header?
11189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11190 yes:no: )
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11195 ac_header_preproc=yes
11197 no:yes:* )
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11211 cat <<\_ASBOX
11212 ## ------------------------------ ##
11213 ## Report this to the ntp lists. ##
11214 ## ------------------------------ ##
11215 _ASBOX
11217 sed "s/^/$as_me: WARNING: /" >&2
11219 esac
11220 echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 eval "$as_ac_Header=\$ac_header_preproc"
11227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11234 _ACEOF
11235 break
11238 done
11240 echo "$as_me:$LINENO: checking for int8_t" >&5
11241 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11242 if test "${ac_cv_type_int8_t+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11253 main ()
11255 if ((int8_t *) 0)
11256 return 0;
11257 if (sizeof (int8_t))
11258 return 0;
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag"
11273 || test ! -s conftest.err'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_type_int8_t=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_type_int8_t=no
11292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11295 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11296 if test $ac_cv_type_int8_t = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_INT8_T 1
11300 _ACEOF
11304 echo "$as_me:$LINENO: checking for uint8_t" >&5
11305 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
11306 if test "${ac_cv_type_uint8_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11317 main ()
11319 if ((uint8_t *) 0)
11320 return 0;
11321 if (sizeof (uint8_t))
11322 return 0;
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_cv_type_uint8_t=yes
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_cv_type_uint8_t=no
11356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11359 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
11360 if test $ac_cv_type_uint8_t = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define HAVE_UINT8_T 1
11364 _ACEOF
11368 echo "$as_me:$LINENO: checking for int16_t" >&5
11369 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11370 if test "${ac_cv_type_int16_t+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 $ac_includes_default
11381 main ()
11383 if ((int16_t *) 0)
11384 return 0;
11385 if (sizeof (int16_t))
11386 return 0;
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_type_int16_t=yes
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_cv_type_int16_t=no
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11423 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11424 if test $ac_cv_type_int16_t = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_INT16_T 1
11428 _ACEOF
11432 echo "$as_me:$LINENO: checking for uint16_t" >&5
11433 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
11434 if test "${ac_cv_type_uint16_t+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11445 main ()
11447 if ((uint16_t *) 0)
11448 return 0;
11449 if (sizeof (uint16_t))
11450 return 0;
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11457 (eval $ac_compile) 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_type_uint16_t=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_type_uint16_t=no
11484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11486 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11487 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
11488 if test $ac_cv_type_uint16_t = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_UINT16_T 1
11492 _ACEOF
11496 echo "$as_me:$LINENO: checking for int32_t" >&5
11497 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11498 if test "${ac_cv_type_int32_t+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11509 main ()
11511 if ((int32_t *) 0)
11512 return 0;
11513 if (sizeof (int32_t))
11514 return 0;
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_type_int32_t=yes
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_cv_type_int32_t=no
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11551 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11552 if test $ac_cv_type_int32_t = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define HAVE_INT32_T 1
11556 _ACEOF
11560 echo "$as_me:$LINENO: checking for uint32_t" >&5
11561 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11562 if test "${ac_cv_type_uint32_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11573 main ()
11575 if ((uint32_t *) 0)
11576 return 0;
11577 if (sizeof (uint32_t))
11578 return 0;
11580 return 0;
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest.$ac_objext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_type_uint32_t=yes
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_type_uint32_t=no
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11615 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11616 if test $ac_cv_type_uint32_t = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_UINT32_T 1
11620 _ACEOF
11624 echo "$as_me:$LINENO: checking for intptr_t" >&5
11625 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
11626 if test "${ac_cv_type_intptr_t+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h. */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 $ac_includes_default
11637 main ()
11639 if ((intptr_t *) 0)
11640 return 0;
11641 if (sizeof (intptr_t))
11642 return 0;
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag"
11657 || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_type_intptr_t=yes
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_cv_type_intptr_t=no
11676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11678 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11679 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
11680 if test $ac_cv_type_intptr_t = yes; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define HAVE_INTPTR_T 1
11684 _ACEOF
11688 echo "$as_me:$LINENO: checking for uint_t" >&5
11689 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
11690 if test "${ac_cv_type_uint_t+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11701 main ()
11703 if ((uint_t *) 0)
11704 return 0;
11705 if (sizeof (uint_t))
11706 return 0;
11708 return 0;
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -z "$ac_c_werror_flag"
11721 || test ! -s conftest.err'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest.$ac_objext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_type_uint_t=yes
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_cv_type_uint_t=no
11740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
11743 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
11744 if test $ac_cv_type_uint_t = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define HAVE_UINT_T 1
11748 _ACEOF
11754 # ====================
11755 # uintptr type & sizes
11756 # ====================
11757 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11758 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11759 if test "${ac_cv_type_uintptr_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11770 main ()
11772 if ((uintptr_t *) 0)
11773 return 0;
11774 if (sizeof (uintptr_t))
11775 return 0;
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_uintptr_t=yes
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_type_uintptr_t=no
11809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11813 if test $ac_cv_type_uintptr_t = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_UINTPTR_T 1
11817 _ACEOF
11820 else
11822 cat >>confdefs.h <<\_ACEOF
11823 #define uintptr_t unsigned long
11824 _ACEOF
11828 echo "$as_me:$LINENO: checking for char*" >&5
11829 echo $ECHO_N "checking for char*... $ECHO_C" >&6
11830 if test "${ac_cv_type_charp+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 $ac_includes_default
11841 main ()
11843 if ((char* *) 0)
11844 return 0;
11845 if (sizeof (char*))
11846 return 0;
11848 return 0;
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_type_charp=yes
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_type_charp=no
11880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
11883 echo "${ECHO_T}$ac_cv_type_charp" >&6
11885 echo "$as_me:$LINENO: checking size of char*" >&5
11886 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
11887 if test "${ac_cv_sizeof_charp+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890 if test "$ac_cv_type_charp" = yes; then
11891 # The cast to unsigned long works around a bug in the HP C Compiler
11892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11894 # This bug is HP SR number 8606223364.
11895 if test "$cross_compiling" = yes; then
11896 # Depending upon the size, compute the lo and hi bounds.
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 $ac_includes_default
11905 main ()
11907 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
11908 test_array [0] = 0
11911 return 0;
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest.$ac_objext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_lo=0 ac_mid=0
11937 while :; do
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11946 main ()
11948 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
11949 test_array [0] = 0
11952 return 0;
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11957 (eval $ac_compile) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_hi=$ac_mid; break
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_lo=`expr $ac_mid + 1`
11983 if test $ac_lo -le $ac_mid; then
11984 ac_lo= ac_hi=
11985 break
11987 ac_mid=`expr 2 '*' $ac_mid + 1`
11989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11990 done
11991 else
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12003 main ()
12005 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
12006 test_array [0] = 0
12009 return 0;
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_hi=-1 ac_mid=-1
12035 while :; do
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 $ac_includes_default
12044 main ()
12046 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
12047 test_array [0] = 0
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag"
12063 || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest.$ac_objext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_lo=$ac_mid; break
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_hi=`expr '(' $ac_mid ')' - 1`
12081 if test $ac_mid -le $ac_hi; then
12082 ac_lo= ac_hi=
12083 break
12085 ac_mid=`expr 2 '*' $ac_mid`
12087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12088 done
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_lo= ac_hi=
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12098 # Binary search between lo and hi bounds.
12099 while test "x$ac_lo" != "x$ac_hi"; do
12100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12109 main ()
12111 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
12112 test_array [0] = 0
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_hi=$ac_mid
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_lo=`expr '(' $ac_mid ')' + 1`
12147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12148 done
12149 case $ac_lo in
12150 ?*) ac_cv_sizeof_charp=$ac_lo;;
12151 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
12152 See \`config.log' for more details." >&5
12153 echo "$as_me: error: cannot compute sizeof (char*), 77
12154 See \`config.log' for more details." >&2;}
12155 { (exit 1); exit 1; }; } ;;
12156 esac
12157 else
12158 if test "$cross_compiling" = yes; then
12159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12160 See \`config.log' for more details." >&5
12161 echo "$as_me: error: cannot run test program while cross compiling
12162 See \`config.log' for more details." >&2;}
12163 { (exit 1); exit 1; }; }
12164 else
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 long longval () { return (long) (sizeof (char*)); }
12173 unsigned long ulongval () { return (long) (sizeof (char*)); }
12174 #include <stdio.h>
12175 #include <stdlib.h>
12177 main ()
12180 FILE *f = fopen ("conftest.val", "w");
12181 if (! f)
12182 exit (1);
12183 if (((long) (sizeof (char*))) < 0)
12185 long i = longval ();
12186 if (i != ((long) (sizeof (char*))))
12187 exit (1);
12188 fprintf (f, "%ld\n", i);
12190 else
12192 unsigned long i = ulongval ();
12193 if (i != ((long) (sizeof (char*))))
12194 exit (1);
12195 fprintf (f, "%lu\n", i);
12197 exit (ferror (f) || fclose (f) != 0);
12200 return 0;
12202 _ACEOF
12203 rm -f conftest$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_sizeof_charp=`cat conftest.val`
12215 else
12216 echo "$as_me: program exited with status $ac_status" >&5
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ( exit $ac_status )
12221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
12222 See \`config.log' for more details." >&5
12223 echo "$as_me: error: cannot compute sizeof (char*), 77
12224 See \`config.log' for more details." >&2;}
12225 { (exit 1); exit 1; }; }
12227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12230 rm -f conftest.val
12231 else
12232 ac_cv_sizeof_charp=0
12235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
12236 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
12237 cat >>confdefs.h <<_ACEOF
12238 #define SIZEOF_CHARP $ac_cv_sizeof_charp
12239 _ACEOF
12242 echo "$as_me:$LINENO: checking for int" >&5
12243 echo $ECHO_N "checking for int... $ECHO_C" >&6
12244 if test "${ac_cv_type_int+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 $ac_includes_default
12255 main ()
12257 if ((int *) 0)
12258 return 0;
12259 if (sizeof (int))
12260 return 0;
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_type_int=yes
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_cv_type_int=no
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12297 echo "${ECHO_T}$ac_cv_type_int" >&6
12299 echo "$as_me:$LINENO: checking size of int" >&5
12300 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12301 if test "${ac_cv_sizeof_int+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 if test "$ac_cv_type_int" = yes; then
12305 # The cast to unsigned long works around a bug in the HP C Compiler
12306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12308 # This bug is HP SR number 8606223364.
12309 if test "$cross_compiling" = yes; then
12310 # Depending upon the size, compute the lo and hi bounds.
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 $ac_includes_default
12319 main ()
12321 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12322 test_array [0] = 0
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_lo=0 ac_mid=0
12351 while :; do
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12360 main ()
12362 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12363 test_array [0] = 0
12366 return 0;
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag"
12379 || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_hi=$ac_mid; break
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_lo=`expr $ac_mid + 1`
12397 if test $ac_lo -le $ac_mid; then
12398 ac_lo= ac_hi=
12399 break
12401 ac_mid=`expr 2 '*' $ac_mid + 1`
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12404 done
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 $ac_includes_default
12417 main ()
12419 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12420 test_array [0] = 0
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_hi=-1 ac_mid=-1
12449 while :; do
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12458 main ()
12460 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12461 test_array [0] = 0
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_lo=$ac_mid; break
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_hi=`expr '(' $ac_mid ')' - 1`
12495 if test $ac_mid -le $ac_hi; then
12496 ac_lo= ac_hi=
12497 break
12499 ac_mid=`expr 2 '*' $ac_mid`
12501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12502 done
12503 else
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_lo= ac_hi=
12509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 # Binary search between lo and hi bounds.
12513 while test "x$ac_lo" != "x$ac_hi"; do
12514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 $ac_includes_default
12523 main ()
12525 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12526 test_array [0] = 0
12529 return 0;
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_hi=$ac_mid
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_lo=`expr '(' $ac_mid ')' + 1`
12561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12562 done
12563 case $ac_lo in
12564 ?*) ac_cv_sizeof_int=$ac_lo;;
12565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12566 See \`config.log' for more details." >&5
12567 echo "$as_me: error: cannot compute sizeof (int), 77
12568 See \`config.log' for more details." >&2;}
12569 { (exit 1); exit 1; }; } ;;
12570 esac
12571 else
12572 if test "$cross_compiling" = yes; then
12573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12574 See \`config.log' for more details." >&5
12575 echo "$as_me: error: cannot run test program while cross compiling
12576 See \`config.log' for more details." >&2;}
12577 { (exit 1); exit 1; }; }
12578 else
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 $ac_includes_default
12586 long longval () { return (long) (sizeof (int)); }
12587 unsigned long ulongval () { return (long) (sizeof (int)); }
12588 #include <stdio.h>
12589 #include <stdlib.h>
12591 main ()
12594 FILE *f = fopen ("conftest.val", "w");
12595 if (! f)
12596 exit (1);
12597 if (((long) (sizeof (int))) < 0)
12599 long i = longval ();
12600 if (i != ((long) (sizeof (int))))
12601 exit (1);
12602 fprintf (f, "%ld\n", i);
12604 else
12606 unsigned long i = ulongval ();
12607 if (i != ((long) (sizeof (int))))
12608 exit (1);
12609 fprintf (f, "%lu\n", i);
12611 exit (ferror (f) || fclose (f) != 0);
12614 return 0;
12616 _ACEOF
12617 rm -f conftest$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_sizeof_int=`cat conftest.val`
12629 else
12630 echo "$as_me: program exited with status $ac_status" >&5
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ( exit $ac_status )
12635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12636 See \`config.log' for more details." >&5
12637 echo "$as_me: error: cannot compute sizeof (int), 77
12638 See \`config.log' for more details." >&2;}
12639 { (exit 1); exit 1; }; }
12641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12644 rm -f conftest.val
12645 else
12646 ac_cv_sizeof_int=0
12649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12650 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12651 cat >>confdefs.h <<_ACEOF
12652 #define SIZEOF_INT $ac_cv_sizeof_int
12653 _ACEOF
12656 echo "$as_me:$LINENO: checking for long" >&5
12657 echo $ECHO_N "checking for long... $ECHO_C" >&6
12658 if test "${ac_cv_type_long+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12669 main ()
12671 if ((long *) 0)
12672 return 0;
12673 if (sizeof (long))
12674 return 0;
12676 return 0;
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_type_long=yes
12702 else
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_cv_type_long=no
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12710 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12711 echo "${ECHO_T}$ac_cv_type_long" >&6
12713 echo "$as_me:$LINENO: checking size of long" >&5
12714 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12715 if test "${ac_cv_sizeof_long+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 if test "$ac_cv_type_long" = yes; then
12719 # The cast to unsigned long works around a bug in the HP C Compiler
12720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12722 # This bug is HP SR number 8606223364.
12723 if test "$cross_compiling" = yes; then
12724 # Depending upon the size, compute the lo and hi bounds.
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 $ac_includes_default
12733 main ()
12735 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12736 test_array [0] = 0
12739 return 0;
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_lo=0 ac_mid=0
12765 while :; do
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12774 main ()
12776 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12777 test_array [0] = 0
12780 return 0;
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12785 (eval $ac_compile) 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag"
12793 || test ! -s conftest.err'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest.$ac_objext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_hi=$ac_mid; break
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_lo=`expr $ac_mid + 1`
12811 if test $ac_lo -le $ac_mid; then
12812 ac_lo= ac_hi=
12813 break
12815 ac_mid=`expr 2 '*' $ac_mid + 1`
12817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12818 done
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 $ac_includes_default
12831 main ()
12833 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12834 test_array [0] = 0
12837 return 0;
12839 _ACEOF
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842 (eval $ac_compile) 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag"
12850 || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_hi=-1 ac_mid=-1
12863 while :; do
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12872 main ()
12874 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12875 test_array [0] = 0
12878 return 0;
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>conftest.er1
12884 ac_status=$?
12885 grep -v '^ *+' conftest.er1 >conftest.err
12886 rm -f conftest.er1
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_c_werror_flag"
12891 || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest.$ac_objext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_lo=$ac_mid; break
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_hi=`expr '(' $ac_mid ')' - 1`
12909 if test $ac_mid -le $ac_hi; then
12910 ac_lo= ac_hi=
12911 break
12913 ac_mid=`expr 2 '*' $ac_mid`
12915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12916 done
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_lo= ac_hi=
12923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12926 # Binary search between lo and hi bounds.
12927 while test "x$ac_lo" != "x$ac_hi"; do
12928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 $ac_includes_default
12937 main ()
12939 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12940 test_array [0] = 0
12943 return 0;
12945 _ACEOF
12946 rm -f conftest.$ac_objext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag"
12956 || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest.$ac_objext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_hi=$ac_mid
12969 else
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_lo=`expr '(' $ac_mid ')' + 1`
12975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12976 done
12977 case $ac_lo in
12978 ?*) ac_cv_sizeof_long=$ac_lo;;
12979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12980 See \`config.log' for more details." >&5
12981 echo "$as_me: error: cannot compute sizeof (long), 77
12982 See \`config.log' for more details." >&2;}
12983 { (exit 1); exit 1; }; } ;;
12984 esac
12985 else
12986 if test "$cross_compiling" = yes; then
12987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12988 See \`config.log' for more details." >&5
12989 echo "$as_me: error: cannot run test program while cross compiling
12990 See \`config.log' for more details." >&2;}
12991 { (exit 1); exit 1; }; }
12992 else
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 $ac_includes_default
13000 long longval () { return (long) (sizeof (long)); }
13001 unsigned long ulongval () { return (long) (sizeof (long)); }
13002 #include <stdio.h>
13003 #include <stdlib.h>
13005 main ()
13008 FILE *f = fopen ("conftest.val", "w");
13009 if (! f)
13010 exit (1);
13011 if (((long) (sizeof (long))) < 0)
13013 long i = longval ();
13014 if (i != ((long) (sizeof (long))))
13015 exit (1);
13016 fprintf (f, "%ld\n", i);
13018 else
13020 unsigned long i = ulongval ();
13021 if (i != ((long) (sizeof (long))))
13022 exit (1);
13023 fprintf (f, "%lu\n", i);
13025 exit (ferror (f) || fclose (f) != 0);
13028 return 0;
13030 _ACEOF
13031 rm -f conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_sizeof_long=`cat conftest.val`
13043 else
13044 echo "$as_me: program exited with status $ac_status" >&5
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ( exit $ac_status )
13049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13050 See \`config.log' for more details." >&5
13051 echo "$as_me: error: cannot compute sizeof (long), 77
13052 See \`config.log' for more details." >&2;}
13053 { (exit 1); exit 1; }; }
13055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13058 rm -f conftest.val
13059 else
13060 ac_cv_sizeof_long=0
13063 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13064 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13065 cat >>confdefs.h <<_ACEOF
13066 #define SIZEOF_LONG $ac_cv_sizeof_long
13067 _ACEOF
13070 echo "$as_me:$LINENO: checking for short" >&5
13071 echo $ECHO_N "checking for short... $ECHO_C" >&6
13072 if test "${ac_cv_type_short+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 $ac_includes_default
13083 main ()
13085 if ((short *) 0)
13086 return 0;
13087 if (sizeof (short))
13088 return 0;
13090 return 0;
13092 _ACEOF
13093 rm -f conftest.$ac_objext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_type_short=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_type_short=no
13122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13124 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13125 echo "${ECHO_T}$ac_cv_type_short" >&6
13127 echo "$as_me:$LINENO: checking size of short" >&5
13128 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13129 if test "${ac_cv_sizeof_short+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 if test "$ac_cv_type_short" = yes; then
13133 # The cast to unsigned long works around a bug in the HP C Compiler
13134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13136 # This bug is HP SR number 8606223364.
13137 if test "$cross_compiling" = yes; then
13138 # Depending upon the size, compute the lo and hi bounds.
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 $ac_includes_default
13147 main ()
13149 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13150 test_array [0] = 0
13153 return 0;
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest.$ac_objext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_lo=0 ac_mid=0
13179 while :; do
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 $ac_includes_default
13188 main ()
13190 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13191 test_array [0] = 0
13194 return 0;
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_hi=$ac_mid; break
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_lo=`expr $ac_mid + 1`
13225 if test $ac_lo -le $ac_mid; then
13226 ac_lo= ac_hi=
13227 break
13229 ac_mid=`expr 2 '*' $ac_mid + 1`
13231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232 done
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243 $ac_includes_default
13245 main ()
13247 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13248 test_array [0] = 0
13251 return 0;
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_hi=-1 ac_mid=-1
13277 while :; do
13278 cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 $ac_includes_default
13286 main ()
13288 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13289 test_array [0] = 0
13292 return 0;
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_lo=$ac_mid; break
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_hi=`expr '(' $ac_mid ')' - 1`
13323 if test $ac_mid -le $ac_hi; then
13324 ac_lo= ac_hi=
13325 break
13327 ac_mid=`expr 2 '*' $ac_mid`
13329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 done
13331 else
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 ac_lo= ac_hi=
13337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13340 # Binary search between lo and hi bounds.
13341 while test "x$ac_lo" != "x$ac_hi"; do
13342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13351 main ()
13353 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13354 test_array [0] = 0
13357 return 0;
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362 (eval $ac_compile) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag"
13370 || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_hi=$ac_mid
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_lo=`expr '(' $ac_mid ')' + 1`
13389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13390 done
13391 case $ac_lo in
13392 ?*) ac_cv_sizeof_short=$ac_lo;;
13393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13394 See \`config.log' for more details." >&5
13395 echo "$as_me: error: cannot compute sizeof (short), 77
13396 See \`config.log' for more details." >&2;}
13397 { (exit 1); exit 1; }; } ;;
13398 esac
13399 else
13400 if test "$cross_compiling" = yes; then
13401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13402 See \`config.log' for more details." >&5
13403 echo "$as_me: error: cannot run test program while cross compiling
13404 See \`config.log' for more details." >&2;}
13405 { (exit 1); exit 1; }; }
13406 else
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 long longval () { return (long) (sizeof (short)); }
13415 unsigned long ulongval () { return (long) (sizeof (short)); }
13416 #include <stdio.h>
13417 #include <stdlib.h>
13419 main ()
13422 FILE *f = fopen ("conftest.val", "w");
13423 if (! f)
13424 exit (1);
13425 if (((long) (sizeof (short))) < 0)
13427 long i = longval ();
13428 if (i != ((long) (sizeof (short))))
13429 exit (1);
13430 fprintf (f, "%ld\n", i);
13432 else
13434 unsigned long i = ulongval ();
13435 if (i != ((long) (sizeof (short))))
13436 exit (1);
13437 fprintf (f, "%lu\n", i);
13439 exit (ferror (f) || fclose (f) != 0);
13442 return 0;
13444 _ACEOF
13445 rm -f conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_sizeof_short=`cat conftest.val`
13457 else
13458 echo "$as_me: program exited with status $ac_status" >&5
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ( exit $ac_status )
13463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13464 See \`config.log' for more details." >&5
13465 echo "$as_me: error: cannot compute sizeof (short), 77
13466 See \`config.log' for more details." >&2;}
13467 { (exit 1); exit 1; }; }
13469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13472 rm -f conftest.val
13473 else
13474 ac_cv_sizeof_short=0
13477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13478 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13479 cat >>confdefs.h <<_ACEOF
13480 #define SIZEOF_SHORT $ac_cv_sizeof_short
13481 _ACEOF
13485 # ----------------------------------------------------------------------
13486 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
13487 # ----------------------------------------------------------------------
13489 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
13490 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
13491 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lgen $LIBS"
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13503 /* Override any gcc2 internal prototype to avoid an error. */
13504 #ifdef __cplusplus
13505 extern "C"
13506 #endif
13507 /* We use char because int might match the return type of a gcc2
13508 builtin and then its argument prototype would still apply. */
13509 char pathfind ();
13511 main ()
13513 pathfind ();
13515 return 0;
13517 _ACEOF
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520 (eval $ac_link) 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag"
13528 || test ! -s conftest.err'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; } &&
13534 { ac_try='test -s conftest$ac_exeext'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13540 ac_cv_lib_gen_pathfind=yes
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_cv_lib_gen_pathfind=no
13547 rm -f conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13551 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
13552 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
13553 if test $ac_cv_lib_gen_pathfind = yes; then
13554 cat >>confdefs.h <<_ACEOF
13555 #define HAVE_LIBGEN 1
13556 _ACEOF
13558 LIBS="-lgen $LIBS"
13563 for ac_func in vprintf
13565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13566 echo "$as_me:$LINENO: checking for $ac_func" >&5
13567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13568 if eval "test \"\${$as_ac_var+set}\" = set"; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13579 #define $ac_func innocuous_$ac_func
13581 /* System header to define __stub macros and hopefully few prototypes,
13582 which can conflict with char $ac_func (); below.
13583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13584 <limits.h> exists even on freestanding compilers. */
13586 #ifdef __STDC__
13587 # include <limits.h>
13588 #else
13589 # include <assert.h>
13590 #endif
13592 #undef $ac_func
13594 /* Override any gcc2 internal prototype to avoid an error. */
13595 #ifdef __cplusplus
13596 extern "C"
13598 #endif
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13601 char $ac_func ();
13602 /* The GNU C library defines this for functions which it implements
13603 to always fail with ENOSYS. Some functions are actually named
13604 something starting with __ and the normal name is an alias. */
13605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13606 choke me
13607 #else
13608 char (*f) () = $ac_func;
13609 #endif
13610 #ifdef __cplusplus
13612 #endif
13615 main ()
13617 return f != $ac_func;
13619 return 0;
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624 (eval $ac_link) 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 eval "$as_ac_var=yes"
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 eval "$as_ac_var=no"
13651 rm -f conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13656 if test `eval echo '${'$as_ac_var'}'` = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13659 _ACEOF
13661 echo "$as_me:$LINENO: checking for _doprnt" >&5
13662 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13663 if test "${ac_cv_func__doprnt+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13674 #define _doprnt innocuous__doprnt
13676 /* System header to define __stub macros and hopefully few prototypes,
13677 which can conflict with char _doprnt (); below.
13678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13679 <limits.h> exists even on freestanding compilers. */
13681 #ifdef __STDC__
13682 # include <limits.h>
13683 #else
13684 # include <assert.h>
13685 #endif
13687 #undef _doprnt
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 #ifdef __cplusplus
13691 extern "C"
13693 #endif
13694 /* We use char because int might match the return type of a gcc2
13695 builtin and then its argument prototype would still apply. */
13696 char _doprnt ();
13697 /* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13701 choke me
13702 #else
13703 char (*f) () = _doprnt;
13704 #endif
13705 #ifdef __cplusplus
13707 #endif
13710 main ()
13712 return f != _doprnt;
13714 return 0;
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719 (eval $ac_link) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_cv_func__doprnt=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_cv_func__doprnt=no
13746 rm -f conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13750 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13751 if test $ac_cv_func__doprnt = yes; then
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_DOPRNT 1
13755 _ACEOF
13760 done
13769 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
13771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13772 echo "$as_me:$LINENO: checking for $ac_func" >&5
13773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13774 if eval "test \"\${$as_ac_var+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13785 #define $ac_func innocuous_$ac_func
13787 /* System header to define __stub macros and hopefully few prototypes,
13788 which can conflict with char $ac_func (); below.
13789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13790 <limits.h> exists even on freestanding compilers. */
13792 #ifdef __STDC__
13793 # include <limits.h>
13794 #else
13795 # include <assert.h>
13796 #endif
13798 #undef $ac_func
13800 /* Override any gcc2 internal prototype to avoid an error. */
13801 #ifdef __cplusplus
13802 extern "C"
13804 #endif
13805 /* We use char because int might match the return type of a gcc2
13806 builtin and then its argument prototype would still apply. */
13807 char $ac_func ();
13808 /* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13812 choke me
13813 #else
13814 char (*f) () = $ac_func;
13815 #endif
13816 #ifdef __cplusplus
13818 #endif
13821 main ()
13823 return f != $ac_func;
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 eval "$as_ac_var=yes"
13851 else
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 eval "$as_ac_var=no"
13857 rm -f conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13862 if test `eval echo '${'$as_ac_var'}'` = yes; then
13863 cat >>confdefs.h <<_ACEOF
13864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13865 _ACEOF
13868 done
13870 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
13873 # end of AC_DEFUN of LIBOPTS_CHECK
13876 echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
13877 echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
13878 if test "${ac_cv_cpp_warning+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13890 main ()
13892 #warning foo
13894 return 0;
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_cpp_warning=yes
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_cv_cpp_warning=no
13926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
13931 echo "${ECHO_T}$ac_cv_cpp_warning" >&6
13933 case "$ac_cv_cpp_warning" in
13936 cat >>confdefs.h <<\_ACEOF
13937 #define NO_OPTION_NAME_WARNINGS 1
13938 _ACEOF
13940 esac
13942 case "$GCC" in
13943 yes)
13944 SAVED_CFLAGS_AC="$CFLAGS"
13945 CFLAGS="$CFLAGS -Wstrict-overflow"
13946 echo "$as_me:$LINENO: checking if $CC can handle -Wstrict-overflow" >&5
13947 echo $ECHO_N "checking if $CC can handle -Wstrict-overflow... $ECHO_C" >&6
13948 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13960 main ()
13964 return 0;
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag"
13977 || test ! -s conftest.err'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_gcc_Wstrict_overflow=yes
13990 else
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_cv_gcc_Wstrict_overflow=no
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_cv_gcc_Wstrict_overflow" >&5
14002 echo "${ECHO_T}$ac_cv_gcc_Wstrict_overflow" >&6
14003 CFLAGS="$SAVED_CFLAGS_AC"
14004 unset SAVED_CFLAGS_AC
14006 # $ac_cv_gcc_Wstrict_overflow is tested later to add the
14007 # flag to CFLAGS.
14009 esac
14012 case "$GCC" in
14013 yes)
14014 SAVED_CFLAGS_AC="$CFLAGS"
14015 CFLAGS="$CFLAGS -Winit-self"
14016 echo "$as_me:$LINENO: checking if $CC can handle -Winit-self" >&5
14017 echo $ECHO_N "checking if $CC can handle -Winit-self... $ECHO_C" >&6
14018 if test "${ac_cv_gcc_Winit_self+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14030 main ()
14034 return 0;
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_gcc_Winit_self=yes
14060 else
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_gcc_Winit_self=no
14067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14071 echo "$as_me:$LINENO: result: $ac_cv_gcc_Winit_self" >&5
14072 echo "${ECHO_T}$ac_cv_gcc_Winit_self" >&6
14073 CFLAGS="$SAVED_CFLAGS_AC"
14074 unset SAVED_CFLAGS_AC
14076 # $ac_cv_gcc_Winit_self is tested later to add the
14077 # flag to CFLAGS.
14079 esac
14083 echo "$as_me:$LINENO: checking for bin subdirectory" >&5
14084 echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
14086 # Check whether --with-binsubdir or --without-binsubdir was given.
14087 if test "${with_binsubdir+set}" = set; then
14088 withval="$with_binsubdir"
14089 use_binsubdir="$withval"
14090 else
14091 use_binsubdir="bin"
14094 case "$use_binsubdir" in
14095 bin)
14097 sbin)
14100 { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
14101 echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
14102 { (exit 1); exit 1; }; }
14104 esac
14105 echo "$as_me:$LINENO: result: $use_binsubdir" >&5
14106 echo "${ECHO_T}$use_binsubdir" >&6
14107 BINSUBDIR=$use_binsubdir
14110 echo "$as_me:$LINENO: checking if we want to use arlib" >&5
14111 echo $ECHO_N "checking if we want to use arlib... $ECHO_C" >&6
14113 # Check whether --with-arlib or --without-arlib was given.
14114 if test "${with_arlib+set}" = set; then
14115 withval="$with_arlib"
14116 ans=$withval
14117 else
14118 ans=no
14120 echo "$as_me:$LINENO: result: $ans" >&5
14121 echo "${ECHO_T}$ans" >&6
14123 if test -d $srcdir/arlib
14124 then
14125 case "$ans" in
14126 yes)
14127 ARLIB_DIR=arlib
14130 subdirs="$subdirs arlib"
14133 esac
14138 # Check whether --with-rpath or --without-rpath was given.
14139 if test "${with_rpath+set}" = set; then
14140 withval="$with_rpath"
14141 ans=$withval
14142 else
14143 ans=x
14145 case "$ans" in
14147 need_dash_r=
14149 yes)
14150 need_dash_r=1
14152 esac
14153 # HMS: Why isn't this $build?
14154 # Well, that depends on if we need this for the build toolchain or
14155 # for info in the host executable...
14156 # I still have no idea which way this should go, but nobody has complained.
14157 case "$host" in
14158 *-*-netbsd*)
14159 case "$need_dash_r" in
14160 no) ;;
14161 *) need_dash_r=1
14163 esac
14165 *-*-solaris*)
14166 case "$need_dash_r" in
14167 no) ;;
14168 *) need_dash_r=1
14170 esac
14172 esac
14175 case "$build" in
14176 $host)
14178 *) case "$host" in
14179 *-*-vxworks*)
14180 # Quick and dirty sanity check
14181 case "$VX_KERNEL" in
14182 '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/build/hints/vxworks.html!" >&5
14183 echo "$as_me: error: Please follow the directions in html/build/hints/vxworks.html!" >&2;}
14184 { (exit 1); exit 1; }; }
14186 esac
14187 CFLAGS="$CFLAGS -DSYS_VXWORKS"
14189 esac
14191 esac
14193 for ac_prog in gawk mawk nawk awk
14195 # Extract the first word of "$ac_prog", so it can be a program name with args.
14196 set dummy $ac_prog; ac_word=$2
14197 echo "$as_me:$LINENO: checking for $ac_word" >&5
14198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14199 if test "${ac_cv_prog_AWK+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 if test -n "$AWK"; then
14203 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14204 else
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14208 IFS=$as_save_IFS
14209 test -z "$as_dir" && as_dir=.
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14212 ac_cv_prog_AWK="$ac_prog"
14213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14214 break 2
14216 done
14217 done
14221 AWK=$ac_cv_prog_AWK
14222 if test -n "$AWK"; then
14223 echo "$as_me:$LINENO: result: $AWK" >&5
14224 echo "${ECHO_T}$AWK" >&6
14225 else
14226 echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6
14230 test -n "$AWK" && break
14231 done
14233 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14234 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
14235 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
14236 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
14239 cat >conftest.make <<\_ACEOF
14240 all:
14241 @echo 'ac_maketemp="$(MAKE)"'
14242 _ACEOF
14243 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14244 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
14245 if test -n "$ac_maketemp"; then
14246 eval ac_cv_prog_make_${ac_make}_set=yes
14247 else
14248 eval ac_cv_prog_make_${ac_make}_set=no
14250 rm -f conftest.make
14252 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
14253 echo "$as_me:$LINENO: result: yes" >&5
14254 echo "${ECHO_T}yes" >&6
14255 SET_MAKE=
14256 else
14257 echo "$as_me:$LINENO: result: no" >&5
14258 echo "${ECHO_T}no" >&6
14259 SET_MAKE="MAKE=${MAKE-make}"
14263 rm -f conftest*
14265 case "$GCC" in
14266 yes)
14267 CFLAGS="$CFLAGS -Wall"
14268 # CFLAGS="$CFLAGS -Wcast-align"
14269 CFLAGS="$CFLAGS -Wcast-qual"
14270 # CFLAGS="$CFLAGS -Wconversion"
14271 # CFLAGS="$CFLAGS -Werror"
14272 # CFLAGS="$CFLAGS -Wextra"
14273 # CFLAGS="$CFLAGS -Wfloat-equal"
14274 CFLAGS="$CFLAGS -Wmissing-prototypes"
14275 CFLAGS="$CFLAGS -Wpointer-arith"
14276 CFLAGS="$CFLAGS -Wshadow"
14278 # OpenSSL has a number of callback prototypes
14279 # inside other function prototypes which trigger
14280 # warnings with -Wstrict-prototypes, such as:
14282 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
14283 # int (*cb)(), int sgckey);
14284 # ^^^^^^^^^^^
14286 CFLAGS="$CFLAGS -Wno-strict-prototypes"
14287 # CFLAGS="$CFLAGS -Wtraditional"
14288 # CFLAGS="$CFLAGS -Wwrite-strings"
14289 case "$ac_cv_gcc_Winit_self" in
14290 yes)
14291 CFLAGS="$CFLAGS -Winit-self"
14292 esac
14293 case "$ac_cv_gcc_Wstrict_overflow" in
14294 yes)
14295 #not yet: CFLAGS="$CFLAGS -Wstrict-overflow"
14296 esac
14298 esac
14300 case "$host" in
14301 *-next-nextstep3)
14302 CFLAGS="$CFLAGS -posix"
14304 esac
14306 ac_busted_vpath_in_make=no
14308 case "$build" in
14309 *-*-irix6.1*) # 64 bit only
14310 # busted vpath?
14312 *-*-irix6*) # 6.2 (and later?)
14313 ac_busted_vpath_in_make=yes
14315 *-*-solaris2.5.1)
14316 ac_busted_vpath_in_make=yes
14318 *-*-unicosmp*)
14319 ac_busted_vpath_in_make=yes
14321 esac
14323 case "$ac_busted_vpath_in_make$srcdir" in
14324 no*) ;;
14325 yes.) ;;
14326 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
14328 { { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
14329 echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
14330 { (exit 1); exit 1; }; }
14332 *) ;;
14333 esac
14335 esac
14341 # Check whether --enable-static or --disable-static was given.
14342 if test "${enable_static+set}" = set; then
14343 enableval="$enable_static"
14344 p=${PACKAGE-default}
14345 case $enableval in
14346 yes) enable_static=yes ;;
14347 no) enable_static=no ;;
14349 enable_static=no
14350 # Look at the argument we got. We use all the common list separators.
14351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14352 for pkg in $enableval; do
14353 IFS="$lt_save_ifs"
14354 if test "X$pkg" = "X$p"; then
14355 enable_static=yes
14357 done
14358 IFS="$lt_save_ifs"
14360 esac
14361 else
14362 enable_static=yes
14365 # Check whether --enable-fast-install or --disable-fast-install was given.
14366 if test "${enable_fast_install+set}" = set; then
14367 enableval="$enable_fast_install"
14368 p=${PACKAGE-default}
14369 case $enableval in
14370 yes) enable_fast_install=yes ;;
14371 no) enable_fast_install=no ;;
14373 enable_fast_install=no
14374 # Look at the argument we got. We use all the common list separators.
14375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14376 for pkg in $enableval; do
14377 IFS="$lt_save_ifs"
14378 if test "X$pkg" = "X$p"; then
14379 enable_fast_install=yes
14381 done
14382 IFS="$lt_save_ifs"
14384 esac
14385 else
14386 enable_fast_install=yes
14389 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14390 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14391 if test "${lt_cv_path_SED+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394 # Loop through the user's path and test for sed and gsed.
14395 # Then use that list of sed's as ones to test for truncation.
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14399 IFS=$as_save_IFS
14400 test -z "$as_dir" && as_dir=.
14401 for lt_ac_prog in sed gsed; do
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14404 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14406 done
14407 done
14408 done
14409 lt_ac_max=0
14410 lt_ac_count=0
14411 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14412 # along with /bin/sed that truncates output.
14413 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14414 test ! -f $lt_ac_sed && continue
14415 cat /dev/null > conftest.in
14416 lt_ac_count=0
14417 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14418 # Check for GNU sed and select it if it is found.
14419 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14420 lt_cv_path_SED=$lt_ac_sed
14421 break
14423 while true; do
14424 cat conftest.in conftest.in >conftest.tmp
14425 mv conftest.tmp conftest.in
14426 cp conftest.in conftest.nl
14427 echo >>conftest.nl
14428 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14429 cmp -s conftest.out conftest.nl || break
14430 # 10000 chars as input seems more than enough
14431 test $lt_ac_count -gt 10 && break
14432 lt_ac_count=`expr $lt_ac_count + 1`
14433 if test $lt_ac_count -gt $lt_ac_max; then
14434 lt_ac_max=$lt_ac_count
14435 lt_cv_path_SED=$lt_ac_sed
14437 done
14438 done
14442 SED=$lt_cv_path_SED
14443 echo "$as_me:$LINENO: result: $SED" >&5
14444 echo "${ECHO_T}$SED" >&6
14447 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14448 if test "${with_gnu_ld+set}" = set; then
14449 withval="$with_gnu_ld"
14450 test "$withval" = no || with_gnu_ld=yes
14451 else
14452 with_gnu_ld=no
14454 ac_prog=ld
14455 if test "$GCC" = yes; then
14456 # Check if gcc -print-prog-name=ld gives a path.
14457 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14458 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14459 case $host in
14460 *-*-mingw*)
14461 # gcc leaves a trailing carriage return which upsets mingw
14462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14465 esac
14466 case $ac_prog in
14467 # Accept absolute paths.
14468 [\\/]* | ?:[\\/]*)
14469 re_direlt='/[^/][^/]*/\.\./'
14470 # Canonicalize the pathname of ld
14471 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14473 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14474 done
14475 test -z "$LD" && LD="$ac_prog"
14478 # If it fails, then pretend we aren't using GCC.
14479 ac_prog=ld
14482 # If it is relative, then search for the first ld in PATH.
14483 with_gnu_ld=unknown
14485 esac
14486 elif test "$with_gnu_ld" = yes; then
14487 echo "$as_me:$LINENO: checking for GNU ld" >&5
14488 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14489 else
14490 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14491 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14493 if test "${lt_cv_path_LD+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496 if test -z "$LD"; then
14497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14498 for ac_dir in $PATH; do
14499 IFS="$lt_save_ifs"
14500 test -z "$ac_dir" && ac_dir=.
14501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14502 lt_cv_path_LD="$ac_dir/$ac_prog"
14503 # Check to see if the program is GNU ld. I'd rather use --version,
14504 # but apparently some variants of GNU ld only accept -v.
14505 # Break only if it was the GNU/non-GNU ld that we prefer.
14506 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14507 *GNU* | *'with BFD'*)
14508 test "$with_gnu_ld" != no && break
14511 test "$with_gnu_ld" != yes && break
14513 esac
14515 done
14516 IFS="$lt_save_ifs"
14517 else
14518 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14522 LD="$lt_cv_path_LD"
14523 if test -n "$LD"; then
14524 echo "$as_me:$LINENO: result: $LD" >&5
14525 echo "${ECHO_T}$LD" >&6
14526 else
14527 echo "$as_me:$LINENO: result: no" >&5
14528 echo "${ECHO_T}no" >&6
14530 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14531 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14532 { (exit 1); exit 1; }; }
14533 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14534 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14535 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14539 case `$LD -v 2>&1 </dev/null` in
14540 *GNU* | *'with BFD'*)
14541 lt_cv_prog_gnu_ld=yes
14544 lt_cv_prog_gnu_ld=no
14546 esac
14548 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14549 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14550 with_gnu_ld=$lt_cv_prog_gnu_ld
14553 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14554 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14555 if test "${lt_cv_ld_reload_flag+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 lt_cv_ld_reload_flag='-r'
14560 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14561 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14562 reload_flag=$lt_cv_ld_reload_flag
14563 case $reload_flag in
14564 "" | " "*) ;;
14565 *) reload_flag=" $reload_flag" ;;
14566 esac
14567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14568 case $host_os in
14569 darwin*)
14570 if test "$GCC" = yes; then
14571 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14572 else
14573 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14576 esac
14578 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14579 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14580 if test "${lt_cv_path_NM+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583 if test -n "$NM"; then
14584 # Let the user override the test.
14585 lt_cv_path_NM="$NM"
14586 else
14587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14588 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14589 IFS="$lt_save_ifs"
14590 test -z "$ac_dir" && ac_dir=.
14591 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14593 # Check to see if the nm accepts a BSD-compat flag.
14594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14595 # nm: unknown option "B" ignored
14596 # Tru64's nm complains that /dev/null is an invalid object file
14597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14598 */dev/null* | *'Invalid file or object type'*)
14599 lt_cv_path_NM="$tmp_nm -B"
14600 break
14603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14604 */dev/null*)
14605 lt_cv_path_NM="$tmp_nm -p"
14606 break
14609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14610 continue # so that we can try to find one that supports BSD flags
14612 esac
14613 esac
14615 done
14616 IFS="$lt_save_ifs"
14617 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
14620 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14621 echo "${ECHO_T}$lt_cv_path_NM" >&6
14622 NM="$lt_cv_path_NM"
14624 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14626 LN_S=$as_ln_s
14627 if test "$LN_S" = "ln -s"; then
14628 echo "$as_me:$LINENO: result: yes" >&5
14629 echo "${ECHO_T}yes" >&6
14630 else
14631 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14632 echo "${ECHO_T}no, using $LN_S" >&6
14635 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14636 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14637 if test "${lt_cv_deplibs_check_method+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 lt_cv_file_magic_cmd='$MAGIC_CMD'
14641 lt_cv_file_magic_test_file=
14642 lt_cv_deplibs_check_method='unknown'
14643 # Need to set the preceding variable on all platforms that support
14644 # interlibrary dependencies.
14645 # 'none' -- dependencies not supported.
14646 # `unknown' -- same as none, but documents that we really don't know.
14647 # 'pass_all' -- all dependencies passed with no checks.
14648 # 'test_compile' -- check by making test program.
14649 # 'file_magic [[regex]]' -- check by looking for files in library path
14650 # which responds to the $file_magic_cmd with a given extended regex.
14651 # If you have `file' or equivalent on your system and you're not sure
14652 # whether `pass_all' will *always* work, you probably want this one.
14654 case $host_os in
14655 aix4* | aix5*)
14656 lt_cv_deplibs_check_method=pass_all
14659 beos*)
14660 lt_cv_deplibs_check_method=pass_all
14663 bsdi[45]*)
14664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14665 lt_cv_file_magic_cmd='/usr/bin/file -L'
14666 lt_cv_file_magic_test_file=/shlib/libc.so
14669 cygwin*)
14670 # func_win32_libid is a shell function defined in ltmain.sh
14671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14672 lt_cv_file_magic_cmd='func_win32_libid'
14675 mingw* | pw32*)
14676 # Base MSYS/MinGW do not provide the 'file' command needed by
14677 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14678 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14679 lt_cv_file_magic_cmd='$OBJDUMP -f'
14682 darwin* | rhapsody*)
14683 lt_cv_deplibs_check_method=pass_all
14686 freebsd* | kfreebsd*-gnu | dragonfly*)
14687 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14688 case $host_cpu in
14689 i*86 )
14690 # Not sure whether the presence of OpenBSD here was a mistake.
14691 # Let's accept both of them until this is cleared up.
14692 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14693 lt_cv_file_magic_cmd=/usr/bin/file
14694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14696 esac
14697 else
14698 lt_cv_deplibs_check_method=pass_all
14702 gnu*)
14703 lt_cv_deplibs_check_method=pass_all
14706 hpux10.20* | hpux11*)
14707 lt_cv_file_magic_cmd=/usr/bin/file
14708 case $host_cpu in
14709 ia64*)
14710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14711 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14713 hppa*64*)
14714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
14715 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14718 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14719 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14721 esac
14724 irix5* | irix6* | nonstopux*)
14725 case $LD in
14726 *-32|*"-32 ") libmagic=32-bit;;
14727 *-n32|*"-n32 ") libmagic=N32;;
14728 *-64|*"-64 ") libmagic=64-bit;;
14729 *) libmagic=never-match;;
14730 esac
14731 lt_cv_deplibs_check_method=pass_all
14734 # This must be Linux ELF.
14735 linux*)
14736 lt_cv_deplibs_check_method=pass_all
14739 netbsd*)
14740 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14742 else
14743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14747 newos6*)
14748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14749 lt_cv_file_magic_cmd=/usr/bin/file
14750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14753 nto-qnx*)
14754 lt_cv_deplibs_check_method=unknown
14757 openbsd*)
14758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14760 else
14761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14765 osf3* | osf4* | osf5*)
14766 lt_cv_deplibs_check_method=pass_all
14769 sco3.2v5*)
14770 lt_cv_deplibs_check_method=pass_all
14773 solaris*)
14774 lt_cv_deplibs_check_method=pass_all
14777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14778 case $host_vendor in
14779 motorola)
14780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
14781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14783 ncr)
14784 lt_cv_deplibs_check_method=pass_all
14786 sequent)
14787 lt_cv_file_magic_cmd='/bin/file'
14788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14790 sni)
14791 lt_cv_file_magic_cmd='/bin/file'
14792 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14793 lt_cv_file_magic_test_file=/lib/libc.so
14795 siemens)
14796 lt_cv_deplibs_check_method=pass_all
14798 esac
14801 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14802 lt_cv_deplibs_check_method=pass_all
14804 esac
14807 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14808 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14809 file_magic_cmd=$lt_cv_file_magic_cmd
14810 deplibs_check_method=$lt_cv_deplibs_check_method
14811 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14816 # If no C compiler was specified, use CC.
14817 LTCC=${LTCC-"$CC"}
14819 # Allow CC to be a program name with arguments.
14820 compiler=$CC
14822 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14823 if test "${enable_libtool_lock+set}" = set; then
14824 enableval="$enable_libtool_lock"
14827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14829 # Some flags need to be propagated to the compiler or linker for good
14830 # libtool support.
14831 case $host in
14832 ia64-*-hpux*)
14833 # Find out which ABI we are using.
14834 echo 'int i;' > conftest.$ac_ext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; then
14840 case `/usr/bin/file conftest.$ac_objext` in
14841 *ELF-32*)
14842 HPUX_IA64_MODE="32"
14844 *ELF-64*)
14845 HPUX_IA64_MODE="64"
14847 esac
14849 rm -rf conftest*
14851 *-*-irix6*)
14852 # Find out which ABI we are using.
14853 echo '#line 14853 "configure"' > conftest.$ac_ext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; then
14859 if test "$lt_cv_prog_gnu_ld" = yes; then
14860 case `/usr/bin/file conftest.$ac_objext` in
14861 *32-bit*)
14862 LD="${LD-ld} -melf32bsmip"
14864 *N32*)
14865 LD="${LD-ld} -melf32bmipn32"
14867 *64-bit*)
14868 LD="${LD-ld} -melf64bmip"
14870 esac
14871 else
14872 case `/usr/bin/file conftest.$ac_objext` in
14873 *32-bit*)
14874 LD="${LD-ld} -32"
14876 *N32*)
14877 LD="${LD-ld} -n32"
14879 *64-bit*)
14880 LD="${LD-ld} -64"
14882 esac
14885 rm -rf conftest*
14888 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14889 # Find out which ABI we are using.
14890 echo 'int i;' > conftest.$ac_ext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; then
14896 case `/usr/bin/file conftest.o` in
14897 *32-bit*)
14898 case $host in
14899 x86_64-*linux*)
14900 LD="${LD-ld} -m elf_i386"
14902 ppc64-*linux*|powerpc64-*linux*)
14903 LD="${LD-ld} -m elf32ppclinux"
14905 s390x-*linux*)
14906 LD="${LD-ld} -m elf_s390"
14908 sparc64-*linux*)
14909 LD="${LD-ld} -m elf32_sparc"
14911 esac
14913 *64-bit*)
14914 case $host in
14915 x86_64-*linux*)
14916 LD="${LD-ld} -m elf_x86_64"
14918 ppc*-*linux*|powerpc*-*linux*)
14919 LD="${LD-ld} -m elf64ppc"
14921 s390*-*linux*)
14922 LD="${LD-ld} -m elf64_s390"
14924 sparc*-*linux*)
14925 LD="${LD-ld} -m elf64_sparc"
14927 esac
14929 esac
14931 rm -rf conftest*
14934 *-*-sco3.2v5*)
14935 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14936 SAVE_CFLAGS="$CFLAGS"
14937 CFLAGS="$CFLAGS -belf"
14938 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14939 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14940 if test "${lt_cv_cc_needs_belf+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943 ac_ext=c
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14957 main ()
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag"
14974 || test ! -s conftest.err'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest$ac_exeext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 lt_cv_cc_needs_belf=yes
14987 else
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 lt_cv_cc_needs_belf=no
14993 rm -f conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 ac_ext=c
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15003 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15006 CFLAGS="$SAVE_CFLAGS"
15010 esac
15012 need_locks="$enable_libtool_lock"
15016 for ac_header in dlfcn.h
15018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo "$as_me:$LINENO: checking for $ac_header" >&5
15021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15027 else
15028 # Is the header compilable?
15029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 #include <$ac_header>
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_compiler=no
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <$ac_header>
15083 _ACEOF
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15095 else
15096 ac_cpp_err=
15098 else
15099 ac_cpp_err=yes
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_header_preproc=no
15109 rm -f conftest.err conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15136 cat <<\_ASBOX
15137 ## ------------------------------ ##
15138 ## Report this to the ntp lists. ##
15139 ## ------------------------------ ##
15140 _ASBOX
15142 sed "s/^/$as_me: WARNING: /" >&2
15144 esac
15145 echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 eval "$as_ac_Header=\$ac_header_preproc"
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159 _ACEOF
15163 done
15166 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
15168 # find the maximum length of command line arguments
15169 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
15170 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
15171 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15175 teststring="ABCD"
15177 case $build_os in
15178 msdosdjgpp*)
15179 # On DJGPP, this test can blow up pretty badly due to problems in libc
15180 # (any single argument exceeding 2000 bytes causes a buffer overrun
15181 # during glob expansion). Even if it were fixed, the result of this
15182 # check would be larger than it should be.
15183 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15186 gnu*)
15187 # Under GNU Hurd, this test is not required because there is
15188 # no limit to the length of command line arguments.
15189 # Libtool will interpret -1 as no limit whatsoever
15190 lt_cv_sys_max_cmd_len=-1;
15193 cygwin* | mingw*)
15194 # On Win9x/ME, this test blows up -- it succeeds, but takes
15195 # about 5 minutes as the teststring grows exponentially.
15196 # Worse, since 9x/ME are not pre-emptively multitasking,
15197 # you end up with a "frozen" computer, even though with patience
15198 # the test eventually succeeds (with a max line length of 256k).
15199 # Instead, let's just punt: use the minimum linelength reported by
15200 # all of the supported platforms: 8192 (on NT/2K/XP).
15201 lt_cv_sys_max_cmd_len=8192;
15204 amigaos*)
15205 # On AmigaOS with pdksh, this test takes hours, literally.
15206 # So we just punt and use a minimum line length of 8192.
15207 lt_cv_sys_max_cmd_len=8192;
15210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15211 # This has been around since 386BSD, at least. Likely further.
15212 if test -x /sbin/sysctl; then
15213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15214 elif test -x /usr/sbin/sysctl; then
15215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15216 else
15217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15219 # And add a safety zone
15220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15223 osf*)
15224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15226 # nice to cause kernel panics so lets avoid the loop below.
15227 # First set a reasonable default.
15228 lt_cv_sys_max_cmd_len=16384
15230 if test -x /sbin/sysconfig; then
15231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15233 esac
15237 # If test is not a shell built-in, we'll probably end up computing a
15238 # maximum length that is only half of the actual maximum length, but
15239 # we can't tell.
15240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15241 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
15242 = "XX$teststring") >/dev/null 2>&1 &&
15243 new_result=`expr "X$teststring" : ".*" 2>&1` &&
15244 lt_cv_sys_max_cmd_len=$new_result &&
15245 test $i != 17 # 1/2 MB should be enough
15247 i=`expr $i + 1`
15248 teststring=$teststring$teststring
15249 done
15250 teststring=
15251 # Add a significant safety factor because C++ compilers can tack on massive
15252 # amounts of additional arguments before passing them to the linker.
15253 # It appears as though 1/2 is a usable value.
15254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15256 esac
15260 if test -n $lt_cv_sys_max_cmd_len ; then
15261 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15262 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
15263 else
15264 echo "$as_me:$LINENO: result: none" >&5
15265 echo "${ECHO_T}none" >&6
15271 # Check for command to grab the raw symbol name followed by C symbol from nm.
15272 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15273 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15274 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15278 # These are sane defaults that work on at least a few old systems.
15279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15281 # Character class describing NM global symbol codes.
15282 symcode='[BCDEGRST]'
15284 # Regexp to match symbols that can be accessed directly from C.
15285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15287 # Transform an extracted symbol line into a proper C declaration
15288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
15290 # Transform an extracted symbol line into symbol name and symbol address
15291 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15293 # Define system-specific variables.
15294 case $host_os in
15295 aix*)
15296 symcode='[BCDT]'
15298 cygwin* | mingw* | pw32*)
15299 symcode='[ABCDGISTW]'
15301 hpux*) # Its linker distinguishes data from code symbols
15302 if test "$host_cpu" = ia64; then
15303 symcode='[ABCDEGRST]'
15305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15306 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15308 linux*)
15309 if test "$host_cpu" = ia64; then
15310 symcode='[ABCDGIRSTW]'
15311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15315 irix* | nonstopux*)
15316 symcode='[BCDEGRST]'
15318 osf*)
15319 symcode='[BCDEGQRST]'
15321 solaris* | sysv5*)
15322 symcode='[BDRT]'
15324 sysv4)
15325 symcode='[DFNSTU]'
15327 esac
15329 # Handle CRLF in mingw tool chain
15330 opt_cr=
15331 case $build_os in
15332 mingw*)
15333 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15335 esac
15337 # If we're using GNU nm, then use its standard symbol codes.
15338 case `$NM -V 2>&1` in
15339 *GNU* | *'with BFD'*)
15340 symcode='[ABCDGIRSTW]' ;;
15341 esac
15343 # Try without a prefix undercore, then with it.
15344 for ac_symprfx in "" "_"; do
15346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15347 symxfrm="\\1 $ac_symprfx\\2 \\2"
15349 # Write the raw and C identifiers.
15350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15352 # Check to see that the pipe works correctly.
15353 pipe_works=no
15355 rm -f conftest*
15356 cat > conftest.$ac_ext <<EOF
15357 #ifdef __cplusplus
15358 extern "C" {
15359 #endif
15360 char nm_test_var;
15361 void nm_test_func(){}
15362 #ifdef __cplusplus
15364 #endif
15365 int main(){nm_test_var='a';nm_test_func();return(0);}
15368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369 (eval $ac_compile) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; then
15373 # Now try to grab the symbols.
15374 nlist=conftest.nm
15375 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15376 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && test -s "$nlist"; then
15380 # Try sorting and uniquifying the output.
15381 if sort "$nlist" | uniq > "$nlist"T; then
15382 mv -f "$nlist"T "$nlist"
15383 else
15384 rm -f "$nlist"T
15387 # Make sure that we snagged all the symbols we need.
15388 if grep ' nm_test_var$' "$nlist" >/dev/null; then
15389 if grep ' nm_test_func$' "$nlist" >/dev/null; then
15390 cat <<EOF > conftest.$ac_ext
15391 #ifdef __cplusplus
15392 extern "C" {
15393 #endif
15396 # Now generate the symbol file.
15397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15399 cat <<EOF >> conftest.$ac_ext
15400 #if defined (__STDC__) && __STDC__
15401 # define lt_ptr_t void *
15402 #else
15403 # define lt_ptr_t char *
15404 # define const
15405 #endif
15407 /* The mapping between symbol names and symbols. */
15408 const struct {
15409 const char *name;
15410 lt_ptr_t address;
15412 lt_preloaded_symbols[] =
15415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15416 cat <<\EOF >> conftest.$ac_ext
15417 {0, (lt_ptr_t) 0}
15420 #ifdef __cplusplus
15422 #endif
15424 # Now try linking the two files.
15425 mv conftest.$ac_objext conftstm.$ac_objext
15426 lt_save_LIBS="$LIBS"
15427 lt_save_CFLAGS="$CFLAGS"
15428 LIBS="conftstm.$ac_objext"
15429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15435 pipe_works=yes
15437 LIBS="$lt_save_LIBS"
15438 CFLAGS="$lt_save_CFLAGS"
15439 else
15440 echo "cannot find nm_test_func in $nlist" >&5
15442 else
15443 echo "cannot find nm_test_var in $nlist" >&5
15445 else
15446 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15448 else
15449 echo "$progname: failed program was:" >&5
15450 cat conftest.$ac_ext >&5
15452 rm -f conftest* conftst*
15454 # Do not use the global_symbol_pipe unless it works.
15455 if test "$pipe_works" = yes; then
15456 break
15457 else
15458 lt_cv_sys_global_symbol_pipe=
15460 done
15464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15465 lt_cv_sys_global_symbol_to_cdecl=
15467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15468 echo "$as_me:$LINENO: result: failed" >&5
15469 echo "${ECHO_T}failed" >&6
15470 else
15471 echo "$as_me:$LINENO: result: ok" >&5
15472 echo "${ECHO_T}ok" >&6
15475 echo "$as_me:$LINENO: checking for objdir" >&5
15476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15477 if test "${lt_cv_objdir+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480 rm -f .libs 2>/dev/null
15481 mkdir .libs 2>/dev/null
15482 if test -d .libs; then
15483 lt_cv_objdir=.libs
15484 else
15485 # MS-DOS does not allow filenames that begin with a dot.
15486 lt_cv_objdir=_libs
15488 rmdir .libs 2>/dev/null
15490 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15491 echo "${ECHO_T}$lt_cv_objdir" >&6
15492 objdir=$lt_cv_objdir
15498 case $host_os in
15499 aix3*)
15500 # AIX sometimes has problems with the GCC collect2 program. For some
15501 # reason, if we set the COLLECT_NAMES environment variable, the problems
15502 # vanish in a puff of smoke.
15503 if test "X${COLLECT_NAMES+set}" != Xset; then
15504 COLLECT_NAMES=
15505 export COLLECT_NAMES
15508 esac
15510 # Sed substitution that helps us do robust quoting. It backslashifies
15511 # metacharacters that are still active within double-quoted strings.
15512 Xsed='sed -e 1s/^X//'
15513 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15515 # Same as above, but do not quote variable references.
15516 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15518 # Sed substitution to delay expansion of an escaped shell variable in a
15519 # double_quote_subst'ed string.
15520 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15522 # Sed substitution to avoid accidental globbing in evaled expressions
15523 no_glob_subst='s/\*/\\\*/g'
15525 # Constants:
15526 rm="rm -f"
15528 # Global variables:
15529 default_ofile=libtool
15530 can_build_shared=yes
15532 # All known linkers require a `.a' archive for static linking (except MSVC,
15533 # which needs '.lib').
15534 libext=a
15535 ltmain="$ac_aux_dir/ltmain.sh"
15536 ofile="$default_ofile"
15537 with_gnu_ld="$lt_cv_prog_gnu_ld"
15539 if test -n "$ac_tool_prefix"; then
15540 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15541 set dummy ${ac_tool_prefix}ar; ac_word=$2
15542 echo "$as_me:$LINENO: checking for $ac_word" >&5
15543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15544 if test "${ac_cv_prog_AR+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547 if test -n "$AR"; then
15548 ac_cv_prog_AR="$AR" # Let the user override the test.
15549 else
15550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551 for as_dir in $PATH
15553 IFS=$as_save_IFS
15554 test -z "$as_dir" && as_dir=.
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15557 ac_cv_prog_AR="${ac_tool_prefix}ar"
15558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15559 break 2
15561 done
15562 done
15566 AR=$ac_cv_prog_AR
15567 if test -n "$AR"; then
15568 echo "$as_me:$LINENO: result: $AR" >&5
15569 echo "${ECHO_T}$AR" >&6
15570 else
15571 echo "$as_me:$LINENO: result: no" >&5
15572 echo "${ECHO_T}no" >&6
15576 if test -z "$ac_cv_prog_AR"; then
15577 ac_ct_AR=$AR
15578 # Extract the first word of "ar", so it can be a program name with args.
15579 set dummy ar; ac_word=$2
15580 echo "$as_me:$LINENO: checking for $ac_word" >&5
15581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15582 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 if test -n "$ac_ct_AR"; then
15586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15587 else
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15591 IFS=$as_save_IFS
15592 test -z "$as_dir" && as_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595 ac_cv_prog_ac_ct_AR="ar"
15596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15597 break 2
15599 done
15600 done
15602 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15606 if test -n "$ac_ct_AR"; then
15607 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15608 echo "${ECHO_T}$ac_ct_AR" >&6
15609 else
15610 echo "$as_me:$LINENO: result: no" >&5
15611 echo "${ECHO_T}no" >&6
15614 AR=$ac_ct_AR
15615 else
15616 AR="$ac_cv_prog_AR"
15619 if test -n "$ac_tool_prefix"; then
15620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15622 echo "$as_me:$LINENO: checking for $ac_word" >&5
15623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15624 if test "${ac_cv_prog_RANLIB+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627 if test -n "$RANLIB"; then
15628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15629 else
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15633 IFS=$as_save_IFS
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15639 break 2
15641 done
15642 done
15646 RANLIB=$ac_cv_prog_RANLIB
15647 if test -n "$RANLIB"; then
15648 echo "$as_me:$LINENO: result: $RANLIB" >&5
15649 echo "${ECHO_T}$RANLIB" >&6
15650 else
15651 echo "$as_me:$LINENO: result: no" >&5
15652 echo "${ECHO_T}no" >&6
15656 if test -z "$ac_cv_prog_RANLIB"; then
15657 ac_ct_RANLIB=$RANLIB
15658 # Extract the first word of "ranlib", so it can be a program name with args.
15659 set dummy ranlib; ac_word=$2
15660 echo "$as_me:$LINENO: checking for $ac_word" >&5
15661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 if test -n "$ac_ct_RANLIB"; then
15666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15667 else
15668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15671 IFS=$as_save_IFS
15672 test -z "$as_dir" && as_dir=.
15673 for ac_exec_ext in '' $ac_executable_extensions; do
15674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15675 ac_cv_prog_ac_ct_RANLIB="ranlib"
15676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15677 break 2
15679 done
15680 done
15682 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15686 if test -n "$ac_ct_RANLIB"; then
15687 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15688 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15689 else
15690 echo "$as_me:$LINENO: result: no" >&5
15691 echo "${ECHO_T}no" >&6
15694 RANLIB=$ac_ct_RANLIB
15695 else
15696 RANLIB="$ac_cv_prog_RANLIB"
15699 if test -n "$ac_tool_prefix"; then
15700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15701 set dummy ${ac_tool_prefix}strip; ac_word=$2
15702 echo "$as_me:$LINENO: checking for $ac_word" >&5
15703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15704 if test "${ac_cv_prog_STRIP+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707 if test -n "$STRIP"; then
15708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15709 else
15710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15711 for as_dir in $PATH
15713 IFS=$as_save_IFS
15714 test -z "$as_dir" && as_dir=.
15715 for ac_exec_ext in '' $ac_executable_extensions; do
15716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15719 break 2
15721 done
15722 done
15726 STRIP=$ac_cv_prog_STRIP
15727 if test -n "$STRIP"; then
15728 echo "$as_me:$LINENO: result: $STRIP" >&5
15729 echo "${ECHO_T}$STRIP" >&6
15730 else
15731 echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6
15736 if test -z "$ac_cv_prog_STRIP"; then
15737 ac_ct_STRIP=$STRIP
15738 # Extract the first word of "strip", so it can be a program name with args.
15739 set dummy strip; ac_word=$2
15740 echo "$as_me:$LINENO: checking for $ac_word" >&5
15741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745 if test -n "$ac_ct_STRIP"; then
15746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15747 else
15748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15749 for as_dir in $PATH
15751 IFS=$as_save_IFS
15752 test -z "$as_dir" && as_dir=.
15753 for ac_exec_ext in '' $ac_executable_extensions; do
15754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15755 ac_cv_prog_ac_ct_STRIP="strip"
15756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15757 break 2
15759 done
15760 done
15762 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15766 if test -n "$ac_ct_STRIP"; then
15767 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15768 echo "${ECHO_T}$ac_ct_STRIP" >&6
15769 else
15770 echo "$as_me:$LINENO: result: no" >&5
15771 echo "${ECHO_T}no" >&6
15774 STRIP=$ac_ct_STRIP
15775 else
15776 STRIP="$ac_cv_prog_STRIP"
15780 old_CC="$CC"
15781 old_CFLAGS="$CFLAGS"
15783 # Set sane defaults for various variables
15784 test -z "$AR" && AR=ar
15785 test -z "$AR_FLAGS" && AR_FLAGS=cru
15786 test -z "$AS" && AS=as
15787 test -z "$CC" && CC=cc
15788 test -z "$LTCC" && LTCC=$CC
15789 test -z "$DLLTOOL" && DLLTOOL=dlltool
15790 test -z "$LD" && LD=ld
15791 test -z "$LN_S" && LN_S="ln -s"
15792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15793 test -z "$NM" && NM=nm
15794 test -z "$SED" && SED=sed
15795 test -z "$OBJDUMP" && OBJDUMP=objdump
15796 test -z "$RANLIB" && RANLIB=:
15797 test -z "$STRIP" && STRIP=:
15798 test -z "$ac_objext" && ac_objext=o
15800 # Determine commands to create old-style static archives.
15801 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15802 old_postinstall_cmds='chmod 644 $oldlib'
15803 old_postuninstall_cmds=
15805 if test -n "$RANLIB"; then
15806 case $host_os in
15807 openbsd*)
15808 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
15811 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
15813 esac
15814 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15817 for cc_temp in $compiler""; do
15818 case $cc_temp in
15819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15821 \-*) ;;
15822 *) break;;
15823 esac
15824 done
15825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15828 # Only perform the check for file, if the check method requires it
15829 case $deplibs_check_method in
15830 file_magic*)
15831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15832 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15833 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15834 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837 case $MAGIC_CMD in
15838 [\\/*] | ?:[\\/]*)
15839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15842 lt_save_MAGIC_CMD="$MAGIC_CMD"
15843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15845 for ac_dir in $ac_dummy; do
15846 IFS="$lt_save_ifs"
15847 test -z "$ac_dir" && ac_dir=.
15848 if test -f $ac_dir/${ac_tool_prefix}file; then
15849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15850 if test -n "$file_magic_test_file"; then
15851 case $deplibs_check_method in
15852 "file_magic "*)
15853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15856 $EGREP "$file_magic_regex" > /dev/null; then
15858 else
15859 cat <<EOF 1>&2
15861 *** Warning: the command libtool uses to detect shared libraries,
15862 *** $file_magic_cmd, produces output that libtool cannot recognize.
15863 *** The result is that libtool may fail to recognize shared libraries
15864 *** as such. This will affect the creation of libtool libraries that
15865 *** depend on shared libraries, but programs linked with such libtool
15866 *** libraries will work regardless of this problem. Nevertheless, you
15867 *** may want to report the problem to your system manager and/or to
15868 *** bug-libtool@gnu.org
15871 fi ;;
15872 esac
15874 break
15876 done
15877 IFS="$lt_save_ifs"
15878 MAGIC_CMD="$lt_save_MAGIC_CMD"
15880 esac
15883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15884 if test -n "$MAGIC_CMD"; then
15885 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15886 echo "${ECHO_T}$MAGIC_CMD" >&6
15887 else
15888 echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6
15892 if test -z "$lt_cv_path_MAGIC_CMD"; then
15893 if test -n "$ac_tool_prefix"; then
15894 echo "$as_me:$LINENO: checking for file" >&5
15895 echo $ECHO_N "checking for file... $ECHO_C" >&6
15896 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899 case $MAGIC_CMD in
15900 [\\/*] | ?:[\\/]*)
15901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15904 lt_save_MAGIC_CMD="$MAGIC_CMD"
15905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15907 for ac_dir in $ac_dummy; do
15908 IFS="$lt_save_ifs"
15909 test -z "$ac_dir" && ac_dir=.
15910 if test -f $ac_dir/file; then
15911 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15912 if test -n "$file_magic_test_file"; then
15913 case $deplibs_check_method in
15914 "file_magic "*)
15915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15918 $EGREP "$file_magic_regex" > /dev/null; then
15920 else
15921 cat <<EOF 1>&2
15923 *** Warning: the command libtool uses to detect shared libraries,
15924 *** $file_magic_cmd, produces output that libtool cannot recognize.
15925 *** The result is that libtool may fail to recognize shared libraries
15926 *** as such. This will affect the creation of libtool libraries that
15927 *** depend on shared libraries, but programs linked with such libtool
15928 *** libraries will work regardless of this problem. Nevertheless, you
15929 *** may want to report the problem to your system manager and/or to
15930 *** bug-libtool@gnu.org
15933 fi ;;
15934 esac
15936 break
15938 done
15939 IFS="$lt_save_ifs"
15940 MAGIC_CMD="$lt_save_MAGIC_CMD"
15942 esac
15945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15946 if test -n "$MAGIC_CMD"; then
15947 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15948 echo "${ECHO_T}$MAGIC_CMD" >&6
15949 else
15950 echo "$as_me:$LINENO: result: no" >&5
15951 echo "${ECHO_T}no" >&6
15954 else
15955 MAGIC_CMD=:
15961 esac
15963 enable_dlopen=no
15964 enable_win32_dll=no
15966 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15967 if test "${enable_libtool_lock+set}" = set; then
15968 enableval="$enable_libtool_lock"
15971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15974 # Check whether --with-pic or --without-pic was given.
15975 if test "${with_pic+set}" = set; then
15976 withval="$with_pic"
15977 pic_mode="$withval"
15978 else
15979 pic_mode=default
15981 test -z "$pic_mode" && pic_mode=default
15983 # Use C for the default configuration in the libtool script
15984 tagname=
15985 lt_save_CC="$CC"
15986 ac_ext=c
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15993 # Source file extension for C test sources.
15994 ac_ext=c
15996 # Object file extension for compiled C test sources.
15997 objext=o
15998 objext=$objext
16000 # Code to be used in simple compile tests
16001 lt_simple_compile_test_code="int some_variable = 0;\n"
16003 # Code to be used in simple link tests
16004 lt_simple_link_test_code='int main(){return(0);}\n'
16007 # If no C compiler was specified, use CC.
16008 LTCC=${LTCC-"$CC"}
16010 # Allow CC to be a program name with arguments.
16011 compiler=$CC
16014 # save warnings/boilerplate of simple test code
16015 ac_outfile=conftest.$ac_objext
16016 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16018 _lt_compiler_boilerplate=`cat conftest.err`
16019 $rm conftest*
16021 ac_outfile=conftest.$ac_objext
16022 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16024 _lt_linker_boilerplate=`cat conftest.err`
16025 $rm conftest*
16029 # Check for any special shared library compilation flags.
16031 lt_prog_cc_shlib=
16032 if test "$GCC" = no; then
16033 case $host_os in
16034 sco3.2v5*)
16035 lt_prog_cc_shlib='-belf'
16037 esac
16039 if test -n "$lt_prog_cc_shlib"; then
16040 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
16041 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
16042 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
16043 else
16044 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
16045 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
16046 lt_cv_prog_cc_can_build_shared=no
16052 # Check to make sure the static flag actually works.
16054 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
16055 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
16056 if test "${lt_prog_compiler_static_works+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059 lt_prog_compiler_static_works=no
16060 save_LDFLAGS="$LDFLAGS"
16061 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
16062 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16064 # The linker can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 if test -s conftest.err; then
16067 # Append any errors to the config.log.
16068 cat conftest.err 1>&5
16069 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
16070 $SED '/^$/d' conftest.err >conftest.er2
16071 if diff conftest.exp conftest.er2 >/dev/null; then
16072 lt_prog_compiler_static_works=yes
16074 else
16075 lt_prog_compiler_static_works=yes
16078 $rm conftest*
16079 LDFLAGS="$save_LDFLAGS"
16082 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16083 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16085 if test x"$lt_prog_compiler_static_works" = xyes; then
16087 else
16088 lt_prog_compiler_static=
16094 lt_prog_compiler_no_builtin_flag=
16096 if test "$GCC" = yes; then
16097 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16100 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16101 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16102 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105 lt_cv_prog_compiler_rtti_exceptions=no
16106 ac_outfile=conftest.$ac_objext
16107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16108 lt_compiler_flag="-fno-rtti -fno-exceptions"
16109 # Insert the option either (1) after the last *FLAGS variable, or
16110 # (2) before a word containing "conftest.", or (3) at the end.
16111 # Note that $ac_compile itself does not contain backslashes and begins
16112 # with a dollar sign (not a hyphen), so the echo should work correctly.
16113 # The option is referenced via a variable to avoid confusing sed.
16114 lt_compile=`echo "$ac_compile" | $SED \
16115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16117 -e 's:$: $lt_compiler_flag:'`
16118 (eval echo "\"\$as_me:16118: $lt_compile\"" >&5)
16119 (eval "$lt_compile" 2>conftest.err)
16120 ac_status=$?
16121 cat conftest.err >&5
16122 echo "$as_me:16122: \$? = $ac_status" >&5
16123 if (exit $ac_status) && test -s "$ac_outfile"; then
16124 # The compiler can only warn and ignore the option if not recognized
16125 # So say no if there are warnings other than the usual output.
16126 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16127 $SED '/^$/d' conftest.err >conftest.er2
16128 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16129 lt_cv_prog_compiler_rtti_exceptions=yes
16132 $rm conftest*
16135 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16136 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16138 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16139 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16140 else
16146 lt_prog_compiler_wl=
16147 lt_prog_compiler_pic=
16148 lt_prog_compiler_static=
16150 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16151 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16153 if test "$GCC" = yes; then
16154 lt_prog_compiler_wl='-Wl,'
16155 lt_prog_compiler_static='-static'
16157 case $host_os in
16158 aix*)
16159 # All AIX code is PIC.
16160 if test "$host_cpu" = ia64; then
16161 # AIX 5 now supports IA64 processor
16162 lt_prog_compiler_static='-Bstatic'
16166 amigaos*)
16167 # FIXME: we need at least 68020 code to build shared libraries, but
16168 # adding the `-m68020' flag to GCC prevents building anything better,
16169 # like `-m68040'.
16170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16173 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16174 # PIC is the default for these OSes.
16177 mingw* | pw32* | os2*)
16178 # This hack is so that the source file can tell whether it is being
16179 # built for inclusion in a dll (and should export symbols for example).
16180 lt_prog_compiler_pic='-DDLL_EXPORT'
16183 darwin* | rhapsody*)
16184 # PIC is the default on this platform
16185 # Common symbols not allowed in MH_DYLIB files
16186 lt_prog_compiler_pic='-fno-common'
16189 msdosdjgpp*)
16190 # Just because we use GCC doesn't mean we suddenly get shared libraries
16191 # on systems that don't support them.
16192 lt_prog_compiler_can_build_shared=no
16193 enable_shared=no
16196 sysv4*MP*)
16197 if test -d /usr/nec; then
16198 lt_prog_compiler_pic=-Kconform_pic
16202 hpux*)
16203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16204 # not for PA HP-UX.
16205 case $host_cpu in
16206 hppa*64*|ia64*)
16207 # +Z the default
16210 lt_prog_compiler_pic='-fPIC'
16212 esac
16216 lt_prog_compiler_pic='-fPIC'
16218 esac
16219 else
16220 # PORTME Check for flag to pass linker flags through the system compiler.
16221 case $host_os in
16222 aix*)
16223 lt_prog_compiler_wl='-Wl,'
16224 if test "$host_cpu" = ia64; then
16225 # AIX 5 now supports IA64 processor
16226 lt_prog_compiler_static='-Bstatic'
16227 else
16228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16231 darwin*)
16232 # PIC is the default on this platform
16233 # Common symbols not allowed in MH_DYLIB files
16234 case $cc_basename in
16235 xlc*)
16236 lt_prog_compiler_pic='-qnocommon'
16237 lt_prog_compiler_wl='-Wl,'
16239 esac
16242 mingw* | pw32* | os2*)
16243 # This hack is so that the source file can tell whether it is being
16244 # built for inclusion in a dll (and should export symbols for example).
16245 lt_prog_compiler_pic='-DDLL_EXPORT'
16248 hpux9* | hpux10* | hpux11*)
16249 lt_prog_compiler_wl='-Wl,'
16250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16251 # not for PA HP-UX.
16252 case $host_cpu in
16253 hppa*64*|ia64*)
16254 # +Z the default
16257 lt_prog_compiler_pic='+Z'
16259 esac
16260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16261 lt_prog_compiler_static='${wl}-a ${wl}archive'
16264 irix5* | irix6* | nonstopux*)
16265 lt_prog_compiler_wl='-Wl,'
16266 # PIC (with -KPIC) is the default.
16267 lt_prog_compiler_static='-non_shared'
16270 newsos6)
16271 lt_prog_compiler_pic='-KPIC'
16272 lt_prog_compiler_static='-Bstatic'
16275 linux*)
16276 case $cc_basename in
16277 icc* | ecc*)
16278 lt_prog_compiler_wl='-Wl,'
16279 lt_prog_compiler_pic='-KPIC'
16280 lt_prog_compiler_static='-static'
16282 pgcc* | pgf77* | pgf90* | pgf95*)
16283 # Portland Group compilers (*not* the Pentium gcc compiler,
16284 # which looks to be a dead project)
16285 lt_prog_compiler_wl='-Wl,'
16286 lt_prog_compiler_pic='-fpic'
16287 lt_prog_compiler_static='-Bstatic'
16289 ccc*)
16290 lt_prog_compiler_wl='-Wl,'
16291 # All Alpha code is PIC.
16292 lt_prog_compiler_static='-non_shared'
16294 esac
16297 osf3* | osf4* | osf5*)
16298 lt_prog_compiler_wl='-Wl,'
16299 # All OSF/1 code is PIC.
16300 lt_prog_compiler_static='-non_shared'
16303 sco3.2v5*)
16304 lt_prog_compiler_pic='-Kpic'
16305 lt_prog_compiler_static='-dn'
16308 solaris*)
16309 lt_prog_compiler_pic='-KPIC'
16310 lt_prog_compiler_static='-Bstatic'
16311 case $cc_basename in
16312 f77* | f90* | f95*)
16313 lt_prog_compiler_wl='-Qoption ld ';;
16315 lt_prog_compiler_wl='-Wl,';;
16316 esac
16319 sunos4*)
16320 lt_prog_compiler_wl='-Qoption ld '
16321 lt_prog_compiler_pic='-PIC'
16322 lt_prog_compiler_static='-Bstatic'
16325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16326 lt_prog_compiler_wl='-Wl,'
16327 lt_prog_compiler_pic='-KPIC'
16328 lt_prog_compiler_static='-Bstatic'
16331 sysv4*MP*)
16332 if test -d /usr/nec ;then
16333 lt_prog_compiler_pic='-Kconform_pic'
16334 lt_prog_compiler_static='-Bstatic'
16338 unicos*)
16339 lt_prog_compiler_wl='-Wl,'
16340 lt_prog_compiler_can_build_shared=no
16343 uts4*)
16344 lt_prog_compiler_pic='-pic'
16345 lt_prog_compiler_static='-Bstatic'
16349 lt_prog_compiler_can_build_shared=no
16351 esac
16354 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16355 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16358 # Check to make sure the PIC flag actually works.
16360 if test -n "$lt_prog_compiler_pic"; then
16362 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16363 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16364 if test "${lt_prog_compiler_pic_works+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 lt_prog_compiler_pic_works=no
16368 ac_outfile=conftest.$ac_objext
16369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16370 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16371 # Insert the option either (1) after the last *FLAGS variable, or
16372 # (2) before a word containing "conftest.", or (3) at the end.
16373 # Note that $ac_compile itself does not contain backslashes and begins
16374 # with a dollar sign (not a hyphen), so the echo should work correctly.
16375 # The option is referenced via a variable to avoid confusing sed.
16376 lt_compile=`echo "$ac_compile" | $SED \
16377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379 -e 's:$: $lt_compiler_flag:'`
16380 (eval echo "\"\$as_me:16380: $lt_compile\"" >&5)
16381 (eval "$lt_compile" 2>conftest.err)
16382 ac_status=$?
16383 cat conftest.err >&5
16384 echo "$as_me:16384: \$? = $ac_status" >&5
16385 if (exit $ac_status) && test -s "$ac_outfile"; then
16386 # The compiler can only warn and ignore the option if not recognized
16387 # So say no if there are warnings other than the usual output.
16388 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16389 $SED '/^$/d' conftest.err >conftest.er2
16390 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16391 lt_prog_compiler_pic_works=yes
16394 $rm conftest*
16397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16398 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16400 if test x"$lt_prog_compiler_pic_works" = xyes; then
16401 case $lt_prog_compiler_pic in
16402 "" | " "*) ;;
16403 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16404 esac
16405 else
16406 lt_prog_compiler_pic=
16407 lt_prog_compiler_can_build_shared=no
16411 case $host_os in
16412 # For platforms which do not support PIC, -DPIC is meaningless:
16413 *djgpp*)
16414 lt_prog_compiler_pic=
16417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16419 esac
16421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16423 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426 lt_cv_prog_compiler_c_o=no
16427 $rm -r conftest 2>/dev/null
16428 mkdir conftest
16429 cd conftest
16430 mkdir out
16431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16433 lt_compiler_flag="-o out/conftest2.$ac_objext"
16434 # Insert the option either (1) after the last *FLAGS variable, or
16435 # (2) before a word containing "conftest.", or (3) at the end.
16436 # Note that $ac_compile itself does not contain backslashes and begins
16437 # with a dollar sign (not a hyphen), so the echo should work correctly.
16438 lt_compile=`echo "$ac_compile" | $SED \
16439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16441 -e 's:$: $lt_compiler_flag:'`
16442 (eval echo "\"\$as_me:16442: $lt_compile\"" >&5)
16443 (eval "$lt_compile" 2>out/conftest.err)
16444 ac_status=$?
16445 cat out/conftest.err >&5
16446 echo "$as_me:16446: \$? = $ac_status" >&5
16447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16448 then
16449 # The compiler can only warn and ignore the option if not recognized
16450 # So say no if there are warnings
16451 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16452 $SED '/^$/d' out/conftest.err >out/conftest.er2
16453 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16454 lt_cv_prog_compiler_c_o=yes
16457 chmod u+w . 2>&5
16458 $rm conftest*
16459 # SGI C++ compiler will create directory out/ii_files/ for
16460 # template instantiation
16461 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16462 $rm out/* && rmdir out
16463 cd ..
16464 rmdir conftest
16465 $rm conftest*
16468 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16472 hard_links="nottested"
16473 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16474 # do not overwrite the value of need_locks provided by the user
16475 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16477 hard_links=yes
16478 $rm conftest*
16479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16480 touch conftest.a
16481 ln conftest.a conftest.b 2>&5 || hard_links=no
16482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16483 echo "$as_me:$LINENO: result: $hard_links" >&5
16484 echo "${ECHO_T}$hard_links" >&6
16485 if test "$hard_links" = no; then
16486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16488 need_locks=warn
16490 else
16491 need_locks=no
16494 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16497 runpath_var=
16498 allow_undefined_flag=
16499 enable_shared_with_static_runtimes=no
16500 archive_cmds=
16501 archive_expsym_cmds=
16502 old_archive_From_new_cmds=
16503 old_archive_from_expsyms_cmds=
16504 export_dynamic_flag_spec=
16505 whole_archive_flag_spec=
16506 thread_safe_flag_spec=
16507 hardcode_libdir_flag_spec=
16508 hardcode_libdir_flag_spec_ld=
16509 hardcode_libdir_separator=
16510 hardcode_direct=no
16511 hardcode_minus_L=no
16512 hardcode_shlibpath_var=unsupported
16513 link_all_deplibs=unknown
16514 hardcode_automatic=no
16515 module_cmds=
16516 module_expsym_cmds=
16517 always_export_symbols=no
16518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16519 # include_expsyms should be a list of space-separated symbols to be *always*
16520 # included in the symbol list
16521 include_expsyms=
16522 # exclude_expsyms can be an extended regexp of symbols to exclude
16523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16525 # as well as any symbol that contains `d'.
16526 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16528 # platforms (ab)use it in PIC code, but their linkers get confused if
16529 # the symbol is explicitly referenced. Since portable code cannot
16530 # rely on this symbol name, it's probably fine to never include it in
16531 # preloaded symbol tables.
16532 extract_expsyms_cmds=
16533 # Just being paranoid about ensuring that cc_basename is set.
16534 for cc_temp in $compiler""; do
16535 case $cc_temp in
16536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16538 \-*) ;;
16539 *) break;;
16540 esac
16541 done
16542 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16544 case $host_os in
16545 cygwin* | mingw* | pw32*)
16546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16547 # When not using gcc, we currently assume that we are using
16548 # Microsoft Visual C++.
16549 if test "$GCC" != yes; then
16550 with_gnu_ld=no
16553 openbsd*)
16554 with_gnu_ld=no
16556 esac
16558 ld_shlibs=yes
16559 if test "$with_gnu_ld" = yes; then
16560 # If archive_cmds runs LD, not CC, wlarc should be empty
16561 wlarc='${wl}'
16563 # Set some defaults for GNU ld with shared library support. These
16564 # are reset later if shared libraries are not supported. Putting them
16565 # here allows them to be overridden if necessary.
16566 runpath_var=LD_RUN_PATH
16567 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
16568 export_dynamic_flag_spec='${wl}--export-dynamic'
16569 # ancient GNU ld didn't support --whole-archive et. al.
16570 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16572 else
16573 whole_archive_flag_spec=
16575 supports_anon_versioning=no
16576 case `$LD -v 2>/dev/null` in
16577 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16578 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16579 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16580 *\ 2.11.*) ;; # other 2.11 versions
16581 *) supports_anon_versioning=yes ;;
16582 esac
16584 # See if GNU ld supports shared libraries.
16585 case $host_os in
16586 aix3* | aix4* | aix5*)
16587 # On AIX/PPC, the GNU linker is very broken
16588 if test "$host_cpu" != ia64; then
16589 ld_shlibs=no
16590 cat <<EOF 1>&2
16592 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16593 *** to be unable to reliably create shared libraries on AIX.
16594 *** Therefore, libtool is disabling shared libraries support. If you
16595 *** really care for shared libraries, you may want to modify your PATH
16596 *** so that a non-GNU linker is found, and then restart.
16602 amigaos*)
16603 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16604 hardcode_libdir_flag_spec='-L$libdir'
16605 hardcode_minus_L=yes
16607 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16608 # that the semantics of dynamic libraries on AmigaOS, at least up
16609 # to version 4, is to share data among multiple programs linked
16610 # with the same dynamic library. Since this doesn't match the
16611 # behavior of shared libraries on other platforms, we can't use
16612 # them.
16613 ld_shlibs=no
16616 beos*)
16617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16618 allow_undefined_flag=unsupported
16619 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16620 # support --undefined. This deserves some investigation. FIXME
16621 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16622 else
16623 ld_shlibs=no
16627 cygwin* | mingw* | pw32*)
16628 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16629 # as there is no search path for DLLs.
16630 hardcode_libdir_flag_spec='-L$libdir'
16631 allow_undefined_flag=unsupported
16632 always_export_symbols=no
16633 enable_shared_with_static_runtimes=yes
16634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16638 # If the export-symbols file already is a .def file (1st line
16639 # is EXPORTS), use it as is; otherwise, prepend...
16640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16641 cp $export_symbols $output_objdir/$soname.def;
16642 else
16643 echo EXPORTS > $output_objdir/$soname.def;
16644 cat $export_symbols >> $output_objdir/$soname.def;
16646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16647 else
16648 ld_shlibs=no
16652 linux*)
16653 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16654 tmp_addflag=
16655 case $cc_basename,$host_cpu in
16656 pgcc*) # Portland Group C compiler
16657 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16658 tmp_addflag=' $pic_flag'
16660 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16661 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16662 tmp_addflag=' $pic_flag -Mnomain' ;;
16663 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16664 tmp_addflag=' -i_dynamic' ;;
16665 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16666 tmp_addflag=' -i_dynamic -nofor_main' ;;
16667 ifc* | ifort*) # Intel Fortran compiler
16668 tmp_addflag=' -nofor_main' ;;
16669 esac
16670 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16672 if test $supports_anon_versioning = yes; then
16673 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16675 $echo "local: *; };" >> $output_objdir/$libname.ver~
16676 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16678 else
16679 ld_shlibs=no
16683 netbsd*)
16684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16685 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16686 wlarc=
16687 else
16688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16693 solaris* | sysv5*)
16694 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16695 ld_shlibs=no
16696 cat <<EOF 1>&2
16698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16699 *** create shared libraries on Solaris systems. Therefore, libtool
16700 *** is disabling shared libraries support. We urge you to upgrade GNU
16701 *** binutils to release 2.9.1 or newer. Another option is to modify
16702 *** your PATH or compiler configuration so that the native linker is
16703 *** used, and then restart.
16706 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16709 else
16710 ld_shlibs=no
16714 sunos4*)
16715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16716 wlarc=
16717 hardcode_direct=yes
16718 hardcode_shlibpath_var=no
16722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16725 else
16726 ld_shlibs=no
16729 esac
16731 if test "$ld_shlibs" = no; then
16732 runpath_var=
16733 hardcode_libdir_flag_spec=
16734 export_dynamic_flag_spec=
16735 whole_archive_flag_spec=
16737 else
16738 # PORTME fill in a description of your system's linker (not GNU ld)
16739 case $host_os in
16740 aix3*)
16741 allow_undefined_flag=unsupported
16742 always_export_symbols=yes
16743 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16744 # Note: this linker hardcodes the directories in LIBPATH if there
16745 # are no directories specified by -L.
16746 hardcode_minus_L=yes
16747 if test "$GCC" = yes && test -z "$link_static_flag"; then
16748 # Neither direct hardcoding nor static linking is supported with a
16749 # broken collect2.
16750 hardcode_direct=unsupported
16754 aix4* | aix5*)
16755 if test "$host_cpu" = ia64; then
16756 # On IA64, the linker does run time linking by default, so we don't
16757 # have to do anything special.
16758 aix_use_runtimelinking=no
16759 exp_sym_flag='-Bexport'
16760 no_entry_flag=""
16761 else
16762 # If we're using GNU nm, then we don't want the "-C" option.
16763 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16764 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16765 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16766 else
16767 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16769 aix_use_runtimelinking=no
16771 # Test if we are trying to use run time linking or normal
16772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16773 # need to do runtime linking.
16774 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16775 for ld_flag in $LDFLAGS; do
16776 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16777 aix_use_runtimelinking=yes
16778 break
16780 done
16781 esac
16783 exp_sym_flag='-bexport'
16784 no_entry_flag='-bnoentry'
16787 # When large executables or shared objects are built, AIX ld can
16788 # have problems creating the table of contents. If linking a library
16789 # or program results in "error TOC overflow" add -mminimal-toc to
16790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16793 archive_cmds=''
16794 hardcode_direct=yes
16795 hardcode_libdir_separator=':'
16796 link_all_deplibs=yes
16798 if test "$GCC" = yes; then
16799 case $host_os in aix4.[012]|aix4.[012].*)
16800 # We only want to do this on AIX 4.2 and lower, the check
16801 # below for broken collect2 doesn't work under 4.3+
16802 collect2name=`${CC} -print-prog-name=collect2`
16803 if test -f "$collect2name" && \
16804 strings "$collect2name" | grep resolve_lib_name >/dev/null
16805 then
16806 # We have reworked collect2
16807 hardcode_direct=yes
16808 else
16809 # We have old collect2
16810 hardcode_direct=unsupported
16811 # It fails to find uninstalled libraries when the uninstalled
16812 # path is not listed in the libpath. Setting hardcode_minus_L
16813 # to unsupported forces relinking
16814 hardcode_minus_L=yes
16815 hardcode_libdir_flag_spec='-L$libdir'
16816 hardcode_libdir_separator=
16818 esac
16819 shared_flag='-shared'
16820 if test "$aix_use_runtimelinking" = yes; then
16821 shared_flag="$shared_flag "'${wl}-G'
16823 else
16824 # not using gcc
16825 if test "$host_cpu" = ia64; then
16826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16827 # chokes on -Wl,-G. The following line is correct:
16828 shared_flag='-G'
16829 else
16830 if test "$aix_use_runtimelinking" = yes; then
16831 shared_flag='${wl}-G'
16832 else
16833 shared_flag='${wl}-bM:SRE'
16838 # It seems that -bexpall does not export symbols beginning with
16839 # underscore (_), so it is better to generate a list of symbols to export.
16840 always_export_symbols=yes
16841 if test "$aix_use_runtimelinking" = yes; then
16842 # Warning - without using the other runtime loading flags (-brtl),
16843 # -berok will link without error, but may produce a broken library.
16844 allow_undefined_flag='-berok'
16845 # Determine the default libpath from the value encoded in an empty executable.
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16854 main ()
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16886 # Check for a 64-bit object if we didn't find anything.
16887 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16888 }'`; fi
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16894 rm -f conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16898 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16899 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16900 else
16901 if test "$host_cpu" = ia64; then
16902 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16903 allow_undefined_flag="-z nodefs"
16904 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16905 else
16906 # Determine the default libpath from the value encoded in an empty executable.
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16915 main ()
16919 return 0;
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag"
16932 || test ! -s conftest.err'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16947 # Check for a 64-bit object if we didn't find anything.
16948 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16949 }'`; fi
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16955 rm -f conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16960 # Warning - without using the other run time loading flags,
16961 # -berok will link without error, but may produce a broken library.
16962 no_undefined_flag=' ${wl}-bernotok'
16963 allow_undefined_flag=' ${wl}-berok'
16964 # -bexpall does not export symbols beginning with underscore (_)
16965 always_export_symbols=yes
16966 # Exported symbols can be pulled into shared objects from archives
16967 whole_archive_flag_spec=' '
16968 archive_cmds_need_lc=yes
16969 # This is similar to how AIX traditionally builds its shared libraries.
16970 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16975 amigaos*)
16976 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16977 hardcode_libdir_flag_spec='-L$libdir'
16978 hardcode_minus_L=yes
16979 # see comment about different semantics on the GNU ld section
16980 ld_shlibs=no
16983 bsdi[45]*)
16984 export_dynamic_flag_spec=-rdynamic
16987 cygwin* | mingw* | pw32*)
16988 # When not using gcc, we currently assume that we are using
16989 # Microsoft Visual C++.
16990 # hardcode_libdir_flag_spec is actually meaningless, as there is
16991 # no search path for DLLs.
16992 hardcode_libdir_flag_spec=' '
16993 allow_undefined_flag=unsupported
16994 # Tell ltmain to make .lib files, not .a files.
16995 libext=lib
16996 # Tell ltmain to make .dll files, not .so files.
16997 shrext_cmds=".dll"
16998 # FIXME: Setting linknames here is a bad hack.
16999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17000 # The linker will automatically build a .lib file if we build a DLL.
17001 old_archive_From_new_cmds='true'
17002 # FIXME: Should let the user specify the lib program.
17003 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
17004 fix_srcfile_path='`cygpath -w "$srcfile"`'
17005 enable_shared_with_static_runtimes=yes
17008 darwin* | rhapsody*)
17009 case $host_os in
17010 rhapsody* | darwin1.[012])
17011 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17013 *) # Darwin 1.3 on
17014 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17015 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17016 else
17017 case ${MACOSX_DEPLOYMENT_TARGET} in
17018 10.[012])
17019 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17021 10.*)
17022 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17024 esac
17027 esac
17028 archive_cmds_need_lc=no
17029 hardcode_direct=no
17030 hardcode_automatic=yes
17031 hardcode_shlibpath_var=unsupported
17032 whole_archive_flag_spec=''
17033 link_all_deplibs=yes
17034 if test "$GCC" = yes ; then
17035 output_verbose_link_cmd='echo'
17036 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17037 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17039 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17040 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17041 else
17042 case $cc_basename in
17043 xlc*)
17044 output_verbose_link_cmd='echo'
17045 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17046 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17047 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17048 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17049 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17052 ld_shlibs=no
17054 esac
17058 dgux*)
17059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec='-L$libdir'
17061 hardcode_shlibpath_var=no
17064 freebsd1*)
17065 ld_shlibs=no
17068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17069 # support. Future versions do this automatically, but an explicit c++rt0.o
17070 # does not break anything, and helps significantly (at the cost of a little
17071 # extra space).
17072 freebsd2.2*)
17073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17074 hardcode_libdir_flag_spec='-R$libdir'
17075 hardcode_direct=yes
17076 hardcode_shlibpath_var=no
17079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17080 freebsd2*)
17081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_direct=yes
17083 hardcode_minus_L=yes
17084 hardcode_shlibpath_var=no
17087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17088 freebsd* | kfreebsd*-gnu | dragonfly*)
17089 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17090 hardcode_libdir_flag_spec='-R$libdir'
17091 hardcode_direct=yes
17092 hardcode_shlibpath_var=no
17095 hpux9*)
17096 if test "$GCC" = yes; then
17097 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17098 else
17099 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17102 hardcode_libdir_separator=:
17103 hardcode_direct=yes
17105 # hardcode_minus_L: Not really in the search PATH,
17106 # but as the default location of the library.
17107 hardcode_minus_L=yes
17108 export_dynamic_flag_spec='${wl}-E'
17111 hpux10* | hpux11*)
17112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17113 case $host_cpu in
17114 hppa*64*|ia64*)
17115 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17120 esac
17121 else
17122 case $host_cpu in
17123 hppa*64*|ia64*)
17124 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17129 esac
17131 if test "$with_gnu_ld" = no; then
17132 case $host_cpu in
17133 hppa*64*)
17134 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17135 hardcode_libdir_flag_spec_ld='+b $libdir'
17136 hardcode_libdir_separator=:
17137 hardcode_direct=no
17138 hardcode_shlibpath_var=no
17140 ia64*)
17141 hardcode_libdir_flag_spec='-L$libdir'
17142 hardcode_direct=no
17143 hardcode_shlibpath_var=no
17145 # hardcode_minus_L: Not really in the search PATH,
17146 # but as the default location of the library.
17147 hardcode_minus_L=yes
17150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17151 hardcode_libdir_separator=:
17152 hardcode_direct=yes
17153 export_dynamic_flag_spec='${wl}-E'
17155 # hardcode_minus_L: Not really in the search PATH,
17156 # but as the default location of the library.
17157 hardcode_minus_L=yes
17159 esac
17163 irix5* | irix6* | nonstopux*)
17164 if test "$GCC" = yes; then
17165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17166 else
17167 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17168 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator=:
17172 link_all_deplibs=yes
17175 netbsd*)
17176 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17178 else
17179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17181 hardcode_libdir_flag_spec='-R$libdir'
17182 hardcode_direct=yes
17183 hardcode_shlibpath_var=no
17186 newsos6)
17187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17188 hardcode_direct=yes
17189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17190 hardcode_libdir_separator=:
17191 hardcode_shlibpath_var=no
17194 openbsd*)
17195 hardcode_direct=yes
17196 hardcode_shlibpath_var=no
17197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17199 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17201 export_dynamic_flag_spec='${wl}-E'
17202 else
17203 case $host_os in
17204 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17206 hardcode_libdir_flag_spec='-R$libdir'
17209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17212 esac
17216 os2*)
17217 hardcode_libdir_flag_spec='-L$libdir'
17218 hardcode_minus_L=yes
17219 allow_undefined_flag=unsupported
17220 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17221 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17224 osf3*)
17225 if test "$GCC" = yes; then
17226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17227 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17228 else
17229 allow_undefined_flag=' -expect_unresolved \*'
17230 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17233 hardcode_libdir_separator=:
17236 osf4* | osf5*) # as osf3* with the addition of -msym flag
17237 if test "$GCC" = yes; then
17238 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17239 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17241 else
17242 allow_undefined_flag=' -expect_unresolved \*'
17243 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17244 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17245 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17247 # Both c and cxx compiler support -rpath directly
17248 hardcode_libdir_flag_spec='-rpath $libdir'
17250 hardcode_libdir_separator=:
17253 sco3.2v5*)
17254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_shlibpath_var=no
17256 export_dynamic_flag_spec='${wl}-Bexport'
17257 runpath_var=LD_RUN_PATH
17258 hardcode_runpath_var=yes
17261 solaris*)
17262 no_undefined_flag=' -z text'
17263 if test "$GCC" = yes; then
17264 wlarc='${wl}'
17265 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17266 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17267 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17268 else
17269 wlarc=''
17270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17274 hardcode_libdir_flag_spec='-R$libdir'
17275 hardcode_shlibpath_var=no
17276 case $host_os in
17277 solaris2.[0-5] | solaris2.[0-5].*) ;;
17279 # The compiler driver will combine linker options so we
17280 # cannot just pass the convience library names through
17281 # without $wl, iff we do not link with $LD.
17282 # Luckily, gcc supports the same syntax we need for Sun Studio.
17283 # Supported since Solaris 2.6 (maybe 2.5.1?)
17284 case $wlarc in
17286 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
17288 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17289 esac ;;
17290 esac
17291 link_all_deplibs=yes
17294 sunos4*)
17295 if test "x$host_vendor" = xsequent; then
17296 # Use $CC to link under sequent, because it throws in some extra .o
17297 # files that make .init and .fini sections work.
17298 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17299 else
17300 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17302 hardcode_libdir_flag_spec='-L$libdir'
17303 hardcode_direct=yes
17304 hardcode_minus_L=yes
17305 hardcode_shlibpath_var=no
17308 sysv4)
17309 case $host_vendor in
17310 sni)
17311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct=yes # is this really true???
17314 siemens)
17315 ## LD is ld it makes a PLAMLIB
17316 ## CC just makes a GrossModule.
17317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17318 reload_cmds='$CC -r -o $output$reload_objs'
17319 hardcode_direct=no
17321 motorola)
17322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17325 esac
17326 runpath_var='LD_RUN_PATH'
17327 hardcode_shlibpath_var=no
17330 sysv4.3*)
17331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332 hardcode_shlibpath_var=no
17333 export_dynamic_flag_spec='-Bexport'
17336 sysv4*MP*)
17337 if test -d /usr/nec; then
17338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339 hardcode_shlibpath_var=no
17340 runpath_var=LD_RUN_PATH
17341 hardcode_runpath_var=yes
17342 ld_shlibs=yes
17346 sysv4.2uw2*)
17347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17348 hardcode_direct=yes
17349 hardcode_minus_L=no
17350 hardcode_shlibpath_var=no
17351 hardcode_runpath_var=yes
17352 runpath_var=LD_RUN_PATH
17355 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17356 no_undefined_flag='${wl}-z ${wl}text'
17357 if test "$GCC" = yes; then
17358 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 else
17360 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17362 runpath_var='LD_RUN_PATH'
17363 hardcode_shlibpath_var=no
17366 sysv5*)
17367 no_undefined_flag=' -z text'
17368 # $CC -shared without GNU ld will not create a library from C++
17369 # object files and a static libstdc++, better avoid it by now
17370 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17373 hardcode_libdir_flag_spec=
17374 hardcode_shlibpath_var=no
17375 runpath_var='LD_RUN_PATH'
17378 uts4*)
17379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17380 hardcode_libdir_flag_spec='-L$libdir'
17381 hardcode_shlibpath_var=no
17385 ld_shlibs=no
17387 esac
17390 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17391 echo "${ECHO_T}$ld_shlibs" >&6
17392 test "$ld_shlibs" = no && can_build_shared=no
17394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17395 if test "$GCC" = yes; then
17396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17400 # Do we need to explicitly link libc?
17402 case "x$archive_cmds_need_lc" in
17403 x|xyes)
17404 # Assume -lc should be added
17405 archive_cmds_need_lc=yes
17407 if test "$enable_shared" = yes && test "$GCC" = yes; then
17408 case $archive_cmds in
17409 *'~'*)
17410 # FIXME: we may have to deal with multi-command sequences.
17412 '$CC '*)
17413 # Test whether the compiler implicitly links with -lc since on some
17414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17415 # to ld, don't add -lc before -lgcc.
17416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17418 $rm conftest*
17419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } 2>conftest.err; then
17426 soname=conftest
17427 lib=conftest
17428 libobjs=conftest.$ac_objext
17429 deplibs=
17430 wl=$lt_prog_compiler_wl
17431 compiler_flags=-v
17432 linker_flags=-v
17433 verstring=
17434 output_objdir=.
17435 libname=conftest
17436 lt_save_allow_undefined_flag=$allow_undefined_flag
17437 allow_undefined_flag=
17438 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17439 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }
17443 then
17444 archive_cmds_need_lc=no
17445 else
17446 archive_cmds_need_lc=yes
17448 allow_undefined_flag=$lt_save_allow_undefined_flag
17449 else
17450 cat conftest.err 1>&5
17452 $rm conftest*
17453 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17454 echo "${ECHO_T}$archive_cmds_need_lc" >&6
17456 esac
17459 esac
17461 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17463 library_names_spec=
17464 libname_spec='lib$name'
17465 soname_spec=
17466 shrext_cmds=".so"
17467 postinstall_cmds=
17468 postuninstall_cmds=
17469 finish_cmds=
17470 finish_eval=
17471 shlibpath_var=
17472 shlibpath_overrides_runpath=unknown
17473 version_type=none
17474 dynamic_linker="$host_os ld.so"
17475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17476 if test "$GCC" = yes; then
17477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17478 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17479 # if the path contains ";" then we assume it to be the separator
17480 # otherwise default to the standard path separator (i.e. ":") - it is
17481 # assumed that no part of a normal pathname contains ";" but that should
17482 # okay in the real world where ";" in dirpaths is itself problematic.
17483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17484 else
17485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17487 else
17488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17490 need_lib_prefix=unknown
17491 hardcode_into_libs=no
17493 # when you set need_version to no, make sure it does not cause -set_version
17494 # flags to be left without arguments
17495 need_version=unknown
17497 case $host_os in
17498 aix3*)
17499 version_type=linux
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17501 shlibpath_var=LIBPATH
17503 # AIX 3 has no versioning support, so we append a major version to the name.
17504 soname_spec='${libname}${release}${shared_ext}$major'
17507 aix4* | aix5*)
17508 version_type=linux
17509 need_lib_prefix=no
17510 need_version=no
17511 hardcode_into_libs=yes
17512 if test "$host_cpu" = ia64; then
17513 # AIX 5 supports IA64
17514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 else
17517 # With GCC up to 2.95.x, collect2 would create an import file
17518 # for dependence libraries. The import file would start with
17519 # the line `#! .'. This would cause the generated library to
17520 # depend on `.', always an invalid library. This was fixed in
17521 # development snapshots of GCC prior to 3.0.
17522 case $host_os in
17523 aix4 | aix4.[01] | aix4.[01].*)
17524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17525 echo ' yes '
17526 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17528 else
17529 can_build_shared=no
17532 esac
17533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17534 # soname into executable. Probably we can add versioning support to
17535 # collect2, so additional links can be useful in future.
17536 if test "$aix_use_runtimelinking" = yes; then
17537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17538 # instead of lib<name>.a to let people know that these are not
17539 # typical AIX shared libraries.
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 else
17542 # We preserve .a as extension for shared libraries through AIX4.2
17543 # and later when we are not doing run time linking.
17544 library_names_spec='${libname}${release}.a $libname.a'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17547 shlibpath_var=LIBPATH
17551 amigaos*)
17552 library_names_spec='$libname.ixlibrary $libname.a'
17553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17554 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17557 beos*)
17558 library_names_spec='${libname}${shared_ext}'
17559 dynamic_linker="$host_os ld.so"
17560 shlibpath_var=LIBRARY_PATH
17563 bsdi[45]*)
17564 version_type=linux
17565 need_version=no
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17569 shlibpath_var=LD_LIBRARY_PATH
17570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17572 # the default ld.so.conf also contains /usr/contrib/lib and
17573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17574 # libtool to hard-code these into programs
17577 cygwin* | mingw* | pw32*)
17578 version_type=windows
17579 shrext_cmds=".dll"
17580 need_version=no
17581 need_lib_prefix=no
17583 case $GCC,$host_os in
17584 yes,cygwin* | yes,mingw* | yes,pw32*)
17585 library_names_spec='$libname.dll.a'
17586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17587 postinstall_cmds='base_file=`basename \${file}`~
17588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17589 dldir=$destdir/`dirname \$dlpath`~
17590 test -d \$dldir || mkdir -p \$dldir~
17591 $install_prog $dir/$dlname \$dldir/$dlname~
17592 chmod a+x \$dldir/$dlname'
17593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17594 dlpath=$dir/\$dldll~
17595 $rm \$dlpath'
17596 shlibpath_overrides_runpath=yes
17598 case $host_os in
17599 cygwin*)
17600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17604 mingw*)
17605 # MinGW DLLs use traditional 'lib' prefix
17606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17608 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17609 # It is most probably a Windows format PATH printed by
17610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17611 # path with ; separators, and with drive letters. We can handle the
17612 # drive letters (cygwin fileutils understands them), so leave them,
17613 # especially as we might pass files found there to a mingw objdump,
17614 # which wouldn't understand a cygwinified path. Ahh.
17615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17616 else
17617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17620 pw32*)
17621 # pw32 DLLs use 'pw' prefix rather than 'lib'
17622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17624 esac
17628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17630 esac
17631 dynamic_linker='Win32 ld.exe'
17632 # FIXME: first we should search . and the directory the executable is in
17633 shlibpath_var=PATH
17636 darwin* | rhapsody*)
17637 dynamic_linker="$host_os dyld"
17638 version_type=darwin
17639 need_lib_prefix=no
17640 need_version=no
17641 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17642 soname_spec='${libname}${release}${major}$shared_ext'
17643 shlibpath_overrides_runpath=yes
17644 shlibpath_var=DYLD_LIBRARY_PATH
17645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17646 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17647 if test "$GCC" = yes; then
17648 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17649 else
17650 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17652 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17655 dgux*)
17656 version_type=linux
17657 need_lib_prefix=no
17658 need_version=no
17659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17660 soname_spec='${libname}${release}${shared_ext}$major'
17661 shlibpath_var=LD_LIBRARY_PATH
17664 freebsd1*)
17665 dynamic_linker=no
17668 kfreebsd*-gnu)
17669 version_type=linux
17670 need_lib_prefix=no
17671 need_version=no
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 shlibpath_var=LD_LIBRARY_PATH
17675 shlibpath_overrides_runpath=no
17676 hardcode_into_libs=yes
17677 dynamic_linker='GNU ld.so'
17680 freebsd* | dragonfly*)
17681 # DragonFly does not have aout. When/if they implement a new
17682 # versioning mechanism, adjust this.
17683 if test -x /usr/bin/objformat; then
17684 objformat=`/usr/bin/objformat`
17685 else
17686 case $host_os in
17687 freebsd[123]*) objformat=aout ;;
17688 *) objformat=elf ;;
17689 esac
17691 version_type=freebsd-$objformat
17692 case $version_type in
17693 freebsd-elf*)
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17695 need_version=no
17696 need_lib_prefix=no
17698 freebsd-*)
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17700 need_version=yes
17702 esac
17703 shlibpath_var=LD_LIBRARY_PATH
17704 case $host_os in
17705 freebsd2*)
17706 shlibpath_overrides_runpath=yes
17708 freebsd3.[01]* | freebsdelf3.[01]*)
17709 shlibpath_overrides_runpath=yes
17710 hardcode_into_libs=yes
17712 *) # from 3.2 on
17713 shlibpath_overrides_runpath=no
17714 hardcode_into_libs=yes
17716 esac
17719 gnu*)
17720 version_type=linux
17721 need_lib_prefix=no
17722 need_version=no
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 hardcode_into_libs=yes
17729 hpux9* | hpux10* | hpux11*)
17730 # Give a soname corresponding to the major version so that dld.sl refuses to
17731 # link against other versions.
17732 version_type=sunos
17733 need_lib_prefix=no
17734 need_version=no
17735 case $host_cpu in
17736 ia64*)
17737 shrext_cmds='.so'
17738 hardcode_into_libs=yes
17739 dynamic_linker="$host_os dld.so"
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 if test "X$HPUX_IA64_MODE" = X32; then
17745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17746 else
17747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17751 hppa*64*)
17752 shrext_cmds='.sl'
17753 hardcode_into_libs=yes
17754 dynamic_linker="$host_os dld.sl"
17755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17763 shrext_cmds='.sl'
17764 dynamic_linker="$host_os dld.sl"
17765 shlibpath_var=SHLIB_PATH
17766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17770 esac
17771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17772 postinstall_cmds='chmod 555 $lib'
17775 irix5* | irix6* | nonstopux*)
17776 case $host_os in
17777 nonstopux*) version_type=nonstopux ;;
17779 if test "$lt_cv_prog_gnu_ld" = yes; then
17780 version_type=linux
17781 else
17782 version_type=irix
17783 fi ;;
17784 esac
17785 need_lib_prefix=no
17786 need_version=no
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17789 case $host_os in
17790 irix5* | nonstopux*)
17791 libsuff= shlibsuff=
17794 case $LD in # libtool.m4 will add one of these switches to LD
17795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17796 libsuff= shlibsuff= libmagic=32-bit;;
17797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17798 libsuff=32 shlibsuff=N32 libmagic=N32;;
17799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17801 *) libsuff= shlibsuff= libmagic=never-match;;
17802 esac
17804 esac
17805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17806 shlibpath_overrides_runpath=no
17807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17809 hardcode_into_libs=yes
17812 # No shared lib support for Linux oldld, aout, or coff.
17813 linux*oldld* | linux*aout* | linux*coff*)
17814 dynamic_linker=no
17817 # This must be Linux ELF.
17818 linux*)
17819 version_type=linux
17820 need_lib_prefix=no
17821 need_version=no
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 shlibpath_overrides_runpath=no
17827 # This implies no fast_install, which is unacceptable.
17828 # Some rework will be needed to allow for fast_install
17829 # before this can be enabled.
17830 hardcode_into_libs=yes
17832 # Append ld.so.conf contents to the search path
17833 if test -f /etc/ld.so.conf; then
17834 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17835 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17838 # We used to test for /lib/ld.so.1 and disable shared libraries on
17839 # powerpc, because MkLinux only supported shared libraries with the
17840 # GNU dynamic linker. Since this was broken with cross compilers,
17841 # most powerpc-linux boxes support dynamic linking these days and
17842 # people can always --disable-shared, the test was removed, and we
17843 # assume the GNU/Linux dynamic linker is in use.
17844 dynamic_linker='GNU/Linux ld.so'
17847 knetbsd*-gnu)
17848 version_type=linux
17849 need_lib_prefix=no
17850 need_version=no
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17852 soname_spec='${libname}${release}${shared_ext}$major'
17853 shlibpath_var=LD_LIBRARY_PATH
17854 shlibpath_overrides_runpath=no
17855 hardcode_into_libs=yes
17856 dynamic_linker='GNU ld.so'
17859 netbsd*)
17860 version_type=sunos
17861 need_lib_prefix=no
17862 need_version=no
17863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17866 dynamic_linker='NetBSD (a.out) ld.so'
17867 else
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 dynamic_linker='NetBSD ld.elf_so'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath=yes
17874 hardcode_into_libs=yes
17877 newsos6)
17878 version_type=linux
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 shlibpath_var=LD_LIBRARY_PATH
17881 shlibpath_overrides_runpath=yes
17884 nto-qnx*)
17885 version_type=linux
17886 need_lib_prefix=no
17887 need_version=no
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 shlibpath_overrides_runpath=yes
17894 openbsd*)
17895 version_type=sunos
17896 need_lib_prefix=no
17897 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17898 case $host_os in
17899 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17900 *) need_version=no ;;
17901 esac
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17904 shlibpath_var=LD_LIBRARY_PATH
17905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17906 case $host_os in
17907 openbsd2.[89] | openbsd2.[89].*)
17908 shlibpath_overrides_runpath=no
17911 shlibpath_overrides_runpath=yes
17913 esac
17914 else
17915 shlibpath_overrides_runpath=yes
17919 os2*)
17920 libname_spec='$name'
17921 shrext_cmds=".dll"
17922 need_lib_prefix=no
17923 library_names_spec='$libname${shared_ext} $libname.a'
17924 dynamic_linker='OS/2 ld.exe'
17925 shlibpath_var=LIBPATH
17928 osf3* | osf4* | osf5*)
17929 version_type=osf
17930 need_lib_prefix=no
17931 need_version=no
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17939 sco3.2v5*)
17940 version_type=osf
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 shlibpath_var=LD_LIBRARY_PATH
17946 solaris*)
17947 version_type=linux
17948 need_lib_prefix=no
17949 need_version=no
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 shlibpath_overrides_runpath=yes
17954 hardcode_into_libs=yes
17955 # ldd complains unless libraries are executable
17956 postinstall_cmds='chmod +x $lib'
17959 sunos4*)
17960 version_type=sunos
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=yes
17965 if test "$with_gnu_ld" = yes; then
17966 need_lib_prefix=no
17968 need_version=yes
17971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17972 version_type=linux
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 shlibpath_var=LD_LIBRARY_PATH
17976 case $host_vendor in
17977 sni)
17978 shlibpath_overrides_runpath=no
17979 need_lib_prefix=no
17980 export_dynamic_flag_spec='${wl}-Blargedynsym'
17981 runpath_var=LD_RUN_PATH
17983 siemens)
17984 need_lib_prefix=no
17986 motorola)
17987 need_lib_prefix=no
17988 need_version=no
17989 shlibpath_overrides_runpath=no
17990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17992 esac
17995 sysv4*MP*)
17996 if test -d /usr/nec ;then
17997 version_type=linux
17998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17999 soname_spec='$libname${shared_ext}.$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18004 uts4*)
18005 version_type=linux
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18012 dynamic_linker=no
18014 esac
18015 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18016 echo "${ECHO_T}$dynamic_linker" >&6
18017 test "$dynamic_linker" = no && can_build_shared=no
18019 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18021 hardcode_action=
18022 if test -n "$hardcode_libdir_flag_spec" || \
18023 test -n "$runpath_var" || \
18024 test "X$hardcode_automatic" = "Xyes" ; then
18026 # We can hardcode non-existant directories.
18027 if test "$hardcode_direct" != no &&
18028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18029 # have to relink, otherwise we might link with an installed library
18030 # when we should be linking with a yet-to-be-installed one
18031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
18032 test "$hardcode_minus_L" != no; then
18033 # Linking always hardcodes the temporary library directory.
18034 hardcode_action=relink
18035 else
18036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18037 hardcode_action=immediate
18039 else
18040 # We cannot hardcode anything, or else we can only hardcode existing
18041 # directories.
18042 hardcode_action=unsupported
18044 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18045 echo "${ECHO_T}$hardcode_action" >&6
18047 if test "$hardcode_action" = relink; then
18048 # Fast installation is not supported
18049 enable_fast_install=no
18050 elif test "$shlibpath_overrides_runpath" = yes ||
18051 test "$enable_shared" = no; then
18052 # Fast installation is not necessary
18053 enable_fast_install=needless
18056 striplib=
18057 old_striplib=
18058 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18059 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18060 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18062 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18063 echo "$as_me:$LINENO: result: yes" >&5
18064 echo "${ECHO_T}yes" >&6
18065 else
18066 # FIXME - insert some real tests, host_os isn't really good enough
18067 case $host_os in
18068 darwin*)
18069 if test -n "$STRIP" ; then
18070 striplib="$STRIP -x"
18071 echo "$as_me:$LINENO: result: yes" >&5
18072 echo "${ECHO_T}yes" >&6
18073 else
18074 echo "$as_me:$LINENO: result: no" >&5
18075 echo "${ECHO_T}no" >&6
18079 echo "$as_me:$LINENO: result: no" >&5
18080 echo "${ECHO_T}no" >&6
18082 esac
18085 if test "x$enable_dlopen" != xyes; then
18086 enable_dlopen=unknown
18087 enable_dlopen_self=unknown
18088 enable_dlopen_self_static=unknown
18089 else
18090 lt_cv_dlopen=no
18091 lt_cv_dlopen_libs=
18093 case $host_os in
18094 beos*)
18095 lt_cv_dlopen="load_add_on"
18096 lt_cv_dlopen_libs=
18097 lt_cv_dlopen_self=yes
18100 mingw* | pw32*)
18101 lt_cv_dlopen="LoadLibrary"
18102 lt_cv_dlopen_libs=
18105 cygwin*)
18106 lt_cv_dlopen="dlopen"
18107 lt_cv_dlopen_libs=
18110 darwin*)
18111 # if libdl is installed we need to link against it
18112 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18113 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18114 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 ac_check_lib_save_LIBS=$LIBS
18118 LIBS="-ldl $LIBS"
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h. */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18126 /* Override any gcc2 internal prototype to avoid an error. */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 /* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18132 char dlopen ();
18134 main ()
18136 dlopen ();
18138 return 0;
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest$ac_exeext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_lib_dl_dlopen=yes
18164 else
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18168 ac_cv_lib_dl_dlopen=no
18170 rm -f conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 LIBS=$ac_check_lib_save_LIBS
18174 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18176 if test $ac_cv_lib_dl_dlopen = yes; then
18177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18178 else
18180 lt_cv_dlopen="dyld"
18181 lt_cv_dlopen_libs=
18182 lt_cv_dlopen_self=yes
18189 echo "$as_me:$LINENO: checking for shl_load" >&5
18190 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18191 if test "${ac_cv_func_shl_load+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18202 #define shl_load innocuous_shl_load
18204 /* System header to define __stub macros and hopefully few prototypes,
18205 which can conflict with char shl_load (); below.
18206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18207 <limits.h> exists even on freestanding compilers. */
18209 #ifdef __STDC__
18210 # include <limits.h>
18211 #else
18212 # include <assert.h>
18213 #endif
18215 #undef shl_load
18217 /* Override any gcc2 internal prototype to avoid an error. */
18218 #ifdef __cplusplus
18219 extern "C"
18221 #endif
18222 /* We use char because int might match the return type of a gcc2
18223 builtin and then its argument prototype would still apply. */
18224 char shl_load ();
18225 /* The GNU C library defines this for functions which it implements
18226 to always fail with ENOSYS. Some functions are actually named
18227 something starting with __ and the normal name is an alias. */
18228 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18229 choke me
18230 #else
18231 char (*f) () = shl_load;
18232 #endif
18233 #ifdef __cplusplus
18235 #endif
18238 main ()
18240 return f != shl_load;
18242 return 0;
18244 _ACEOF
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18247 (eval $ac_link) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_func_shl_load=yes
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_cv_func_shl_load=no
18274 rm -f conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18277 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18278 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18279 if test $ac_cv_func_shl_load = yes; then
18280 lt_cv_dlopen="shl_load"
18281 else
18282 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18283 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18284 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287 ac_check_lib_save_LIBS=$LIBS
18288 LIBS="-ldld $LIBS"
18289 cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h. */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18296 /* Override any gcc2 internal prototype to avoid an error. */
18297 #ifdef __cplusplus
18298 extern "C"
18299 #endif
18300 /* We use char because int might match the return type of a gcc2
18301 builtin and then its argument prototype would still apply. */
18302 char shl_load ();
18304 main ()
18306 shl_load ();
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313 (eval $ac_link) 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest$ac_exeext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_dld_shl_load=yes
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_lib_dld_shl_load=no
18340 rm -f conftest.err conftest.$ac_objext \
18341 conftest$ac_exeext conftest.$ac_ext
18342 LIBS=$ac_check_lib_save_LIBS
18344 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18345 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18346 if test $ac_cv_lib_dld_shl_load = yes; then
18347 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18348 else
18349 echo "$as_me:$LINENO: checking for dlopen" >&5
18350 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18351 if test "${ac_cv_func_dlopen+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354 cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h. */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18362 #define dlopen innocuous_dlopen
18364 /* System header to define __stub macros and hopefully few prototypes,
18365 which can conflict with char dlopen (); below.
18366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18367 <limits.h> exists even on freestanding compilers. */
18369 #ifdef __STDC__
18370 # include <limits.h>
18371 #else
18372 # include <assert.h>
18373 #endif
18375 #undef dlopen
18377 /* Override any gcc2 internal prototype to avoid an error. */
18378 #ifdef __cplusplus
18379 extern "C"
18381 #endif
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384 char dlopen ();
18385 /* The GNU C library defines this for functions which it implements
18386 to always fail with ENOSYS. Some functions are actually named
18387 something starting with __ and the normal name is an alias. */
18388 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18389 choke me
18390 #else
18391 char (*f) () = dlopen;
18392 #endif
18393 #ifdef __cplusplus
18395 #endif
18398 main ()
18400 return f != dlopen;
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try='test -z "$ac_c_werror_flag"
18415 || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_func_dlopen=yes
18428 else
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 ac_cv_func_dlopen=no
18434 rm -f conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18437 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18438 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18439 if test $ac_cv_func_dlopen = yes; then
18440 lt_cv_dlopen="dlopen"
18441 else
18442 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447 ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-ldl $LIBS"
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18456 /* Override any gcc2 internal prototype to avoid an error. */
18457 #ifdef __cplusplus
18458 extern "C"
18459 #endif
18460 /* We use char because int might match the return type of a gcc2
18461 builtin and then its argument prototype would still apply. */
18462 char dlopen ();
18464 main ()
18466 dlopen ();
18468 return 0;
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18473 (eval $ac_link) 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try='test -z "$ac_c_werror_flag"
18481 || test ! -s conftest.err'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest$ac_exeext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_cv_lib_dl_dlopen=yes
18494 else
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ac_cv_lib_dl_dlopen=no
18500 rm -f conftest.err conftest.$ac_objext \
18501 conftest$ac_exeext conftest.$ac_ext
18502 LIBS=$ac_check_lib_save_LIBS
18504 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18506 if test $ac_cv_lib_dl_dlopen = yes; then
18507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18508 else
18509 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18510 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18511 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 ac_check_lib_save_LIBS=$LIBS
18515 LIBS="-lsvld $LIBS"
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 /* Override any gcc2 internal prototype to avoid an error. */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18529 char dlopen ();
18531 main ()
18533 dlopen ();
18535 return 0;
18537 _ACEOF
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try='test -z "$ac_c_werror_flag"
18548 || test ! -s conftest.err'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; } &&
18554 { ac_try='test -s conftest$ac_exeext'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; }; then
18560 ac_cv_lib_svld_dlopen=yes
18561 else
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ac_cv_lib_svld_dlopen=no
18567 rm -f conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18573 if test $ac_cv_lib_svld_dlopen = yes; then
18574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18575 else
18576 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18577 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18578 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-ldld $LIBS"
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h. */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any gcc2 internal prototype to avoid an error. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18596 char dld_link ();
18598 main ()
18600 dld_link ();
18602 return 0;
18604 _ACEOF
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18607 (eval $ac_link) 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag"
18615 || test ! -s conftest.err'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_lib_dld_dld_link=yes
18628 else
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_lib_dld_dld_link=no
18634 rm -f conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18638 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18639 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18640 if test $ac_cv_lib_dld_dld_link = yes; then
18641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18660 esac
18662 if test "x$lt_cv_dlopen" != xno; then
18663 enable_dlopen=yes
18664 else
18665 enable_dlopen=no
18668 case $lt_cv_dlopen in
18669 dlopen)
18670 save_CPPFLAGS="$CPPFLAGS"
18671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18673 save_LDFLAGS="$LDFLAGS"
18674 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18676 save_LIBS="$LIBS"
18677 LIBS="$lt_cv_dlopen_libs $LIBS"
18679 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18680 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18681 if test "${lt_cv_dlopen_self+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684 if test "$cross_compiling" = yes; then :
18685 lt_cv_dlopen_self=cross
18686 else
18687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18688 lt_status=$lt_dlunknown
18689 cat > conftest.$ac_ext <<EOF
18690 #line 18690 "configure"
18691 #include "confdefs.h"
18693 #if HAVE_DLFCN_H
18694 #include <dlfcn.h>
18695 #endif
18697 #include <stdio.h>
18699 #ifdef RTLD_GLOBAL
18700 # define LT_DLGLOBAL RTLD_GLOBAL
18701 #else
18702 # ifdef DL_GLOBAL
18703 # define LT_DLGLOBAL DL_GLOBAL
18704 # else
18705 # define LT_DLGLOBAL 0
18706 # endif
18707 #endif
18709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18710 find out it does not work in some platform. */
18711 #ifndef LT_DLLAZY_OR_NOW
18712 # ifdef RTLD_LAZY
18713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18714 # else
18715 # ifdef DL_LAZY
18716 # define LT_DLLAZY_OR_NOW DL_LAZY
18717 # else
18718 # ifdef RTLD_NOW
18719 # define LT_DLLAZY_OR_NOW RTLD_NOW
18720 # else
18721 # ifdef DL_NOW
18722 # define LT_DLLAZY_OR_NOW DL_NOW
18723 # else
18724 # define LT_DLLAZY_OR_NOW 0
18725 # endif
18726 # endif
18727 # endif
18728 # endif
18729 #endif
18731 #ifdef __cplusplus
18732 extern "C" void exit (int);
18733 #endif
18735 void fnord() { int i=42;}
18736 int main ()
18738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18739 int status = $lt_dlunknown;
18741 if (self)
18743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18745 /* dlclose (self); */
18748 exit (status);
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18756 (./conftest; exit; ) >&5 2>/dev/null
18757 lt_status=$?
18758 case x$lt_status in
18759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18761 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18762 esac
18763 else :
18764 # compilation failed
18765 lt_cv_dlopen_self=no
18768 rm -fr conftest*
18772 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18775 if test "x$lt_cv_dlopen_self" = xyes; then
18776 LDFLAGS="$LDFLAGS $link_static_flag"
18777 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18779 if test "${lt_cv_dlopen_self_static+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782 if test "$cross_compiling" = yes; then :
18783 lt_cv_dlopen_self_static=cross
18784 else
18785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18786 lt_status=$lt_dlunknown
18787 cat > conftest.$ac_ext <<EOF
18788 #line 18788 "configure"
18789 #include "confdefs.h"
18791 #if HAVE_DLFCN_H
18792 #include <dlfcn.h>
18793 #endif
18795 #include <stdio.h>
18797 #ifdef RTLD_GLOBAL
18798 # define LT_DLGLOBAL RTLD_GLOBAL
18799 #else
18800 # ifdef DL_GLOBAL
18801 # define LT_DLGLOBAL DL_GLOBAL
18802 # else
18803 # define LT_DLGLOBAL 0
18804 # endif
18805 #endif
18807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18808 find out it does not work in some platform. */
18809 #ifndef LT_DLLAZY_OR_NOW
18810 # ifdef RTLD_LAZY
18811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18812 # else
18813 # ifdef DL_LAZY
18814 # define LT_DLLAZY_OR_NOW DL_LAZY
18815 # else
18816 # ifdef RTLD_NOW
18817 # define LT_DLLAZY_OR_NOW RTLD_NOW
18818 # else
18819 # ifdef DL_NOW
18820 # define LT_DLLAZY_OR_NOW DL_NOW
18821 # else
18822 # define LT_DLLAZY_OR_NOW 0
18823 # endif
18824 # endif
18825 # endif
18826 # endif
18827 #endif
18829 #ifdef __cplusplus
18830 extern "C" void exit (int);
18831 #endif
18833 void fnord() { int i=42;}
18834 int main ()
18836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18837 int status = $lt_dlunknown;
18839 if (self)
18841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18842 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18843 /* dlclose (self); */
18846 exit (status);
18849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18850 (eval $ac_link) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18854 (./conftest; exit; ) >&5 2>/dev/null
18855 lt_status=$?
18856 case x$lt_status in
18857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18859 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18860 esac
18861 else :
18862 # compilation failed
18863 lt_cv_dlopen_self_static=no
18866 rm -fr conftest*
18870 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18874 CPPFLAGS="$save_CPPFLAGS"
18875 LDFLAGS="$save_LDFLAGS"
18876 LIBS="$save_LIBS"
18878 esac
18880 case $lt_cv_dlopen_self in
18881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18882 *) enable_dlopen_self=unknown ;;
18883 esac
18885 case $lt_cv_dlopen_self_static in
18886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18887 *) enable_dlopen_self_static=unknown ;;
18888 esac
18892 # Report which librarie types wil actually be built
18893 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18895 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18896 echo "${ECHO_T}$can_build_shared" >&6
18898 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18900 test "$can_build_shared" = "no" && enable_shared=no
18902 # On AIX, shared libraries and static libraries use the same namespace, and
18903 # are all built from PIC.
18904 case $host_os in
18905 aix3*)
18906 test "$enable_shared" = yes && enable_static=no
18907 if test -n "$RANLIB"; then
18908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18909 postinstall_cmds='$RANLIB $lib'
18913 aix4* | aix5*)
18914 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18915 test "$enable_shared" = yes && enable_static=no
18918 esac
18919 echo "$as_me:$LINENO: result: $enable_shared" >&5
18920 echo "${ECHO_T}$enable_shared" >&6
18922 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18923 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18924 # Make sure either enable_shared or enable_static is yes.
18925 test "$enable_shared" = yes || enable_static=yes
18926 echo "$as_me:$LINENO: result: $enable_static" >&5
18927 echo "${ECHO_T}$enable_static" >&6
18929 # The else clause should only fire when bootstrapping the
18930 # libtool distribution, otherwise you forgot to ship ltmain.sh
18931 # with your package, and you will get complaints that there are
18932 # no rules to generate ltmain.sh.
18933 if test -f "$ltmain"; then
18934 # See if we are running on zsh, and set the options which allow our commands through
18935 # without removal of \ escapes.
18936 if test -n "${ZSH_VERSION+set}" ; then
18937 setopt NO_GLOB_SUBST
18939 # Now quote all the things that may contain metacharacters while being
18940 # careful not to overquote the AC_SUBSTed values. We take copies of the
18941 # variables and quote the copies for generation of the libtool script.
18942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18943 SED SHELL STRIP \
18944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18946 deplibs_check_method reload_flag reload_cmds need_locks \
18947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18948 lt_cv_sys_global_symbol_to_c_name_address \
18949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18950 old_postinstall_cmds old_postuninstall_cmds \
18951 compiler \
18952 CC \
18953 LD \
18954 lt_prog_compiler_wl \
18955 lt_prog_compiler_pic \
18956 lt_prog_compiler_static \
18957 lt_prog_compiler_no_builtin_flag \
18958 export_dynamic_flag_spec \
18959 thread_safe_flag_spec \
18960 whole_archive_flag_spec \
18961 enable_shared_with_static_runtimes \
18962 old_archive_cmds \
18963 old_archive_from_new_cmds \
18964 predep_objects \
18965 postdep_objects \
18966 predeps \
18967 postdeps \
18968 compiler_lib_search_path \
18969 archive_cmds \
18970 archive_expsym_cmds \
18971 postinstall_cmds \
18972 postuninstall_cmds \
18973 old_archive_from_expsyms_cmds \
18974 allow_undefined_flag \
18975 no_undefined_flag \
18976 export_symbols_cmds \
18977 hardcode_libdir_flag_spec \
18978 hardcode_libdir_flag_spec_ld \
18979 hardcode_libdir_separator \
18980 hardcode_automatic \
18981 module_cmds \
18982 module_expsym_cmds \
18983 lt_cv_prog_compiler_c_o \
18984 exclude_expsyms \
18985 include_expsyms; do
18987 case $var in
18988 old_archive_cmds | \
18989 old_archive_from_new_cmds | \
18990 archive_cmds | \
18991 archive_expsym_cmds | \
18992 module_cmds | \
18993 module_expsym_cmds | \
18994 old_archive_from_expsyms_cmds | \
18995 export_symbols_cmds | \
18996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18997 postinstall_cmds | postuninstall_cmds | \
18998 old_postinstall_cmds | old_postuninstall_cmds | \
18999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19000 # Double-quote double-evaled strings.
19001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19006 esac
19007 done
19009 case $lt_echo in
19010 *'\$0 --fallback-echo"')
19011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19013 esac
19015 cfgfile="${ofile}T"
19016 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
19017 $rm -f "$cfgfile"
19018 { echo "$as_me:$LINENO: creating $ofile" >&5
19019 echo "$as_me: creating $ofile" >&6;}
19021 cat <<__EOF__ >> "$cfgfile"
19022 #! $SHELL
19024 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19025 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
19026 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19028 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
19029 # Free Software Foundation, Inc.
19031 # This file is part of GNU Libtool:
19032 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
19034 # This program is free software; you can redistribute it and/or modify
19035 # it under the terms of the GNU General Public License as published by
19036 # the Free Software Foundation; either version 2 of the License, or
19037 # (at your option) any later version.
19039 # This program is distributed in the hope that it will be useful, but
19040 # WITHOUT ANY WARRANTY; without even the implied warranty of
19041 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19042 # General Public License for more details.
19044 # You should have received a copy of the GNU General Public License
19045 # along with this program; if not, write to the Free Software
19046 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19048 # As a special exception to the GNU General Public License, if you
19049 # distribute this file as part of a program that contains a
19050 # configuration script generated by Autoconf, you may include it under
19051 # the same distribution terms that you use for the rest of that program.
19053 # A sed program that does not truncate output.
19054 SED=$lt_SED
19056 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19057 Xsed="$SED -e 1s/^X//"
19059 # The HP-UX ksh and POSIX shell print the target directory to stdout
19060 # if CDPATH is set.
19061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19063 # The names of the tagged configurations supported by this script.
19064 available_tags=
19066 # ### BEGIN LIBTOOL CONFIG
19068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19070 # Shell to use when invoking shell scripts.
19071 SHELL=$lt_SHELL
19073 # Whether or not to build shared libraries.
19074 build_libtool_libs=$enable_shared
19076 # Whether or not to build static libraries.
19077 build_old_libs=$enable_static
19079 # Whether or not to add -lc for building shared libraries.
19080 build_libtool_need_lc=$archive_cmds_need_lc
19082 # Whether or not to disallow shared libs when runtime libs are static
19083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19085 # Whether or not to optimize for fast installation.
19086 fast_install=$enable_fast_install
19088 # The host system.
19089 host_alias=$host_alias
19090 host=$host
19091 host_os=$host_os
19093 # The build system.
19094 build_alias=$build_alias
19095 build=$build
19096 build_os=$build_os
19098 # An echo program that does not interpret backslashes.
19099 echo=$lt_echo
19101 # The archiver.
19102 AR=$lt_AR
19103 AR_FLAGS=$lt_AR_FLAGS
19105 # A C compiler.
19106 LTCC=$lt_LTCC
19108 # A language-specific compiler.
19109 CC=$lt_compiler
19111 # Is the compiler the GNU C compiler?
19112 with_gcc=$GCC
19114 # An ERE matcher.
19115 EGREP=$lt_EGREP
19117 # The linker used to build libraries.
19118 LD=$lt_LD
19120 # Whether we need hard or soft links.
19121 LN_S=$lt_LN_S
19123 # A BSD-compatible nm program.
19124 NM=$lt_NM
19126 # A symbol stripping program
19127 STRIP=$lt_STRIP
19129 # Used to examine libraries when file_magic_cmd begins "file"
19130 MAGIC_CMD=$MAGIC_CMD
19132 # Used on cygwin: DLL creation program.
19133 DLLTOOL="$DLLTOOL"
19135 # Used on cygwin: object dumper.
19136 OBJDUMP="$OBJDUMP"
19138 # Used on cygwin: assembler.
19139 AS="$AS"
19141 # The name of the directory that contains temporary libtool files.
19142 objdir=$objdir
19144 # How to create reloadable object files.
19145 reload_flag=$lt_reload_flag
19146 reload_cmds=$lt_reload_cmds
19148 # How to pass a linker flag through the compiler.
19149 wl=$lt_lt_prog_compiler_wl
19151 # Object file suffix (normally "o").
19152 objext="$ac_objext"
19154 # Old archive suffix (normally "a").
19155 libext="$libext"
19157 # Shared library suffix (normally ".so").
19158 shrext_cmds='$shrext_cmds'
19160 # Executable file suffix (normally "").
19161 exeext="$exeext"
19163 # Additional compiler flags for building library objects.
19164 pic_flag=$lt_lt_prog_compiler_pic
19165 pic_mode=$pic_mode
19167 # What is the maximum length of a command?
19168 max_cmd_len=$lt_cv_sys_max_cmd_len
19170 # Does compiler simultaneously support -c and -o options?
19171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19173 # Must we lock files when doing compilation?
19174 need_locks=$lt_need_locks
19176 # Do we need the lib prefix for modules?
19177 need_lib_prefix=$need_lib_prefix
19179 # Do we need a version for libraries?
19180 need_version=$need_version
19182 # Whether dlopen is supported.
19183 dlopen_support=$enable_dlopen
19185 # Whether dlopen of programs is supported.
19186 dlopen_self=$enable_dlopen_self
19188 # Whether dlopen of statically linked programs is supported.
19189 dlopen_self_static=$enable_dlopen_self_static
19191 # Compiler flag to prevent dynamic linking.
19192 link_static_flag=$lt_lt_prog_compiler_static
19194 # Compiler flag to turn off builtin functions.
19195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19197 # Compiler flag to allow reflexive dlopens.
19198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19200 # Compiler flag to generate shared objects directly from archives.
19201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19203 # Compiler flag to generate thread-safe objects.
19204 thread_safe_flag_spec=$lt_thread_safe_flag_spec
19206 # Library versioning type.
19207 version_type=$version_type
19209 # Format of library name prefix.
19210 libname_spec=$lt_libname_spec
19212 # List of archive names. First name is the real one, the rest are links.
19213 # The last name is the one that the linker finds with -lNAME.
19214 library_names_spec=$lt_library_names_spec
19216 # The coded name of the library, if different from the real name.
19217 soname_spec=$lt_soname_spec
19219 # Commands used to build and install an old-style archive.
19220 RANLIB=$lt_RANLIB
19221 old_archive_cmds=$lt_old_archive_cmds
19222 old_postinstall_cmds=$lt_old_postinstall_cmds
19223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19225 # Create an old-style archive from a shared archive.
19226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19228 # Create a temporary old-style archive to link instead of a shared archive.
19229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19231 # Commands used to build and install a shared archive.
19232 archive_cmds=$lt_archive_cmds
19233 archive_expsym_cmds=$lt_archive_expsym_cmds
19234 postinstall_cmds=$lt_postinstall_cmds
19235 postuninstall_cmds=$lt_postuninstall_cmds
19237 # Commands used to build a loadable module (assumed same as above if empty)
19238 module_cmds=$lt_module_cmds
19239 module_expsym_cmds=$lt_module_expsym_cmds
19241 # Commands to strip libraries.
19242 old_striplib=$lt_old_striplib
19243 striplib=$lt_striplib
19245 # Dependencies to place before the objects being linked to create a
19246 # shared library.
19247 predep_objects=$lt_predep_objects
19249 # Dependencies to place after the objects being linked to create a
19250 # shared library.
19251 postdep_objects=$lt_postdep_objects
19253 # Dependencies to place before the objects being linked to create a
19254 # shared library.
19255 predeps=$lt_predeps
19257 # Dependencies to place after the objects being linked to create a
19258 # shared library.
19259 postdeps=$lt_postdeps
19261 # The library search path used internally by the compiler when linking
19262 # a shared library.
19263 compiler_lib_search_path=$lt_compiler_lib_search_path
19265 # Method to check whether dependent libraries are shared objects.
19266 deplibs_check_method=$lt_deplibs_check_method
19268 # Command to use when deplibs_check_method == file_magic.
19269 file_magic_cmd=$lt_file_magic_cmd
19271 # Flag that allows shared libraries with undefined symbols to be built.
19272 allow_undefined_flag=$lt_allow_undefined_flag
19274 # Flag that forces no undefined symbols.
19275 no_undefined_flag=$lt_no_undefined_flag
19277 # Commands used to finish a libtool library installation in a directory.
19278 finish_cmds=$lt_finish_cmds
19280 # Same as above, but a single script fragment to be evaled but not shown.
19281 finish_eval=$lt_finish_eval
19283 # Take the output of nm and produce a listing of raw symbols and C names.
19284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19286 # Transform the output of nm in a proper C declaration
19287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19289 # Transform the output of nm in a C name address pair
19290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19292 # This is the shared library runtime path variable.
19293 runpath_var=$runpath_var
19295 # This is the shared library path variable.
19296 shlibpath_var=$shlibpath_var
19298 # Is shlibpath searched before the hard-coded library search path?
19299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19301 # How to hardcode a shared library path into an executable.
19302 hardcode_action=$hardcode_action
19304 # Whether we should hardcode library paths into libraries.
19305 hardcode_into_libs=$hardcode_into_libs
19307 # Flag to hardcode \$libdir into a binary during linking.
19308 # This must work even if \$libdir does not exist.
19309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19311 # If ld is used when linking, flag to hardcode \$libdir into
19312 # a binary during linking. This must work even if \$libdir does
19313 # not exist.
19314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19316 # Whether we need a single -rpath flag with a separated argument.
19317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19320 # resulting binary.
19321 hardcode_direct=$hardcode_direct
19323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19324 # resulting binary.
19325 hardcode_minus_L=$hardcode_minus_L
19327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19328 # the resulting binary.
19329 hardcode_shlibpath_var=$hardcode_shlibpath_var
19331 # Set to yes if building a shared library automatically hardcodes DIR into the library
19332 # and all subsequent libraries and executables linked against it.
19333 hardcode_automatic=$hardcode_automatic
19335 # Variables whose values should be saved in libtool wrapper scripts and
19336 # restored at relink time.
19337 variables_saved_for_relink="$variables_saved_for_relink"
19339 # Whether libtool must link a program against all its dependency libraries.
19340 link_all_deplibs=$link_all_deplibs
19342 # Compile-time system search path for libraries
19343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19345 # Run-time system search path for libraries
19346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19348 # Fix the shell variable \$srcfile for the compiler.
19349 fix_srcfile_path="$fix_srcfile_path"
19351 # Set to yes if exported symbols are required.
19352 always_export_symbols=$always_export_symbols
19354 # The commands to list exported symbols.
19355 export_symbols_cmds=$lt_export_symbols_cmds
19357 # The commands to extract the exported symbol list from a shared archive.
19358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19360 # Symbols that should not be listed in the preloaded symbols.
19361 exclude_expsyms=$lt_exclude_expsyms
19363 # Symbols that must always be exported.
19364 include_expsyms=$lt_include_expsyms
19366 # ### END LIBTOOL CONFIG
19368 __EOF__
19371 case $host_os in
19372 aix3*)
19373 cat <<\EOF >> "$cfgfile"
19375 # AIX sometimes has problems with the GCC collect2 program. For some
19376 # reason, if we set the COLLECT_NAMES environment variable, the problems
19377 # vanish in a puff of smoke.
19378 if test "X${COLLECT_NAMES+set}" != Xset; then
19379 COLLECT_NAMES=
19380 export COLLECT_NAMES
19384 esac
19386 # We use sed instead of cat because bash on DJGPP gets confused if
19387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19388 # text mode, it properly converts lines to CR/LF. This bash problem
19389 # is reportedly fixed, but why not run on old versions too?
19390 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19392 mv -f "$cfgfile" "$ofile" || \
19393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19394 chmod +x "$ofile"
19396 else
19397 # If there is no Makefile yet, we rely on a make rule to execute
19398 # `config.status --recheck' to rerun these tests and create the
19399 # libtool script then.
19400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19401 if test -f "$ltmain_in"; then
19402 test -f Makefile && make "$ltmain"
19407 ac_ext=c
19408 ac_cpp='$CPP $CPPFLAGS'
19409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 CC="$lt_save_CC"
19416 # Check whether --with-tags or --without-tags was given.
19417 if test "${with_tags+set}" = set; then
19418 withval="$with_tags"
19419 tagnames="$withval"
19422 if test -f "$ltmain" && test -n "$tagnames"; then
19423 if test ! -f "${ofile}"; then
19424 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
19425 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
19428 if test -z "$LTCC"; then
19429 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
19430 if test -z "$LTCC"; then
19431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
19432 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
19433 else
19434 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
19435 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
19439 # Extract list of available tagged configurations in $ofile.
19440 # Note that this assumes the entire list is on one line.
19441 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
19443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19444 for tagname in $tagnames; do
19445 IFS="$lt_save_ifs"
19446 # Check whether tagname contains only valid characters
19447 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
19448 "") ;;
19449 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
19450 echo "$as_me: error: invalid tag name: $tagname" >&2;}
19451 { (exit 1); exit 1; }; }
19453 esac
19455 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
19456 then
19457 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
19458 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
19459 { (exit 1); exit 1; }; }
19462 # Update the list of available tags.
19463 if test -n "$tagname"; then
19464 echo appending configuration tag \"$tagname\" to $ofile
19466 case $tagname in
19467 CXX)
19468 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19469 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19470 (test "X$CXX" != "Xg++"))) ; then
19472 else
19473 tagname=""
19477 F77)
19478 if test -n "$F77" && test "X$F77" != "Xno"; then
19480 else
19481 tagname=""
19485 GCJ)
19486 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19490 # Source file extension for Java test sources.
19491 ac_ext=java
19493 # Object file extension for compiled Java test sources.
19494 objext=o
19495 objext_GCJ=$objext
19497 # Code to be used in simple compile tests
19498 lt_simple_compile_test_code="class foo {}\n"
19500 # Code to be used in simple link tests
19501 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
19503 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19505 # If no C compiler was specified, use CC.
19506 LTCC=${LTCC-"$CC"}
19508 # Allow CC to be a program name with arguments.
19509 compiler=$CC
19512 # save warnings/boilerplate of simple test code
19513 ac_outfile=conftest.$ac_objext
19514 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19516 _lt_compiler_boilerplate=`cat conftest.err`
19517 $rm conftest*
19519 ac_outfile=conftest.$ac_objext
19520 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19522 _lt_linker_boilerplate=`cat conftest.err`
19523 $rm conftest*
19526 # Allow CC to be a program name with arguments.
19527 lt_save_CC="$CC"
19528 CC=${GCJ-"gcj"}
19529 compiler=$CC
19530 compiler_GCJ=$CC
19531 for cc_temp in $compiler""; do
19532 case $cc_temp in
19533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19535 \-*) ;;
19536 *) break;;
19537 esac
19538 done
19539 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19542 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19543 archive_cmds_need_lc_GCJ=no
19545 old_archive_cmds_GCJ=$old_archive_cmds
19548 lt_prog_compiler_no_builtin_flag_GCJ=
19550 if test "$GCC" = yes; then
19551 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19554 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19555 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19556 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 lt_cv_prog_compiler_rtti_exceptions=no
19560 ac_outfile=conftest.$ac_objext
19561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19562 lt_compiler_flag="-fno-rtti -fno-exceptions"
19563 # Insert the option either (1) after the last *FLAGS variable, or
19564 # (2) before a word containing "conftest.", or (3) at the end.
19565 # Note that $ac_compile itself does not contain backslashes and begins
19566 # with a dollar sign (not a hyphen), so the echo should work correctly.
19567 # The option is referenced via a variable to avoid confusing sed.
19568 lt_compile=`echo "$ac_compile" | $SED \
19569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19571 -e 's:$: $lt_compiler_flag:'`
19572 (eval echo "\"\$as_me:19572: $lt_compile\"" >&5)
19573 (eval "$lt_compile" 2>conftest.err)
19574 ac_status=$?
19575 cat conftest.err >&5
19576 echo "$as_me:19576: \$? = $ac_status" >&5
19577 if (exit $ac_status) && test -s "$ac_outfile"; then
19578 # The compiler can only warn and ignore the option if not recognized
19579 # So say no if there are warnings other than the usual output.
19580 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
19581 $SED '/^$/d' conftest.err >conftest.er2
19582 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
19583 lt_cv_prog_compiler_rtti_exceptions=yes
19586 $rm conftest*
19589 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19590 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19592 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19593 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19594 else
19600 lt_prog_compiler_wl_GCJ=
19601 lt_prog_compiler_pic_GCJ=
19602 lt_prog_compiler_static_GCJ=
19604 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19605 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19607 if test "$GCC" = yes; then
19608 lt_prog_compiler_wl_GCJ='-Wl,'
19609 lt_prog_compiler_static_GCJ='-static'
19611 case $host_os in
19612 aix*)
19613 # All AIX code is PIC.
19614 if test "$host_cpu" = ia64; then
19615 # AIX 5 now supports IA64 processor
19616 lt_prog_compiler_static_GCJ='-Bstatic'
19620 amigaos*)
19621 # FIXME: we need at least 68020 code to build shared libraries, but
19622 # adding the `-m68020' flag to GCC prevents building anything better,
19623 # like `-m68040'.
19624 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19627 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19628 # PIC is the default for these OSes.
19631 mingw* | pw32* | os2*)
19632 # This hack is so that the source file can tell whether it is being
19633 # built for inclusion in a dll (and should export symbols for example).
19634 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19637 darwin* | rhapsody*)
19638 # PIC is the default on this platform
19639 # Common symbols not allowed in MH_DYLIB files
19640 lt_prog_compiler_pic_GCJ='-fno-common'
19643 msdosdjgpp*)
19644 # Just because we use GCC doesn't mean we suddenly get shared libraries
19645 # on systems that don't support them.
19646 lt_prog_compiler_can_build_shared_GCJ=no
19647 enable_shared=no
19650 sysv4*MP*)
19651 if test -d /usr/nec; then
19652 lt_prog_compiler_pic_GCJ=-Kconform_pic
19656 hpux*)
19657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19658 # not for PA HP-UX.
19659 case $host_cpu in
19660 hppa*64*|ia64*)
19661 # +Z the default
19664 lt_prog_compiler_pic_GCJ='-fPIC'
19666 esac
19670 lt_prog_compiler_pic_GCJ='-fPIC'
19672 esac
19673 else
19674 # PORTME Check for flag to pass linker flags through the system compiler.
19675 case $host_os in
19676 aix*)
19677 lt_prog_compiler_wl_GCJ='-Wl,'
19678 if test "$host_cpu" = ia64; then
19679 # AIX 5 now supports IA64 processor
19680 lt_prog_compiler_static_GCJ='-Bstatic'
19681 else
19682 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19685 darwin*)
19686 # PIC is the default on this platform
19687 # Common symbols not allowed in MH_DYLIB files
19688 case $cc_basename in
19689 xlc*)
19690 lt_prog_compiler_pic_GCJ='-qnocommon'
19691 lt_prog_compiler_wl_GCJ='-Wl,'
19693 esac
19696 mingw* | pw32* | os2*)
19697 # This hack is so that the source file can tell whether it is being
19698 # built for inclusion in a dll (and should export symbols for example).
19699 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19702 hpux9* | hpux10* | hpux11*)
19703 lt_prog_compiler_wl_GCJ='-Wl,'
19704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19705 # not for PA HP-UX.
19706 case $host_cpu in
19707 hppa*64*|ia64*)
19708 # +Z the default
19711 lt_prog_compiler_pic_GCJ='+Z'
19713 esac
19714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19715 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19718 irix5* | irix6* | nonstopux*)
19719 lt_prog_compiler_wl_GCJ='-Wl,'
19720 # PIC (with -KPIC) is the default.
19721 lt_prog_compiler_static_GCJ='-non_shared'
19724 newsos6)
19725 lt_prog_compiler_pic_GCJ='-KPIC'
19726 lt_prog_compiler_static_GCJ='-Bstatic'
19729 linux*)
19730 case $cc_basename in
19731 icc* | ecc*)
19732 lt_prog_compiler_wl_GCJ='-Wl,'
19733 lt_prog_compiler_pic_GCJ='-KPIC'
19734 lt_prog_compiler_static_GCJ='-static'
19736 pgcc* | pgf77* | pgf90* | pgf95*)
19737 # Portland Group compilers (*not* the Pentium gcc compiler,
19738 # which looks to be a dead project)
19739 lt_prog_compiler_wl_GCJ='-Wl,'
19740 lt_prog_compiler_pic_GCJ='-fpic'
19741 lt_prog_compiler_static_GCJ='-Bstatic'
19743 ccc*)
19744 lt_prog_compiler_wl_GCJ='-Wl,'
19745 # All Alpha code is PIC.
19746 lt_prog_compiler_static_GCJ='-non_shared'
19748 esac
19751 osf3* | osf4* | osf5*)
19752 lt_prog_compiler_wl_GCJ='-Wl,'
19753 # All OSF/1 code is PIC.
19754 lt_prog_compiler_static_GCJ='-non_shared'
19757 sco3.2v5*)
19758 lt_prog_compiler_pic_GCJ='-Kpic'
19759 lt_prog_compiler_static_GCJ='-dn'
19762 solaris*)
19763 lt_prog_compiler_pic_GCJ='-KPIC'
19764 lt_prog_compiler_static_GCJ='-Bstatic'
19765 case $cc_basename in
19766 f77* | f90* | f95*)
19767 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19769 lt_prog_compiler_wl_GCJ='-Wl,';;
19770 esac
19773 sunos4*)
19774 lt_prog_compiler_wl_GCJ='-Qoption ld '
19775 lt_prog_compiler_pic_GCJ='-PIC'
19776 lt_prog_compiler_static_GCJ='-Bstatic'
19779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19780 lt_prog_compiler_wl_GCJ='-Wl,'
19781 lt_prog_compiler_pic_GCJ='-KPIC'
19782 lt_prog_compiler_static_GCJ='-Bstatic'
19785 sysv4*MP*)
19786 if test -d /usr/nec ;then
19787 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19788 lt_prog_compiler_static_GCJ='-Bstatic'
19792 unicos*)
19793 lt_prog_compiler_wl_GCJ='-Wl,'
19794 lt_prog_compiler_can_build_shared_GCJ=no
19797 uts4*)
19798 lt_prog_compiler_pic_GCJ='-pic'
19799 lt_prog_compiler_static_GCJ='-Bstatic'
19803 lt_prog_compiler_can_build_shared_GCJ=no
19805 esac
19808 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19809 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19812 # Check to make sure the PIC flag actually works.
19814 if test -n "$lt_prog_compiler_pic_GCJ"; then
19816 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19818 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 lt_prog_compiler_pic_works_GCJ=no
19822 ac_outfile=conftest.$ac_objext
19823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19824 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19825 # Insert the option either (1) after the last *FLAGS variable, or
19826 # (2) before a word containing "conftest.", or (3) at the end.
19827 # Note that $ac_compile itself does not contain backslashes and begins
19828 # with a dollar sign (not a hyphen), so the echo should work correctly.
19829 # The option is referenced via a variable to avoid confusing sed.
19830 lt_compile=`echo "$ac_compile" | $SED \
19831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19833 -e 's:$: $lt_compiler_flag:'`
19834 (eval echo "\"\$as_me:19834: $lt_compile\"" >&5)
19835 (eval "$lt_compile" 2>conftest.err)
19836 ac_status=$?
19837 cat conftest.err >&5
19838 echo "$as_me:19838: \$? = $ac_status" >&5
19839 if (exit $ac_status) && test -s "$ac_outfile"; then
19840 # The compiler can only warn and ignore the option if not recognized
19841 # So say no if there are warnings other than the usual output.
19842 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
19843 $SED '/^$/d' conftest.err >conftest.er2
19844 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
19845 lt_prog_compiler_pic_works_GCJ=yes
19848 $rm conftest*
19851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19852 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19854 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19855 case $lt_prog_compiler_pic_GCJ in
19856 "" | " "*) ;;
19857 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19858 esac
19859 else
19860 lt_prog_compiler_pic_GCJ=
19861 lt_prog_compiler_can_build_shared_GCJ=no
19865 case $host_os in
19866 # For platforms which do not support PIC, -DPIC is meaningless:
19867 *djgpp*)
19868 lt_prog_compiler_pic_GCJ=
19871 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19873 esac
19875 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19877 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880 lt_cv_prog_compiler_c_o_GCJ=no
19881 $rm -r conftest 2>/dev/null
19882 mkdir conftest
19883 cd conftest
19884 mkdir out
19885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19887 lt_compiler_flag="-o out/conftest2.$ac_objext"
19888 # Insert the option either (1) after the last *FLAGS variable, or
19889 # (2) before a word containing "conftest.", or (3) at the end.
19890 # Note that $ac_compile itself does not contain backslashes and begins
19891 # with a dollar sign (not a hyphen), so the echo should work correctly.
19892 lt_compile=`echo "$ac_compile" | $SED \
19893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19895 -e 's:$: $lt_compiler_flag:'`
19896 (eval echo "\"\$as_me:19896: $lt_compile\"" >&5)
19897 (eval "$lt_compile" 2>out/conftest.err)
19898 ac_status=$?
19899 cat out/conftest.err >&5
19900 echo "$as_me:19900: \$? = $ac_status" >&5
19901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19902 then
19903 # The compiler can only warn and ignore the option if not recognized
19904 # So say no if there are warnings
19905 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
19906 $SED '/^$/d' out/conftest.err >out/conftest.er2
19907 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19908 lt_cv_prog_compiler_c_o_GCJ=yes
19911 chmod u+w . 2>&5
19912 $rm conftest*
19913 # SGI C++ compiler will create directory out/ii_files/ for
19914 # template instantiation
19915 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19916 $rm out/* && rmdir out
19917 cd ..
19918 rmdir conftest
19919 $rm conftest*
19922 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19926 hard_links="nottested"
19927 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19928 # do not overwrite the value of need_locks provided by the user
19929 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19931 hard_links=yes
19932 $rm conftest*
19933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19934 touch conftest.a
19935 ln conftest.a conftest.b 2>&5 || hard_links=no
19936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19937 echo "$as_me:$LINENO: result: $hard_links" >&5
19938 echo "${ECHO_T}$hard_links" >&6
19939 if test "$hard_links" = no; then
19940 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19942 need_locks=warn
19944 else
19945 need_locks=no
19948 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19951 runpath_var=
19952 allow_undefined_flag_GCJ=
19953 enable_shared_with_static_runtimes_GCJ=no
19954 archive_cmds_GCJ=
19955 archive_expsym_cmds_GCJ=
19956 old_archive_From_new_cmds_GCJ=
19957 old_archive_from_expsyms_cmds_GCJ=
19958 export_dynamic_flag_spec_GCJ=
19959 whole_archive_flag_spec_GCJ=
19960 thread_safe_flag_spec_GCJ=
19961 hardcode_libdir_flag_spec_GCJ=
19962 hardcode_libdir_flag_spec_ld_GCJ=
19963 hardcode_libdir_separator_GCJ=
19964 hardcode_direct_GCJ=no
19965 hardcode_minus_L_GCJ=no
19966 hardcode_shlibpath_var_GCJ=unsupported
19967 link_all_deplibs_GCJ=unknown
19968 hardcode_automatic_GCJ=no
19969 module_cmds_GCJ=
19970 module_expsym_cmds_GCJ=
19971 always_export_symbols_GCJ=no
19972 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19973 # include_expsyms should be a list of space-separated symbols to be *always*
19974 # included in the symbol list
19975 include_expsyms_GCJ=
19976 # exclude_expsyms can be an extended regexp of symbols to exclude
19977 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19978 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19979 # as well as any symbol that contains `d'.
19980 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19982 # platforms (ab)use it in PIC code, but their linkers get confused if
19983 # the symbol is explicitly referenced. Since portable code cannot
19984 # rely on this symbol name, it's probably fine to never include it in
19985 # preloaded symbol tables.
19986 extract_expsyms_cmds=
19987 # Just being paranoid about ensuring that cc_basename is set.
19988 for cc_temp in $compiler""; do
19989 case $cc_temp in
19990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19992 \-*) ;;
19993 *) break;;
19994 esac
19995 done
19996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19998 case $host_os in
19999 cygwin* | mingw* | pw32*)
20000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20001 # When not using gcc, we currently assume that we are using
20002 # Microsoft Visual C++.
20003 if test "$GCC" != yes; then
20004 with_gnu_ld=no
20007 openbsd*)
20008 with_gnu_ld=no
20010 esac
20012 ld_shlibs_GCJ=yes
20013 if test "$with_gnu_ld" = yes; then
20014 # If archive_cmds runs LD, not CC, wlarc should be empty
20015 wlarc='${wl}'
20017 # Set some defaults for GNU ld with shared library support. These
20018 # are reset later if shared libraries are not supported. Putting them
20019 # here allows them to be overridden if necessary.
20020 runpath_var=LD_RUN_PATH
20021 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20022 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20023 # ancient GNU ld didn't support --whole-archive et. al.
20024 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20025 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20026 else
20027 whole_archive_flag_spec_GCJ=
20029 supports_anon_versioning=no
20030 case `$LD -v 2>/dev/null` in
20031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20034 *\ 2.11.*) ;; # other 2.11 versions
20035 *) supports_anon_versioning=yes ;;
20036 esac
20038 # See if GNU ld supports shared libraries.
20039 case $host_os in
20040 aix3* | aix4* | aix5*)
20041 # On AIX/PPC, the GNU linker is very broken
20042 if test "$host_cpu" != ia64; then
20043 ld_shlibs_GCJ=no
20044 cat <<EOF 1>&2
20046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20047 *** to be unable to reliably create shared libraries on AIX.
20048 *** Therefore, libtool is disabling shared libraries support. If you
20049 *** really care for shared libraries, you may want to modify your PATH
20050 *** so that a non-GNU linker is found, and then restart.
20056 amigaos*)
20057 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
20058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20059 hardcode_minus_L_GCJ=yes
20061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20062 # that the semantics of dynamic libraries on AmigaOS, at least up
20063 # to version 4, is to share data among multiple programs linked
20064 # with the same dynamic library. Since this doesn't match the
20065 # behavior of shared libraries on other platforms, we can't use
20066 # them.
20067 ld_shlibs_GCJ=no
20070 beos*)
20071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20072 allow_undefined_flag_GCJ=unsupported
20073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20074 # support --undefined. This deserves some investigation. FIXME
20075 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20076 else
20077 ld_shlibs_GCJ=no
20081 cygwin* | mingw* | pw32*)
20082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20083 # as there is no search path for DLLs.
20084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20085 allow_undefined_flag_GCJ=unsupported
20086 always_export_symbols_GCJ=no
20087 enable_shared_with_static_runtimes_GCJ=yes
20088 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20092 # If the export-symbols file already is a .def file (1st line
20093 # is EXPORTS), use it as is; otherwise, prepend...
20094 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20095 cp $export_symbols $output_objdir/$soname.def;
20096 else
20097 echo EXPORTS > $output_objdir/$soname.def;
20098 cat $export_symbols >> $output_objdir/$soname.def;
20100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20101 else
20102 ld_shlibs_GCJ=no
20106 linux*)
20107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20108 tmp_addflag=
20109 case $cc_basename,$host_cpu in
20110 pgcc*) # Portland Group C compiler
20111 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20112 tmp_addflag=' $pic_flag'
20114 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20115 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20116 tmp_addflag=' $pic_flag -Mnomain' ;;
20117 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20118 tmp_addflag=' -i_dynamic' ;;
20119 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20120 tmp_addflag=' -i_dynamic -nofor_main' ;;
20121 ifc* | ifort*) # Intel Fortran compiler
20122 tmp_addflag=' -nofor_main' ;;
20123 esac
20124 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20126 if test $supports_anon_versioning = yes; then
20127 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20129 $echo "local: *; };" >> $output_objdir/$libname.ver~
20130 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20132 else
20133 ld_shlibs_GCJ=no
20137 netbsd*)
20138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20139 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20140 wlarc=
20141 else
20142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20147 solaris* | sysv5*)
20148 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20149 ld_shlibs_GCJ=no
20150 cat <<EOF 1>&2
20152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20153 *** create shared libraries on Solaris systems. Therefore, libtool
20154 *** is disabling shared libraries support. We urge you to upgrade GNU
20155 *** binutils to release 2.9.1 or newer. Another option is to modify
20156 *** your PATH or compiler configuration so that the native linker is
20157 *** used, and then restart.
20160 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20163 else
20164 ld_shlibs_GCJ=no
20168 sunos4*)
20169 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20170 wlarc=
20171 hardcode_direct_GCJ=yes
20172 hardcode_shlibpath_var_GCJ=no
20176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20179 else
20180 ld_shlibs_GCJ=no
20183 esac
20185 if test "$ld_shlibs_GCJ" = no; then
20186 runpath_var=
20187 hardcode_libdir_flag_spec_GCJ=
20188 export_dynamic_flag_spec_GCJ=
20189 whole_archive_flag_spec_GCJ=
20191 else
20192 # PORTME fill in a description of your system's linker (not GNU ld)
20193 case $host_os in
20194 aix3*)
20195 allow_undefined_flag_GCJ=unsupported
20196 always_export_symbols_GCJ=yes
20197 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20198 # Note: this linker hardcodes the directories in LIBPATH if there
20199 # are no directories specified by -L.
20200 hardcode_minus_L_GCJ=yes
20201 if test "$GCC" = yes && test -z "$link_static_flag"; then
20202 # Neither direct hardcoding nor static linking is supported with a
20203 # broken collect2.
20204 hardcode_direct_GCJ=unsupported
20208 aix4* | aix5*)
20209 if test "$host_cpu" = ia64; then
20210 # On IA64, the linker does run time linking by default, so we don't
20211 # have to do anything special.
20212 aix_use_runtimelinking=no
20213 exp_sym_flag='-Bexport'
20214 no_entry_flag=""
20215 else
20216 # If we're using GNU nm, then we don't want the "-C" option.
20217 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20218 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20219 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20220 else
20221 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20223 aix_use_runtimelinking=no
20225 # Test if we are trying to use run time linking or normal
20226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20227 # need to do runtime linking.
20228 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20229 for ld_flag in $LDFLAGS; do
20230 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20231 aix_use_runtimelinking=yes
20232 break
20234 done
20235 esac
20237 exp_sym_flag='-bexport'
20238 no_entry_flag='-bnoentry'
20241 # When large executables or shared objects are built, AIX ld can
20242 # have problems creating the table of contents. If linking a library
20243 # or program results in "error TOC overflow" add -mminimal-toc to
20244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20247 archive_cmds_GCJ=''
20248 hardcode_direct_GCJ=yes
20249 hardcode_libdir_separator_GCJ=':'
20250 link_all_deplibs_GCJ=yes
20252 if test "$GCC" = yes; then
20253 case $host_os in aix4.[012]|aix4.[012].*)
20254 # We only want to do this on AIX 4.2 and lower, the check
20255 # below for broken collect2 doesn't work under 4.3+
20256 collect2name=`${CC} -print-prog-name=collect2`
20257 if test -f "$collect2name" && \
20258 strings "$collect2name" | grep resolve_lib_name >/dev/null
20259 then
20260 # We have reworked collect2
20261 hardcode_direct_GCJ=yes
20262 else
20263 # We have old collect2
20264 hardcode_direct_GCJ=unsupported
20265 # It fails to find uninstalled libraries when the uninstalled
20266 # path is not listed in the libpath. Setting hardcode_minus_L
20267 # to unsupported forces relinking
20268 hardcode_minus_L_GCJ=yes
20269 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20270 hardcode_libdir_separator_GCJ=
20272 esac
20273 shared_flag='-shared'
20274 if test "$aix_use_runtimelinking" = yes; then
20275 shared_flag="$shared_flag "'${wl}-G'
20277 else
20278 # not using gcc
20279 if test "$host_cpu" = ia64; then
20280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20281 # chokes on -Wl,-G. The following line is correct:
20282 shared_flag='-G'
20283 else
20284 if test "$aix_use_runtimelinking" = yes; then
20285 shared_flag='${wl}-G'
20286 else
20287 shared_flag='${wl}-bM:SRE'
20292 # It seems that -bexpall does not export symbols beginning with
20293 # underscore (_), so it is better to generate a list of symbols to export.
20294 always_export_symbols_GCJ=yes
20295 if test "$aix_use_runtimelinking" = yes; then
20296 # Warning - without using the other runtime loading flags (-brtl),
20297 # -berok will link without error, but may produce a broken library.
20298 allow_undefined_flag_GCJ='-berok'
20299 # Determine the default libpath from the value encoded in an empty executable.
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h. */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20308 main ()
20312 return 0;
20314 _ACEOF
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } &&
20324 { ac_try='test -z "$ac_c_werror_flag"
20325 || test ! -s conftest.err'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest$ac_exeext'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20340 # Check for a 64-bit object if we didn't find anything.
20341 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20342 }'`; fi
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20348 rm -f conftest.err conftest.$ac_objext \
20349 conftest$ac_exeext conftest.$ac_ext
20350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20352 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20353 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20354 else
20355 if test "$host_cpu" = ia64; then
20356 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20357 allow_undefined_flag_GCJ="-z nodefs"
20358 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20359 else
20360 # Determine the default libpath from the value encoded in an empty executable.
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h. */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20369 main ()
20373 return 0;
20375 _ACEOF
20376 rm -f conftest.$ac_objext conftest$ac_exeext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20378 (eval $ac_link) 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20401 # Check for a 64-bit object if we didn't find anything.
20402 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20403 }'`; fi
20404 else
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20409 rm -f conftest.err conftest.$ac_objext \
20410 conftest$ac_exeext conftest.$ac_ext
20411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20413 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20414 # Warning - without using the other run time loading flags,
20415 # -berok will link without error, but may produce a broken library.
20416 no_undefined_flag_GCJ=' ${wl}-bernotok'
20417 allow_undefined_flag_GCJ=' ${wl}-berok'
20418 # -bexpall does not export symbols beginning with underscore (_)
20419 always_export_symbols_GCJ=yes
20420 # Exported symbols can be pulled into shared objects from archives
20421 whole_archive_flag_spec_GCJ=' '
20422 archive_cmds_need_lc_GCJ=yes
20423 # This is similar to how AIX traditionally builds its shared libraries.
20424 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20429 amigaos*)
20430 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
20431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20432 hardcode_minus_L_GCJ=yes
20433 # see comment about different semantics on the GNU ld section
20434 ld_shlibs_GCJ=no
20437 bsdi[45]*)
20438 export_dynamic_flag_spec_GCJ=-rdynamic
20441 cygwin* | mingw* | pw32*)
20442 # When not using gcc, we currently assume that we are using
20443 # Microsoft Visual C++.
20444 # hardcode_libdir_flag_spec is actually meaningless, as there is
20445 # no search path for DLLs.
20446 hardcode_libdir_flag_spec_GCJ=' '
20447 allow_undefined_flag_GCJ=unsupported
20448 # Tell ltmain to make .lib files, not .a files.
20449 libext=lib
20450 # Tell ltmain to make .dll files, not .so files.
20451 shrext_cmds=".dll"
20452 # FIXME: Setting linknames here is a bad hack.
20453 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20454 # The linker will automatically build a .lib file if we build a DLL.
20455 old_archive_From_new_cmds_GCJ='true'
20456 # FIXME: Should let the user specify the lib program.
20457 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20458 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20459 enable_shared_with_static_runtimes_GCJ=yes
20462 darwin* | rhapsody*)
20463 case $host_os in
20464 rhapsody* | darwin1.[012])
20465 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20467 *) # Darwin 1.3 on
20468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20469 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20470 else
20471 case ${MACOSX_DEPLOYMENT_TARGET} in
20472 10.[012])
20473 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20475 10.*)
20476 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20478 esac
20481 esac
20482 archive_cmds_need_lc_GCJ=no
20483 hardcode_direct_GCJ=no
20484 hardcode_automatic_GCJ=yes
20485 hardcode_shlibpath_var_GCJ=unsupported
20486 whole_archive_flag_spec_GCJ=''
20487 link_all_deplibs_GCJ=yes
20488 if test "$GCC" = yes ; then
20489 output_verbose_link_cmd='echo'
20490 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20491 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20493 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20494 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20495 else
20496 case $cc_basename in
20497 xlc*)
20498 output_verbose_link_cmd='echo'
20499 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20500 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20502 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20503 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20506 ld_shlibs_GCJ=no
20508 esac
20512 dgux*)
20513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20515 hardcode_shlibpath_var_GCJ=no
20518 freebsd1*)
20519 ld_shlibs_GCJ=no
20522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20523 # support. Future versions do this automatically, but an explicit c++rt0.o
20524 # does not break anything, and helps significantly (at the cost of a little
20525 # extra space).
20526 freebsd2.2*)
20527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20528 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20529 hardcode_direct_GCJ=yes
20530 hardcode_shlibpath_var_GCJ=no
20533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20534 freebsd2*)
20535 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20536 hardcode_direct_GCJ=yes
20537 hardcode_minus_L_GCJ=yes
20538 hardcode_shlibpath_var_GCJ=no
20541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20542 freebsd* | kfreebsd*-gnu | dragonfly*)
20543 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20544 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20545 hardcode_direct_GCJ=yes
20546 hardcode_shlibpath_var_GCJ=no
20549 hpux9*)
20550 if test "$GCC" = yes; then
20551 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20552 else
20553 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20555 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20556 hardcode_libdir_separator_GCJ=:
20557 hardcode_direct_GCJ=yes
20559 # hardcode_minus_L: Not really in the search PATH,
20560 # but as the default location of the library.
20561 hardcode_minus_L_GCJ=yes
20562 export_dynamic_flag_spec_GCJ='${wl}-E'
20565 hpux10* | hpux11*)
20566 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20567 case $host_cpu in
20568 hppa*64*|ia64*)
20569 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20572 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20574 esac
20575 else
20576 case $host_cpu in
20577 hppa*64*|ia64*)
20578 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20581 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20583 esac
20585 if test "$with_gnu_ld" = no; then
20586 case $host_cpu in
20587 hppa*64*)
20588 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20589 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20590 hardcode_libdir_separator_GCJ=:
20591 hardcode_direct_GCJ=no
20592 hardcode_shlibpath_var_GCJ=no
20594 ia64*)
20595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20596 hardcode_direct_GCJ=no
20597 hardcode_shlibpath_var_GCJ=no
20599 # hardcode_minus_L: Not really in the search PATH,
20600 # but as the default location of the library.
20601 hardcode_minus_L_GCJ=yes
20604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20605 hardcode_libdir_separator_GCJ=:
20606 hardcode_direct_GCJ=yes
20607 export_dynamic_flag_spec_GCJ='${wl}-E'
20609 # hardcode_minus_L: Not really in the search PATH,
20610 # but as the default location of the library.
20611 hardcode_minus_L_GCJ=yes
20613 esac
20617 irix5* | irix6* | nonstopux*)
20618 if test "$GCC" = yes; then
20619 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20620 else
20621 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20622 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20625 hardcode_libdir_separator_GCJ=:
20626 link_all_deplibs_GCJ=yes
20629 netbsd*)
20630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20631 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20632 else
20633 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20636 hardcode_direct_GCJ=yes
20637 hardcode_shlibpath_var_GCJ=no
20640 newsos6)
20641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20642 hardcode_direct_GCJ=yes
20643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20644 hardcode_libdir_separator_GCJ=:
20645 hardcode_shlibpath_var_GCJ=no
20648 openbsd*)
20649 hardcode_direct_GCJ=yes
20650 hardcode_shlibpath_var_GCJ=no
20651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20652 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20653 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20655 export_dynamic_flag_spec_GCJ='${wl}-E'
20656 else
20657 case $host_os in
20658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20659 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20663 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20666 esac
20670 os2*)
20671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20672 hardcode_minus_L_GCJ=yes
20673 allow_undefined_flag_GCJ=unsupported
20674 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
20675 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20678 osf3*)
20679 if test "$GCC" = yes; then
20680 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20681 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20682 else
20683 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20684 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20687 hardcode_libdir_separator_GCJ=:
20690 osf4* | osf5*) # as osf3* with the addition of -msym flag
20691 if test "$GCC" = yes; then
20692 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20693 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20695 else
20696 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20697 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20698 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20699 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20701 # Both c and cxx compiler support -rpath directly
20702 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20704 hardcode_libdir_separator_GCJ=:
20707 sco3.2v5*)
20708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20709 hardcode_shlibpath_var_GCJ=no
20710 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20711 runpath_var=LD_RUN_PATH
20712 hardcode_runpath_var=yes
20715 solaris*)
20716 no_undefined_flag_GCJ=' -z text'
20717 if test "$GCC" = yes; then
20718 wlarc='${wl}'
20719 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20720 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20721 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20722 else
20723 wlarc=''
20724 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20725 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20728 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20729 hardcode_shlibpath_var_GCJ=no
20730 case $host_os in
20731 solaris2.[0-5] | solaris2.[0-5].*) ;;
20733 # The compiler driver will combine linker options so we
20734 # cannot just pass the convience library names through
20735 # without $wl, iff we do not link with $LD.
20736 # Luckily, gcc supports the same syntax we need for Sun Studio.
20737 # Supported since Solaris 2.6 (maybe 2.5.1?)
20738 case $wlarc in
20740 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20742 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
20743 esac ;;
20744 esac
20745 link_all_deplibs_GCJ=yes
20748 sunos4*)
20749 if test "x$host_vendor" = xsequent; then
20750 # Use $CC to link under sequent, because it throws in some extra .o
20751 # files that make .init and .fini sections work.
20752 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20753 else
20754 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20757 hardcode_direct_GCJ=yes
20758 hardcode_minus_L_GCJ=yes
20759 hardcode_shlibpath_var_GCJ=no
20762 sysv4)
20763 case $host_vendor in
20764 sni)
20765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20766 hardcode_direct_GCJ=yes # is this really true???
20768 siemens)
20769 ## LD is ld it makes a PLAMLIB
20770 ## CC just makes a GrossModule.
20771 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20772 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20773 hardcode_direct_GCJ=no
20775 motorola)
20776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20777 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20779 esac
20780 runpath_var='LD_RUN_PATH'
20781 hardcode_shlibpath_var_GCJ=no
20784 sysv4.3*)
20785 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20786 hardcode_shlibpath_var_GCJ=no
20787 export_dynamic_flag_spec_GCJ='-Bexport'
20790 sysv4*MP*)
20791 if test -d /usr/nec; then
20792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20793 hardcode_shlibpath_var_GCJ=no
20794 runpath_var=LD_RUN_PATH
20795 hardcode_runpath_var=yes
20796 ld_shlibs_GCJ=yes
20800 sysv4.2uw2*)
20801 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20802 hardcode_direct_GCJ=yes
20803 hardcode_minus_L_GCJ=no
20804 hardcode_shlibpath_var_GCJ=no
20805 hardcode_runpath_var=yes
20806 runpath_var=LD_RUN_PATH
20809 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20810 no_undefined_flag_GCJ='${wl}-z ${wl}text'
20811 if test "$GCC" = yes; then
20812 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20813 else
20814 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20816 runpath_var='LD_RUN_PATH'
20817 hardcode_shlibpath_var_GCJ=no
20820 sysv5*)
20821 no_undefined_flag_GCJ=' -z text'
20822 # $CC -shared without GNU ld will not create a library from C++
20823 # object files and a static libstdc++, better avoid it by now
20824 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20825 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20827 hardcode_libdir_flag_spec_GCJ=
20828 hardcode_shlibpath_var_GCJ=no
20829 runpath_var='LD_RUN_PATH'
20832 uts4*)
20833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20835 hardcode_shlibpath_var_GCJ=no
20839 ld_shlibs_GCJ=no
20841 esac
20844 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20845 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20846 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20849 if test "$GCC" = yes; then
20850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20854 # Do we need to explicitly link libc?
20856 case "x$archive_cmds_need_lc_GCJ" in
20857 x|xyes)
20858 # Assume -lc should be added
20859 archive_cmds_need_lc_GCJ=yes
20861 if test "$enable_shared" = yes && test "$GCC" = yes; then
20862 case $archive_cmds_GCJ in
20863 *'~'*)
20864 # FIXME: we may have to deal with multi-command sequences.
20866 '$CC '*)
20867 # Test whether the compiler implicitly links with -lc since on some
20868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20869 # to ld, don't add -lc before -lgcc.
20870 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20872 $rm conftest*
20873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } 2>conftest.err; then
20880 soname=conftest
20881 lib=conftest
20882 libobjs=conftest.$ac_objext
20883 deplibs=
20884 wl=$lt_prog_compiler_wl_GCJ
20885 compiler_flags=-v
20886 linker_flags=-v
20887 verstring=
20888 output_objdir=.
20889 libname=conftest
20890 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20891 allow_undefined_flag_GCJ=
20892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20893 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }
20897 then
20898 archive_cmds_need_lc_GCJ=no
20899 else
20900 archive_cmds_need_lc_GCJ=yes
20902 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20903 else
20904 cat conftest.err 1>&5
20906 $rm conftest*
20907 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20908 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20910 esac
20913 esac
20915 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20916 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20917 library_names_spec=
20918 libname_spec='lib$name'
20919 soname_spec=
20920 shrext_cmds=".so"
20921 postinstall_cmds=
20922 postuninstall_cmds=
20923 finish_cmds=
20924 finish_eval=
20925 shlibpath_var=
20926 shlibpath_overrides_runpath=unknown
20927 version_type=none
20928 dynamic_linker="$host_os ld.so"
20929 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20930 if test "$GCC" = yes; then
20931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20932 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20933 # if the path contains ";" then we assume it to be the separator
20934 # otherwise default to the standard path separator (i.e. ":") - it is
20935 # assumed that no part of a normal pathname contains ";" but that should
20936 # okay in the real world where ";" in dirpaths is itself problematic.
20937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20938 else
20939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20941 else
20942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20944 need_lib_prefix=unknown
20945 hardcode_into_libs=no
20947 # when you set need_version to no, make sure it does not cause -set_version
20948 # flags to be left without arguments
20949 need_version=unknown
20951 case $host_os in
20952 aix3*)
20953 version_type=linux
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20955 shlibpath_var=LIBPATH
20957 # AIX 3 has no versioning support, so we append a major version to the name.
20958 soname_spec='${libname}${release}${shared_ext}$major'
20961 aix4* | aix5*)
20962 version_type=linux
20963 need_lib_prefix=no
20964 need_version=no
20965 hardcode_into_libs=yes
20966 if test "$host_cpu" = ia64; then
20967 # AIX 5 supports IA64
20968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 else
20971 # With GCC up to 2.95.x, collect2 would create an import file
20972 # for dependence libraries. The import file would start with
20973 # the line `#! .'. This would cause the generated library to
20974 # depend on `.', always an invalid library. This was fixed in
20975 # development snapshots of GCC prior to 3.0.
20976 case $host_os in
20977 aix4 | aix4.[01] | aix4.[01].*)
20978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20979 echo ' yes '
20980 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20982 else
20983 can_build_shared=no
20986 esac
20987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20988 # soname into executable. Probably we can add versioning support to
20989 # collect2, so additional links can be useful in future.
20990 if test "$aix_use_runtimelinking" = yes; then
20991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20992 # instead of lib<name>.a to let people know that these are not
20993 # typical AIX shared libraries.
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 else
20996 # We preserve .a as extension for shared libraries through AIX4.2
20997 # and later when we are not doing run time linking.
20998 library_names_spec='${libname}${release}.a $libname.a'
20999 soname_spec='${libname}${release}${shared_ext}$major'
21001 shlibpath_var=LIBPATH
21005 amigaos*)
21006 library_names_spec='$libname.ixlibrary $libname.a'
21007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21008 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21011 beos*)
21012 library_names_spec='${libname}${shared_ext}'
21013 dynamic_linker="$host_os ld.so"
21014 shlibpath_var=LIBRARY_PATH
21017 bsdi[45]*)
21018 version_type=linux
21019 need_version=no
21020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21021 soname_spec='${libname}${release}${shared_ext}$major'
21022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21023 shlibpath_var=LD_LIBRARY_PATH
21024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21026 # the default ld.so.conf also contains /usr/contrib/lib and
21027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21028 # libtool to hard-code these into programs
21031 cygwin* | mingw* | pw32*)
21032 version_type=windows
21033 shrext_cmds=".dll"
21034 need_version=no
21035 need_lib_prefix=no
21037 case $GCC,$host_os in
21038 yes,cygwin* | yes,mingw* | yes,pw32*)
21039 library_names_spec='$libname.dll.a'
21040 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21041 postinstall_cmds='base_file=`basename \${file}`~
21042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21043 dldir=$destdir/`dirname \$dlpath`~
21044 test -d \$dldir || mkdir -p \$dldir~
21045 $install_prog $dir/$dlname \$dldir/$dlname~
21046 chmod a+x \$dldir/$dlname'
21047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21048 dlpath=$dir/\$dldll~
21049 $rm \$dlpath'
21050 shlibpath_overrides_runpath=yes
21052 case $host_os in
21053 cygwin*)
21054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21055 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21058 mingw*)
21059 # MinGW DLLs use traditional 'lib' prefix
21060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21062 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21063 # It is most probably a Windows format PATH printed by
21064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21065 # path with ; separators, and with drive letters. We can handle the
21066 # drive letters (cygwin fileutils understands them), so leave them,
21067 # especially as we might pass files found there to a mingw objdump,
21068 # which wouldn't understand a cygwinified path. Ahh.
21069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21070 else
21071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21074 pw32*)
21075 # pw32 DLLs use 'pw' prefix rather than 'lib'
21076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21078 esac
21082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21084 esac
21085 dynamic_linker='Win32 ld.exe'
21086 # FIXME: first we should search . and the directory the executable is in
21087 shlibpath_var=PATH
21090 darwin* | rhapsody*)
21091 dynamic_linker="$host_os dyld"
21092 version_type=darwin
21093 need_lib_prefix=no
21094 need_version=no
21095 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21096 soname_spec='${libname}${release}${major}$shared_ext'
21097 shlibpath_overrides_runpath=yes
21098 shlibpath_var=DYLD_LIBRARY_PATH
21099 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21100 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21101 if test "$GCC" = yes; then
21102 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21103 else
21104 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21109 dgux*)
21110 version_type=linux
21111 need_lib_prefix=no
21112 need_version=no
21113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 shlibpath_var=LD_LIBRARY_PATH
21118 freebsd1*)
21119 dynamic_linker=no
21122 kfreebsd*-gnu)
21123 version_type=linux
21124 need_lib_prefix=no
21125 need_version=no
21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 shlibpath_var=LD_LIBRARY_PATH
21129 shlibpath_overrides_runpath=no
21130 hardcode_into_libs=yes
21131 dynamic_linker='GNU ld.so'
21134 freebsd* | dragonfly*)
21135 # DragonFly does not have aout. When/if they implement a new
21136 # versioning mechanism, adjust this.
21137 if test -x /usr/bin/objformat; then
21138 objformat=`/usr/bin/objformat`
21139 else
21140 case $host_os in
21141 freebsd[123]*) objformat=aout ;;
21142 *) objformat=elf ;;
21143 esac
21145 version_type=freebsd-$objformat
21146 case $version_type in
21147 freebsd-elf*)
21148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21149 need_version=no
21150 need_lib_prefix=no
21152 freebsd-*)
21153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21154 need_version=yes
21156 esac
21157 shlibpath_var=LD_LIBRARY_PATH
21158 case $host_os in
21159 freebsd2*)
21160 shlibpath_overrides_runpath=yes
21162 freebsd3.[01]* | freebsdelf3.[01]*)
21163 shlibpath_overrides_runpath=yes
21164 hardcode_into_libs=yes
21166 *) # from 3.2 on
21167 shlibpath_overrides_runpath=no
21168 hardcode_into_libs=yes
21170 esac
21173 gnu*)
21174 version_type=linux
21175 need_lib_prefix=no
21176 need_version=no
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21178 soname_spec='${libname}${release}${shared_ext}$major'
21179 shlibpath_var=LD_LIBRARY_PATH
21180 hardcode_into_libs=yes
21183 hpux9* | hpux10* | hpux11*)
21184 # Give a soname corresponding to the major version so that dld.sl refuses to
21185 # link against other versions.
21186 version_type=sunos
21187 need_lib_prefix=no
21188 need_version=no
21189 case $host_cpu in
21190 ia64*)
21191 shrext_cmds='.so'
21192 hardcode_into_libs=yes
21193 dynamic_linker="$host_os dld.so"
21194 shlibpath_var=LD_LIBRARY_PATH
21195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 if test "X$HPUX_IA64_MODE" = X32; then
21199 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21200 else
21201 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21205 hppa*64*)
21206 shrext_cmds='.sl'
21207 hardcode_into_libs=yes
21208 dynamic_linker="$host_os dld.sl"
21209 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 soname_spec='${libname}${release}${shared_ext}$major'
21213 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21217 shrext_cmds='.sl'
21218 dynamic_linker="$host_os dld.sl"
21219 shlibpath_var=SHLIB_PATH
21220 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21222 soname_spec='${libname}${release}${shared_ext}$major'
21224 esac
21225 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21226 postinstall_cmds='chmod 555 $lib'
21229 irix5* | irix6* | nonstopux*)
21230 case $host_os in
21231 nonstopux*) version_type=nonstopux ;;
21233 if test "$lt_cv_prog_gnu_ld" = yes; then
21234 version_type=linux
21235 else
21236 version_type=irix
21237 fi ;;
21238 esac
21239 need_lib_prefix=no
21240 need_version=no
21241 soname_spec='${libname}${release}${shared_ext}$major'
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21243 case $host_os in
21244 irix5* | nonstopux*)
21245 libsuff= shlibsuff=
21248 case $LD in # libtool.m4 will add one of these switches to LD
21249 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21250 libsuff= shlibsuff= libmagic=32-bit;;
21251 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21252 libsuff=32 shlibsuff=N32 libmagic=N32;;
21253 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21254 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21255 *) libsuff= shlibsuff= libmagic=never-match;;
21256 esac
21258 esac
21259 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21260 shlibpath_overrides_runpath=no
21261 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21262 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21263 hardcode_into_libs=yes
21266 # No shared lib support for Linux oldld, aout, or coff.
21267 linux*oldld* | linux*aout* | linux*coff*)
21268 dynamic_linker=no
21271 # This must be Linux ELF.
21272 linux*)
21273 version_type=linux
21274 need_lib_prefix=no
21275 need_version=no
21276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21279 shlibpath_var=LD_LIBRARY_PATH
21280 shlibpath_overrides_runpath=no
21281 # This implies no fast_install, which is unacceptable.
21282 # Some rework will be needed to allow for fast_install
21283 # before this can be enabled.
21284 hardcode_into_libs=yes
21286 # Append ld.so.conf contents to the search path
21287 if test -f /etc/ld.so.conf; then
21288 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21289 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21292 # We used to test for /lib/ld.so.1 and disable shared libraries on
21293 # powerpc, because MkLinux only supported shared libraries with the
21294 # GNU dynamic linker. Since this was broken with cross compilers,
21295 # most powerpc-linux boxes support dynamic linking these days and
21296 # people can always --disable-shared, the test was removed, and we
21297 # assume the GNU/Linux dynamic linker is in use.
21298 dynamic_linker='GNU/Linux ld.so'
21301 knetbsd*-gnu)
21302 version_type=linux
21303 need_lib_prefix=no
21304 need_version=no
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 shlibpath_overrides_runpath=no
21309 hardcode_into_libs=yes
21310 dynamic_linker='GNU ld.so'
21313 netbsd*)
21314 version_type=sunos
21315 need_lib_prefix=no
21316 need_version=no
21317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21320 dynamic_linker='NetBSD (a.out) ld.so'
21321 else
21322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21323 soname_spec='${libname}${release}${shared_ext}$major'
21324 dynamic_linker='NetBSD ld.elf_so'
21326 shlibpath_var=LD_LIBRARY_PATH
21327 shlibpath_overrides_runpath=yes
21328 hardcode_into_libs=yes
21331 newsos6)
21332 version_type=linux
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21334 shlibpath_var=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath=yes
21338 nto-qnx*)
21339 version_type=linux
21340 need_lib_prefix=no
21341 need_version=no
21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21343 soname_spec='${libname}${release}${shared_ext}$major'
21344 shlibpath_var=LD_LIBRARY_PATH
21345 shlibpath_overrides_runpath=yes
21348 openbsd*)
21349 version_type=sunos
21350 need_lib_prefix=no
21351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21352 case $host_os in
21353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21354 *) need_version=no ;;
21355 esac
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21358 shlibpath_var=LD_LIBRARY_PATH
21359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21360 case $host_os in
21361 openbsd2.[89] | openbsd2.[89].*)
21362 shlibpath_overrides_runpath=no
21365 shlibpath_overrides_runpath=yes
21367 esac
21368 else
21369 shlibpath_overrides_runpath=yes
21373 os2*)
21374 libname_spec='$name'
21375 shrext_cmds=".dll"
21376 need_lib_prefix=no
21377 library_names_spec='$libname${shared_ext} $libname.a'
21378 dynamic_linker='OS/2 ld.exe'
21379 shlibpath_var=LIBPATH
21382 osf3* | osf4* | osf5*)
21383 version_type=osf
21384 need_lib_prefix=no
21385 need_version=no
21386 soname_spec='${libname}${release}${shared_ext}$major'
21387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21388 shlibpath_var=LD_LIBRARY_PATH
21389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21393 sco3.2v5*)
21394 version_type=osf
21395 soname_spec='${libname}${release}${shared_ext}$major'
21396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21397 shlibpath_var=LD_LIBRARY_PATH
21400 solaris*)
21401 version_type=linux
21402 need_lib_prefix=no
21403 need_version=no
21404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21405 soname_spec='${libname}${release}${shared_ext}$major'
21406 shlibpath_var=LD_LIBRARY_PATH
21407 shlibpath_overrides_runpath=yes
21408 hardcode_into_libs=yes
21409 # ldd complains unless libraries are executable
21410 postinstall_cmds='chmod +x $lib'
21413 sunos4*)
21414 version_type=sunos
21415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21417 shlibpath_var=LD_LIBRARY_PATH
21418 shlibpath_overrides_runpath=yes
21419 if test "$with_gnu_ld" = yes; then
21420 need_lib_prefix=no
21422 need_version=yes
21425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21426 version_type=linux
21427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21428 soname_spec='${libname}${release}${shared_ext}$major'
21429 shlibpath_var=LD_LIBRARY_PATH
21430 case $host_vendor in
21431 sni)
21432 shlibpath_overrides_runpath=no
21433 need_lib_prefix=no
21434 export_dynamic_flag_spec='${wl}-Blargedynsym'
21435 runpath_var=LD_RUN_PATH
21437 siemens)
21438 need_lib_prefix=no
21440 motorola)
21441 need_lib_prefix=no
21442 need_version=no
21443 shlibpath_overrides_runpath=no
21444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21446 esac
21449 sysv4*MP*)
21450 if test -d /usr/nec ;then
21451 version_type=linux
21452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21453 soname_spec='$libname${shared_ext}.$major'
21454 shlibpath_var=LD_LIBRARY_PATH
21458 uts4*)
21459 version_type=linux
21460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21461 soname_spec='${libname}${release}${shared_ext}$major'
21462 shlibpath_var=LD_LIBRARY_PATH
21466 dynamic_linker=no
21468 esac
21469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21470 echo "${ECHO_T}$dynamic_linker" >&6
21471 test "$dynamic_linker" = no && can_build_shared=no
21473 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21475 hardcode_action_GCJ=
21476 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21477 test -n "$runpath_var_GCJ" || \
21478 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21480 # We can hardcode non-existant directories.
21481 if test "$hardcode_direct_GCJ" != no &&
21482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21483 # have to relink, otherwise we might link with an installed library
21484 # when we should be linking with a yet-to-be-installed one
21485 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21486 test "$hardcode_minus_L_GCJ" != no; then
21487 # Linking always hardcodes the temporary library directory.
21488 hardcode_action_GCJ=relink
21489 else
21490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21491 hardcode_action_GCJ=immediate
21493 else
21494 # We cannot hardcode anything, or else we can only hardcode existing
21495 # directories.
21496 hardcode_action_GCJ=unsupported
21498 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21499 echo "${ECHO_T}$hardcode_action_GCJ" >&6
21501 if test "$hardcode_action_GCJ" = relink; then
21502 # Fast installation is not supported
21503 enable_fast_install=no
21504 elif test "$shlibpath_overrides_runpath" = yes ||
21505 test "$enable_shared" = no; then
21506 # Fast installation is not necessary
21507 enable_fast_install=needless
21510 striplib=
21511 old_striplib=
21512 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21513 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21514 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21515 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21516 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21517 echo "$as_me:$LINENO: result: yes" >&5
21518 echo "${ECHO_T}yes" >&6
21519 else
21520 # FIXME - insert some real tests, host_os isn't really good enough
21521 case $host_os in
21522 darwin*)
21523 if test -n "$STRIP" ; then
21524 striplib="$STRIP -x"
21525 echo "$as_me:$LINENO: result: yes" >&5
21526 echo "${ECHO_T}yes" >&6
21527 else
21528 echo "$as_me:$LINENO: result: no" >&5
21529 echo "${ECHO_T}no" >&6
21533 echo "$as_me:$LINENO: result: no" >&5
21534 echo "${ECHO_T}no" >&6
21536 esac
21539 if test "x$enable_dlopen" != xyes; then
21540 enable_dlopen=unknown
21541 enable_dlopen_self=unknown
21542 enable_dlopen_self_static=unknown
21543 else
21544 lt_cv_dlopen=no
21545 lt_cv_dlopen_libs=
21547 case $host_os in
21548 beos*)
21549 lt_cv_dlopen="load_add_on"
21550 lt_cv_dlopen_libs=
21551 lt_cv_dlopen_self=yes
21554 mingw* | pw32*)
21555 lt_cv_dlopen="LoadLibrary"
21556 lt_cv_dlopen_libs=
21559 cygwin*)
21560 lt_cv_dlopen="dlopen"
21561 lt_cv_dlopen_libs=
21564 darwin*)
21565 # if libdl is installed we need to link against it
21566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571 ac_check_lib_save_LIBS=$LIBS
21572 LIBS="-ldl $LIBS"
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21580 /* Override any gcc2 internal prototype to avoid an error. */
21581 #ifdef __cplusplus
21582 extern "C"
21583 #endif
21584 /* We use char because int might match the return type of a gcc2
21585 builtin and then its argument prototype would still apply. */
21586 char dlopen ();
21588 main ()
21590 dlopen ();
21592 return 0;
21594 _ACEOF
21595 rm -f conftest.$ac_objext conftest$ac_exeext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21597 (eval $ac_link) 2>conftest.er1
21598 ac_status=$?
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try='test -z "$ac_c_werror_flag"
21605 || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try='test -s conftest$ac_exeext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_cv_lib_dl_dlopen=yes
21618 else
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_cv_lib_dl_dlopen=no
21624 rm -f conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21628 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21629 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21630 if test $ac_cv_lib_dl_dlopen = yes; then
21631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21632 else
21634 lt_cv_dlopen="dyld"
21635 lt_cv_dlopen_libs=
21636 lt_cv_dlopen_self=yes
21643 echo "$as_me:$LINENO: checking for shl_load" >&5
21644 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21645 if test "${ac_cv_func_shl_load+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21656 #define shl_load innocuous_shl_load
21658 /* System header to define __stub macros and hopefully few prototypes,
21659 which can conflict with char shl_load (); below.
21660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21661 <limits.h> exists even on freestanding compilers. */
21663 #ifdef __STDC__
21664 # include <limits.h>
21665 #else
21666 # include <assert.h>
21667 #endif
21669 #undef shl_load
21671 /* Override any gcc2 internal prototype to avoid an error. */
21672 #ifdef __cplusplus
21673 extern "C"
21675 #endif
21676 /* We use char because int might match the return type of a gcc2
21677 builtin and then its argument prototype would still apply. */
21678 char shl_load ();
21679 /* The GNU C library defines this for functions which it implements
21680 to always fail with ENOSYS. Some functions are actually named
21681 something starting with __ and the normal name is an alias. */
21682 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21683 choke me
21684 #else
21685 char (*f) () = shl_load;
21686 #endif
21687 #ifdef __cplusplus
21689 #endif
21692 main ()
21694 return f != shl_load;
21696 return 0;
21698 _ACEOF
21699 rm -f conftest.$ac_objext conftest$ac_exeext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21701 (eval $ac_link) 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest$ac_exeext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_cv_func_shl_load=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_func_shl_load=no
21728 rm -f conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21733 if test $ac_cv_func_shl_load = yes; then
21734 lt_cv_dlopen="shl_load"
21735 else
21736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741 ac_check_lib_save_LIBS=$LIBS
21742 LIBS="-ldld $LIBS"
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21750 /* Override any gcc2 internal prototype to avoid an error. */
21751 #ifdef __cplusplus
21752 extern "C"
21753 #endif
21754 /* We use char because int might match the return type of a gcc2
21755 builtin and then its argument prototype would still apply. */
21756 char shl_load ();
21758 main ()
21760 shl_load ();
21762 return 0;
21764 _ACEOF
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21767 (eval $ac_link) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_c_werror_flag"
21775 || test ! -s conftest.err'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest$ac_exeext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_lib_dld_shl_load=yes
21788 else
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ac_cv_lib_dld_shl_load=no
21794 rm -f conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
21796 LIBS=$ac_check_lib_save_LIBS
21798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21799 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21800 if test $ac_cv_lib_dld_shl_load = yes; then
21801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21802 else
21803 echo "$as_me:$LINENO: checking for dlopen" >&5
21804 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21805 if test "${ac_cv_func_dlopen+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 else
21808 cat >conftest.$ac_ext <<_ACEOF
21809 /* confdefs.h. */
21810 _ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h. */
21814 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21816 #define dlopen innocuous_dlopen
21818 /* System header to define __stub macros and hopefully few prototypes,
21819 which can conflict with char dlopen (); below.
21820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21821 <limits.h> exists even on freestanding compilers. */
21823 #ifdef __STDC__
21824 # include <limits.h>
21825 #else
21826 # include <assert.h>
21827 #endif
21829 #undef dlopen
21831 /* Override any gcc2 internal prototype to avoid an error. */
21832 #ifdef __cplusplus
21833 extern "C"
21835 #endif
21836 /* We use char because int might match the return type of a gcc2
21837 builtin and then its argument prototype would still apply. */
21838 char dlopen ();
21839 /* The GNU C library defines this for functions which it implements
21840 to always fail with ENOSYS. Some functions are actually named
21841 something starting with __ and the normal name is an alias. */
21842 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21843 choke me
21844 #else
21845 char (*f) () = dlopen;
21846 #endif
21847 #ifdef __cplusplus
21849 #endif
21852 main ()
21854 return f != dlopen;
21856 return 0;
21858 _ACEOF
21859 rm -f conftest.$ac_objext conftest$ac_exeext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21861 (eval $ac_link) 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
21868 { ac_try='test -z "$ac_c_werror_flag"
21869 || test ! -s conftest.err'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } &&
21875 { ac_try='test -s conftest$ac_exeext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21878 ac_status=$?
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_func_dlopen=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_func_dlopen=no
21888 rm -f conftest.err conftest.$ac_objext \
21889 conftest$ac_exeext conftest.$ac_ext
21891 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21892 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21893 if test $ac_cv_func_dlopen = yes; then
21894 lt_cv_dlopen="dlopen"
21895 else
21896 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901 ac_check_lib_save_LIBS=$LIBS
21902 LIBS="-ldl $LIBS"
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21910 /* Override any gcc2 internal prototype to avoid an error. */
21911 #ifdef __cplusplus
21912 extern "C"
21913 #endif
21914 /* We use char because int might match the return type of a gcc2
21915 builtin and then its argument prototype would still apply. */
21916 char dlopen ();
21918 main ()
21920 dlopen ();
21922 return 0;
21924 _ACEOF
21925 rm -f conftest.$ac_objext conftest$ac_exeext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21927 (eval $ac_link) 2>conftest.er1
21928 ac_status=$?
21929 grep -v '^ *+' conftest.er1 >conftest.err
21930 rm -f conftest.er1
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } &&
21934 { ac_try='test -z "$ac_c_werror_flag"
21935 || test ! -s conftest.err'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest$ac_exeext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 ac_cv_lib_dl_dlopen=yes
21948 else
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_cv_lib_dl_dlopen=no
21954 rm -f conftest.err conftest.$ac_objext \
21955 conftest$ac_exeext conftest.$ac_ext
21956 LIBS=$ac_check_lib_save_LIBS
21958 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21960 if test $ac_cv_lib_dl_dlopen = yes; then
21961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21962 else
21963 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968 ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lsvld $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 /* Override any gcc2 internal prototype to avoid an error. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 /* We use char because int might match the return type of a gcc2
21982 builtin and then its argument prototype would still apply. */
21983 char dlopen ();
21985 main ()
21987 dlopen ();
21989 return 0;
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994 (eval $ac_link) 2>conftest.er1
21995 ac_status=$?
21996 grep -v '^ *+' conftest.er1 >conftest.err
21997 rm -f conftest.er1
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag"
22002 || test ! -s conftest.err'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_lib_svld_dlopen=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_cv_lib_svld_dlopen=no
22021 rm -f conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22027 if test $ac_cv_lib_svld_dlopen = yes; then
22028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22029 else
22030 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035 ac_check_lib_save_LIBS=$LIBS
22036 LIBS="-ldld $LIBS"
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22044 /* Override any gcc2 internal prototype to avoid an error. */
22045 #ifdef __cplusplus
22046 extern "C"
22047 #endif
22048 /* We use char because int might match the return type of a gcc2
22049 builtin and then its argument prototype would still apply. */
22050 char dld_link ();
22052 main ()
22054 dld_link ();
22056 return 0;
22058 _ACEOF
22059 rm -f conftest.$ac_objext conftest$ac_exeext
22060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22061 (eval $ac_link) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -z "$ac_c_werror_flag"
22069 || test ! -s conftest.err'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest$ac_exeext'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081 ac_cv_lib_dld_dld_link=yes
22082 else
22083 echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22086 ac_cv_lib_dld_dld_link=no
22088 rm -f conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22092 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22093 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22094 if test $ac_cv_lib_dld_dld_link = yes; then
22095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22114 esac
22116 if test "x$lt_cv_dlopen" != xno; then
22117 enable_dlopen=yes
22118 else
22119 enable_dlopen=no
22122 case $lt_cv_dlopen in
22123 dlopen)
22124 save_CPPFLAGS="$CPPFLAGS"
22125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22127 save_LDFLAGS="$LDFLAGS"
22128 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22130 save_LIBS="$LIBS"
22131 LIBS="$lt_cv_dlopen_libs $LIBS"
22133 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
22134 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
22135 if test "${lt_cv_dlopen_self+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 if test "$cross_compiling" = yes; then :
22139 lt_cv_dlopen_self=cross
22140 else
22141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22142 lt_status=$lt_dlunknown
22143 cat > conftest.$ac_ext <<EOF
22144 #line 22144 "configure"
22145 #include "confdefs.h"
22147 #if HAVE_DLFCN_H
22148 #include <dlfcn.h>
22149 #endif
22151 #include <stdio.h>
22153 #ifdef RTLD_GLOBAL
22154 # define LT_DLGLOBAL RTLD_GLOBAL
22155 #else
22156 # ifdef DL_GLOBAL
22157 # define LT_DLGLOBAL DL_GLOBAL
22158 # else
22159 # define LT_DLGLOBAL 0
22160 # endif
22161 #endif
22163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22164 find out it does not work in some platform. */
22165 #ifndef LT_DLLAZY_OR_NOW
22166 # ifdef RTLD_LAZY
22167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22168 # else
22169 # ifdef DL_LAZY
22170 # define LT_DLLAZY_OR_NOW DL_LAZY
22171 # else
22172 # ifdef RTLD_NOW
22173 # define LT_DLLAZY_OR_NOW RTLD_NOW
22174 # else
22175 # ifdef DL_NOW
22176 # define LT_DLLAZY_OR_NOW DL_NOW
22177 # else
22178 # define LT_DLLAZY_OR_NOW 0
22179 # endif
22180 # endif
22181 # endif
22182 # endif
22183 #endif
22185 #ifdef __cplusplus
22186 extern "C" void exit (int);
22187 #endif
22189 void fnord() { int i=42;}
22190 int main ()
22192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22193 int status = $lt_dlunknown;
22195 if (self)
22197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22199 /* dlclose (self); */
22202 exit (status);
22205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206 (eval $ac_link) 2>&5
22207 ac_status=$?
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22210 (./conftest; exit; ) >&5 2>/dev/null
22211 lt_status=$?
22212 case x$lt_status in
22213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22215 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22216 esac
22217 else :
22218 # compilation failed
22219 lt_cv_dlopen_self=no
22222 rm -fr conftest*
22226 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
22227 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22229 if test "x$lt_cv_dlopen_self" = xyes; then
22230 LDFLAGS="$LDFLAGS $link_static_flag"
22231 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22232 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22233 if test "${lt_cv_dlopen_self_static+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236 if test "$cross_compiling" = yes; then :
22237 lt_cv_dlopen_self_static=cross
22238 else
22239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22240 lt_status=$lt_dlunknown
22241 cat > conftest.$ac_ext <<EOF
22242 #line 22242 "configure"
22243 #include "confdefs.h"
22245 #if HAVE_DLFCN_H
22246 #include <dlfcn.h>
22247 #endif
22249 #include <stdio.h>
22251 #ifdef RTLD_GLOBAL
22252 # define LT_DLGLOBAL RTLD_GLOBAL
22253 #else
22254 # ifdef DL_GLOBAL
22255 # define LT_DLGLOBAL DL_GLOBAL
22256 # else
22257 # define LT_DLGLOBAL 0
22258 # endif
22259 #endif
22261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22262 find out it does not work in some platform. */
22263 #ifndef LT_DLLAZY_OR_NOW
22264 # ifdef RTLD_LAZY
22265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22266 # else
22267 # ifdef DL_LAZY
22268 # define LT_DLLAZY_OR_NOW DL_LAZY
22269 # else
22270 # ifdef RTLD_NOW
22271 # define LT_DLLAZY_OR_NOW RTLD_NOW
22272 # else
22273 # ifdef DL_NOW
22274 # define LT_DLLAZY_OR_NOW DL_NOW
22275 # else
22276 # define LT_DLLAZY_OR_NOW 0
22277 # endif
22278 # endif
22279 # endif
22280 # endif
22281 #endif
22283 #ifdef __cplusplus
22284 extern "C" void exit (int);
22285 #endif
22287 void fnord() { int i=42;}
22288 int main ()
22290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22291 int status = $lt_dlunknown;
22293 if (self)
22295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22297 /* dlclose (self); */
22300 exit (status);
22303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22304 (eval $ac_link) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22308 (./conftest; exit; ) >&5 2>/dev/null
22309 lt_status=$?
22310 case x$lt_status in
22311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22313 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22314 esac
22315 else :
22316 # compilation failed
22317 lt_cv_dlopen_self_static=no
22320 rm -fr conftest*
22324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22328 CPPFLAGS="$save_CPPFLAGS"
22329 LDFLAGS="$save_LDFLAGS"
22330 LIBS="$save_LIBS"
22332 esac
22334 case $lt_cv_dlopen_self in
22335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22336 *) enable_dlopen_self=unknown ;;
22337 esac
22339 case $lt_cv_dlopen_self_static in
22340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22341 *) enable_dlopen_self_static=unknown ;;
22342 esac
22346 # The else clause should only fire when bootstrapping the
22347 # libtool distribution, otherwise you forgot to ship ltmain.sh
22348 # with your package, and you will get complaints that there are
22349 # no rules to generate ltmain.sh.
22350 if test -f "$ltmain"; then
22351 # See if we are running on zsh, and set the options which allow our commands through
22352 # without removal of \ escapes.
22353 if test -n "${ZSH_VERSION+set}" ; then
22354 setopt NO_GLOB_SUBST
22356 # Now quote all the things that may contain metacharacters while being
22357 # careful not to overquote the AC_SUBSTed values. We take copies of the
22358 # variables and quote the copies for generation of the libtool script.
22359 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22360 SED SHELL STRIP \
22361 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22362 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22363 deplibs_check_method reload_flag reload_cmds need_locks \
22364 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22365 lt_cv_sys_global_symbol_to_c_name_address \
22366 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22367 old_postinstall_cmds old_postuninstall_cmds \
22368 compiler_GCJ \
22369 CC_GCJ \
22370 LD_GCJ \
22371 lt_prog_compiler_wl_GCJ \
22372 lt_prog_compiler_pic_GCJ \
22373 lt_prog_compiler_static_GCJ \
22374 lt_prog_compiler_no_builtin_flag_GCJ \
22375 export_dynamic_flag_spec_GCJ \
22376 thread_safe_flag_spec_GCJ \
22377 whole_archive_flag_spec_GCJ \
22378 enable_shared_with_static_runtimes_GCJ \
22379 old_archive_cmds_GCJ \
22380 old_archive_from_new_cmds_GCJ \
22381 predep_objects_GCJ \
22382 postdep_objects_GCJ \
22383 predeps_GCJ \
22384 postdeps_GCJ \
22385 compiler_lib_search_path_GCJ \
22386 archive_cmds_GCJ \
22387 archive_expsym_cmds_GCJ \
22388 postinstall_cmds_GCJ \
22389 postuninstall_cmds_GCJ \
22390 old_archive_from_expsyms_cmds_GCJ \
22391 allow_undefined_flag_GCJ \
22392 no_undefined_flag_GCJ \
22393 export_symbols_cmds_GCJ \
22394 hardcode_libdir_flag_spec_GCJ \
22395 hardcode_libdir_flag_spec_ld_GCJ \
22396 hardcode_libdir_separator_GCJ \
22397 hardcode_automatic_GCJ \
22398 module_cmds_GCJ \
22399 module_expsym_cmds_GCJ \
22400 lt_cv_prog_compiler_c_o_GCJ \
22401 exclude_expsyms_GCJ \
22402 include_expsyms_GCJ; do
22404 case $var in
22405 old_archive_cmds_GCJ | \
22406 old_archive_from_new_cmds_GCJ | \
22407 archive_cmds_GCJ | \
22408 archive_expsym_cmds_GCJ | \
22409 module_cmds_GCJ | \
22410 module_expsym_cmds_GCJ | \
22411 old_archive_from_expsyms_cmds_GCJ | \
22412 export_symbols_cmds_GCJ | \
22413 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22414 postinstall_cmds | postuninstall_cmds | \
22415 old_postinstall_cmds | old_postuninstall_cmds | \
22416 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22417 # Double-quote double-evaled strings.
22418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22423 esac
22424 done
22426 case $lt_echo in
22427 *'\$0 --fallback-echo"')
22428 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22430 esac
22432 cfgfile="$ofile"
22434 cat <<__EOF__ >> "$cfgfile"
22435 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22439 # Shell to use when invoking shell scripts.
22440 SHELL=$lt_SHELL
22442 # Whether or not to build shared libraries.
22443 build_libtool_libs=$enable_shared
22445 # Whether or not to build static libraries.
22446 build_old_libs=$enable_static
22448 # Whether or not to add -lc for building shared libraries.
22449 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22451 # Whether or not to disallow shared libs when runtime libs are static
22452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22454 # Whether or not to optimize for fast installation.
22455 fast_install=$enable_fast_install
22457 # The host system.
22458 host_alias=$host_alias
22459 host=$host
22460 host_os=$host_os
22462 # The build system.
22463 build_alias=$build_alias
22464 build=$build
22465 build_os=$build_os
22467 # An echo program that does not interpret backslashes.
22468 echo=$lt_echo
22470 # The archiver.
22471 AR=$lt_AR
22472 AR_FLAGS=$lt_AR_FLAGS
22474 # A C compiler.
22475 LTCC=$lt_LTCC
22477 # A language-specific compiler.
22478 CC=$lt_compiler_GCJ
22480 # Is the compiler the GNU C compiler?
22481 with_gcc=$GCC_GCJ
22483 # An ERE matcher.
22484 EGREP=$lt_EGREP
22486 # The linker used to build libraries.
22487 LD=$lt_LD_GCJ
22489 # Whether we need hard or soft links.
22490 LN_S=$lt_LN_S
22492 # A BSD-compatible nm program.
22493 NM=$lt_NM
22495 # A symbol stripping program
22496 STRIP=$lt_STRIP
22498 # Used to examine libraries when file_magic_cmd begins "file"
22499 MAGIC_CMD=$MAGIC_CMD
22501 # Used on cygwin: DLL creation program.
22502 DLLTOOL="$DLLTOOL"
22504 # Used on cygwin: object dumper.
22505 OBJDUMP="$OBJDUMP"
22507 # Used on cygwin: assembler.
22508 AS="$AS"
22510 # The name of the directory that contains temporary libtool files.
22511 objdir=$objdir
22513 # How to create reloadable object files.
22514 reload_flag=$lt_reload_flag
22515 reload_cmds=$lt_reload_cmds
22517 # How to pass a linker flag through the compiler.
22518 wl=$lt_lt_prog_compiler_wl_GCJ
22520 # Object file suffix (normally "o").
22521 objext="$ac_objext"
22523 # Old archive suffix (normally "a").
22524 libext="$libext"
22526 # Shared library suffix (normally ".so").
22527 shrext_cmds='$shrext_cmds'
22529 # Executable file suffix (normally "").
22530 exeext="$exeext"
22532 # Additional compiler flags for building library objects.
22533 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22534 pic_mode=$pic_mode
22536 # What is the maximum length of a command?
22537 max_cmd_len=$lt_cv_sys_max_cmd_len
22539 # Does compiler simultaneously support -c and -o options?
22540 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22542 # Must we lock files when doing compilation?
22543 need_locks=$lt_need_locks
22545 # Do we need the lib prefix for modules?
22546 need_lib_prefix=$need_lib_prefix
22548 # Do we need a version for libraries?
22549 need_version=$need_version
22551 # Whether dlopen is supported.
22552 dlopen_support=$enable_dlopen
22554 # Whether dlopen of programs is supported.
22555 dlopen_self=$enable_dlopen_self
22557 # Whether dlopen of statically linked programs is supported.
22558 dlopen_self_static=$enable_dlopen_self_static
22560 # Compiler flag to prevent dynamic linking.
22561 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22563 # Compiler flag to turn off builtin functions.
22564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22566 # Compiler flag to allow reflexive dlopens.
22567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22569 # Compiler flag to generate shared objects directly from archives.
22570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22572 # Compiler flag to generate thread-safe objects.
22573 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22575 # Library versioning type.
22576 version_type=$version_type
22578 # Format of library name prefix.
22579 libname_spec=$lt_libname_spec
22581 # List of archive names. First name is the real one, the rest are links.
22582 # The last name is the one that the linker finds with -lNAME.
22583 library_names_spec=$lt_library_names_spec
22585 # The coded name of the library, if different from the real name.
22586 soname_spec=$lt_soname_spec
22588 # Commands used to build and install an old-style archive.
22589 RANLIB=$lt_RANLIB
22590 old_archive_cmds=$lt_old_archive_cmds_GCJ
22591 old_postinstall_cmds=$lt_old_postinstall_cmds
22592 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22594 # Create an old-style archive from a shared archive.
22595 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22597 # Create a temporary old-style archive to link instead of a shared archive.
22598 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22600 # Commands used to build and install a shared archive.
22601 archive_cmds=$lt_archive_cmds_GCJ
22602 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22603 postinstall_cmds=$lt_postinstall_cmds
22604 postuninstall_cmds=$lt_postuninstall_cmds
22606 # Commands used to build a loadable module (assumed same as above if empty)
22607 module_cmds=$lt_module_cmds_GCJ
22608 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22610 # Commands to strip libraries.
22611 old_striplib=$lt_old_striplib
22612 striplib=$lt_striplib
22614 # Dependencies to place before the objects being linked to create a
22615 # shared library.
22616 predep_objects=$lt_predep_objects_GCJ
22618 # Dependencies to place after the objects being linked to create a
22619 # shared library.
22620 postdep_objects=$lt_postdep_objects_GCJ
22622 # Dependencies to place before the objects being linked to create a
22623 # shared library.
22624 predeps=$lt_predeps_GCJ
22626 # Dependencies to place after the objects being linked to create a
22627 # shared library.
22628 postdeps=$lt_postdeps_GCJ
22630 # The library search path used internally by the compiler when linking
22631 # a shared library.
22632 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22634 # Method to check whether dependent libraries are shared objects.
22635 deplibs_check_method=$lt_deplibs_check_method
22637 # Command to use when deplibs_check_method == file_magic.
22638 file_magic_cmd=$lt_file_magic_cmd
22640 # Flag that allows shared libraries with undefined symbols to be built.
22641 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22643 # Flag that forces no undefined symbols.
22644 no_undefined_flag=$lt_no_undefined_flag_GCJ
22646 # Commands used to finish a libtool library installation in a directory.
22647 finish_cmds=$lt_finish_cmds
22649 # Same as above, but a single script fragment to be evaled but not shown.
22650 finish_eval=$lt_finish_eval
22652 # Take the output of nm and produce a listing of raw symbols and C names.
22653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22655 # Transform the output of nm in a proper C declaration
22656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22658 # Transform the output of nm in a C name address pair
22659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22661 # This is the shared library runtime path variable.
22662 runpath_var=$runpath_var
22664 # This is the shared library path variable.
22665 shlibpath_var=$shlibpath_var
22667 # Is shlibpath searched before the hard-coded library search path?
22668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22670 # How to hardcode a shared library path into an executable.
22671 hardcode_action=$hardcode_action_GCJ
22673 # Whether we should hardcode library paths into libraries.
22674 hardcode_into_libs=$hardcode_into_libs
22676 # Flag to hardcode \$libdir into a binary during linking.
22677 # This must work even if \$libdir does not exist.
22678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22680 # If ld is used when linking, flag to hardcode \$libdir into
22681 # a binary during linking. This must work even if \$libdir does
22682 # not exist.
22683 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22685 # Whether we need a single -rpath flag with a separated argument.
22686 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22688 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22689 # resulting binary.
22690 hardcode_direct=$hardcode_direct_GCJ
22692 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22693 # resulting binary.
22694 hardcode_minus_L=$hardcode_minus_L_GCJ
22696 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22697 # the resulting binary.
22698 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22700 # Set to yes if building a shared library automatically hardcodes DIR into the library
22701 # and all subsequent libraries and executables linked against it.
22702 hardcode_automatic=$hardcode_automatic_GCJ
22704 # Variables whose values should be saved in libtool wrapper scripts and
22705 # restored at relink time.
22706 variables_saved_for_relink="$variables_saved_for_relink"
22708 # Whether libtool must link a program against all its dependency libraries.
22709 link_all_deplibs=$link_all_deplibs_GCJ
22711 # Compile-time system search path for libraries
22712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22714 # Run-time system search path for libraries
22715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22717 # Fix the shell variable \$srcfile for the compiler.
22718 fix_srcfile_path="$fix_srcfile_path_GCJ"
22720 # Set to yes if exported symbols are required.
22721 always_export_symbols=$always_export_symbols_GCJ
22723 # The commands to list exported symbols.
22724 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22726 # The commands to extract the exported symbol list from a shared archive.
22727 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22729 # Symbols that should not be listed in the preloaded symbols.
22730 exclude_expsyms=$lt_exclude_expsyms_GCJ
22732 # Symbols that must always be exported.
22733 include_expsyms=$lt_include_expsyms_GCJ
22735 # ### END LIBTOOL TAG CONFIG: $tagname
22737 __EOF__
22740 else
22741 # If there is no Makefile yet, we rely on a make rule to execute
22742 # `config.status --recheck' to rerun these tests and create the
22743 # libtool script then.
22744 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22745 if test -f "$ltmain_in"; then
22746 test -f Makefile && make "$ltmain"
22751 ac_ext=c
22752 ac_cpp='$CPP $CPPFLAGS'
22753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22757 CC="$lt_save_CC"
22759 else
22760 tagname=""
22768 # Source file extension for RC test sources.
22769 ac_ext=rc
22771 # Object file extension for compiled RC test sources.
22772 objext=o
22773 objext_RC=$objext
22775 # Code to be used in simple compile tests
22776 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22778 # Code to be used in simple link tests
22779 lt_simple_link_test_code="$lt_simple_compile_test_code"
22781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22783 # If no C compiler was specified, use CC.
22784 LTCC=${LTCC-"$CC"}
22786 # Allow CC to be a program name with arguments.
22787 compiler=$CC
22790 # save warnings/boilerplate of simple test code
22791 ac_outfile=conftest.$ac_objext
22792 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22793 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22794 _lt_compiler_boilerplate=`cat conftest.err`
22795 $rm conftest*
22797 ac_outfile=conftest.$ac_objext
22798 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22799 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22800 _lt_linker_boilerplate=`cat conftest.err`
22801 $rm conftest*
22804 # Allow CC to be a program name with arguments.
22805 lt_save_CC="$CC"
22806 CC=${RC-"windres"}
22807 compiler=$CC
22808 compiler_RC=$CC
22809 for cc_temp in $compiler""; do
22810 case $cc_temp in
22811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22813 \-*) ;;
22814 *) break;;
22815 esac
22816 done
22817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22819 lt_cv_prog_compiler_c_o_RC=yes
22821 # The else clause should only fire when bootstrapping the
22822 # libtool distribution, otherwise you forgot to ship ltmain.sh
22823 # with your package, and you will get complaints that there are
22824 # no rules to generate ltmain.sh.
22825 if test -f "$ltmain"; then
22826 # See if we are running on zsh, and set the options which allow our commands through
22827 # without removal of \ escapes.
22828 if test -n "${ZSH_VERSION+set}" ; then
22829 setopt NO_GLOB_SUBST
22831 # Now quote all the things that may contain metacharacters while being
22832 # careful not to overquote the AC_SUBSTed values. We take copies of the
22833 # variables and quote the copies for generation of the libtool script.
22834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22835 SED SHELL STRIP \
22836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22838 deplibs_check_method reload_flag reload_cmds need_locks \
22839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22840 lt_cv_sys_global_symbol_to_c_name_address \
22841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22842 old_postinstall_cmds old_postuninstall_cmds \
22843 compiler_RC \
22844 CC_RC \
22845 LD_RC \
22846 lt_prog_compiler_wl_RC \
22847 lt_prog_compiler_pic_RC \
22848 lt_prog_compiler_static_RC \
22849 lt_prog_compiler_no_builtin_flag_RC \
22850 export_dynamic_flag_spec_RC \
22851 thread_safe_flag_spec_RC \
22852 whole_archive_flag_spec_RC \
22853 enable_shared_with_static_runtimes_RC \
22854 old_archive_cmds_RC \
22855 old_archive_from_new_cmds_RC \
22856 predep_objects_RC \
22857 postdep_objects_RC \
22858 predeps_RC \
22859 postdeps_RC \
22860 compiler_lib_search_path_RC \
22861 archive_cmds_RC \
22862 archive_expsym_cmds_RC \
22863 postinstall_cmds_RC \
22864 postuninstall_cmds_RC \
22865 old_archive_from_expsyms_cmds_RC \
22866 allow_undefined_flag_RC \
22867 no_undefined_flag_RC \
22868 export_symbols_cmds_RC \
22869 hardcode_libdir_flag_spec_RC \
22870 hardcode_libdir_flag_spec_ld_RC \
22871 hardcode_libdir_separator_RC \
22872 hardcode_automatic_RC \
22873 module_cmds_RC \
22874 module_expsym_cmds_RC \
22875 lt_cv_prog_compiler_c_o_RC \
22876 exclude_expsyms_RC \
22877 include_expsyms_RC; do
22879 case $var in
22880 old_archive_cmds_RC | \
22881 old_archive_from_new_cmds_RC | \
22882 archive_cmds_RC | \
22883 archive_expsym_cmds_RC | \
22884 module_cmds_RC | \
22885 module_expsym_cmds_RC | \
22886 old_archive_from_expsyms_cmds_RC | \
22887 export_symbols_cmds_RC | \
22888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22889 postinstall_cmds | postuninstall_cmds | \
22890 old_postinstall_cmds | old_postuninstall_cmds | \
22891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22892 # Double-quote double-evaled strings.
22893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22898 esac
22899 done
22901 case $lt_echo in
22902 *'\$0 --fallback-echo"')
22903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22905 esac
22907 cfgfile="$ofile"
22909 cat <<__EOF__ >> "$cfgfile"
22910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22914 # Shell to use when invoking shell scripts.
22915 SHELL=$lt_SHELL
22917 # Whether or not to build shared libraries.
22918 build_libtool_libs=$enable_shared
22920 # Whether or not to build static libraries.
22921 build_old_libs=$enable_static
22923 # Whether or not to add -lc for building shared libraries.
22924 build_libtool_need_lc=$archive_cmds_need_lc_RC
22926 # Whether or not to disallow shared libs when runtime libs are static
22927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22929 # Whether or not to optimize for fast installation.
22930 fast_install=$enable_fast_install
22932 # The host system.
22933 host_alias=$host_alias
22934 host=$host
22935 host_os=$host_os
22937 # The build system.
22938 build_alias=$build_alias
22939 build=$build
22940 build_os=$build_os
22942 # An echo program that does not interpret backslashes.
22943 echo=$lt_echo
22945 # The archiver.
22946 AR=$lt_AR
22947 AR_FLAGS=$lt_AR_FLAGS
22949 # A C compiler.
22950 LTCC=$lt_LTCC
22952 # A language-specific compiler.
22953 CC=$lt_compiler_RC
22955 # Is the compiler the GNU C compiler?
22956 with_gcc=$GCC_RC
22958 # An ERE matcher.
22959 EGREP=$lt_EGREP
22961 # The linker used to build libraries.
22962 LD=$lt_LD_RC
22964 # Whether we need hard or soft links.
22965 LN_S=$lt_LN_S
22967 # A BSD-compatible nm program.
22968 NM=$lt_NM
22970 # A symbol stripping program
22971 STRIP=$lt_STRIP
22973 # Used to examine libraries when file_magic_cmd begins "file"
22974 MAGIC_CMD=$MAGIC_CMD
22976 # Used on cygwin: DLL creation program.
22977 DLLTOOL="$DLLTOOL"
22979 # Used on cygwin: object dumper.
22980 OBJDUMP="$OBJDUMP"
22982 # Used on cygwin: assembler.
22983 AS="$AS"
22985 # The name of the directory that contains temporary libtool files.
22986 objdir=$objdir
22988 # How to create reloadable object files.
22989 reload_flag=$lt_reload_flag
22990 reload_cmds=$lt_reload_cmds
22992 # How to pass a linker flag through the compiler.
22993 wl=$lt_lt_prog_compiler_wl_RC
22995 # Object file suffix (normally "o").
22996 objext="$ac_objext"
22998 # Old archive suffix (normally "a").
22999 libext="$libext"
23001 # Shared library suffix (normally ".so").
23002 shrext_cmds='$shrext_cmds'
23004 # Executable file suffix (normally "").
23005 exeext="$exeext"
23007 # Additional compiler flags for building library objects.
23008 pic_flag=$lt_lt_prog_compiler_pic_RC
23009 pic_mode=$pic_mode
23011 # What is the maximum length of a command?
23012 max_cmd_len=$lt_cv_sys_max_cmd_len
23014 # Does compiler simultaneously support -c and -o options?
23015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23017 # Must we lock files when doing compilation?
23018 need_locks=$lt_need_locks
23020 # Do we need the lib prefix for modules?
23021 need_lib_prefix=$need_lib_prefix
23023 # Do we need a version for libraries?
23024 need_version=$need_version
23026 # Whether dlopen is supported.
23027 dlopen_support=$enable_dlopen
23029 # Whether dlopen of programs is supported.
23030 dlopen_self=$enable_dlopen_self
23032 # Whether dlopen of statically linked programs is supported.
23033 dlopen_self_static=$enable_dlopen_self_static
23035 # Compiler flag to prevent dynamic linking.
23036 link_static_flag=$lt_lt_prog_compiler_static_RC
23038 # Compiler flag to turn off builtin functions.
23039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23041 # Compiler flag to allow reflexive dlopens.
23042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23044 # Compiler flag to generate shared objects directly from archives.
23045 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23047 # Compiler flag to generate thread-safe objects.
23048 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23050 # Library versioning type.
23051 version_type=$version_type
23053 # Format of library name prefix.
23054 libname_spec=$lt_libname_spec
23056 # List of archive names. First name is the real one, the rest are links.
23057 # The last name is the one that the linker finds with -lNAME.
23058 library_names_spec=$lt_library_names_spec
23060 # The coded name of the library, if different from the real name.
23061 soname_spec=$lt_soname_spec
23063 # Commands used to build and install an old-style archive.
23064 RANLIB=$lt_RANLIB
23065 old_archive_cmds=$lt_old_archive_cmds_RC
23066 old_postinstall_cmds=$lt_old_postinstall_cmds
23067 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23069 # Create an old-style archive from a shared archive.
23070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23072 # Create a temporary old-style archive to link instead of a shared archive.
23073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23075 # Commands used to build and install a shared archive.
23076 archive_cmds=$lt_archive_cmds_RC
23077 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23078 postinstall_cmds=$lt_postinstall_cmds
23079 postuninstall_cmds=$lt_postuninstall_cmds
23081 # Commands used to build a loadable module (assumed same as above if empty)
23082 module_cmds=$lt_module_cmds_RC
23083 module_expsym_cmds=$lt_module_expsym_cmds_RC
23085 # Commands to strip libraries.
23086 old_striplib=$lt_old_striplib
23087 striplib=$lt_striplib
23089 # Dependencies to place before the objects being linked to create a
23090 # shared library.
23091 predep_objects=$lt_predep_objects_RC
23093 # Dependencies to place after the objects being linked to create a
23094 # shared library.
23095 postdep_objects=$lt_postdep_objects_RC
23097 # Dependencies to place before the objects being linked to create a
23098 # shared library.
23099 predeps=$lt_predeps_RC
23101 # Dependencies to place after the objects being linked to create a
23102 # shared library.
23103 postdeps=$lt_postdeps_RC
23105 # The library search path used internally by the compiler when linking
23106 # a shared library.
23107 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23109 # Method to check whether dependent libraries are shared objects.
23110 deplibs_check_method=$lt_deplibs_check_method
23112 # Command to use when deplibs_check_method == file_magic.
23113 file_magic_cmd=$lt_file_magic_cmd
23115 # Flag that allows shared libraries with undefined symbols to be built.
23116 allow_undefined_flag=$lt_allow_undefined_flag_RC
23118 # Flag that forces no undefined symbols.
23119 no_undefined_flag=$lt_no_undefined_flag_RC
23121 # Commands used to finish a libtool library installation in a directory.
23122 finish_cmds=$lt_finish_cmds
23124 # Same as above, but a single script fragment to be evaled but not shown.
23125 finish_eval=$lt_finish_eval
23127 # Take the output of nm and produce a listing of raw symbols and C names.
23128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23130 # Transform the output of nm in a proper C declaration
23131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23133 # Transform the output of nm in a C name address pair
23134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23136 # This is the shared library runtime path variable.
23137 runpath_var=$runpath_var
23139 # This is the shared library path variable.
23140 shlibpath_var=$shlibpath_var
23142 # Is shlibpath searched before the hard-coded library search path?
23143 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23145 # How to hardcode a shared library path into an executable.
23146 hardcode_action=$hardcode_action_RC
23148 # Whether we should hardcode library paths into libraries.
23149 hardcode_into_libs=$hardcode_into_libs
23151 # Flag to hardcode \$libdir into a binary during linking.
23152 # This must work even if \$libdir does not exist.
23153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23155 # If ld is used when linking, flag to hardcode \$libdir into
23156 # a binary during linking. This must work even if \$libdir does
23157 # not exist.
23158 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
23160 # Whether we need a single -rpath flag with a separated argument.
23161 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23163 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23164 # resulting binary.
23165 hardcode_direct=$hardcode_direct_RC
23167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23168 # resulting binary.
23169 hardcode_minus_L=$hardcode_minus_L_RC
23171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23172 # the resulting binary.
23173 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23175 # Set to yes if building a shared library automatically hardcodes DIR into the library
23176 # and all subsequent libraries and executables linked against it.
23177 hardcode_automatic=$hardcode_automatic_RC
23179 # Variables whose values should be saved in libtool wrapper scripts and
23180 # restored at relink time.
23181 variables_saved_for_relink="$variables_saved_for_relink"
23183 # Whether libtool must link a program against all its dependency libraries.
23184 link_all_deplibs=$link_all_deplibs_RC
23186 # Compile-time system search path for libraries
23187 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23189 # Run-time system search path for libraries
23190 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23192 # Fix the shell variable \$srcfile for the compiler.
23193 fix_srcfile_path="$fix_srcfile_path_RC"
23195 # Set to yes if exported symbols are required.
23196 always_export_symbols=$always_export_symbols_RC
23198 # The commands to list exported symbols.
23199 export_symbols_cmds=$lt_export_symbols_cmds_RC
23201 # The commands to extract the exported symbol list from a shared archive.
23202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23204 # Symbols that should not be listed in the preloaded symbols.
23205 exclude_expsyms=$lt_exclude_expsyms_RC
23207 # Symbols that must always be exported.
23208 include_expsyms=$lt_include_expsyms_RC
23210 # ### END LIBTOOL TAG CONFIG: $tagname
23212 __EOF__
23215 else
23216 # If there is no Makefile yet, we rely on a make rule to execute
23217 # `config.status --recheck' to rerun these tests and create the
23218 # libtool script then.
23219 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23220 if test -f "$ltmain_in"; then
23221 test -f Makefile && make "$ltmain"
23226 ac_ext=c
23227 ac_cpp='$CPP $CPPFLAGS'
23228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23232 CC="$lt_save_CC"
23237 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23238 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23239 { (exit 1); exit 1; }; }
23241 esac
23243 # Append the new tag name to the list of available tags.
23244 if test -n "$tagname" ; then
23245 available_tags="$available_tags $tagname"
23248 done
23249 IFS="$lt_save_ifs"
23251 # Now substitute the updated list of available tags.
23252 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23253 mv "${ofile}T" "$ofile"
23254 chmod +x "$ofile"
23255 else
23256 rm -f "${ofile}T"
23257 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23258 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23259 { (exit 1); exit 1; }; }
23265 # This can be used to rebuild libtool when needed
23266 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23268 # Always use our own libtool.
23269 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23271 # Prevent multiple expansion
23282 echo "$as_me:$LINENO: checking whether ln -s works" >&5
23283 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
23284 LN_S=$as_ln_s
23285 if test "$LN_S" = "ln -s"; then
23286 echo "$as_me:$LINENO: result: yes" >&5
23287 echo "${ECHO_T}yes" >&6
23288 else
23289 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
23290 echo "${ECHO_T}no, using $LN_S" >&6
23293 if test $ac_cv_c_compiler_gnu = yes; then
23294 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
23295 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
23296 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299 ac_pattern="Autoconf.*'x'"
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h. */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 #include <sgtty.h>
23307 Autoconf TIOCGETP
23308 _ACEOF
23309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
23311 ac_cv_prog_gcc_traditional=yes
23312 else
23313 ac_cv_prog_gcc_traditional=no
23315 rm -f conftest*
23318 if test $ac_cv_prog_gcc_traditional = no; then
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h. */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include <termio.h>
23326 Autoconf TCGETA
23327 _ACEOF
23328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23329 $EGREP "$ac_pattern" >/dev/null 2>&1; then
23330 ac_cv_prog_gcc_traditional=yes
23332 rm -f conftest*
23336 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
23337 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
23338 if test $ac_cv_prog_gcc_traditional = yes; then
23339 CC="$CC -traditional"
23343 echo "$as_me:$LINENO: checking for working volatile" >&5
23344 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
23345 if test "${ac_cv_c_volatile+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23356 main ()
23359 volatile int x;
23360 int * volatile y;
23362 return 0;
23364 _ACEOF
23365 rm -f conftest.$ac_objext
23366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23367 (eval $ac_compile) 2>conftest.er1
23368 ac_status=$?
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } &&
23374 { ac_try='test -z "$ac_c_werror_flag"
23375 || test ! -s conftest.err'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; } &&
23381 { ac_try='test -s conftest.$ac_objext'
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; }; then
23387 ac_cv_c_volatile=yes
23388 else
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23392 ac_cv_c_volatile=no
23394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
23397 echo "${ECHO_T}$ac_cv_c_volatile" >&6
23398 if test $ac_cv_c_volatile = no; then
23400 cat >>confdefs.h <<\_ACEOF
23401 #define volatile
23402 _ACEOF
23406 echo "$as_me:$LINENO: checking for library containing strerror" >&5
23407 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
23408 if test "${ac_cv_search_strerror+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411 ac_func_search_save_LIBS=$LIBS
23412 ac_cv_search_strerror=no
23413 cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h. */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23420 /* Override any gcc2 internal prototype to avoid an error. */
23421 #ifdef __cplusplus
23422 extern "C"
23423 #endif
23424 /* We use char because int might match the return type of a gcc2
23425 builtin and then its argument prototype would still apply. */
23426 char strerror ();
23428 main ()
23430 strerror ();
23432 return 0;
23434 _ACEOF
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23437 (eval $ac_link) 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
23444 { ac_try='test -z "$ac_c_werror_flag"
23445 || test ! -s conftest.err'
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest$ac_exeext'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_search_strerror="none required"
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23463 rm -f conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23465 if test "$ac_cv_search_strerror" = no; then
23466 for ac_lib in cposix; do
23467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23468 cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h. */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h. */
23475 /* Override any gcc2 internal prototype to avoid an error. */
23476 #ifdef __cplusplus
23477 extern "C"
23478 #endif
23479 /* We use char because int might match the return type of a gcc2
23480 builtin and then its argument prototype would still apply. */
23481 char strerror ();
23483 main ()
23485 strerror ();
23487 return 0;
23489 _ACEOF
23490 rm -f conftest.$ac_objext conftest$ac_exeext
23491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23492 (eval $ac_link) 2>conftest.er1
23493 ac_status=$?
23494 grep -v '^ *+' conftest.er1 >conftest.err
23495 rm -f conftest.er1
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } &&
23499 { ac_try='test -z "$ac_c_werror_flag"
23500 || test ! -s conftest.err'
23501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); }; } &&
23506 { ac_try='test -s conftest$ac_exeext'
23507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; }; then
23512 ac_cv_search_strerror="-l$ac_lib"
23513 break
23514 else
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23519 rm -f conftest.err conftest.$ac_objext \
23520 conftest$ac_exeext conftest.$ac_ext
23521 done
23523 LIBS=$ac_func_search_save_LIBS
23525 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
23526 echo "${ECHO_T}$ac_cv_search_strerror" >&6
23527 if test "$ac_cv_search_strerror" != no; then
23528 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
23532 # Extract the first word of "sh", so it can be a program name with args.
23533 set dummy sh; ac_word=$2
23534 echo "$as_me:$LINENO: checking for $ac_word" >&5
23535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23536 if test "${ac_cv_path_PATH_SH+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23538 else
23539 case $PATH_SH in
23540 [\\/]* | ?:[\\/]*)
23541 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
23544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23545 for as_dir in $PATH
23547 IFS=$as_save_IFS
23548 test -z "$as_dir" && as_dir=.
23549 for ac_exec_ext in '' $ac_executable_extensions; do
23550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23551 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
23552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23553 break 2
23555 done
23556 done
23559 esac
23561 PATH_SH=$ac_cv_path_PATH_SH
23563 if test -n "$PATH_SH"; then
23564 echo "$as_me:$LINENO: result: $PATH_SH" >&5
23565 echo "${ECHO_T}$PATH_SH" >&6
23566 else
23567 echo "$as_me:$LINENO: result: no" >&5
23568 echo "${ECHO_T}no" >&6
23571 # Extract the first word of "perl", so it can be a program name with args.
23572 set dummy perl; ac_word=$2
23573 echo "$as_me:$LINENO: checking for $ac_word" >&5
23574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23575 if test "${ac_cv_path_PATH_PERL+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578 case $PATH_PERL in
23579 [\\/]* | ?:[\\/]*)
23580 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
23583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23584 for as_dir in $PATH
23586 IFS=$as_save_IFS
23587 test -z "$as_dir" && as_dir=.
23588 for ac_exec_ext in '' $ac_executable_extensions; do
23589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23590 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
23591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23592 break 2
23594 done
23595 done
23598 esac
23600 PATH_PERL=$ac_cv_path_PATH_PERL
23602 if test -n "$PATH_PERL"; then
23603 echo "$as_me:$LINENO: result: $PATH_PERL" >&5
23604 echo "${ECHO_T}$PATH_PERL" >&6
23605 else
23606 echo "$as_me:$LINENO: result: no" >&5
23607 echo "${ECHO_T}no" >&6
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h. */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 #define ACAT(a,b)a ## b
23620 ACAT(Cir,cus)
23622 _ACEOF
23623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23624 $EGREP "Circus" >/dev/null 2>&1; then
23625 cat >>confdefs.h <<\_ACEOF
23626 #define ULONG_CONST(a) a ## UL
23627 _ACEOF
23629 else
23630 cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h. */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23636 #define RCAT(a,b)a/**/b
23637 RCAT(Rei,ser)
23639 _ACEOF
23640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23641 $EGREP "Reiser" >/dev/null 2>&1; then
23642 cat >>confdefs.h <<\_ACEOF
23643 #define ULONG_CONST(a) a/**/L
23644 _ACEOF
23646 else
23647 { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
23648 echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
23649 { (exit 1); exit 1; }; }
23651 rm -f conftest*
23654 rm -f conftest*
23655 # remove for 4.2.5
23657 case "$host" in
23658 *-*-vxworks*)
23659 ac_link="$ac_link $VX_KERNEL"
23661 esac
23663 # Find a good install program. We prefer a C program (faster),
23664 # so one script is as good as another. But avoid the broken or
23665 # incompatible versions:
23666 # SysV /etc/install, /usr/sbin/install
23667 # SunOS /usr/etc/install
23668 # IRIX /sbin/install
23669 # AIX /bin/install
23670 # AmigaOS /C/install, which installs bootblocks on floppy discs
23671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
23673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23674 # OS/2's system install, which has a completely different semantic
23675 # ./install, which can be erroneously created by make from ./install.sh.
23676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
23677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
23678 if test -z "$INSTALL"; then
23679 if test "${ac_cv_path_install+set}" = set; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23683 for as_dir in $PATH
23685 IFS=$as_save_IFS
23686 test -z "$as_dir" && as_dir=.
23687 # Account for people who put trailing slashes in PATH elements.
23688 case $as_dir/ in
23689 ./ | .// | /cC/* | \
23690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
23691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
23692 /usr/ucb/* ) ;;
23694 # OSF1 and SCO ODT 3.0 have their own names for install.
23695 # Don't use installbsd from OSF since it installs stuff as root
23696 # by default.
23697 for ac_prog in ginstall scoinst install; do
23698 for ac_exec_ext in '' $ac_executable_extensions; do
23699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
23700 if test $ac_prog = install &&
23701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23702 # AIX install. It has an incompatible calling convention.
23704 elif test $ac_prog = install &&
23705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23706 # program-specific install script used by HP pwplus--don't use.
23708 else
23709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
23710 break 3
23713 done
23714 done
23716 esac
23717 done
23721 if test "${ac_cv_path_install+set}" = set; then
23722 INSTALL=$ac_cv_path_install
23723 else
23724 # As a last resort, use the slow shell script. We don't cache a
23725 # path for INSTALL within a source directory, because that will
23726 # break other packages using the cache if that directory is
23727 # removed, or if the path is relative.
23728 INSTALL=$ac_install_sh
23731 echo "$as_me:$LINENO: result: $INSTALL" >&5
23732 echo "${ECHO_T}$INSTALL" >&6
23734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23735 # It thinks the first close brace ends the variable substitution.
23736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
23738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
23740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
23743 case "$host" in
23744 *-pc-cygwin*)
23746 echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
23747 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
23748 if test "${ac_cv_lib_advapi32_main+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751 ac_check_lib_save_LIBS=$LIBS
23752 LIBS="-ladvapi32 $LIBS"
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h. */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23762 main ()
23764 main ();
23766 return 0;
23768 _ACEOF
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23771 (eval $ac_link) 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -z "$ac_c_werror_flag"
23779 || test ! -s conftest.err'
23780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23782 ac_status=$?
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); }; } &&
23785 { ac_try='test -s conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_cv_lib_advapi32_main=yes
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_cv_lib_advapi32_main=no
23798 rm -f conftest.err conftest.$ac_objext \
23799 conftest$ac_exeext conftest.$ac_ext
23800 LIBS=$ac_check_lib_save_LIBS
23802 echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
23803 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
23804 if test $ac_cv_lib_advapi32_main = yes; then
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_LIBADVAPI32 1
23807 _ACEOF
23809 LIBS="-ladvapi32 $LIBS"
23814 esac
23816 echo "$as_me:$LINENO: checking for gethostent" >&5
23817 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
23818 if test "${ac_cv_func_gethostent+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 else
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23827 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
23828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23829 #define gethostent innocuous_gethostent
23831 /* System header to define __stub macros and hopefully few prototypes,
23832 which can conflict with char gethostent (); below.
23833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23834 <limits.h> exists even on freestanding compilers. */
23836 #ifdef __STDC__
23837 # include <limits.h>
23838 #else
23839 # include <assert.h>
23840 #endif
23842 #undef gethostent
23844 /* Override any gcc2 internal prototype to avoid an error. */
23845 #ifdef __cplusplus
23846 extern "C"
23848 #endif
23849 /* We use char because int might match the return type of a gcc2
23850 builtin and then its argument prototype would still apply. */
23851 char gethostent ();
23852 /* The GNU C library defines this for functions which it implements
23853 to always fail with ENOSYS. Some functions are actually named
23854 something starting with __ and the normal name is an alias. */
23855 #if defined (__stub_gethostent) || defined (__stub___gethostent)
23856 choke me
23857 #else
23858 char (*f) () = gethostent;
23859 #endif
23860 #ifdef __cplusplus
23862 #endif
23865 main ()
23867 return f != gethostent;
23869 return 0;
23871 _ACEOF
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23874 (eval $ac_link) 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } &&
23881 { ac_try='test -z "$ac_c_werror_flag"
23882 || test ! -s conftest.err'
23883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23884 (eval $ac_try) 2>&5
23885 ac_status=$?
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); }; } &&
23888 { ac_try='test -s conftest$ac_exeext'
23889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890 (eval $ac_try) 2>&5
23891 ac_status=$?
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); }; }; then
23894 ac_cv_func_gethostent=yes
23895 else
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_cv_func_gethostent=no
23901 rm -f conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
23904 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
23905 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
23906 if test $ac_cv_func_gethostent = yes; then
23908 else
23909 echo "$as_me:$LINENO: checking for library containing gethostent" >&5
23910 echo $ECHO_N "checking for library containing gethostent... $ECHO_C" >&6
23911 if test "${ac_cv_search_gethostent+set}" = set; then
23912 echo $ECHO_N "(cached) $ECHO_C" >&6
23913 else
23914 ac_func_search_save_LIBS=$LIBS
23915 ac_cv_search_gethostent=no
23916 cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h. */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23923 /* Override any gcc2 internal prototype to avoid an error. */
23924 #ifdef __cplusplus
23925 extern "C"
23926 #endif
23927 /* We use char because int might match the return type of a gcc2
23928 builtin and then its argument prototype would still apply. */
23929 char gethostent ();
23931 main ()
23933 gethostent ();
23935 return 0;
23937 _ACEOF
23938 rm -f conftest.$ac_objext conftest$ac_exeext
23939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23940 (eval $ac_link) 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } &&
23947 { ac_try='test -z "$ac_c_werror_flag"
23948 || test ! -s conftest.err'
23949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; } &&
23954 { ac_try='test -s conftest$ac_exeext'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ac_cv_search_gethostent="none required"
23961 else
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23966 rm -f conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
23968 if test "$ac_cv_search_gethostent" = no; then
23969 for ac_lib in nsl; do
23970 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
23971 cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h. */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23978 /* Override any gcc2 internal prototype to avoid an error. */
23979 #ifdef __cplusplus
23980 extern "C"
23981 #endif
23982 /* We use char because int might match the return type of a gcc2
23983 builtin and then its argument prototype would still apply. */
23984 char gethostent ();
23986 main ()
23988 gethostent ();
23990 return 0;
23992 _ACEOF
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23995 (eval $ac_link) 2>conftest.er1
23996 ac_status=$?
23997 grep -v '^ *+' conftest.er1 >conftest.err
23998 rm -f conftest.er1
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } &&
24002 { ac_try='test -z "$ac_c_werror_flag"
24003 || test ! -s conftest.err'
24004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24005 (eval $ac_try) 2>&5
24006 ac_status=$?
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); }; } &&
24009 { ac_try='test -s conftest$ac_exeext'
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; }; then
24015 ac_cv_search_gethostent="-l$ac_lib"
24016 break
24017 else
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24022 rm -f conftest.err conftest.$ac_objext \
24023 conftest$ac_exeext conftest.$ac_ext
24024 done
24026 LIBS=$ac_func_search_save_LIBS
24028 echo "$as_me:$LINENO: result: $ac_cv_search_gethostent" >&5
24029 echo "${ECHO_T}$ac_cv_search_gethostent" >&6
24030 if test "$ac_cv_search_gethostent" != no; then
24031 test "$ac_cv_search_gethostent" = "none required" || LIBS="$ac_cv_search_gethostent $LIBS"
24037 echo "$as_me:$LINENO: checking for openlog" >&5
24038 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
24039 if test "${ac_cv_func_openlog+set}" = set; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 else
24042 cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h. */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
24049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24050 #define openlog innocuous_openlog
24052 /* System header to define __stub macros and hopefully few prototypes,
24053 which can conflict with char openlog (); below.
24054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24055 <limits.h> exists even on freestanding compilers. */
24057 #ifdef __STDC__
24058 # include <limits.h>
24059 #else
24060 # include <assert.h>
24061 #endif
24063 #undef openlog
24065 /* Override any gcc2 internal prototype to avoid an error. */
24066 #ifdef __cplusplus
24067 extern "C"
24069 #endif
24070 /* We use char because int might match the return type of a gcc2
24071 builtin and then its argument prototype would still apply. */
24072 char openlog ();
24073 /* The GNU C library defines this for functions which it implements
24074 to always fail with ENOSYS. Some functions are actually named
24075 something starting with __ and the normal name is an alias. */
24076 #if defined (__stub_openlog) || defined (__stub___openlog)
24077 choke me
24078 #else
24079 char (*f) () = openlog;
24080 #endif
24081 #ifdef __cplusplus
24083 #endif
24086 main ()
24088 return f != openlog;
24090 return 0;
24092 _ACEOF
24093 rm -f conftest.$ac_objext conftest$ac_exeext
24094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24095 (eval $ac_link) 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
24102 { ac_try='test -z "$ac_c_werror_flag"
24103 || test ! -s conftest.err'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest$ac_exeext'
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 ac_cv_func_openlog=yes
24116 else
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_cv_func_openlog=no
24122 rm -f conftest.err conftest.$ac_objext \
24123 conftest$ac_exeext conftest.$ac_ext
24125 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
24126 echo "${ECHO_T}$ac_cv_func_openlog" >&6
24127 if test $ac_cv_func_openlog = yes; then
24129 else
24130 echo "$as_me:$LINENO: checking for library containing openlog" >&5
24131 echo $ECHO_N "checking for library containing openlog... $ECHO_C" >&6
24132 if test "${ac_cv_search_openlog+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135 ac_func_search_save_LIBS=$LIBS
24136 ac_cv_search_openlog=no
24137 cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h. */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24144 /* Override any gcc2 internal prototype to avoid an error. */
24145 #ifdef __cplusplus
24146 extern "C"
24147 #endif
24148 /* We use char because int might match the return type of a gcc2
24149 builtin and then its argument prototype would still apply. */
24150 char openlog ();
24152 main ()
24154 openlog ();
24156 return 0;
24158 _ACEOF
24159 rm -f conftest.$ac_objext conftest$ac_exeext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24161 (eval $ac_link) 2>conftest.er1
24162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -z "$ac_c_werror_flag"
24169 || test ! -s conftest.err'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest$ac_exeext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24181 ac_cv_search_openlog="none required"
24182 else
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24187 rm -f conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
24189 if test "$ac_cv_search_openlog" = no; then
24190 for ac_lib in gen; do
24191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24192 cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h. */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24199 /* Override any gcc2 internal prototype to avoid an error. */
24200 #ifdef __cplusplus
24201 extern "C"
24202 #endif
24203 /* We use char because int might match the return type of a gcc2
24204 builtin and then its argument prototype would still apply. */
24205 char openlog ();
24207 main ()
24209 openlog ();
24211 return 0;
24213 _ACEOF
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24216 (eval $ac_link) 2>conftest.er1
24217 ac_status=$?
24218 grep -v '^ *+' conftest.er1 >conftest.err
24219 rm -f conftest.er1
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -z "$ac_c_werror_flag"
24224 || test ! -s conftest.err'
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; } &&
24230 { ac_try='test -s conftest$ac_exeext'
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; }; then
24236 ac_cv_search_openlog="-l$ac_lib"
24237 break
24238 else
24239 echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24243 rm -f conftest.err conftest.$ac_objext \
24244 conftest$ac_exeext conftest.$ac_ext
24245 done
24247 LIBS=$ac_func_search_save_LIBS
24249 echo "$as_me:$LINENO: result: $ac_cv_search_openlog" >&5
24250 echo "${ECHO_T}$ac_cv_search_openlog" >&6
24251 if test "$ac_cv_search_openlog" != no; then
24252 test "$ac_cv_search_openlog" = "none required" || LIBS="$ac_cv_search_openlog $LIBS"
24254 else
24255 echo "$as_me:$LINENO: checking for library containing openlog" >&5
24256 echo $ECHO_N "checking for library containing openlog... $ECHO_C" >&6
24257 if test "${ac_cv_search_openlog+set}" = set; then
24258 echo $ECHO_N "(cached) $ECHO_C" >&6
24259 else
24260 ac_func_search_save_LIBS=$LIBS
24261 ac_cv_search_openlog=no
24262 cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h. */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24269 /* Override any gcc2 internal prototype to avoid an error. */
24270 #ifdef __cplusplus
24271 extern "C"
24272 #endif
24273 /* We use char because int might match the return type of a gcc2
24274 builtin and then its argument prototype would still apply. */
24275 char openlog ();
24277 main ()
24279 openlog ();
24281 return 0;
24283 _ACEOF
24284 rm -f conftest.$ac_objext conftest$ac_exeext
24285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24286 (eval $ac_link) 2>conftest.er1
24287 ac_status=$?
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } &&
24293 { ac_try='test -z "$ac_c_werror_flag"
24294 || test ! -s conftest.err'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; } &&
24300 { ac_try='test -s conftest$ac_exeext'
24301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; }; then
24306 ac_cv_search_openlog="none required"
24307 else
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24312 rm -f conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
24314 if test "$ac_cv_search_openlog" = no; then
24315 for ac_lib in syslog; do
24316 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h. */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24324 /* Override any gcc2 internal prototype to avoid an error. */
24325 #ifdef __cplusplus
24326 extern "C"
24327 #endif
24328 /* We use char because int might match the return type of a gcc2
24329 builtin and then its argument prototype would still apply. */
24330 char openlog ();
24332 main ()
24334 openlog ();
24336 return 0;
24338 _ACEOF
24339 rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24341 (eval $ac_link) 2>conftest.er1
24342 ac_status=$?
24343 grep -v '^ *+' conftest.er1 >conftest.err
24344 rm -f conftest.er1
24345 cat conftest.err >&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } &&
24348 { ac_try='test -z "$ac_c_werror_flag"
24349 || test ! -s conftest.err'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; } &&
24355 { ac_try='test -s conftest$ac_exeext'
24356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24357 (eval $ac_try) 2>&5
24358 ac_status=$?
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); }; }; then
24361 ac_cv_search_openlog="-l$ac_lib"
24362 break
24363 else
24364 echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24368 rm -f conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370 done
24372 LIBS=$ac_func_search_save_LIBS
24374 echo "$as_me:$LINENO: result: $ac_cv_search_openlog" >&5
24375 echo "${ECHO_T}$ac_cv_search_openlog" >&6
24376 if test "$ac_cv_search_openlog" != no; then
24377 test "$ac_cv_search_openlog" = "none required" || LIBS="$ac_cv_search_openlog $LIBS"
24385 echo "$as_me:$LINENO: checking for library containing MD5Init" >&5
24386 echo $ECHO_N "checking for library containing MD5Init... $ECHO_C" >&6
24387 if test "${ac_cv_search_MD5Init+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390 ac_func_search_save_LIBS=$LIBS
24391 ac_cv_search_MD5Init=no
24392 cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24399 /* Override any gcc2 internal prototype to avoid an error. */
24400 #ifdef __cplusplus
24401 extern "C"
24402 #endif
24403 /* We use char because int might match the return type of a gcc2
24404 builtin and then its argument prototype would still apply. */
24405 char MD5Init ();
24407 main ()
24409 MD5Init ();
24411 return 0;
24413 _ACEOF
24414 rm -f conftest.$ac_objext conftest$ac_exeext
24415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24416 (eval $ac_link) 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } &&
24423 { ac_try='test -z "$ac_c_werror_flag"
24424 || test ! -s conftest.err'
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
24430 { ac_try='test -s conftest$ac_exeext'
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 ac_cv_search_MD5Init="none required"
24437 else
24438 echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24442 rm -f conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24444 if test "$ac_cv_search_MD5Init" = no; then
24445 for ac_lib in md5 md; do
24446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24447 cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h. */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24454 /* Override any gcc2 internal prototype to avoid an error. */
24455 #ifdef __cplusplus
24456 extern "C"
24457 #endif
24458 /* We use char because int might match the return type of a gcc2
24459 builtin and then its argument prototype would still apply. */
24460 char MD5Init ();
24462 main ()
24464 MD5Init ();
24466 return 0;
24468 _ACEOF
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24471 (eval $ac_link) 2>conftest.er1
24472 ac_status=$?
24473 grep -v '^ *+' conftest.er1 >conftest.err
24474 rm -f conftest.er1
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } &&
24478 { ac_try='test -z "$ac_c_werror_flag"
24479 || test ! -s conftest.err'
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; } &&
24485 { ac_try='test -s conftest$ac_exeext'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
24491 ac_cv_search_MD5Init="-l$ac_lib"
24492 break
24493 else
24494 echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24498 rm -f conftest.err conftest.$ac_objext \
24499 conftest$ac_exeext conftest.$ac_ext
24500 done
24502 LIBS=$ac_func_search_save_LIBS
24504 echo "$as_me:$LINENO: result: $ac_cv_search_MD5Init" >&5
24505 echo "${ECHO_T}$ac_cv_search_MD5Init" >&6
24506 if test "$ac_cv_search_MD5Init" != no; then
24507 test "$ac_cv_search_MD5Init" = "none required" || LIBS="$ac_cv_search_MD5Init $LIBS"
24512 for ac_func in MD5Init
24514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24515 echo "$as_me:$LINENO: checking for $ac_func" >&5
24516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24517 if eval "test \"\${$as_ac_var+set}\" = set"; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520 cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h. */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24528 #define $ac_func innocuous_$ac_func
24530 /* System header to define __stub macros and hopefully few prototypes,
24531 which can conflict with char $ac_func (); below.
24532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24533 <limits.h> exists even on freestanding compilers. */
24535 #ifdef __STDC__
24536 # include <limits.h>
24537 #else
24538 # include <assert.h>
24539 #endif
24541 #undef $ac_func
24543 /* Override any gcc2 internal prototype to avoid an error. */
24544 #ifdef __cplusplus
24545 extern "C"
24547 #endif
24548 /* We use char because int might match the return type of a gcc2
24549 builtin and then its argument prototype would still apply. */
24550 char $ac_func ();
24551 /* The GNU C library defines this for functions which it implements
24552 to always fail with ENOSYS. Some functions are actually named
24553 something starting with __ and the normal name is an alias. */
24554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24555 choke me
24556 #else
24557 char (*f) () = $ac_func;
24558 #endif
24559 #ifdef __cplusplus
24561 #endif
24564 main ()
24566 return f != $ac_func;
24568 return 0;
24570 _ACEOF
24571 rm -f conftest.$ac_objext conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573 (eval $ac_link) 2>conftest.er1
24574 ac_status=$?
24575 grep -v '^ *+' conftest.er1 >conftest.err
24576 rm -f conftest.er1
24577 cat conftest.err >&5
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } &&
24580 { ac_try='test -z "$ac_c_werror_flag"
24581 || test ! -s conftest.err'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; } &&
24587 { ac_try='test -s conftest$ac_exeext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24593 eval "$as_ac_var=yes"
24594 else
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 eval "$as_ac_var=no"
24600 rm -f conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24605 if test `eval echo '${'$as_ac_var'}'` = yes; then
24606 cat >>confdefs.h <<_ACEOF
24607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24608 _ACEOF
24611 done
24614 # following block becomes on 4.2.5: NTP_LINEEDITLIBS
24617 for ac_header in readline/history.h readline/readline.h
24619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24621 echo "$as_me:$LINENO: checking for $ac_header" >&5
24622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24628 else
24629 # Is the header compilable?
24630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24632 cat >conftest.$ac_ext <<_ACEOF
24633 /* confdefs.h. */
24634 _ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24639 #include <$ac_header>
24640 _ACEOF
24641 rm -f conftest.$ac_objext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24643 (eval $ac_compile) 2>conftest.er1
24644 ac_status=$?
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag"
24651 || test ! -s conftest.err'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; } &&
24657 { ac_try='test -s conftest.$ac_objext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 ac_header_compiler=yes
24664 else
24665 echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24668 ac_header_compiler=no
24670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24672 echo "${ECHO_T}$ac_header_compiler" >&6
24674 # Is the header present?
24675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24677 cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h. */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 #include <$ac_header>
24684 _ACEOF
24685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } >/dev/null; then
24693 if test -s conftest.err; then
24694 ac_cpp_err=$ac_c_preproc_warn_flag
24695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24696 else
24697 ac_cpp_err=
24699 else
24700 ac_cpp_err=yes
24702 if test -z "$ac_cpp_err"; then
24703 ac_header_preproc=yes
24704 else
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_header_preproc=no
24710 rm -f conftest.err conftest.$ac_ext
24711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24712 echo "${ECHO_T}$ac_header_preproc" >&6
24714 # So? What about this header?
24715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24716 yes:no: )
24717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24721 ac_header_preproc=yes
24723 no:yes:* )
24724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24737 cat <<\_ASBOX
24738 ## ------------------------------ ##
24739 ## Report this to the ntp lists. ##
24740 ## ------------------------------ ##
24741 _ASBOX
24743 sed "s/^/$as_me: WARNING: /" >&2
24745 esac
24746 echo "$as_me:$LINENO: checking for $ac_header" >&5
24747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751 eval "$as_ac_Header=\$ac_header_preproc"
24753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24758 cat >>confdefs.h <<_ACEOF
24759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24760 _ACEOF
24764 done
24766 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
24767 *no*) ;;
24768 *) save_LIBS=$LIBS
24769 LIBS=
24770 # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
24771 unset ac_cv_lib_readline_readline
24773 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
24774 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
24775 if test "${ac_cv_lib_readline_readline+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778 ac_check_lib_save_LIBS=$LIBS
24779 LIBS="-lreadline $LIBS"
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h. */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24787 /* Override any gcc2 internal prototype to avoid an error. */
24788 #ifdef __cplusplus
24789 extern "C"
24790 #endif
24791 /* We use char because int might match the return type of a gcc2
24792 builtin and then its argument prototype would still apply. */
24793 char readline ();
24795 main ()
24797 readline ();
24799 return 0;
24801 _ACEOF
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24804 (eval $ac_link) 2>conftest.er1
24805 ac_status=$?
24806 grep -v '^ *+' conftest.er1 >conftest.err
24807 rm -f conftest.er1
24808 cat conftest.err >&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); } &&
24811 { ac_try='test -z "$ac_c_werror_flag"
24812 || test ! -s conftest.err'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; } &&
24818 { ac_try='test -s conftest$ac_exeext'
24819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
24824 ac_cv_lib_readline_readline=yes
24825 else
24826 echo "$as_me: failed program was:" >&5
24827 sed 's/^/| /' conftest.$ac_ext >&5
24829 ac_cv_lib_readline_readline=no
24831 rm -f conftest.err conftest.$ac_objext \
24832 conftest$ac_exeext conftest.$ac_ext
24833 LIBS=$ac_check_lib_save_LIBS
24835 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
24836 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
24837 if test $ac_cv_lib_readline_readline = yes; then
24838 cat >>confdefs.h <<_ACEOF
24839 #define HAVE_LIBREADLINE 1
24840 _ACEOF
24842 LIBS="-lreadline $LIBS"
24844 else
24845 { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
24846 echo "$as_me: Trying again with -lcurses" >&6;}
24847 unset ac_cv_lib_readline_readline
24848 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
24849 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
24850 if test "${ac_cv_lib_readline_readline+set}" = set; then
24851 echo $ECHO_N "(cached) $ECHO_C" >&6
24852 else
24853 ac_check_lib_save_LIBS=$LIBS
24854 LIBS="-lreadline -lcurses $LIBS"
24855 cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h. */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24862 /* Override any gcc2 internal prototype to avoid an error. */
24863 #ifdef __cplusplus
24864 extern "C"
24865 #endif
24866 /* We use char because int might match the return type of a gcc2
24867 builtin and then its argument prototype would still apply. */
24868 char readline ();
24870 main ()
24872 readline ();
24874 return 0;
24876 _ACEOF
24877 rm -f conftest.$ac_objext conftest$ac_exeext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879 (eval $ac_link) 2>conftest.er1
24880 ac_status=$?
24881 grep -v '^ *+' conftest.er1 >conftest.err
24882 rm -f conftest.er1
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24899 ac_cv_lib_readline_readline=yes
24900 else
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_cv_lib_readline_readline=no
24906 rm -f conftest.err conftest.$ac_objext \
24907 conftest$ac_exeext conftest.$ac_ext
24908 LIBS=$ac_check_lib_save_LIBS
24910 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
24911 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
24912 if test $ac_cv_lib_readline_readline = yes; then
24913 LIBS="-lreadline -lcurses $LIBS"
24914 cat >>confdefs.h <<\_ACEOF
24915 #define HAVE_LIBREADLINE 1
24916 _ACEOF
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_LIBCURSES
24921 _ACEOF
24923 else
24924 echo "$as_me:$LINENO: checking for readline in -ledit" >&5
24925 echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6
24926 if test "${ac_cv_lib_edit_readline+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24928 else
24929 ac_check_lib_save_LIBS=$LIBS
24930 LIBS="-ledit -lcurses $LIBS"
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h. */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24938 /* Override any gcc2 internal prototype to avoid an error. */
24939 #ifdef __cplusplus
24940 extern "C"
24941 #endif
24942 /* We use char because int might match the return type of a gcc2
24943 builtin and then its argument prototype would still apply. */
24944 char readline ();
24946 main ()
24948 readline ();
24950 return 0;
24952 _ACEOF
24953 rm -f conftest.$ac_objext conftest$ac_exeext
24954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24955 (eval $ac_link) 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } &&
24962 { ac_try='test -z "$ac_c_werror_flag"
24963 || test ! -s conftest.err'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest$ac_exeext'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 ac_cv_lib_edit_readline=yes
24976 else
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_lib_edit_readline=no
24982 rm -f conftest.err conftest.$ac_objext \
24983 conftest$ac_exeext conftest.$ac_ext
24984 LIBS=$ac_check_lib_save_LIBS
24986 echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
24987 echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6
24988 if test $ac_cv_lib_edit_readline = yes; then
24989 LIBS="-ledit -lcurses"
24991 cat >>confdefs.h <<\_ACEOF
24992 #define HAVE_LIBEDIT
24993 _ACEOF
24996 cat >>confdefs.h <<\_ACEOF
24997 #define HAVE_LIBCURSES
24998 _ACEOF
25008 READLINE_LIBS=$LIBS
25010 LIBS=$save_LIBS
25012 esac
25015 case "$host" in
25016 *-*-*linux*) ;;
25019 echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
25020 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
25021 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024 ac_check_lib_save_LIBS=$LIBS
25025 LIBS="-lrt $LIBS"
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25033 /* Override any gcc2 internal prototype to avoid an error. */
25034 #ifdef __cplusplus
25035 extern "C"
25036 #endif
25037 /* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25039 char sched_setscheduler ();
25041 main ()
25043 sched_setscheduler ();
25045 return 0;
25047 _ACEOF
25048 rm -f conftest.$ac_objext conftest$ac_exeext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050 (eval $ac_link) 2>conftest.er1
25051 ac_status=$?
25052 grep -v '^ *+' conftest.er1 >conftest.err
25053 rm -f conftest.er1
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } &&
25057 { ac_try='test -z "$ac_c_werror_flag"
25058 || test ! -s conftest.err'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; } &&
25064 { ac_try='test -s conftest$ac_exeext'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_cv_lib_rt_sched_setscheduler=yes
25071 else
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25075 ac_cv_lib_rt_sched_setscheduler=no
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25081 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
25082 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
25083 if test $ac_cv_lib_rt_sched_setscheduler = yes; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define HAVE_LIBRT 1
25086 _ACEOF
25088 LIBS="-lrt $LIBS"
25090 else
25092 echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
25093 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
25094 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 else
25097 ac_check_lib_save_LIBS=$LIBS
25098 LIBS="-lposix4 $LIBS"
25099 cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h. */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25106 /* Override any gcc2 internal prototype to avoid an error. */
25107 #ifdef __cplusplus
25108 extern "C"
25109 #endif
25110 /* We use char because int might match the return type of a gcc2
25111 builtin and then its argument prototype would still apply. */
25112 char sched_setscheduler ();
25114 main ()
25116 sched_setscheduler ();
25118 return 0;
25120 _ACEOF
25121 rm -f conftest.$ac_objext conftest$ac_exeext
25122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25123 (eval $ac_link) 2>conftest.er1
25124 ac_status=$?
25125 grep -v '^ *+' conftest.er1 >conftest.err
25126 rm -f conftest.er1
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } &&
25130 { ac_try='test -z "$ac_c_werror_flag"
25131 || test ! -s conftest.err'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } &&
25137 { ac_try='test -s conftest$ac_exeext'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
25143 ac_cv_lib_posix4_sched_setscheduler=yes
25144 else
25145 echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25148 ac_cv_lib_posix4_sched_setscheduler=no
25150 rm -f conftest.err conftest.$ac_objext \
25151 conftest$ac_exeext conftest.$ac_ext
25152 LIBS=$ac_check_lib_save_LIBS
25154 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
25155 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
25156 if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
25157 cat >>confdefs.h <<_ACEOF
25158 #define HAVE_LIBPOSIX4 1
25159 _ACEOF
25161 LIBS="-lposix4 $LIBS"
25168 esac
25170 echo "$as_me:$LINENO: checking for setsockopt" >&5
25171 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
25172 if test "${ac_cv_func_setsockopt+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h. */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
25182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25183 #define setsockopt innocuous_setsockopt
25185 /* System header to define __stub macros and hopefully few prototypes,
25186 which can conflict with char setsockopt (); below.
25187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25188 <limits.h> exists even on freestanding compilers. */
25190 #ifdef __STDC__
25191 # include <limits.h>
25192 #else
25193 # include <assert.h>
25194 #endif
25196 #undef setsockopt
25198 /* Override any gcc2 internal prototype to avoid an error. */
25199 #ifdef __cplusplus
25200 extern "C"
25202 #endif
25203 /* We use char because int might match the return type of a gcc2
25204 builtin and then its argument prototype would still apply. */
25205 char setsockopt ();
25206 /* The GNU C library defines this for functions which it implements
25207 to always fail with ENOSYS. Some functions are actually named
25208 something starting with __ and the normal name is an alias. */
25209 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
25210 choke me
25211 #else
25212 char (*f) () = setsockopt;
25213 #endif
25214 #ifdef __cplusplus
25216 #endif
25219 main ()
25221 return f != setsockopt;
25223 return 0;
25225 _ACEOF
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228 (eval $ac_link) 2>conftest.er1
25229 ac_status=$?
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
25235 { ac_try='test -z "$ac_c_werror_flag"
25236 || test ! -s conftest.err'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 ac_cv_func_setsockopt=yes
25249 else
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 ac_cv_func_setsockopt=no
25255 rm -f conftest.err conftest.$ac_objext \
25256 conftest$ac_exeext conftest.$ac_ext
25258 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
25259 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
25260 if test $ac_cv_func_setsockopt = yes; then
25262 else
25263 echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
25264 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6
25265 if test "${ac_cv_search_setsockopt+set}" = set; then
25266 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 else
25268 ac_func_search_save_LIBS=$LIBS
25269 ac_cv_search_setsockopt=no
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25277 /* Override any gcc2 internal prototype to avoid an error. */
25278 #ifdef __cplusplus
25279 extern "C"
25280 #endif
25281 /* We use char because int might match the return type of a gcc2
25282 builtin and then its argument prototype would still apply. */
25283 char setsockopt ();
25285 main ()
25287 setsockopt ();
25289 return 0;
25291 _ACEOF
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25294 (eval $ac_link) 2>conftest.er1
25295 ac_status=$?
25296 grep -v '^ *+' conftest.er1 >conftest.err
25297 rm -f conftest.er1
25298 cat conftest.err >&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } &&
25301 { ac_try='test -z "$ac_c_werror_flag"
25302 || test ! -s conftest.err'
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; } &&
25308 { ac_try='test -s conftest$ac_exeext'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
25314 ac_cv_search_setsockopt="none required"
25315 else
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25320 rm -f conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
25322 if test "$ac_cv_search_setsockopt" = no; then
25323 for ac_lib in socket xnet; do
25324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25325 cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h. */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25332 /* Override any gcc2 internal prototype to avoid an error. */
25333 #ifdef __cplusplus
25334 extern "C"
25335 #endif
25336 /* We use char because int might match the return type of a gcc2
25337 builtin and then its argument prototype would still apply. */
25338 char setsockopt ();
25340 main ()
25342 setsockopt ();
25344 return 0;
25346 _ACEOF
25347 rm -f conftest.$ac_objext conftest$ac_exeext
25348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25349 (eval $ac_link) 2>conftest.er1
25350 ac_status=$?
25351 grep -v '^ *+' conftest.er1 >conftest.err
25352 rm -f conftest.er1
25353 cat conftest.err >&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); } &&
25356 { ac_try='test -z "$ac_c_werror_flag"
25357 || test ! -s conftest.err'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; } &&
25363 { ac_try='test -s conftest$ac_exeext'
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; }; then
25369 ac_cv_search_setsockopt="-l$ac_lib"
25370 break
25371 else
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25376 rm -f conftest.err conftest.$ac_objext \
25377 conftest$ac_exeext conftest.$ac_ext
25378 done
25380 LIBS=$ac_func_search_save_LIBS
25382 echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
25383 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6
25384 if test "$ac_cv_search_setsockopt" != no; then
25385 test "$ac_cv_search_setsockopt" = "none required" || LIBS="$ac_cv_search_setsockopt $LIBS"
25392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25394 if test "${ac_cv_header_stdc+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397 cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h. */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 #include <stdlib.h>
25404 #include <stdarg.h>
25405 #include <string.h>
25406 #include <float.h>
25409 main ()
25413 return 0;
25415 _ACEOF
25416 rm -f conftest.$ac_objext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25418 (eval $ac_compile) 2>conftest.er1
25419 ac_status=$?
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_c_werror_flag"
25426 || test ! -s conftest.err'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; } &&
25432 { ac_try='test -s conftest.$ac_objext'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ac_cv_header_stdc=yes
25439 else
25440 echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25443 ac_cv_header_stdc=no
25445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25447 if test $ac_cv_header_stdc = yes; then
25448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h. */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 #include <string.h>
25457 _ACEOF
25458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25459 $EGREP "memchr" >/dev/null 2>&1; then
25461 else
25462 ac_cv_header_stdc=no
25464 rm -f conftest*
25468 if test $ac_cv_header_stdc = yes; then
25469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25470 cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h. */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 #include <stdlib.h>
25478 _ACEOF
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480 $EGREP "free" >/dev/null 2>&1; then
25482 else
25483 ac_cv_header_stdc=no
25485 rm -f conftest*
25489 if test $ac_cv_header_stdc = yes; then
25490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25491 if test "$cross_compiling" = yes; then
25493 else
25494 cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h. */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 #include <ctype.h>
25501 #if ((' ' & 0x0FF) == 0x020)
25502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25504 #else
25505 # define ISLOWER(c) \
25506 (('a' <= (c) && (c) <= 'i') \
25507 || ('j' <= (c) && (c) <= 'r') \
25508 || ('s' <= (c) && (c) <= 'z'))
25509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25510 #endif
25512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25514 main ()
25516 int i;
25517 for (i = 0; i < 256; i++)
25518 if (XOR (islower (i), ISLOWER (i))
25519 || toupper (i) != TOUPPER (i))
25520 exit(2);
25521 exit (0);
25523 _ACEOF
25524 rm -f conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); }; }; then
25536 else
25537 echo "$as_me: program exited with status $ac_status" >&5
25538 echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25541 ( exit $ac_status )
25542 ac_cv_header_stdc=no
25544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25548 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25549 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25550 if test $ac_cv_header_stdc = yes; then
25552 cat >>confdefs.h <<\_ACEOF
25553 #define STDC_HEADERS 1
25554 _ACEOF
25559 for ac_header in bstring.h
25561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25563 echo "$as_me:$LINENO: checking for $ac_header" >&5
25564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25570 else
25571 # Is the header compilable?
25572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h. */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 $ac_includes_default
25581 #include <$ac_header>
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25585 (eval $ac_compile) 2>conftest.er1
25586 ac_status=$?
25587 grep -v '^ *+' conftest.er1 >conftest.err
25588 rm -f conftest.er1
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -z "$ac_c_werror_flag"
25593 || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest.$ac_objext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_header_compiler=yes
25606 else
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_header_compiler=no
25612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25614 echo "${ECHO_T}$ac_header_compiler" >&6
25616 # Is the header present?
25617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25619 cat >conftest.$ac_ext <<_ACEOF
25620 /* confdefs.h. */
25621 _ACEOF
25622 cat confdefs.h >>conftest.$ac_ext
25623 cat >>conftest.$ac_ext <<_ACEOF
25624 /* end confdefs.h. */
25625 #include <$ac_header>
25626 _ACEOF
25627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25629 ac_status=$?
25630 grep -v '^ *+' conftest.er1 >conftest.err
25631 rm -f conftest.er1
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } >/dev/null; then
25635 if test -s conftest.err; then
25636 ac_cpp_err=$ac_c_preproc_warn_flag
25637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25638 else
25639 ac_cpp_err=
25641 else
25642 ac_cpp_err=yes
25644 if test -z "$ac_cpp_err"; then
25645 ac_header_preproc=yes
25646 else
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_header_preproc=no
25652 rm -f conftest.err conftest.$ac_ext
25653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25654 echo "${ECHO_T}$ac_header_preproc" >&6
25656 # So? What about this header?
25657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25658 yes:no: )
25659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25663 ac_header_preproc=yes
25665 no:yes:* )
25666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25679 cat <<\_ASBOX
25680 ## ------------------------------ ##
25681 ## Report this to the ntp lists. ##
25682 ## ------------------------------ ##
25683 _ASBOX
25685 sed "s/^/$as_me: WARNING: /" >&2
25687 esac
25688 echo "$as_me:$LINENO: checking for $ac_header" >&5
25689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693 eval "$as_ac_Header=\$ac_header_preproc"
25695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25700 cat >>confdefs.h <<_ACEOF
25701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25702 _ACEOF
25706 done
25708 if test "${ac_cv_header_dns_sd_h+set}" = set; then
25709 echo "$as_me:$LINENO: checking for dns_sd.h" >&5
25710 echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
25711 if test "${ac_cv_header_dns_sd_h+set}" = set; then
25712 echo $ECHO_N "(cached) $ECHO_C" >&6
25714 echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
25715 echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
25716 else
25717 # Is the header compilable?
25718 echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
25719 echo $ECHO_N "checking dns_sd.h usability... $ECHO_C" >&6
25720 cat >conftest.$ac_ext <<_ACEOF
25721 /* confdefs.h. */
25722 _ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h. */
25726 $ac_includes_default
25727 #include <dns_sd.h>
25728 _ACEOF
25729 rm -f conftest.$ac_objext
25730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25731 (eval $ac_compile) 2>conftest.er1
25732 ac_status=$?
25733 grep -v '^ *+' conftest.er1 >conftest.err
25734 rm -f conftest.er1
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } &&
25738 { ac_try='test -z "$ac_c_werror_flag"
25739 || test ! -s conftest.err'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; } &&
25745 { ac_try='test -s conftest.$ac_objext'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; }; then
25751 ac_header_compiler=yes
25752 else
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 ac_header_compiler=no
25758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25760 echo "${ECHO_T}$ac_header_compiler" >&6
25762 # Is the header present?
25763 echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
25764 echo $ECHO_N "checking dns_sd.h presence... $ECHO_C" >&6
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h. */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 #include <dns_sd.h>
25772 _ACEOF
25773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25775 ac_status=$?
25776 grep -v '^ *+' conftest.er1 >conftest.err
25777 rm -f conftest.er1
25778 cat conftest.err >&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } >/dev/null; then
25781 if test -s conftest.err; then
25782 ac_cpp_err=$ac_c_preproc_warn_flag
25783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25784 else
25785 ac_cpp_err=
25787 else
25788 ac_cpp_err=yes
25790 if test -z "$ac_cpp_err"; then
25791 ac_header_preproc=yes
25792 else
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25796 ac_header_preproc=no
25798 rm -f conftest.err conftest.$ac_ext
25799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25800 echo "${ECHO_T}$ac_header_preproc" >&6
25802 # So? What about this header?
25803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25804 yes:no: )
25805 { echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
25806 echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25807 { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
25808 echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
25809 ac_header_preproc=yes
25811 no:yes:* )
25812 { echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
25813 echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
25814 { echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
25815 echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
25817 echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
25818 { echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
25819 echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
25820 { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
25821 echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
25822 { echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
25823 echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
25825 cat <<\_ASBOX
25826 ## ------------------------------ ##
25827 ## Report this to the ntp lists. ##
25828 ## ------------------------------ ##
25829 _ASBOX
25831 sed "s/^/$as_me: WARNING: /" >&2
25833 esac
25834 echo "$as_me:$LINENO: checking for dns_sd.h" >&5
25835 echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
25836 if test "${ac_cv_header_dns_sd_h+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839 ac_cv_header_dns_sd_h=$ac_header_preproc
25841 echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
25842 echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
25845 if test $ac_cv_header_dns_sd_h = yes; then
25846 echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5
25847 echo $ECHO_N "checking for DNSServiceRegister in -ldns_sd... $ECHO_C" >&6
25848 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 else
25851 ac_check_lib_save_LIBS=$LIBS
25852 LIBS="-ldns_sd $LIBS"
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h. */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25860 /* Override any gcc2 internal prototype to avoid an error. */
25861 #ifdef __cplusplus
25862 extern "C"
25863 #endif
25864 /* We use char because int might match the return type of a gcc2
25865 builtin and then its argument prototype would still apply. */
25866 char DNSServiceRegister ();
25868 main ()
25870 DNSServiceRegister ();
25872 return 0;
25874 _ACEOF
25875 rm -f conftest.$ac_objext conftest$ac_exeext
25876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25877 (eval $ac_link) 2>conftest.er1
25878 ac_status=$?
25879 grep -v '^ *+' conftest.er1 >conftest.err
25880 rm -f conftest.er1
25881 cat conftest.err >&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); } &&
25884 { ac_try='test -z "$ac_c_werror_flag"
25885 || test ! -s conftest.err'
25886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; } &&
25891 { ac_try='test -s conftest$ac_exeext'
25892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); }; }; then
25897 ac_cv_lib_dns_sd_DNSServiceRegister=yes
25898 else
25899 echo "$as_me: failed program was:" >&5
25900 sed 's/^/| /' conftest.$ac_ext >&5
25902 ac_cv_lib_dns_sd_DNSServiceRegister=no
25904 rm -f conftest.err conftest.$ac_objext \
25905 conftest$ac_exeext conftest.$ac_ext
25906 LIBS=$ac_check_lib_save_LIBS
25908 echo "$as_me:$LINENO: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
25909 echo "${ECHO_T}$ac_cv_lib_dns_sd_DNSServiceRegister" >&6
25910 if test $ac_cv_lib_dns_sd_DNSServiceRegister = yes; then
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_DNSREGISTRATION 1
25914 _ACEOF
25921 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
25922 yes) LIBS="-ldns_sd $LIBS" ;;
25923 esac
25928 for ac_header in errno.h fcntl.h ieeefp.h math.h
25930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25932 echo "$as_me:$LINENO: checking for $ac_header" >&5
25933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25939 else
25940 # Is the header compilable?
25941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25943 cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h. */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25950 #include <$ac_header>
25951 _ACEOF
25952 rm -f conftest.$ac_objext
25953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25954 (eval $ac_compile) 2>conftest.er1
25955 ac_status=$?
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_header_compiler=yes
25975 else
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 ac_header_compiler=no
25981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25983 echo "${ECHO_T}$ac_header_compiler" >&6
25985 # Is the header present?
25986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25988 cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h. */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h. */
25994 #include <$ac_header>
25995 _ACEOF
25996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25998 ac_status=$?
25999 grep -v '^ *+' conftest.er1 >conftest.err
26000 rm -f conftest.er1
26001 cat conftest.err >&5
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); } >/dev/null; then
26004 if test -s conftest.err; then
26005 ac_cpp_err=$ac_c_preproc_warn_flag
26006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26007 else
26008 ac_cpp_err=
26010 else
26011 ac_cpp_err=yes
26013 if test -z "$ac_cpp_err"; then
26014 ac_header_preproc=yes
26015 else
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26019 ac_header_preproc=no
26021 rm -f conftest.err conftest.$ac_ext
26022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26023 echo "${ECHO_T}$ac_header_preproc" >&6
26025 # So? What about this header?
26026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26027 yes:no: )
26028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26032 ac_header_preproc=yes
26034 no:yes:* )
26035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26048 cat <<\_ASBOX
26049 ## ------------------------------ ##
26050 ## Report this to the ntp lists. ##
26051 ## ------------------------------ ##
26052 _ASBOX
26054 sed "s/^/$as_me: WARNING: /" >&2
26056 esac
26057 echo "$as_me:$LINENO: checking for $ac_header" >&5
26058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26061 else
26062 eval "$as_ac_Header=\$ac_header_preproc"
26064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26069 cat >>confdefs.h <<_ACEOF
26070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26071 _ACEOF
26075 done
26078 # HMS: Lame, but fast.
26079 if test -f /etc/redhat-release
26080 then
26082 else
26084 for ac_header in md5.h
26086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26087 echo "$as_me:$LINENO: checking for $ac_header" >&5
26088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092 cat >conftest.$ac_ext <<_ACEOF
26093 /* confdefs.h. */
26094 _ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26098 #if HAVE_SYS_TYPES_H
26099 #include <sys/types.h>
26100 #endif
26103 #include <$ac_header>
26104 _ACEOF
26105 rm -f conftest.$ac_objext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107 (eval $ac_compile) 2>conftest.er1
26108 ac_status=$?
26109 grep -v '^ *+' conftest.er1 >conftest.err
26110 rm -f conftest.er1
26111 cat conftest.err >&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } &&
26114 { ac_try='test -z "$ac_c_werror_flag"
26115 || test ! -s conftest.err'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; } &&
26121 { ac_try='test -s conftest.$ac_objext'
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26127 eval "$as_ac_Header=yes"
26128 else
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 eval "$as_ac_Header=no"
26134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26139 cat >>confdefs.h <<_ACEOF
26140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26141 _ACEOF
26145 done
26151 for ac_header in memory.h netdb.h poll.h
26153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26155 echo "$as_me:$LINENO: checking for $ac_header" >&5
26156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26162 else
26163 # Is the header compilable?
26164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h. */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 $ac_includes_default
26173 #include <$ac_header>
26174 _ACEOF
26175 rm -f conftest.$ac_objext
26176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26177 (eval $ac_compile) 2>conftest.er1
26178 ac_status=$?
26179 grep -v '^ *+' conftest.er1 >conftest.err
26180 rm -f conftest.er1
26181 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } &&
26184 { ac_try='test -z "$ac_c_werror_flag"
26185 || test ! -s conftest.err'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; } &&
26191 { ac_try='test -s conftest.$ac_objext'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; }; then
26197 ac_header_compiler=yes
26198 else
26199 echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26202 ac_header_compiler=no
26204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26206 echo "${ECHO_T}$ac_header_compiler" >&6
26208 # Is the header present?
26209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26211 cat >conftest.$ac_ext <<_ACEOF
26212 /* confdefs.h. */
26213 _ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h. */
26217 #include <$ac_header>
26218 _ACEOF
26219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26221 ac_status=$?
26222 grep -v '^ *+' conftest.er1 >conftest.err
26223 rm -f conftest.er1
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } >/dev/null; then
26227 if test -s conftest.err; then
26228 ac_cpp_err=$ac_c_preproc_warn_flag
26229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26230 else
26231 ac_cpp_err=
26233 else
26234 ac_cpp_err=yes
26236 if test -z "$ac_cpp_err"; then
26237 ac_header_preproc=yes
26238 else
26239 echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26242 ac_header_preproc=no
26244 rm -f conftest.err conftest.$ac_ext
26245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26246 echo "${ECHO_T}$ac_header_preproc" >&6
26248 # So? What about this header?
26249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26250 yes:no: )
26251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26255 ac_header_preproc=yes
26257 no:yes:* )
26258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26271 cat <<\_ASBOX
26272 ## ------------------------------ ##
26273 ## Report this to the ntp lists. ##
26274 ## ------------------------------ ##
26275 _ASBOX
26277 sed "s/^/$as_me: WARNING: /" >&2
26279 esac
26280 echo "$as_me:$LINENO: checking for $ac_header" >&5
26281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285 eval "$as_ac_Header=\$ac_header_preproc"
26287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26292 cat >>confdefs.h <<_ACEOF
26293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26294 _ACEOF
26298 done
26305 for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
26307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26309 echo "$as_me:$LINENO: checking for $ac_header" >&5
26310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26316 else
26317 # Is the header compilable?
26318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h. */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26326 $ac_includes_default
26327 #include <$ac_header>
26328 _ACEOF
26329 rm -f conftest.$ac_objext
26330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26331 (eval $ac_compile) 2>conftest.er1
26332 ac_status=$?
26333 grep -v '^ *+' conftest.er1 >conftest.err
26334 rm -f conftest.er1
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } &&
26338 { ac_try='test -z "$ac_c_werror_flag"
26339 || test ! -s conftest.err'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; } &&
26345 { ac_try='test -s conftest.$ac_objext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 ac_header_compiler=yes
26352 else
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26356 ac_header_compiler=no
26358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26360 echo "${ECHO_T}$ac_header_compiler" >&6
26362 # Is the header present?
26363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <$ac_header>
26372 _ACEOF
26373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26375 ac_status=$?
26376 grep -v '^ *+' conftest.er1 >conftest.err
26377 rm -f conftest.er1
26378 cat conftest.err >&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } >/dev/null; then
26381 if test -s conftest.err; then
26382 ac_cpp_err=$ac_c_preproc_warn_flag
26383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26384 else
26385 ac_cpp_err=
26387 else
26388 ac_cpp_err=yes
26390 if test -z "$ac_cpp_err"; then
26391 ac_header_preproc=yes
26392 else
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_preproc=no
26398 rm -f conftest.err conftest.$ac_ext
26399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26400 echo "${ECHO_T}$ac_header_preproc" >&6
26402 # So? What about this header?
26403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26404 yes:no: )
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26409 ac_header_preproc=yes
26411 no:yes:* )
26412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26425 cat <<\_ASBOX
26426 ## ------------------------------ ##
26427 ## Report this to the ntp lists. ##
26428 ## ------------------------------ ##
26429 _ASBOX
26431 sed "s/^/$as_me: WARNING: /" >&2
26433 esac
26434 echo "$as_me:$LINENO: checking for $ac_header" >&5
26435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439 eval "$as_ac_Header=\$ac_header_preproc"
26441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26446 cat >>confdefs.h <<_ACEOF
26447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26448 _ACEOF
26452 done
26458 for ac_header in termios.h timepps.h timex.h unistd.h
26460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26462 echo "$as_me:$LINENO: checking for $ac_header" >&5
26463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26469 else
26470 # Is the header compilable?
26471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26473 cat >conftest.$ac_ext <<_ACEOF
26474 /* confdefs.h. */
26475 _ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h. */
26479 $ac_includes_default
26480 #include <$ac_header>
26481 _ACEOF
26482 rm -f conftest.$ac_objext
26483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26484 (eval $ac_compile) 2>conftest.er1
26485 ac_status=$?
26486 grep -v '^ *+' conftest.er1 >conftest.err
26487 rm -f conftest.er1
26488 cat conftest.err >&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } &&
26491 { ac_try='test -z "$ac_c_werror_flag"
26492 || test ! -s conftest.err'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } &&
26498 { ac_try='test -s conftest.$ac_objext'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26501 ac_status=$?
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26504 ac_header_compiler=yes
26505 else
26506 echo "$as_me: failed program was:" >&5
26507 sed 's/^/| /' conftest.$ac_ext >&5
26509 ac_header_compiler=no
26511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26513 echo "${ECHO_T}$ac_header_compiler" >&6
26515 # Is the header present?
26516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26518 cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h. */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 #include <$ac_header>
26525 _ACEOF
26526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26528 ac_status=$?
26529 grep -v '^ *+' conftest.er1 >conftest.err
26530 rm -f conftest.er1
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } >/dev/null; then
26534 if test -s conftest.err; then
26535 ac_cpp_err=$ac_c_preproc_warn_flag
26536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26537 else
26538 ac_cpp_err=
26540 else
26541 ac_cpp_err=yes
26543 if test -z "$ac_cpp_err"; then
26544 ac_header_preproc=yes
26545 else
26546 echo "$as_me: failed program was:" >&5
26547 sed 's/^/| /' conftest.$ac_ext >&5
26549 ac_header_preproc=no
26551 rm -f conftest.err conftest.$ac_ext
26552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26553 echo "${ECHO_T}$ac_header_preproc" >&6
26555 # So? What about this header?
26556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26557 yes:no: )
26558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26562 ac_header_preproc=yes
26564 no:yes:* )
26565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26578 cat <<\_ASBOX
26579 ## ------------------------------ ##
26580 ## Report this to the ntp lists. ##
26581 ## ------------------------------ ##
26582 _ASBOX
26584 sed "s/^/$as_me: WARNING: /" >&2
26586 esac
26587 echo "$as_me:$LINENO: checking for $ac_header" >&5
26588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592 eval "$as_ac_Header=\$ac_header_preproc"
26594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26599 cat >>confdefs.h <<_ACEOF
26600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26601 _ACEOF
26605 done
26607 case "$host" in
26608 *-*-aix*)
26610 for ac_header in utmpx.h
26612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614 echo "$as_me:$LINENO: checking for $ac_header" >&5
26615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26621 else
26622 # Is the header compilable?
26623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h. */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26632 #include <$ac_header>
26633 _ACEOF
26634 rm -f conftest.$ac_objext
26635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636 (eval $ac_compile) 2>conftest.er1
26637 ac_status=$?
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } &&
26643 { ac_try='test -z "$ac_c_werror_flag"
26644 || test ! -s conftest.err'
26645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); }; } &&
26650 { ac_try='test -s conftest.$ac_objext'
26651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); }; }; then
26656 ac_header_compiler=yes
26657 else
26658 echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26661 ac_header_compiler=no
26663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26665 echo "${ECHO_T}$ac_header_compiler" >&6
26667 # Is the header present?
26668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h. */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 #include <$ac_header>
26677 _ACEOF
26678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } >/dev/null; then
26686 if test -s conftest.err; then
26687 ac_cpp_err=$ac_c_preproc_warn_flag
26688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26689 else
26690 ac_cpp_err=
26692 else
26693 ac_cpp_err=yes
26695 if test -z "$ac_cpp_err"; then
26696 ac_header_preproc=yes
26697 else
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ac_header_preproc=no
26703 rm -f conftest.err conftest.$ac_ext
26704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26705 echo "${ECHO_T}$ac_header_preproc" >&6
26707 # So? What about this header?
26708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26709 yes:no: )
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26714 ac_header_preproc=yes
26716 no:yes:* )
26717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26730 cat <<\_ASBOX
26731 ## ------------------------------ ##
26732 ## Report this to the ntp lists. ##
26733 ## ------------------------------ ##
26734 _ASBOX
26736 sed "s/^/$as_me: WARNING: /" >&2
26738 esac
26739 echo "$as_me:$LINENO: checking for $ac_header" >&5
26740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26743 else
26744 eval "$as_ac_Header=\$ac_header_preproc"
26746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26751 cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26753 _ACEOF
26757 done
26759 case "$ac_cv_header_utmpx_h" in
26760 yes) ;;
26762 for ac_header in utmp.h
26764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26766 echo "$as_me:$LINENO: checking for $ac_header" >&5
26767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26773 else
26774 # Is the header compilable?
26775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26777 cat >conftest.$ac_ext <<_ACEOF
26778 /* confdefs.h. */
26779 _ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h. */
26783 $ac_includes_default
26784 #include <$ac_header>
26785 _ACEOF
26786 rm -f conftest.$ac_objext
26787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26788 (eval $ac_compile) 2>conftest.er1
26789 ac_status=$?
26790 grep -v '^ *+' conftest.er1 >conftest.err
26791 rm -f conftest.er1
26792 cat conftest.err >&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } &&
26795 { ac_try='test -z "$ac_c_werror_flag"
26796 || test ! -s conftest.err'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; } &&
26802 { ac_try='test -s conftest.$ac_objext'
26803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
26808 ac_header_compiler=yes
26809 else
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26813 ac_header_compiler=no
26815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26817 echo "${ECHO_T}$ac_header_compiler" >&6
26819 # Is the header present?
26820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26822 cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h. */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 #include <$ac_header>
26829 _ACEOF
26830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26832 ac_status=$?
26833 grep -v '^ *+' conftest.er1 >conftest.err
26834 rm -f conftest.er1
26835 cat conftest.err >&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } >/dev/null; then
26838 if test -s conftest.err; then
26839 ac_cpp_err=$ac_c_preproc_warn_flag
26840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26841 else
26842 ac_cpp_err=
26844 else
26845 ac_cpp_err=yes
26847 if test -z "$ac_cpp_err"; then
26848 ac_header_preproc=yes
26849 else
26850 echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 ac_header_preproc=no
26855 rm -f conftest.err conftest.$ac_ext
26856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26857 echo "${ECHO_T}$ac_header_preproc" >&6
26859 # So? What about this header?
26860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26861 yes:no: )
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26866 ac_header_preproc=yes
26868 no:yes:* )
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26882 cat <<\_ASBOX
26883 ## ------------------------------ ##
26884 ## Report this to the ntp lists. ##
26885 ## ------------------------------ ##
26886 _ASBOX
26888 sed "s/^/$as_me: WARNING: /" >&2
26890 esac
26891 echo "$as_me:$LINENO: checking for $ac_header" >&5
26892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896 eval "$as_ac_Header=\$ac_header_preproc"
26898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26903 cat >>confdefs.h <<_ACEOF
26904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26905 _ACEOF
26909 done
26911 esac
26915 for ac_header in utmp.h utmpx.h
26917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26919 echo "$as_me:$LINENO: checking for $ac_header" >&5
26920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26926 else
26927 # Is the header compilable?
26928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h. */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h. */
26936 $ac_includes_default
26937 #include <$ac_header>
26938 _ACEOF
26939 rm -f conftest.$ac_objext
26940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26941 (eval $ac_compile) 2>conftest.er1
26942 ac_status=$?
26943 grep -v '^ *+' conftest.er1 >conftest.err
26944 rm -f conftest.er1
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } &&
26948 { ac_try='test -z "$ac_c_werror_flag"
26949 || test ! -s conftest.err'
26950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951 (eval $ac_try) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; } &&
26955 { ac_try='test -s conftest.$ac_objext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 ac_header_compiler=yes
26962 else
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26966 ac_header_compiler=no
26968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26970 echo "${ECHO_T}$ac_header_compiler" >&6
26972 # Is the header present?
26973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26975 cat >conftest.$ac_ext <<_ACEOF
26976 /* confdefs.h. */
26977 _ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h. */
26981 #include <$ac_header>
26982 _ACEOF
26983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26985 ac_status=$?
26986 grep -v '^ *+' conftest.er1 >conftest.err
26987 rm -f conftest.er1
26988 cat conftest.err >&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); } >/dev/null; then
26991 if test -s conftest.err; then
26992 ac_cpp_err=$ac_c_preproc_warn_flag
26993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26994 else
26995 ac_cpp_err=
26997 else
26998 ac_cpp_err=yes
27000 if test -z "$ac_cpp_err"; then
27001 ac_header_preproc=yes
27002 else
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_header_preproc=no
27008 rm -f conftest.err conftest.$ac_ext
27009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27010 echo "${ECHO_T}$ac_header_preproc" >&6
27012 # So? What about this header?
27013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27014 yes:no: )
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27019 ac_header_preproc=yes
27021 no:yes:* )
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27035 cat <<\_ASBOX
27036 ## ------------------------------ ##
27037 ## Report this to the ntp lists. ##
27038 ## ------------------------------ ##
27039 _ASBOX
27041 sed "s/^/$as_me: WARNING: /" >&2
27043 esac
27044 echo "$as_me:$LINENO: checking for $ac_header" >&5
27045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27048 else
27049 eval "$as_ac_Header=\$ac_header_preproc"
27051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27058 _ACEOF
27062 done
27064 esac
27066 for ac_header in arpa/nameser.h
27068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27070 echo "$as_me:$LINENO: checking for $ac_header" >&5
27071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27073 echo $ECHO_N "(cached) $ECHO_C" >&6
27075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27077 else
27078 # Is the header compilable?
27079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h. */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 $ac_includes_default
27088 #include <$ac_header>
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27092 (eval $ac_compile) 2>conftest.er1
27093 ac_status=$?
27094 grep -v '^ *+' conftest.er1 >conftest.err
27095 rm -f conftest.er1
27096 cat conftest.err >&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); } &&
27099 { ac_try='test -z "$ac_c_werror_flag"
27100 || test ! -s conftest.err'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; } &&
27106 { ac_try='test -s conftest.$ac_objext'
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27109 ac_status=$?
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; }; then
27112 ac_header_compiler=yes
27113 else
27114 echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27117 ac_header_compiler=no
27119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27121 echo "${ECHO_T}$ac_header_compiler" >&6
27123 # Is the header present?
27124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27126 cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h. */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h. */
27132 #include <$ac_header>
27133 _ACEOF
27134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27136 ac_status=$?
27137 grep -v '^ *+' conftest.er1 >conftest.err
27138 rm -f conftest.er1
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } >/dev/null; then
27142 if test -s conftest.err; then
27143 ac_cpp_err=$ac_c_preproc_warn_flag
27144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27145 else
27146 ac_cpp_err=
27148 else
27149 ac_cpp_err=yes
27151 if test -z "$ac_cpp_err"; then
27152 ac_header_preproc=yes
27153 else
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27157 ac_header_preproc=no
27159 rm -f conftest.err conftest.$ac_ext
27160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27161 echo "${ECHO_T}$ac_header_preproc" >&6
27163 # So? What about this header?
27164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27165 yes:no: )
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27170 ac_header_preproc=yes
27172 no:yes:* )
27173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27186 cat <<\_ASBOX
27187 ## ------------------------------ ##
27188 ## Report this to the ntp lists. ##
27189 ## ------------------------------ ##
27190 _ASBOX
27192 sed "s/^/$as_me: WARNING: /" >&2
27194 esac
27195 echo "$as_me:$LINENO: checking for $ac_header" >&5
27196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27198 echo $ECHO_N "(cached) $ECHO_C" >&6
27199 else
27200 eval "$as_ac_Header=\$ac_header_preproc"
27202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27207 cat >>confdefs.h <<_ACEOF
27208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27209 _ACEOF
27213 done
27216 for ac_header in sys/socket.h
27218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27220 echo "$as_me:$LINENO: checking for $ac_header" >&5
27221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27227 else
27228 # Is the header compilable?
27229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h. */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 $ac_includes_default
27238 #include <$ac_header>
27239 _ACEOF
27240 rm -f conftest.$ac_objext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242 (eval $ac_compile) 2>conftest.er1
27243 ac_status=$?
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ac_header_compiler=yes
27263 else
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 ac_header_compiler=no
27269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27271 echo "${ECHO_T}$ac_header_compiler" >&6
27273 # Is the header present?
27274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27276 cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h. */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 #include <$ac_header>
27283 _ACEOF
27284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27286 ac_status=$?
27287 grep -v '^ *+' conftest.er1 >conftest.err
27288 rm -f conftest.er1
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } >/dev/null; then
27292 if test -s conftest.err; then
27293 ac_cpp_err=$ac_c_preproc_warn_flag
27294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27295 else
27296 ac_cpp_err=
27298 else
27299 ac_cpp_err=yes
27301 if test -z "$ac_cpp_err"; then
27302 ac_header_preproc=yes
27303 else
27304 echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27307 ac_header_preproc=no
27309 rm -f conftest.err conftest.$ac_ext
27310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27311 echo "${ECHO_T}$ac_header_preproc" >&6
27313 # So? What about this header?
27314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27315 yes:no: )
27316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27320 ac_header_preproc=yes
27322 no:yes:* )
27323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27336 cat <<\_ASBOX
27337 ## ------------------------------ ##
27338 ## Report this to the ntp lists. ##
27339 ## ------------------------------ ##
27340 _ASBOX
27342 sed "s/^/$as_me: WARNING: /" >&2
27344 esac
27345 echo "$as_me:$LINENO: checking for $ac_header" >&5
27346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 else
27350 eval "$as_ac_Header=\$ac_header_preproc"
27352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27357 cat >>confdefs.h <<_ACEOF
27358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27359 _ACEOF
27363 done
27366 for ac_header in net/if.h
27368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27369 echo "$as_me:$LINENO: checking for $ac_header" >&5
27370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374 cat >conftest.$ac_ext <<_ACEOF
27375 /* confdefs.h. */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 #if HAVE_SYS_SOCKET_H
27381 #include <sys/socket.h>
27382 #endif
27385 #include <$ac_header>
27386 _ACEOF
27387 rm -f conftest.$ac_objext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27389 (eval $ac_compile) 2>conftest.er1
27390 ac_status=$?
27391 grep -v '^ *+' conftest.er1 >conftest.err
27392 rm -f conftest.er1
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } &&
27396 { ac_try='test -z "$ac_c_werror_flag"
27397 || test ! -s conftest.err'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest.$ac_objext'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 eval "$as_ac_Header=yes"
27410 else
27411 echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27414 eval "$as_ac_Header=no"
27416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27423 _ACEOF
27427 done
27430 for ac_header in net/if6.h
27432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27434 echo "$as_me:$LINENO: checking for $ac_header" >&5
27435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27437 echo $ECHO_N "(cached) $ECHO_C" >&6
27439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27441 else
27442 # Is the header compilable?
27443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27445 cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h. */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 $ac_includes_default
27452 #include <$ac_header>
27453 _ACEOF
27454 rm -f conftest.$ac_objext
27455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27456 (eval $ac_compile) 2>conftest.er1
27457 ac_status=$?
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag"
27464 || test ! -s conftest.err'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_header_compiler=yes
27477 else
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27481 ac_header_compiler=no
27483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27485 echo "${ECHO_T}$ac_header_compiler" >&6
27487 # Is the header present?
27488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27490 cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h. */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 #include <$ac_header>
27497 _ACEOF
27498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27500 ac_status=$?
27501 grep -v '^ *+' conftest.er1 >conftest.err
27502 rm -f conftest.er1
27503 cat conftest.err >&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); } >/dev/null; then
27506 if test -s conftest.err; then
27507 ac_cpp_err=$ac_c_preproc_warn_flag
27508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27509 else
27510 ac_cpp_err=
27512 else
27513 ac_cpp_err=yes
27515 if test -z "$ac_cpp_err"; then
27516 ac_header_preproc=yes
27517 else
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27521 ac_header_preproc=no
27523 rm -f conftest.err conftest.$ac_ext
27524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27525 echo "${ECHO_T}$ac_header_preproc" >&6
27527 # So? What about this header?
27528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27529 yes:no: )
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27534 ac_header_preproc=yes
27536 no:yes:* )
27537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27550 cat <<\_ASBOX
27551 ## ------------------------------ ##
27552 ## Report this to the ntp lists. ##
27553 ## ------------------------------ ##
27554 _ASBOX
27556 sed "s/^/$as_me: WARNING: /" >&2
27558 esac
27559 echo "$as_me:$LINENO: checking for $ac_header" >&5
27560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564 eval "$as_ac_Header=\$ac_header_preproc"
27566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27571 cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27573 _ACEOF
27577 done
27580 for ac_header in net/route.h
27582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27583 echo "$as_me:$LINENO: checking for $ac_header" >&5
27584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27586 echo $ECHO_N "(cached) $ECHO_C" >&6
27587 else
27588 cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h. */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27595 #include <sys/types.h>
27596 #include <sys/socket.h>
27597 #include <net/if.h>
27600 #include <$ac_header>
27601 _ACEOF
27602 rm -f conftest.$ac_objext
27603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27604 (eval $ac_compile) 2>conftest.er1
27605 ac_status=$?
27606 grep -v '^ *+' conftest.er1 >conftest.err
27607 rm -f conftest.er1
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } &&
27611 { ac_try='test -z "$ac_c_werror_flag"
27612 || test ! -s conftest.err'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } &&
27618 { ac_try='test -s conftest.$ac_objext'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
27624 eval "$as_ac_Header=yes"
27625 else
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 eval "$as_ac_Header=no"
27631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27636 cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27638 _ACEOF
27642 done
27646 for ac_header in netinet/in_system.h netinet/in_systm.h
27648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27650 echo "$as_me:$LINENO: checking for $ac_header" >&5
27651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27653 echo $ECHO_N "(cached) $ECHO_C" >&6
27655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27657 else
27658 # Is the header compilable?
27659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27661 cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h. */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h. */
27667 $ac_includes_default
27668 #include <$ac_header>
27669 _ACEOF
27670 rm -f conftest.$ac_objext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27672 (eval $ac_compile) 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } &&
27679 { ac_try='test -z "$ac_c_werror_flag"
27680 || test ! -s conftest.err'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest.$ac_objext'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; }; then
27692 ac_header_compiler=yes
27693 else
27694 echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27697 ac_header_compiler=no
27699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27701 echo "${ECHO_T}$ac_header_compiler" >&6
27703 # Is the header present?
27704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27706 cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h. */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 #include <$ac_header>
27713 _ACEOF
27714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27716 ac_status=$?
27717 grep -v '^ *+' conftest.er1 >conftest.err
27718 rm -f conftest.er1
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } >/dev/null; then
27722 if test -s conftest.err; then
27723 ac_cpp_err=$ac_c_preproc_warn_flag
27724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27725 else
27726 ac_cpp_err=
27728 else
27729 ac_cpp_err=yes
27731 if test -z "$ac_cpp_err"; then
27732 ac_header_preproc=yes
27733 else
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_header_preproc=no
27739 rm -f conftest.err conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27741 echo "${ECHO_T}$ac_header_preproc" >&6
27743 # So? What about this header?
27744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27745 yes:no: )
27746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27750 ac_header_preproc=yes
27752 no:yes:* )
27753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27766 cat <<\_ASBOX
27767 ## ------------------------------ ##
27768 ## Report this to the ntp lists. ##
27769 ## ------------------------------ ##
27770 _ASBOX
27772 sed "s/^/$as_me: WARNING: /" >&2
27774 esac
27775 echo "$as_me:$LINENO: checking for $ac_header" >&5
27776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27778 echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780 eval "$as_ac_Header=\$ac_header_preproc"
27782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27789 _ACEOF
27793 done
27796 for ac_header in netinet/in.h
27798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27800 echo "$as_me:$LINENO: checking for $ac_header" >&5
27801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27807 else
27808 # Is the header compilable?
27809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27811 cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h. */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 $ac_includes_default
27818 #include <$ac_header>
27819 _ACEOF
27820 rm -f conftest.$ac_objext
27821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27822 (eval $ac_compile) 2>conftest.er1
27823 ac_status=$?
27824 grep -v '^ *+' conftest.er1 >conftest.err
27825 rm -f conftest.er1
27826 cat conftest.err >&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } &&
27829 { ac_try='test -z "$ac_c_werror_flag"
27830 || test ! -s conftest.err'
27831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27832 (eval $ac_try) 2>&5
27833 ac_status=$?
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; } &&
27836 { ac_try='test -s conftest.$ac_objext'
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; }; then
27842 ac_header_compiler=yes
27843 else
27844 echo "$as_me: failed program was:" >&5
27845 sed 's/^/| /' conftest.$ac_ext >&5
27847 ac_header_compiler=no
27849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27851 echo "${ECHO_T}$ac_header_compiler" >&6
27853 # Is the header present?
27854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27856 cat >conftest.$ac_ext <<_ACEOF
27857 /* confdefs.h. */
27858 _ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h. */
27862 #include <$ac_header>
27863 _ACEOF
27864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } >/dev/null; then
27872 if test -s conftest.err; then
27873 ac_cpp_err=$ac_c_preproc_warn_flag
27874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27875 else
27876 ac_cpp_err=
27878 else
27879 ac_cpp_err=yes
27881 if test -z "$ac_cpp_err"; then
27882 ac_header_preproc=yes
27883 else
27884 echo "$as_me: failed program was:" >&5
27885 sed 's/^/| /' conftest.$ac_ext >&5
27887 ac_header_preproc=no
27889 rm -f conftest.err conftest.$ac_ext
27890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27891 echo "${ECHO_T}$ac_header_preproc" >&6
27893 # So? What about this header?
27894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27895 yes:no: )
27896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27900 ac_header_preproc=yes
27902 no:yes:* )
27903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27916 cat <<\_ASBOX
27917 ## ------------------------------ ##
27918 ## Report this to the ntp lists. ##
27919 ## ------------------------------ ##
27920 _ASBOX
27922 sed "s/^/$as_me: WARNING: /" >&2
27924 esac
27925 echo "$as_me:$LINENO: checking for $ac_header" >&5
27926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 else
27930 eval "$as_ac_Header=\$ac_header_preproc"
27932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27937 cat >>confdefs.h <<_ACEOF
27938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27939 _ACEOF
27943 done
27946 for ac_header in netinet/ip.h
27948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27949 echo "$as_me:$LINENO: checking for $ac_header" >&5
27950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27952 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 else
27954 cat >conftest.$ac_ext <<_ACEOF
27955 /* confdefs.h. */
27956 _ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h. */
27960 #if HAVE_SYS_TYPES_H
27961 #include <sys/types.h>
27962 #endif
27963 #if HAVE_NETINET_IN_H
27964 #include <netinet/in.h>
27965 #endif
27966 #if HAVE_NETINET_IN_SYSTM_H
27967 #include <netinet/in_systm.h>
27968 #endif
27971 #include <$ac_header>
27972 _ACEOF
27973 rm -f conftest.$ac_objext
27974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27975 (eval $ac_compile) 2>conftest.er1
27976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag"
27983 || test ! -s conftest.err'
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; } &&
27989 { ac_try='test -s conftest.$ac_objext'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 eval "$as_ac_Header=yes"
27996 else
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
28000 eval "$as_ac_Header=no"
28002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28009 _ACEOF
28013 done
28016 # Check for IPTOS_PREC
28017 echo "$as_me:$LINENO: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
28018 echo $ECHO_N "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... $ECHO_C" >&6
28019 if test "${ac_cv_ip_tos+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28023 cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h. */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28030 #if HAVE_SYS_TYPES_H
28031 #include <sys/types.h>
28032 #endif
28033 #if HAVE_NETINET_IP_H
28034 #include <netinet/in.h>
28035 #include <netinet/ip.h>
28036 #endif
28037 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
28039 #endif
28041 _ACEOF
28042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28043 $EGREP "yes" >/dev/null 2>&1; then
28044 ac_cv_ip_tos=yes
28045 else
28046 ac_cv_ip_tos=no
28049 rm -f conftest*
28054 echo "$as_me:$LINENO: result: $ac_cv_ip_tos" >&5
28055 echo "${ECHO_T}$ac_cv_ip_tos" >&6
28057 case "$ac_cv_ip_tos" in
28058 yes)
28060 cat >>confdefs.h <<\_ACEOF
28061 #define HAVE_IPTOS_SUPPORT 1
28062 _ACEOF
28064 esac
28067 for ac_header in netinfo/ni.h
28069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28071 echo "$as_me:$LINENO: checking for $ac_header" >&5
28072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28078 else
28079 # Is the header compilable?
28080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28082 cat >conftest.$ac_ext <<_ACEOF
28083 /* confdefs.h. */
28084 _ACEOF
28085 cat confdefs.h >>conftest.$ac_ext
28086 cat >>conftest.$ac_ext <<_ACEOF
28087 /* end confdefs.h. */
28088 $ac_includes_default
28089 #include <$ac_header>
28090 _ACEOF
28091 rm -f conftest.$ac_objext
28092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28093 (eval $ac_compile) 2>conftest.er1
28094 ac_status=$?
28095 grep -v '^ *+' conftest.er1 >conftest.err
28096 rm -f conftest.er1
28097 cat conftest.err >&5
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } &&
28100 { ac_try='test -z "$ac_c_werror_flag"
28101 || test ! -s conftest.err'
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; } &&
28107 { ac_try='test -s conftest.$ac_objext'
28108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109 (eval $ac_try) 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; }; then
28113 ac_header_compiler=yes
28114 else
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28118 ac_header_compiler=no
28120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28122 echo "${ECHO_T}$ac_header_compiler" >&6
28124 # Is the header present?
28125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28127 cat >conftest.$ac_ext <<_ACEOF
28128 /* confdefs.h. */
28129 _ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h. */
28133 #include <$ac_header>
28134 _ACEOF
28135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28137 ac_status=$?
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } >/dev/null; then
28143 if test -s conftest.err; then
28144 ac_cpp_err=$ac_c_preproc_warn_flag
28145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28146 else
28147 ac_cpp_err=
28149 else
28150 ac_cpp_err=yes
28152 if test -z "$ac_cpp_err"; then
28153 ac_header_preproc=yes
28154 else
28155 echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28158 ac_header_preproc=no
28160 rm -f conftest.err conftest.$ac_ext
28161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28162 echo "${ECHO_T}$ac_header_preproc" >&6
28164 # So? What about this header?
28165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28166 yes:no: )
28167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28171 ac_header_preproc=yes
28173 no:yes:* )
28174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28187 cat <<\_ASBOX
28188 ## ------------------------------ ##
28189 ## Report this to the ntp lists. ##
28190 ## ------------------------------ ##
28191 _ASBOX
28193 sed "s/^/$as_me: WARNING: /" >&2
28195 esac
28196 echo "$as_me:$LINENO: checking for $ac_header" >&5
28197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28199 echo $ECHO_N "(cached) $ECHO_C" >&6
28200 else
28201 eval "$as_ac_Header=\$ac_header_preproc"
28203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28208 cat >>confdefs.h <<_ACEOF
28209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28210 _ACEOF
28212 cat >>confdefs.h <<\_ACEOF
28213 #define HAVE_NETINFO 1
28214 _ACEOF
28218 done
28222 for ac_header in sun/audioio.h sys/audioio.h
28224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28226 echo "$as_me:$LINENO: checking for $ac_header" >&5
28227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28233 else
28234 # Is the header compilable?
28235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28237 cat >conftest.$ac_ext <<_ACEOF
28238 /* confdefs.h. */
28239 _ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h. */
28243 $ac_includes_default
28244 #include <$ac_header>
28245 _ACEOF
28246 rm -f conftest.$ac_objext
28247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28248 (eval $ac_compile) 2>conftest.er1
28249 ac_status=$?
28250 grep -v '^ *+' conftest.er1 >conftest.err
28251 rm -f conftest.er1
28252 cat conftest.err >&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try='test -z "$ac_c_werror_flag"
28256 || test ! -s conftest.err'
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest.$ac_objext'
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28265 ac_status=$?
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 ac_header_compiler=yes
28269 else
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28273 ac_header_compiler=no
28275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28277 echo "${ECHO_T}$ac_header_compiler" >&6
28279 # Is the header present?
28280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28282 cat >conftest.$ac_ext <<_ACEOF
28283 /* confdefs.h. */
28284 _ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h. */
28288 #include <$ac_header>
28289 _ACEOF
28290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28292 ac_status=$?
28293 grep -v '^ *+' conftest.er1 >conftest.err
28294 rm -f conftest.er1
28295 cat conftest.err >&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } >/dev/null; then
28298 if test -s conftest.err; then
28299 ac_cpp_err=$ac_c_preproc_warn_flag
28300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28301 else
28302 ac_cpp_err=
28304 else
28305 ac_cpp_err=yes
28307 if test -z "$ac_cpp_err"; then
28308 ac_header_preproc=yes
28309 else
28310 echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313 ac_header_preproc=no
28315 rm -f conftest.err conftest.$ac_ext
28316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28317 echo "${ECHO_T}$ac_header_preproc" >&6
28319 # So? What about this header?
28320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28321 yes:no: )
28322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28326 ac_header_preproc=yes
28328 no:yes:* )
28329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28342 cat <<\_ASBOX
28343 ## ------------------------------ ##
28344 ## Report this to the ntp lists. ##
28345 ## ------------------------------ ##
28346 _ASBOX
28348 sed "s/^/$as_me: WARNING: /" >&2
28350 esac
28351 echo "$as_me:$LINENO: checking for $ac_header" >&5
28352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28354 echo $ECHO_N "(cached) $ECHO_C" >&6
28355 else
28356 eval "$as_ac_Header=\$ac_header_preproc"
28358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28363 cat >>confdefs.h <<_ACEOF
28364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28365 _ACEOF
28369 done
28373 for ac_header in sys/clkdefs.h sys/file.h
28375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28377 echo "$as_me:$LINENO: checking for $ac_header" >&5
28378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28384 else
28385 # Is the header compilable?
28386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28388 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h. */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28394 $ac_includes_default
28395 #include <$ac_header>
28396 _ACEOF
28397 rm -f conftest.$ac_objext
28398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28399 (eval $ac_compile) 2>conftest.er1
28400 ac_status=$?
28401 grep -v '^ *+' conftest.er1 >conftest.err
28402 rm -f conftest.er1
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
28406 { ac_try='test -z "$ac_c_werror_flag"
28407 || test ! -s conftest.err'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest.$ac_objext'
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; }; then
28419 ac_header_compiler=yes
28420 else
28421 echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28424 ac_header_compiler=no
28426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28428 echo "${ECHO_T}$ac_header_compiler" >&6
28430 # Is the header present?
28431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28433 cat >conftest.$ac_ext <<_ACEOF
28434 /* confdefs.h. */
28435 _ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h. */
28439 #include <$ac_header>
28440 _ACEOF
28441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28443 ac_status=$?
28444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } >/dev/null; then
28449 if test -s conftest.err; then
28450 ac_cpp_err=$ac_c_preproc_warn_flag
28451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28452 else
28453 ac_cpp_err=
28455 else
28456 ac_cpp_err=yes
28458 if test -z "$ac_cpp_err"; then
28459 ac_header_preproc=yes
28460 else
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28464 ac_header_preproc=no
28466 rm -f conftest.err conftest.$ac_ext
28467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28468 echo "${ECHO_T}$ac_header_preproc" >&6
28470 # So? What about this header?
28471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28472 yes:no: )
28473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28477 ac_header_preproc=yes
28479 no:yes:* )
28480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28493 cat <<\_ASBOX
28494 ## ------------------------------ ##
28495 ## Report this to the ntp lists. ##
28496 ## ------------------------------ ##
28497 _ASBOX
28499 sed "s/^/$as_me: WARNING: /" >&2
28501 esac
28502 echo "$as_me:$LINENO: checking for $ac_header" >&5
28503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507 eval "$as_ac_Header=\$ac_header_preproc"
28509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28514 cat >>confdefs.h <<_ACEOF
28515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28516 _ACEOF
28520 done
28522 case "$host" in
28523 *-*-sunos4*) ;;
28525 for ac_header in sys/ioctl.h
28527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28529 echo "$as_me:$LINENO: checking for $ac_header" >&5
28530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28536 else
28537 # Is the header compilable?
28538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28540 cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h. */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h. */
28546 $ac_includes_default
28547 #include <$ac_header>
28548 _ACEOF
28549 rm -f conftest.$ac_objext
28550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28551 (eval $ac_compile) 2>conftest.er1
28552 ac_status=$?
28553 grep -v '^ *+' conftest.er1 >conftest.err
28554 rm -f conftest.er1
28555 cat conftest.err >&5
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); } &&
28558 { ac_try='test -z "$ac_c_werror_flag"
28559 || test ! -s conftest.err'
28560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28561 (eval $ac_try) 2>&5
28562 ac_status=$?
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); }; } &&
28565 { ac_try='test -s conftest.$ac_objext'
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28568 ac_status=$?
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; }; then
28571 ac_header_compiler=yes
28572 else
28573 echo "$as_me: failed program was:" >&5
28574 sed 's/^/| /' conftest.$ac_ext >&5
28576 ac_header_compiler=no
28578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28580 echo "${ECHO_T}$ac_header_compiler" >&6
28582 # Is the header present?
28583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28585 cat >conftest.$ac_ext <<_ACEOF
28586 /* confdefs.h. */
28587 _ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591 #include <$ac_header>
28592 _ACEOF
28593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28595 ac_status=$?
28596 grep -v '^ *+' conftest.er1 >conftest.err
28597 rm -f conftest.er1
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } >/dev/null; then
28601 if test -s conftest.err; then
28602 ac_cpp_err=$ac_c_preproc_warn_flag
28603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28604 else
28605 ac_cpp_err=
28607 else
28608 ac_cpp_err=yes
28610 if test -z "$ac_cpp_err"; then
28611 ac_header_preproc=yes
28612 else
28613 echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28616 ac_header_preproc=no
28618 rm -f conftest.err conftest.$ac_ext
28619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620 echo "${ECHO_T}$ac_header_preproc" >&6
28622 # So? What about this header?
28623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624 yes:no: )
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28629 ac_header_preproc=yes
28631 no:yes:* )
28632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28645 cat <<\_ASBOX
28646 ## ------------------------------ ##
28647 ## Report this to the ntp lists. ##
28648 ## ------------------------------ ##
28649 _ASBOX
28651 sed "s/^/$as_me: WARNING: /" >&2
28653 esac
28654 echo "$as_me:$LINENO: checking for $ac_header" >&5
28655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28657 echo $ECHO_N "(cached) $ECHO_C" >&6
28658 else
28659 eval "$as_ac_Header=\$ac_header_preproc"
28661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28666 cat >>confdefs.h <<_ACEOF
28667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28668 _ACEOF
28672 done
28675 esac
28677 for ac_header in sys/ipc.h
28679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28681 echo "$as_me:$LINENO: checking for $ac_header" >&5
28682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28688 else
28689 # Is the header compilable?
28690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28692 cat >conftest.$ac_ext <<_ACEOF
28693 /* confdefs.h. */
28694 _ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h. */
28698 $ac_includes_default
28699 #include <$ac_header>
28700 _ACEOF
28701 rm -f conftest.$ac_objext
28702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28703 (eval $ac_compile) 2>conftest.er1
28704 ac_status=$?
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } &&
28710 { ac_try='test -z "$ac_c_werror_flag"
28711 || test ! -s conftest.err'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; }; then
28723 ac_header_compiler=yes
28724 else
28725 echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28728 ac_header_compiler=no
28730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28732 echo "${ECHO_T}$ac_header_compiler" >&6
28734 # Is the header present?
28735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28737 cat >conftest.$ac_ext <<_ACEOF
28738 /* confdefs.h. */
28739 _ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h. */
28743 #include <$ac_header>
28744 _ACEOF
28745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28747 ac_status=$?
28748 grep -v '^ *+' conftest.er1 >conftest.err
28749 rm -f conftest.er1
28750 cat conftest.err >&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } >/dev/null; then
28753 if test -s conftest.err; then
28754 ac_cpp_err=$ac_c_preproc_warn_flag
28755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28756 else
28757 ac_cpp_err=
28759 else
28760 ac_cpp_err=yes
28762 if test -z "$ac_cpp_err"; then
28763 ac_header_preproc=yes
28764 else
28765 echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28768 ac_header_preproc=no
28770 rm -f conftest.err conftest.$ac_ext
28771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28772 echo "${ECHO_T}$ac_header_preproc" >&6
28774 # So? What about this header?
28775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28776 yes:no: )
28777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28781 ac_header_preproc=yes
28783 no:yes:* )
28784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28797 cat <<\_ASBOX
28798 ## ------------------------------ ##
28799 ## Report this to the ntp lists. ##
28800 ## ------------------------------ ##
28801 _ASBOX
28803 sed "s/^/$as_me: WARNING: /" >&2
28805 esac
28806 echo "$as_me:$LINENO: checking for $ac_header" >&5
28807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28809 echo $ECHO_N "(cached) $ECHO_C" >&6
28810 else
28811 eval "$as_ac_Header=\$ac_header_preproc"
28813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28818 cat >>confdefs.h <<_ACEOF
28819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28820 _ACEOF
28824 done
28831 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
28833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28835 echo "$as_me:$LINENO: checking for $ac_header" >&5
28836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28842 else
28843 # Is the header compilable?
28844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h. */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 $ac_includes_default
28853 #include <$ac_header>
28854 _ACEOF
28855 rm -f conftest.$ac_objext
28856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28857 (eval $ac_compile) 2>conftest.er1
28858 ac_status=$?
28859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
28864 { ac_try='test -z "$ac_c_werror_flag"
28865 || test ! -s conftest.err'
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; } &&
28871 { ac_try='test -s conftest.$ac_objext'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; }; then
28877 ac_header_compiler=yes
28878 else
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ac_header_compiler=no
28884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28886 echo "${ECHO_T}$ac_header_compiler" >&6
28888 # Is the header present?
28889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28891 cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h. */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 #include <$ac_header>
28898 _ACEOF
28899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28901 ac_status=$?
28902 grep -v '^ *+' conftest.er1 >conftest.err
28903 rm -f conftest.er1
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } >/dev/null; then
28907 if test -s conftest.err; then
28908 ac_cpp_err=$ac_c_preproc_warn_flag
28909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28910 else
28911 ac_cpp_err=
28913 else
28914 ac_cpp_err=yes
28916 if test -z "$ac_cpp_err"; then
28917 ac_header_preproc=yes
28918 else
28919 echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28922 ac_header_preproc=no
28924 rm -f conftest.err conftest.$ac_ext
28925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28926 echo "${ECHO_T}$ac_header_preproc" >&6
28928 # So? What about this header?
28929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28930 yes:no: )
28931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28935 ac_header_preproc=yes
28937 no:yes:* )
28938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28951 cat <<\_ASBOX
28952 ## ------------------------------ ##
28953 ## Report this to the ntp lists. ##
28954 ## ------------------------------ ##
28955 _ASBOX
28957 sed "s/^/$as_me: WARNING: /" >&2
28959 esac
28960 echo "$as_me:$LINENO: checking for $ac_header" >&5
28961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965 eval "$as_ac_Header=\$ac_header_preproc"
28967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28972 cat >>confdefs.h <<_ACEOF
28973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28974 _ACEOF
28978 done
28980 # HMS: Check sys/proc.h and sys/resource.h after some others
28982 for ac_header in sys/ppstime.h
28984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28986 echo "$as_me:$LINENO: checking for $ac_header" >&5
28987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28993 else
28994 # Is the header compilable?
28995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28997 cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h. */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29003 $ac_includes_default
29004 #include <$ac_header>
29005 _ACEOF
29006 rm -f conftest.$ac_objext
29007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29008 (eval $ac_compile) 2>conftest.er1
29009 ac_status=$?
29010 grep -v '^ *+' conftest.er1 >conftest.err
29011 rm -f conftest.er1
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } &&
29015 { ac_try='test -z "$ac_c_werror_flag"
29016 || test ! -s conftest.err'
29017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018 (eval $ac_try) 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; } &&
29022 { ac_try='test -s conftest.$ac_objext'
29023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29024 (eval $ac_try) 2>&5
29025 ac_status=$?
29026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); }; }; then
29028 ac_header_compiler=yes
29029 else
29030 echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29033 ac_header_compiler=no
29035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29037 echo "${ECHO_T}$ac_header_compiler" >&6
29039 # Is the header present?
29040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29042 cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h. */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h. */
29048 #include <$ac_header>
29049 _ACEOF
29050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29052 ac_status=$?
29053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } >/dev/null; then
29058 if test -s conftest.err; then
29059 ac_cpp_err=$ac_c_preproc_warn_flag
29060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29061 else
29062 ac_cpp_err=
29064 else
29065 ac_cpp_err=yes
29067 if test -z "$ac_cpp_err"; then
29068 ac_header_preproc=yes
29069 else
29070 echo "$as_me: failed program was:" >&5
29071 sed 's/^/| /' conftest.$ac_ext >&5
29073 ac_header_preproc=no
29075 rm -f conftest.err conftest.$ac_ext
29076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29077 echo "${ECHO_T}$ac_header_preproc" >&6
29079 # So? What about this header?
29080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29081 yes:no: )
29082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29086 ac_header_preproc=yes
29088 no:yes:* )
29089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29102 cat <<\_ASBOX
29103 ## ------------------------------ ##
29104 ## Report this to the ntp lists. ##
29105 ## ------------------------------ ##
29106 _ASBOX
29108 sed "s/^/$as_me: WARNING: /" >&2
29110 esac
29111 echo "$as_me:$LINENO: checking for $ac_header" >&5
29112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29114 echo $ECHO_N "(cached) $ECHO_C" >&6
29115 else
29116 eval "$as_ac_Header=\$ac_header_preproc"
29118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29123 cat >>confdefs.h <<_ACEOF
29124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29125 _ACEOF
29129 done
29131 case "$ac_cv_header_sched_h" in
29132 yes) ;;
29134 for ac_header in sys/sched.h
29136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29138 echo "$as_me:$LINENO: checking for $ac_header" >&5
29139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29145 else
29146 # Is the header compilable?
29147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29149 cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h. */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29155 $ac_includes_default
29156 #include <$ac_header>
29157 _ACEOF
29158 rm -f conftest.$ac_objext
29159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29160 (eval $ac_compile) 2>conftest.er1
29161 ac_status=$?
29162 grep -v '^ *+' conftest.er1 >conftest.err
29163 rm -f conftest.er1
29164 cat conftest.err >&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } &&
29167 { ac_try='test -z "$ac_c_werror_flag"
29168 || test ! -s conftest.err'
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest.$ac_objext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_header_compiler=yes
29181 else
29182 echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29185 ac_header_compiler=no
29187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29189 echo "${ECHO_T}$ac_header_compiler" >&6
29191 # Is the header present?
29192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29194 cat >conftest.$ac_ext <<_ACEOF
29195 /* confdefs.h. */
29196 _ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h. */
29200 #include <$ac_header>
29201 _ACEOF
29202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29204 ac_status=$?
29205 grep -v '^ *+' conftest.er1 >conftest.err
29206 rm -f conftest.er1
29207 cat conftest.err >&5
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } >/dev/null; then
29210 if test -s conftest.err; then
29211 ac_cpp_err=$ac_c_preproc_warn_flag
29212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29213 else
29214 ac_cpp_err=
29216 else
29217 ac_cpp_err=yes
29219 if test -z "$ac_cpp_err"; then
29220 ac_header_preproc=yes
29221 else
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_header_preproc=no
29227 rm -f conftest.err conftest.$ac_ext
29228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29229 echo "${ECHO_T}$ac_header_preproc" >&6
29231 # So? What about this header?
29232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29233 yes:no: )
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29238 ac_header_preproc=yes
29240 no:yes:* )
29241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29254 cat <<\_ASBOX
29255 ## ------------------------------ ##
29256 ## Report this to the ntp lists. ##
29257 ## ------------------------------ ##
29258 _ASBOX
29260 sed "s/^/$as_me: WARNING: /" >&2
29262 esac
29263 echo "$as_me:$LINENO: checking for $ac_header" >&5
29264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29267 else
29268 eval "$as_ac_Header=\$ac_header_preproc"
29270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29275 cat >>confdefs.h <<_ACEOF
29276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29277 _ACEOF
29281 done
29283 esac
29284 case "$host" in
29285 *-*-sco*)
29287 for ac_header in sys/sio.h
29289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29291 echo "$as_me:$LINENO: checking for $ac_header" >&5
29292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29298 else
29299 # Is the header compilable?
29300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29302 cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h. */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h. */
29308 $ac_includes_default
29309 #include <$ac_header>
29310 _ACEOF
29311 rm -f conftest.$ac_objext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313 (eval $ac_compile) 2>conftest.er1
29314 ac_status=$?
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_c_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29324 ac_status=$?
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest.$ac_objext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_header_compiler=yes
29334 else
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_header_compiler=no
29340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29342 echo "${ECHO_T}$ac_header_compiler" >&6
29344 # Is the header present?
29345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29347 cat >conftest.$ac_ext <<_ACEOF
29348 /* confdefs.h. */
29349 _ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h. */
29353 #include <$ac_header>
29354 _ACEOF
29355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29357 ac_status=$?
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } >/dev/null; then
29363 if test -s conftest.err; then
29364 ac_cpp_err=$ac_c_preproc_warn_flag
29365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29366 else
29367 ac_cpp_err=
29369 else
29370 ac_cpp_err=yes
29372 if test -z "$ac_cpp_err"; then
29373 ac_header_preproc=yes
29374 else
29375 echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29378 ac_header_preproc=no
29380 rm -f conftest.err conftest.$ac_ext
29381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29382 echo "${ECHO_T}$ac_header_preproc" >&6
29384 # So? What about this header?
29385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29386 yes:no: )
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29391 ac_header_preproc=yes
29393 no:yes:* )
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29407 cat <<\_ASBOX
29408 ## ------------------------------ ##
29409 ## Report this to the ntp lists. ##
29410 ## ------------------------------ ##
29411 _ASBOX
29413 sed "s/^/$as_me: WARNING: /" >&2
29415 esac
29416 echo "$as_me:$LINENO: checking for $ac_header" >&5
29417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29420 else
29421 eval "$as_ac_Header=\$ac_header_preproc"
29423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29428 cat >>confdefs.h <<_ACEOF
29429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29430 _ACEOF
29434 done
29437 esac
29438 # HMS: Check sys/shm.h after some others
29442 for ac_header in sys/select.h sys/signal.h sys/sockio.h
29444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29446 echo "$as_me:$LINENO: checking for $ac_header" >&5
29447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29453 else
29454 # Is the header compilable?
29455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29457 cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h. */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29463 $ac_includes_default
29464 #include <$ac_header>
29465 _ACEOF
29466 rm -f conftest.$ac_objext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29468 (eval $ac_compile) 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_c_werror_flag"
29476 || test ! -s conftest.err'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest.$ac_objext'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_header_compiler=yes
29489 else
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 ac_header_compiler=no
29495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29497 echo "${ECHO_T}$ac_header_compiler" >&6
29499 # Is the header present?
29500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h. */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 #include <$ac_header>
29509 _ACEOF
29510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29512 ac_status=$?
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } >/dev/null; then
29518 if test -s conftest.err; then
29519 ac_cpp_err=$ac_c_preproc_warn_flag
29520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29521 else
29522 ac_cpp_err=
29524 else
29525 ac_cpp_err=yes
29527 if test -z "$ac_cpp_err"; then
29528 ac_header_preproc=yes
29529 else
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_header_preproc=no
29535 rm -f conftest.err conftest.$ac_ext
29536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29537 echo "${ECHO_T}$ac_header_preproc" >&6
29539 # So? What about this header?
29540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29541 yes:no: )
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29546 ac_header_preproc=yes
29548 no:yes:* )
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29562 cat <<\_ASBOX
29563 ## ------------------------------ ##
29564 ## Report this to the ntp lists. ##
29565 ## ------------------------------ ##
29566 _ASBOX
29568 sed "s/^/$as_me: WARNING: /" >&2
29570 esac
29571 echo "$as_me:$LINENO: checking for $ac_header" >&5
29572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576 eval "$as_ac_Header=\$ac_header_preproc"
29578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29583 cat >>confdefs.h <<_ACEOF
29584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29585 _ACEOF
29589 done
29591 # HMS: Checked sys/socket.h earlier
29592 case "$host" in
29593 *-*-netbsd*) ;;
29596 for ac_header in machine/soundcard.h sys/soundcard.h
29598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29600 echo "$as_me:$LINENO: checking for $ac_header" >&5
29601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29607 else
29608 # Is the header compilable?
29609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29611 cat >conftest.$ac_ext <<_ACEOF
29612 /* confdefs.h. */
29613 _ACEOF
29614 cat confdefs.h >>conftest.$ac_ext
29615 cat >>conftest.$ac_ext <<_ACEOF
29616 /* end confdefs.h. */
29617 $ac_includes_default
29618 #include <$ac_header>
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622 (eval $ac_compile) 2>conftest.er1
29623 ac_status=$?
29624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
29629 { ac_try='test -z "$ac_c_werror_flag"
29630 || test ! -s conftest.err'
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; } &&
29636 { ac_try='test -s conftest.$ac_objext'
29637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; }; then
29642 ac_header_compiler=yes
29643 else
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29647 ac_header_compiler=no
29649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29651 echo "${ECHO_T}$ac_header_compiler" >&6
29653 # Is the header present?
29654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29656 cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h. */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29662 #include <$ac_header>
29663 _ACEOF
29664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29666 ac_status=$?
29667 grep -v '^ *+' conftest.er1 >conftest.err
29668 rm -f conftest.er1
29669 cat conftest.err >&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); } >/dev/null; then
29672 if test -s conftest.err; then
29673 ac_cpp_err=$ac_c_preproc_warn_flag
29674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29675 else
29676 ac_cpp_err=
29678 else
29679 ac_cpp_err=yes
29681 if test -z "$ac_cpp_err"; then
29682 ac_header_preproc=yes
29683 else
29684 echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29687 ac_header_preproc=no
29689 rm -f conftest.err conftest.$ac_ext
29690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29691 echo "${ECHO_T}$ac_header_preproc" >&6
29693 # So? What about this header?
29694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29695 yes:no: )
29696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29700 ac_header_preproc=yes
29702 no:yes:* )
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29716 cat <<\_ASBOX
29717 ## ------------------------------ ##
29718 ## Report this to the ntp lists. ##
29719 ## ------------------------------ ##
29720 _ASBOX
29722 sed "s/^/$as_me: WARNING: /" >&2
29724 esac
29725 echo "$as_me:$LINENO: checking for $ac_header" >&5
29726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 else
29730 eval "$as_ac_Header=\$ac_header_preproc"
29732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29737 cat >>confdefs.h <<_ACEOF
29738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29739 _ACEOF
29743 done
29746 esac
29749 for ac_header in sys/stat.h sys/stream.h
29751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29753 echo "$as_me:$LINENO: checking for $ac_header" >&5
29754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29756 echo $ECHO_N "(cached) $ECHO_C" >&6
29758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29760 else
29761 # Is the header compilable?
29762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29764 cat >conftest.$ac_ext <<_ACEOF
29765 /* confdefs.h. */
29766 _ACEOF
29767 cat confdefs.h >>conftest.$ac_ext
29768 cat >>conftest.$ac_ext <<_ACEOF
29769 /* end confdefs.h. */
29770 $ac_includes_default
29771 #include <$ac_header>
29772 _ACEOF
29773 rm -f conftest.$ac_objext
29774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29775 (eval $ac_compile) 2>conftest.er1
29776 ac_status=$?
29777 grep -v '^ *+' conftest.er1 >conftest.err
29778 rm -f conftest.er1
29779 cat conftest.err >&5
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } &&
29782 { ac_try='test -z "$ac_c_werror_flag"
29783 || test ! -s conftest.err'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; } &&
29789 { ac_try='test -s conftest.$ac_objext'
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; }; then
29795 ac_header_compiler=yes
29796 else
29797 echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29800 ac_header_compiler=no
29802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29804 echo "${ECHO_T}$ac_header_compiler" >&6
29806 # Is the header present?
29807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29809 cat >conftest.$ac_ext <<_ACEOF
29810 /* confdefs.h. */
29811 _ACEOF
29812 cat confdefs.h >>conftest.$ac_ext
29813 cat >>conftest.$ac_ext <<_ACEOF
29814 /* end confdefs.h. */
29815 #include <$ac_header>
29816 _ACEOF
29817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29819 ac_status=$?
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } >/dev/null; then
29825 if test -s conftest.err; then
29826 ac_cpp_err=$ac_c_preproc_warn_flag
29827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29828 else
29829 ac_cpp_err=
29831 else
29832 ac_cpp_err=yes
29834 if test -z "$ac_cpp_err"; then
29835 ac_header_preproc=yes
29836 else
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29840 ac_header_preproc=no
29842 rm -f conftest.err conftest.$ac_ext
29843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29844 echo "${ECHO_T}$ac_header_preproc" >&6
29846 # So? What about this header?
29847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29848 yes:no: )
29849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29853 ac_header_preproc=yes
29855 no:yes:* )
29856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29869 cat <<\_ASBOX
29870 ## ------------------------------ ##
29871 ## Report this to the ntp lists. ##
29872 ## ------------------------------ ##
29873 _ASBOX
29875 sed "s/^/$as_me: WARNING: /" >&2
29877 esac
29878 echo "$as_me:$LINENO: checking for $ac_header" >&5
29879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29881 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 else
29883 eval "$as_ac_Header=\$ac_header_preproc"
29885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29890 cat >>confdefs.h <<_ACEOF
29891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29892 _ACEOF
29896 done
29902 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
29904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29906 echo "$as_me:$LINENO: checking for $ac_header" >&5
29907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29913 else
29914 # Is the header compilable?
29915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29917 cat >conftest.$ac_ext <<_ACEOF
29918 /* confdefs.h. */
29919 _ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29923 $ac_includes_default
29924 #include <$ac_header>
29925 _ACEOF
29926 rm -f conftest.$ac_objext
29927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29928 (eval $ac_compile) 2>conftest.er1
29929 ac_status=$?
29930 grep -v '^ *+' conftest.er1 >conftest.err
29931 rm -f conftest.er1
29932 cat conftest.err >&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); } &&
29935 { ac_try='test -z "$ac_c_werror_flag"
29936 || test ! -s conftest.err'
29937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938 (eval $ac_try) 2>&5
29939 ac_status=$?
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; } &&
29942 { ac_try='test -s conftest.$ac_objext'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948 ac_header_compiler=yes
29949 else
29950 echo "$as_me: failed program was:" >&5
29951 sed 's/^/| /' conftest.$ac_ext >&5
29953 ac_header_compiler=no
29955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29957 echo "${ECHO_T}$ac_header_compiler" >&6
29959 # Is the header present?
29960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h. */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29968 #include <$ac_header>
29969 _ACEOF
29970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29972 ac_status=$?
29973 grep -v '^ *+' conftest.er1 >conftest.err
29974 rm -f conftest.er1
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } >/dev/null; then
29978 if test -s conftest.err; then
29979 ac_cpp_err=$ac_c_preproc_warn_flag
29980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29981 else
29982 ac_cpp_err=
29984 else
29985 ac_cpp_err=yes
29987 if test -z "$ac_cpp_err"; then
29988 ac_header_preproc=yes
29989 else
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ac_header_preproc=no
29995 rm -f conftest.err conftest.$ac_ext
29996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29997 echo "${ECHO_T}$ac_header_preproc" >&6
29999 # So? What about this header?
30000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30001 yes:no: )
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30006 ac_header_preproc=yes
30008 no:yes:* )
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30022 cat <<\_ASBOX
30023 ## ------------------------------ ##
30024 ## Report this to the ntp lists. ##
30025 ## ------------------------------ ##
30026 _ASBOX
30028 sed "s/^/$as_me: WARNING: /" >&2
30030 esac
30031 echo "$as_me:$LINENO: checking for $ac_header" >&5
30032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30035 else
30036 eval "$as_ac_Header=\$ac_header_preproc"
30038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30043 cat >>confdefs.h <<_ACEOF
30044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30045 _ACEOF
30049 done
30054 for ac_header in sys/termios.h sys/time.h sys/signal.h
30056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30058 echo "$as_me:$LINENO: checking for $ac_header" >&5
30059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30061 echo $ECHO_N "(cached) $ECHO_C" >&6
30063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30065 else
30066 # Is the header compilable?
30067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30069 cat >conftest.$ac_ext <<_ACEOF
30070 /* confdefs.h. */
30071 _ACEOF
30072 cat confdefs.h >>conftest.$ac_ext
30073 cat >>conftest.$ac_ext <<_ACEOF
30074 /* end confdefs.h. */
30075 $ac_includes_default
30076 #include <$ac_header>
30077 _ACEOF
30078 rm -f conftest.$ac_objext
30079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30080 (eval $ac_compile) 2>conftest.er1
30081 ac_status=$?
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
30087 { ac_try='test -z "$ac_c_werror_flag"
30088 || test ! -s conftest.err'
30089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 (eval $ac_try) 2>&5
30091 ac_status=$?
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; } &&
30094 { ac_try='test -s conftest.$ac_objext'
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; }; then
30100 ac_header_compiler=yes
30101 else
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30105 ac_header_compiler=no
30107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30109 echo "${ECHO_T}$ac_header_compiler" >&6
30111 # Is the header present?
30112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30114 cat >conftest.$ac_ext <<_ACEOF
30115 /* confdefs.h. */
30116 _ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h. */
30120 #include <$ac_header>
30121 _ACEOF
30122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30124 ac_status=$?
30125 grep -v '^ *+' conftest.er1 >conftest.err
30126 rm -f conftest.er1
30127 cat conftest.err >&5
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); } >/dev/null; then
30130 if test -s conftest.err; then
30131 ac_cpp_err=$ac_c_preproc_warn_flag
30132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30133 else
30134 ac_cpp_err=
30136 else
30137 ac_cpp_err=yes
30139 if test -z "$ac_cpp_err"; then
30140 ac_header_preproc=yes
30141 else
30142 echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30145 ac_header_preproc=no
30147 rm -f conftest.err conftest.$ac_ext
30148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30149 echo "${ECHO_T}$ac_header_preproc" >&6
30151 # So? What about this header?
30152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30153 yes:no: )
30154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30158 ac_header_preproc=yes
30160 no:yes:* )
30161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30174 cat <<\_ASBOX
30175 ## ------------------------------ ##
30176 ## Report this to the ntp lists. ##
30177 ## ------------------------------ ##
30178 _ASBOX
30180 sed "s/^/$as_me: WARNING: /" >&2
30182 esac
30183 echo "$as_me:$LINENO: checking for $ac_header" >&5
30184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30187 else
30188 eval "$as_ac_Header=\$ac_header_preproc"
30190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30195 cat >>confdefs.h <<_ACEOF
30196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30197 _ACEOF
30201 done
30203 cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h. */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 #if HAVE_SYS_TIME_H
30210 # include <sys/time.h>
30211 #endif
30212 #if HAVE_ERRNO_H
30213 # include <errno.h>
30214 #endif
30215 #include <sys/timepps.h>
30216 #ifdef PPS_API_VERS_1
30218 #endif
30220 _ACEOF
30221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30222 $EGREP "yes" >/dev/null 2>&1; then
30224 for ac_header in sys/timepps.h
30226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30227 echo "$as_me:$LINENO: checking for $ac_header" >&5
30228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30231 else
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h. */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 #if HAVE_SYS_TIME_H
30239 # include <sys/time.h>
30240 #endif
30241 #if HAVE_ERRNO_H
30242 # include <errno.h>
30243 #endif
30246 #include <$ac_header>
30247 _ACEOF
30248 rm -f conftest.$ac_objext
30249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30250 (eval $ac_compile) 2>conftest.er1
30251 ac_status=$?
30252 grep -v '^ *+' conftest.er1 >conftest.err
30253 rm -f conftest.er1
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } &&
30257 { ac_try='test -z "$ac_c_werror_flag"
30258 || test ! -s conftest.err'
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest.$ac_objext'
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; }; then
30270 eval "$as_ac_Header=yes"
30271 else
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 eval "$as_ac_Header=no"
30277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30284 _ACEOF
30288 done
30292 rm -f conftest*
30298 for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
30300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30302 echo "$as_me:$LINENO: checking for $ac_header" >&5
30303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30309 else
30310 # Is the header compilable?
30311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30313 cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h. */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30319 $ac_includes_default
30320 #include <$ac_header>
30321 _ACEOF
30322 rm -f conftest.$ac_objext
30323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30324 (eval $ac_compile) 2>conftest.er1
30325 ac_status=$?
30326 grep -v '^ *+' conftest.er1 >conftest.err
30327 rm -f conftest.er1
30328 cat conftest.err >&5
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); } &&
30331 { ac_try='test -z "$ac_c_werror_flag"
30332 || test ! -s conftest.err'
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; } &&
30338 { ac_try='test -s conftest.$ac_objext'
30339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30340 (eval $ac_try) 2>&5
30341 ac_status=$?
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); }; }; then
30344 ac_header_compiler=yes
30345 else
30346 echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30349 ac_header_compiler=no
30351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30353 echo "${ECHO_T}$ac_header_compiler" >&6
30355 # Is the header present?
30356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30358 cat >conftest.$ac_ext <<_ACEOF
30359 /* confdefs.h. */
30360 _ACEOF
30361 cat confdefs.h >>conftest.$ac_ext
30362 cat >>conftest.$ac_ext <<_ACEOF
30363 /* end confdefs.h. */
30364 #include <$ac_header>
30365 _ACEOF
30366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30368 ac_status=$?
30369 grep -v '^ *+' conftest.er1 >conftest.err
30370 rm -f conftest.er1
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } >/dev/null; then
30374 if test -s conftest.err; then
30375 ac_cpp_err=$ac_c_preproc_warn_flag
30376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30377 else
30378 ac_cpp_err=
30380 else
30381 ac_cpp_err=yes
30383 if test -z "$ac_cpp_err"; then
30384 ac_header_preproc=yes
30385 else
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30389 ac_header_preproc=no
30391 rm -f conftest.err conftest.$ac_ext
30392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30393 echo "${ECHO_T}$ac_header_preproc" >&6
30395 # So? What about this header?
30396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30397 yes:no: )
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30402 ac_header_preproc=yes
30404 no:yes:* )
30405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30418 cat <<\_ASBOX
30419 ## ------------------------------ ##
30420 ## Report this to the ntp lists. ##
30421 ## ------------------------------ ##
30422 _ASBOX
30424 sed "s/^/$as_me: WARNING: /" >&2
30426 esac
30427 echo "$as_me:$LINENO: checking for $ac_header" >&5
30428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432 eval "$as_ac_Header=\$ac_header_preproc"
30434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30439 cat >>confdefs.h <<_ACEOF
30440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441 _ACEOF
30445 done
30447 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
30448 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
30449 if test "${ac_cv_header_time+set}" = set; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30451 else
30452 cat >conftest.$ac_ext <<_ACEOF
30453 /* confdefs.h. */
30454 _ACEOF
30455 cat confdefs.h >>conftest.$ac_ext
30456 cat >>conftest.$ac_ext <<_ACEOF
30457 /* end confdefs.h. */
30458 #include <sys/types.h>
30459 #include <sys/time.h>
30460 #include <time.h>
30463 main ()
30465 if ((struct tm *) 0)
30466 return 0;
30468 return 0;
30470 _ACEOF
30471 rm -f conftest.$ac_objext
30472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30473 (eval $ac_compile) 2>conftest.er1
30474 ac_status=$?
30475 grep -v '^ *+' conftest.er1 >conftest.err
30476 rm -f conftest.er1
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag"
30481 || test ! -s conftest.err'
30482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30483 (eval $ac_try) 2>&5
30484 ac_status=$?
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); }; } &&
30487 { ac_try='test -s conftest.$ac_objext'
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
30493 ac_cv_header_time=yes
30494 else
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 ac_cv_header_time=no
30500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30502 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30503 echo "${ECHO_T}$ac_cv_header_time" >&6
30504 if test $ac_cv_header_time = yes; then
30506 cat >>confdefs.h <<\_ACEOF
30507 #define TIME_WITH_SYS_TIME 1
30508 _ACEOF
30512 case "$host" in
30513 *-convex-*)
30516 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
30518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30520 echo "$as_me:$LINENO: checking for $ac_header" >&5
30521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30527 else
30528 # Is the header compilable?
30529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30531 cat >conftest.$ac_ext <<_ACEOF
30532 /* confdefs.h. */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h. */
30537 $ac_includes_default
30538 #include <$ac_header>
30539 _ACEOF
30540 rm -f conftest.$ac_objext
30541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30542 (eval $ac_compile) 2>conftest.er1
30543 ac_status=$?
30544 grep -v '^ *+' conftest.er1 >conftest.err
30545 rm -f conftest.er1
30546 cat conftest.err >&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); } &&
30549 { ac_try='test -z "$ac_c_werror_flag"
30550 || test ! -s conftest.err'
30551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552 (eval $ac_try) 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; } &&
30556 { ac_try='test -s conftest.$ac_objext'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; }; then
30562 ac_header_compiler=yes
30563 else
30564 echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30567 ac_header_compiler=no
30569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30571 echo "${ECHO_T}$ac_header_compiler" >&6
30573 # Is the header present?
30574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30576 cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h. */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30582 #include <$ac_header>
30583 _ACEOF
30584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } >/dev/null; then
30592 if test -s conftest.err; then
30593 ac_cpp_err=$ac_c_preproc_warn_flag
30594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30595 else
30596 ac_cpp_err=
30598 else
30599 ac_cpp_err=yes
30601 if test -z "$ac_cpp_err"; then
30602 ac_header_preproc=yes
30603 else
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 ac_header_preproc=no
30609 rm -f conftest.err conftest.$ac_ext
30610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30611 echo "${ECHO_T}$ac_header_preproc" >&6
30613 # So? What about this header?
30614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30615 yes:no: )
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30620 ac_header_preproc=yes
30622 no:yes:* )
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30636 cat <<\_ASBOX
30637 ## ------------------------------ ##
30638 ## Report this to the ntp lists. ##
30639 ## ------------------------------ ##
30640 _ASBOX
30642 sed "s/^/$as_me: WARNING: /" >&2
30644 esac
30645 echo "$as_me:$LINENO: checking for $ac_header" >&5
30646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30649 else
30650 eval "$as_ac_Header=\$ac_header_preproc"
30652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30659 _ACEOF
30663 done
30666 *-*-bsdi*)
30670 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30674 echo "$as_me:$LINENO: checking for $ac_header" >&5
30675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30681 else
30682 # Is the header compilable?
30683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30685 cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h. */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30691 $ac_includes_default
30692 #include <$ac_header>
30693 _ACEOF
30694 rm -f conftest.$ac_objext
30695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30696 (eval $ac_compile) 2>conftest.er1
30697 ac_status=$?
30698 grep -v '^ *+' conftest.er1 >conftest.err
30699 rm -f conftest.er1
30700 cat conftest.err >&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } &&
30703 { ac_try='test -z "$ac_c_werror_flag"
30704 || test ! -s conftest.err'
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest.$ac_objext'
30711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712 (eval $ac_try) 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 ac_header_compiler=yes
30717 else
30718 echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30721 ac_header_compiler=no
30723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30725 echo "${ECHO_T}$ac_header_compiler" >&6
30727 # Is the header present?
30728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30730 cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h. */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 #include <$ac_header>
30737 _ACEOF
30738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30740 ac_status=$?
30741 grep -v '^ *+' conftest.er1 >conftest.err
30742 rm -f conftest.er1
30743 cat conftest.err >&5
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } >/dev/null; then
30746 if test -s conftest.err; then
30747 ac_cpp_err=$ac_c_preproc_warn_flag
30748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30749 else
30750 ac_cpp_err=
30752 else
30753 ac_cpp_err=yes
30755 if test -z "$ac_cpp_err"; then
30756 ac_header_preproc=yes
30757 else
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30761 ac_header_preproc=no
30763 rm -f conftest.err conftest.$ac_ext
30764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30765 echo "${ECHO_T}$ac_header_preproc" >&6
30767 # So? What about this header?
30768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30769 yes:no: )
30770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30774 ac_header_preproc=yes
30776 no:yes:* )
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30790 cat <<\_ASBOX
30791 ## ------------------------------ ##
30792 ## Report this to the ntp lists. ##
30793 ## ------------------------------ ##
30794 _ASBOX
30796 sed "s/^/$as_me: WARNING: /" >&2
30798 esac
30799 echo "$as_me:$LINENO: checking for $ac_header" >&5
30800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30803 else
30804 eval "$as_ac_Header=\$ac_header_preproc"
30806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30811 cat >>confdefs.h <<_ACEOF
30812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30813 _ACEOF
30817 done
30820 esac
30822 case "$host" in
30823 *-*-*linux*)
30826 for ac_func in __adjtimex __ntp_gettime
30828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30829 echo "$as_me:$LINENO: checking for $ac_func" >&5
30830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30831 if eval "test \"\${$as_ac_var+set}\" = set"; then
30832 echo $ECHO_N "(cached) $ECHO_C" >&6
30833 else
30834 cat >conftest.$ac_ext <<_ACEOF
30835 /* confdefs.h. */
30836 _ACEOF
30837 cat confdefs.h >>conftest.$ac_ext
30838 cat >>conftest.$ac_ext <<_ACEOF
30839 /* end confdefs.h. */
30840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30842 #define $ac_func innocuous_$ac_func
30844 /* System header to define __stub macros and hopefully few prototypes,
30845 which can conflict with char $ac_func (); below.
30846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30847 <limits.h> exists even on freestanding compilers. */
30849 #ifdef __STDC__
30850 # include <limits.h>
30851 #else
30852 # include <assert.h>
30853 #endif
30855 #undef $ac_func
30857 /* Override any gcc2 internal prototype to avoid an error. */
30858 #ifdef __cplusplus
30859 extern "C"
30861 #endif
30862 /* We use char because int might match the return type of a gcc2
30863 builtin and then its argument prototype would still apply. */
30864 char $ac_func ();
30865 /* The GNU C library defines this for functions which it implements
30866 to always fail with ENOSYS. Some functions are actually named
30867 something starting with __ and the normal name is an alias. */
30868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30869 choke me
30870 #else
30871 char (*f) () = $ac_func;
30872 #endif
30873 #ifdef __cplusplus
30875 #endif
30878 main ()
30880 return f != $ac_func;
30882 return 0;
30884 _ACEOF
30885 rm -f conftest.$ac_objext conftest$ac_exeext
30886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30887 (eval $ac_link) 2>conftest.er1
30888 ac_status=$?
30889 grep -v '^ *+' conftest.er1 >conftest.err
30890 rm -f conftest.er1
30891 cat conftest.err >&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); } &&
30894 { ac_try='test -z "$ac_c_werror_flag"
30895 || test ! -s conftest.err'
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; } &&
30901 { ac_try='test -s conftest$ac_exeext'
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 eval "$as_ac_var=yes"
30908 else
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30912 eval "$as_ac_var=no"
30914 rm -f conftest.err conftest.$ac_objext \
30915 conftest$ac_exeext conftest.$ac_ext
30917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30919 if test `eval echo '${'$as_ac_var'}'` = yes; then
30920 cat >>confdefs.h <<_ACEOF
30921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30922 _ACEOF
30925 done
30928 esac
30929 case "$ac_cv_func___adjtimex" in
30930 yes) ;;
30933 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
30934 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
30935 if test "${ac_cv_lib_elf_nlist+set}" = set; then
30936 echo $ECHO_N "(cached) $ECHO_C" >&6
30937 else
30938 ac_check_lib_save_LIBS=$LIBS
30939 LIBS="-lelf $LIBS"
30940 cat >conftest.$ac_ext <<_ACEOF
30941 /* confdefs.h. */
30942 _ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h. */
30947 /* Override any gcc2 internal prototype to avoid an error. */
30948 #ifdef __cplusplus
30949 extern "C"
30950 #endif
30951 /* We use char because int might match the return type of a gcc2
30952 builtin and then its argument prototype would still apply. */
30953 char nlist ();
30955 main ()
30957 nlist ();
30959 return 0;
30961 _ACEOF
30962 rm -f conftest.$ac_objext conftest$ac_exeext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30964 (eval $ac_link) 2>conftest.er1
30965 ac_status=$?
30966 grep -v '^ *+' conftest.er1 >conftest.err
30967 rm -f conftest.er1
30968 cat conftest.err >&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); } &&
30971 { ac_try='test -z "$ac_c_werror_flag"
30972 || test ! -s conftest.err'
30973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30974 (eval $ac_try) 2>&5
30975 ac_status=$?
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; } &&
30978 { ac_try='test -s conftest$ac_exeext'
30979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980 (eval $ac_try) 2>&5
30981 ac_status=$?
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; }; then
30984 ac_cv_lib_elf_nlist=yes
30985 else
30986 echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30989 ac_cv_lib_elf_nlist=no
30991 rm -f conftest.err conftest.$ac_objext \
30992 conftest$ac_exeext conftest.$ac_ext
30993 LIBS=$ac_check_lib_save_LIBS
30995 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
30996 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
30997 if test $ac_cv_lib_elf_nlist = yes; then
30998 cat >>confdefs.h <<_ACEOF
30999 #define HAVE_LIBELF 1
31000 _ACEOF
31002 LIBS="-lelf $LIBS"
31006 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
31007 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
31008 if test "${ac_cv_lib_kvm_main+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011 ac_check_lib_save_LIBS=$LIBS
31012 LIBS="-lkvm $LIBS"
31013 cat >conftest.$ac_ext <<_ACEOF
31014 /* confdefs.h. */
31015 _ACEOF
31016 cat confdefs.h >>conftest.$ac_ext
31017 cat >>conftest.$ac_ext <<_ACEOF
31018 /* end confdefs.h. */
31022 main ()
31024 main ();
31026 return 0;
31028 _ACEOF
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31031 (eval $ac_link) 2>conftest.er1
31032 ac_status=$?
31033 grep -v '^ *+' conftest.er1 >conftest.err
31034 rm -f conftest.er1
31035 cat conftest.err >&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); } &&
31038 { ac_try='test -z "$ac_c_werror_flag"
31039 || test ! -s conftest.err'
31040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31041 (eval $ac_try) 2>&5
31042 ac_status=$?
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; } &&
31045 { ac_try='test -s conftest$ac_exeext'
31046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31047 (eval $ac_try) 2>&5
31048 ac_status=$?
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
31051 ac_cv_lib_kvm_main=yes
31052 else
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31056 ac_cv_lib_kvm_main=no
31058 rm -f conftest.err conftest.$ac_objext \
31059 conftest$ac_exeext conftest.$ac_ext
31060 LIBS=$ac_check_lib_save_LIBS
31062 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
31063 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
31064 if test $ac_cv_lib_kvm_main = yes; then
31065 cat >>confdefs.h <<_ACEOF
31066 #define HAVE_LIBKVM 1
31067 _ACEOF
31069 LIBS="-lkvm $LIBS"
31073 echo "$as_me:$LINENO: checking for nlist in -lld" >&5
31074 echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
31075 if test "${ac_cv_lib_ld_nlist+set}" = set; then
31076 echo $ECHO_N "(cached) $ECHO_C" >&6
31077 else
31078 ac_check_lib_save_LIBS=$LIBS
31079 LIBS="-lld $LIBS"
31080 cat >conftest.$ac_ext <<_ACEOF
31081 /* confdefs.h. */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h. */
31087 /* Override any gcc2 internal prototype to avoid an error. */
31088 #ifdef __cplusplus
31089 extern "C"
31090 #endif
31091 /* We use char because int might match the return type of a gcc2
31092 builtin and then its argument prototype would still apply. */
31093 char nlist ();
31095 main ()
31097 nlist ();
31099 return 0;
31101 _ACEOF
31102 rm -f conftest.$ac_objext conftest$ac_exeext
31103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31104 (eval $ac_link) 2>conftest.er1
31105 ac_status=$?
31106 grep -v '^ *+' conftest.er1 >conftest.err
31107 rm -f conftest.er1
31108 cat conftest.err >&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } &&
31111 { ac_try='test -z "$ac_c_werror_flag"
31112 || test ! -s conftest.err'
31113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31114 (eval $ac_try) 2>&5
31115 ac_status=$?
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); }; } &&
31118 { ac_try='test -s conftest$ac_exeext'
31119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31120 (eval $ac_try) 2>&5
31121 ac_status=$?
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); }; }; then
31124 ac_cv_lib_ld_nlist=yes
31125 else
31126 echo "$as_me: failed program was:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31129 ac_cv_lib_ld_nlist=no
31131 rm -f conftest.err conftest.$ac_objext \
31132 conftest$ac_exeext conftest.$ac_ext
31133 LIBS=$ac_check_lib_save_LIBS
31135 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
31136 echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
31137 if test $ac_cv_lib_ld_nlist = yes; then
31138 cat >>confdefs.h <<_ACEOF
31139 #define HAVE_LIBLD 1
31140 _ACEOF
31142 LIBS="-lld $LIBS"
31147 echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
31148 echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
31149 if test "${ac_cv_lib_mld_nlist+set}" = set; then
31150 echo $ECHO_N "(cached) $ECHO_C" >&6
31151 else
31152 ac_check_lib_save_LIBS=$LIBS
31153 LIBS="-lmld $LIBS"
31154 cat >conftest.$ac_ext <<_ACEOF
31155 /* confdefs.h. */
31156 _ACEOF
31157 cat confdefs.h >>conftest.$ac_ext
31158 cat >>conftest.$ac_ext <<_ACEOF
31159 /* end confdefs.h. */
31161 /* Override any gcc2 internal prototype to avoid an error. */
31162 #ifdef __cplusplus
31163 extern "C"
31164 #endif
31165 /* We use char because int might match the return type of a gcc2
31166 builtin and then its argument prototype would still apply. */
31167 char nlist ();
31169 main ()
31171 nlist ();
31173 return 0;
31175 _ACEOF
31176 rm -f conftest.$ac_objext conftest$ac_exeext
31177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31178 (eval $ac_link) 2>conftest.er1
31179 ac_status=$?
31180 grep -v '^ *+' conftest.er1 >conftest.err
31181 rm -f conftest.er1
31182 cat conftest.err >&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } &&
31185 { ac_try='test -z "$ac_c_werror_flag"
31186 || test ! -s conftest.err'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31189 ac_status=$?
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; } &&
31192 { ac_try='test -s conftest$ac_exeext'
31193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31194 (eval $ac_try) 2>&5
31195 ac_status=$?
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; }; then
31198 ac_cv_lib_mld_nlist=yes
31199 else
31200 echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31203 ac_cv_lib_mld_nlist=no
31205 rm -f conftest.err conftest.$ac_objext \
31206 conftest$ac_exeext conftest.$ac_ext
31207 LIBS=$ac_check_lib_save_LIBS
31209 echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
31210 echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
31211 if test $ac_cv_lib_mld_nlist = yes; then
31212 cat >>confdefs.h <<_ACEOF
31213 #define HAVE_LIBMLD 1
31214 _ACEOF
31216 LIBS="-lmld $LIBS"
31220 if test "${ac_cv_header_nlist_h+set}" = set; then
31221 echo "$as_me:$LINENO: checking for nlist.h" >&5
31222 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
31223 if test "${ac_cv_header_nlist_h+set}" = set; then
31224 echo $ECHO_N "(cached) $ECHO_C" >&6
31226 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
31227 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
31228 else
31229 # Is the header compilable?
31230 echo "$as_me:$LINENO: checking nlist.h usability" >&5
31231 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
31232 cat >conftest.$ac_ext <<_ACEOF
31233 /* confdefs.h. */
31234 _ACEOF
31235 cat confdefs.h >>conftest.$ac_ext
31236 cat >>conftest.$ac_ext <<_ACEOF
31237 /* end confdefs.h. */
31238 $ac_includes_default
31239 #include <nlist.h>
31240 _ACEOF
31241 rm -f conftest.$ac_objext
31242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31243 (eval $ac_compile) 2>conftest.er1
31244 ac_status=$?
31245 grep -v '^ *+' conftest.er1 >conftest.err
31246 rm -f conftest.er1
31247 cat conftest.err >&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } &&
31250 { ac_try='test -z "$ac_c_werror_flag"
31251 || test ! -s conftest.err'
31252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31253 (eval $ac_try) 2>&5
31254 ac_status=$?
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; } &&
31257 { ac_try='test -s conftest.$ac_objext'
31258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259 (eval $ac_try) 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
31263 ac_header_compiler=yes
31264 else
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_header_compiler=no
31270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31272 echo "${ECHO_T}$ac_header_compiler" >&6
31274 # Is the header present?
31275 echo "$as_me:$LINENO: checking nlist.h presence" >&5
31276 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
31277 cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h. */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31283 #include <nlist.h>
31284 _ACEOF
31285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31287 ac_status=$?
31288 grep -v '^ *+' conftest.er1 >conftest.err
31289 rm -f conftest.er1
31290 cat conftest.err >&5
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); } >/dev/null; then
31293 if test -s conftest.err; then
31294 ac_cpp_err=$ac_c_preproc_warn_flag
31295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31296 else
31297 ac_cpp_err=
31299 else
31300 ac_cpp_err=yes
31302 if test -z "$ac_cpp_err"; then
31303 ac_header_preproc=yes
31304 else
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308 ac_header_preproc=no
31310 rm -f conftest.err conftest.$ac_ext
31311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31312 echo "${ECHO_T}$ac_header_preproc" >&6
31314 # So? What about this header?
31315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31316 yes:no: )
31317 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
31318 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31319 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
31320 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
31321 ac_header_preproc=yes
31323 no:yes:* )
31324 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
31325 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
31326 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
31327 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
31328 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
31329 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
31330 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
31331 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
31332 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
31333 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
31334 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
31335 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
31337 cat <<\_ASBOX
31338 ## ------------------------------ ##
31339 ## Report this to the ntp lists. ##
31340 ## ------------------------------ ##
31341 _ASBOX
31343 sed "s/^/$as_me: WARNING: /" >&2
31345 esac
31346 echo "$as_me:$LINENO: checking for nlist.h" >&5
31347 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
31348 if test "${ac_cv_header_nlist_h+set}" = set; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351 ac_cv_header_nlist_h=$ac_header_preproc
31353 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
31354 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
31357 if test $ac_cv_header_nlist_h = yes; then
31359 cat >>confdefs.h <<\_ACEOF
31360 #define NLIST_STRUCT 1
31361 _ACEOF
31363 echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
31364 echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
31365 if test "${ac_cv_struct_nlist_n_un+set}" = set; then
31366 echo $ECHO_N "(cached) $ECHO_C" >&6
31367 else
31368 cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h. */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31374 #include <nlist.h>
31376 main ()
31378 struct nlist n; n.n_un.n_name = 0;
31380 return 0;
31382 _ACEOF
31383 rm -f conftest.$ac_objext
31384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31385 (eval $ac_compile) 2>conftest.er1
31386 ac_status=$?
31387 grep -v '^ *+' conftest.er1 >conftest.err
31388 rm -f conftest.er1
31389 cat conftest.err >&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); } &&
31392 { ac_try='test -z "$ac_c_werror_flag"
31393 || test ! -s conftest.err'
31394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395 (eval $ac_try) 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest.$ac_objext'
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 ac_cv_struct_nlist_n_un=yes
31406 else
31407 echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31410 ac_cv_struct_nlist_n_un=no
31412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31414 echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
31415 echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
31416 if test $ac_cv_struct_nlist_n_un = yes; then
31418 cat >>confdefs.h <<\_ACEOF
31419 #define NLIST_NAME_UNION 1
31420 _ACEOF
31427 esac
31431 for ac_header in sys/proc.h
31433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31434 echo "$as_me:$LINENO: checking for $ac_header" >&5
31435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439 cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h. */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 #if HAVE_SYS_TYPES_H
31446 # include <sys/types.h>
31447 #endif
31448 #if HAVE_SYS_TIME_H
31449 # include <sys/time.h>
31450 #endif
31453 #include <$ac_header>
31454 _ACEOF
31455 rm -f conftest.$ac_objext
31456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31457 (eval $ac_compile) 2>conftest.er1
31458 ac_status=$?
31459 grep -v '^ *+' conftest.er1 >conftest.err
31460 rm -f conftest.er1
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } &&
31464 { ac_try='test -z "$ac_c_werror_flag"
31465 || test ! -s conftest.err'
31466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31467 (eval $ac_try) 2>&5
31468 ac_status=$?
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; } &&
31471 { ac_try='test -s conftest.$ac_objext'
31472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31473 (eval $ac_try) 2>&5
31474 ac_status=$?
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; }; then
31477 eval "$as_ac_Header=yes"
31478 else
31479 echo "$as_me: failed program was:" >&5
31480 sed 's/^/| /' conftest.$ac_ext >&5
31482 eval "$as_ac_Header=no"
31484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31489 cat >>confdefs.h <<_ACEOF
31490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31491 _ACEOF
31495 done
31499 for ac_header in sys/resource.h
31501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31502 echo "$as_me:$LINENO: checking for $ac_header" >&5
31503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31505 echo $ECHO_N "(cached) $ECHO_C" >&6
31506 else
31507 cat >conftest.$ac_ext <<_ACEOF
31508 /* confdefs.h. */
31509 _ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h. */
31513 #if HAVE_SYS_TIME_H
31514 # include <sys/time.h>
31515 #endif
31518 #include <$ac_header>
31519 _ACEOF
31520 rm -f conftest.$ac_objext
31521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31522 (eval $ac_compile) 2>conftest.er1
31523 ac_status=$?
31524 grep -v '^ *+' conftest.er1 >conftest.err
31525 rm -f conftest.er1
31526 cat conftest.err >&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } &&
31529 { ac_try='test -z "$ac_c_werror_flag"
31530 || test ! -s conftest.err'
31531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31532 (eval $ac_try) 2>&5
31533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; } &&
31536 { ac_try='test -s conftest.$ac_objext'
31537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538 (eval $ac_try) 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; }; then
31542 eval "$as_ac_Header=yes"
31543 else
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 eval "$as_ac_Header=no"
31549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31554 cat >>confdefs.h <<_ACEOF
31555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31556 _ACEOF
31560 done
31564 for ac_header in sys/shm.h
31566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31567 echo "$as_me:$LINENO: checking for $ac_header" >&5
31568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572 cat >conftest.$ac_ext <<_ACEOF
31573 /* confdefs.h. */
31574 _ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h. */
31578 #if HAVE_SYS_TYPES_H
31579 # include <sys/types.h>
31580 #endif
31581 #if HAVE_SYS_IPC_H
31582 # include <sys/ipc.h>
31583 #endif
31586 #include <$ac_header>
31587 _ACEOF
31588 rm -f conftest.$ac_objext
31589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31590 (eval $ac_compile) 2>conftest.er1
31591 ac_status=$?
31592 grep -v '^ *+' conftest.er1 >conftest.err
31593 rm -f conftest.er1
31594 cat conftest.err >&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); } &&
31597 { ac_try='test -z "$ac_c_werror_flag"
31598 || test ! -s conftest.err'
31599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31600 (eval $ac_try) 2>&5
31601 ac_status=$?
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); }; } &&
31604 { ac_try='test -s conftest.$ac_objext'
31605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31606 (eval $ac_try) 2>&5
31607 ac_status=$?
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; }; then
31610 eval "$as_ac_Header=yes"
31611 else
31612 echo "$as_me: failed program was:" >&5
31613 sed 's/^/| /' conftest.$ac_ext >&5
31615 eval "$as_ac_Header=no"
31617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31622 cat >>confdefs.h <<_ACEOF
31623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31624 _ACEOF
31628 done
31632 for ac_header in sys/timex.h
31634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31635 echo "$as_me:$LINENO: checking for $ac_header" >&5
31636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31639 else
31640 cat >conftest.$ac_ext <<_ACEOF
31641 /* confdefs.h. */
31642 _ACEOF
31643 cat confdefs.h >>conftest.$ac_ext
31644 cat >>conftest.$ac_ext <<_ACEOF
31645 /* end confdefs.h. */
31646 #if HAVE_SYS_TIME_H
31647 # include <sys/time.h>
31648 #endif
31651 #include <$ac_header>
31652 _ACEOF
31653 rm -f conftest.$ac_objext
31654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31655 (eval $ac_compile) 2>conftest.er1
31656 ac_status=$?
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } &&
31662 { ac_try='test -z "$ac_c_werror_flag"
31663 || test ! -s conftest.err'
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest.$ac_objext'
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 eval "$as_ac_Header=yes"
31676 else
31677 echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.$ac_ext >&5
31680 eval "$as_ac_Header=no"
31682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31687 cat >>confdefs.h <<_ACEOF
31688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31689 _ACEOF
31693 done
31697 for ac_header in resolv.h
31699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31700 echo "$as_me:$LINENO: checking for $ac_header" >&5
31701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31704 else
31705 cat >conftest.$ac_ext <<_ACEOF
31706 /* confdefs.h. */
31707 _ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h. */
31711 #if HAVE_SYS_TYPES_H
31712 #include <sys/types.h>
31713 #endif
31714 #if HAVE_NETINET_IN_H
31715 #include <netinet/in.h>
31716 #endif
31717 #if HAVE_ARPA_NAMESER_H
31718 #include <arpa/nameser.h>
31719 #endif
31722 #include <$ac_header>
31723 _ACEOF
31724 rm -f conftest.$ac_objext
31725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31726 (eval $ac_compile) 2>conftest.er1
31727 ac_status=$?
31728 grep -v '^ *+' conftest.er1 >conftest.err
31729 rm -f conftest.er1
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); } &&
31733 { ac_try='test -z "$ac_c_werror_flag"
31734 || test ! -s conftest.err'
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; } &&
31740 { ac_try='test -s conftest.$ac_objext'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; }; then
31746 eval "$as_ac_Header=yes"
31747 else
31748 echo "$as_me: failed program was:" >&5
31749 sed 's/^/| /' conftest.$ac_ext >&5
31751 eval "$as_ac_Header=no"
31753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31758 cat >>confdefs.h <<_ACEOF
31759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31760 _ACEOF
31764 done
31767 echo "$as_me:$LINENO: checking for basic volatile support" >&5
31768 echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
31769 if test "${ac_cv_c_volatile+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772 cat >conftest.$ac_ext <<_ACEOF
31773 /* confdefs.h. */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h. */
31780 main ()
31783 volatile int x;
31785 return 0;
31787 _ACEOF
31788 rm -f conftest.$ac_objext
31789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31790 (eval $ac_compile) 2>conftest.er1
31791 ac_status=$?
31792 grep -v '^ *+' conftest.er1 >conftest.err
31793 rm -f conftest.er1
31794 cat conftest.err >&5
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
31797 { ac_try='test -z "$ac_c_werror_flag"
31798 || test ! -s conftest.err'
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; } &&
31804 { ac_try='test -s conftest.$ac_objext'
31805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; }; then
31810 ac_cv_c_volatile=yes
31811 else
31812 echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31815 ac_cv_c_volatile=no
31817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31820 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
31821 echo "${ECHO_T}$ac_cv_c_volatile" >&6
31822 case "$ac_cv_c_volatile" in
31823 yes)
31826 cat >>confdefs.h <<\_ACEOF
31827 #define volatile
31828 _ACEOF
31831 esac
31834 # following block goes away in 4.2.5
31836 # AM_C_PROTOTYPES gives us ansi2knr
31837 case "$build" in
31838 *-*-solaris2*)
31839 # Assume that solaris2 is Ansi C...
31842 echo "$as_me:$LINENO: checking for function prototypes" >&5
31843 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
31844 if test "$ac_cv_prog_cc_stdc" != no; then
31845 echo "$as_me:$LINENO: result: yes" >&5
31846 echo "${ECHO_T}yes" >&6
31848 cat >>confdefs.h <<\_ACEOF
31849 #define PROTOTYPES 1
31850 _ACEOF
31853 cat >>confdefs.h <<\_ACEOF
31854 #define __PROTOTYPES 1
31855 _ACEOF
31857 else
31858 echo "$as_me:$LINENO: result: no" >&5
31859 echo "${ECHO_T}no" >&6
31863 if test "$ac_cv_prog_cc_stdc" != no; then
31864 U= ANSI2KNR=
31865 else
31866 U=_ ANSI2KNR=./ansi2knr
31868 # Ensure some checks needed by ansi2knr itself.
31871 for ac_header in string.h
31873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31875 echo "$as_me:$LINENO: checking for $ac_header" >&5
31876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31878 echo $ECHO_N "(cached) $ECHO_C" >&6
31880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31882 else
31883 # Is the header compilable?
31884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31886 cat >conftest.$ac_ext <<_ACEOF
31887 /* confdefs.h. */
31888 _ACEOF
31889 cat confdefs.h >>conftest.$ac_ext
31890 cat >>conftest.$ac_ext <<_ACEOF
31891 /* end confdefs.h. */
31892 $ac_includes_default
31893 #include <$ac_header>
31894 _ACEOF
31895 rm -f conftest.$ac_objext
31896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31897 (eval $ac_compile) 2>conftest.er1
31898 ac_status=$?
31899 grep -v '^ *+' conftest.er1 >conftest.err
31900 rm -f conftest.er1
31901 cat conftest.err >&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); } &&
31904 { ac_try='test -z "$ac_c_werror_flag"
31905 || test ! -s conftest.err'
31906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31907 (eval $ac_try) 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest.$ac_objext'
31912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31913 (eval $ac_try) 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; }; then
31917 ac_header_compiler=yes
31918 else
31919 echo "$as_me: failed program was:" >&5
31920 sed 's/^/| /' conftest.$ac_ext >&5
31922 ac_header_compiler=no
31924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31926 echo "${ECHO_T}$ac_header_compiler" >&6
31928 # Is the header present?
31929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31931 cat >conftest.$ac_ext <<_ACEOF
31932 /* confdefs.h. */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 #include <$ac_header>
31938 _ACEOF
31939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31941 ac_status=$?
31942 grep -v '^ *+' conftest.er1 >conftest.err
31943 rm -f conftest.er1
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } >/dev/null; then
31947 if test -s conftest.err; then
31948 ac_cpp_err=$ac_c_preproc_warn_flag
31949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31950 else
31951 ac_cpp_err=
31953 else
31954 ac_cpp_err=yes
31956 if test -z "$ac_cpp_err"; then
31957 ac_header_preproc=yes
31958 else
31959 echo "$as_me: failed program was:" >&5
31960 sed 's/^/| /' conftest.$ac_ext >&5
31962 ac_header_preproc=no
31964 rm -f conftest.err conftest.$ac_ext
31965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31966 echo "${ECHO_T}$ac_header_preproc" >&6
31968 # So? What about this header?
31969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31970 yes:no: )
31971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31975 ac_header_preproc=yes
31977 no:yes:* )
31978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31991 cat <<\_ASBOX
31992 ## ------------------------------ ##
31993 ## Report this to the ntp lists. ##
31994 ## ------------------------------ ##
31995 _ASBOX
31997 sed "s/^/$as_me: WARNING: /" >&2
31999 esac
32000 echo "$as_me:$LINENO: checking for $ac_header" >&5
32001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32004 else
32005 eval "$as_ac_Header=\$ac_header_preproc"
32007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32012 cat >>confdefs.h <<_ACEOF
32013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32014 _ACEOF
32018 done
32022 esac
32023 echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
32024 echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
32025 if test "${ac_cv_have_prototypes+set}" = set; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 else
32028 cat >conftest.$ac_ext <<_ACEOF
32029 /* confdefs.h. */
32030 _ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h. */
32035 extern int foo (short);
32036 int foo(short i) { return i; }
32038 main ()
32041 int i;
32043 return 0;
32045 _ACEOF
32046 rm -f conftest.$ac_objext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32048 (eval $ac_compile) 2>conftest.er1
32049 ac_status=$?
32050 grep -v '^ *+' conftest.er1 >conftest.err
32051 rm -f conftest.er1
32052 cat conftest.err >&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); } &&
32055 { ac_try='test -z "$ac_c_werror_flag"
32056 || test ! -s conftest.err'
32057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32058 (eval $ac_try) 2>&5
32059 ac_status=$?
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest.$ac_objext'
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; }; then
32068 ac_cv_have_prototypes=yes
32069 else
32070 echo "$as_me: failed program was:" >&5
32071 sed 's/^/| /' conftest.$ac_ext >&5
32073 ac_cv_have_prototypes=no
32075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32078 echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
32079 echo "${ECHO_T}$ac_cv_have_prototypes" >&6
32080 if test "$ac_cv_have_prototypes" = yes; then
32082 cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_PROTOTYPES 1
32084 _ACEOF
32088 # end block
32091 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32093 if test "${ac_cv_c_const+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095 else
32096 cat >conftest.$ac_ext <<_ACEOF
32097 /* confdefs.h. */
32098 _ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h. */
32104 main ()
32106 /* FIXME: Include the comments suggested by Paul. */
32107 #ifndef __cplusplus
32108 /* Ultrix mips cc rejects this. */
32109 typedef int charset[2];
32110 const charset x;
32111 /* SunOS 4.1.1 cc rejects this. */
32112 char const *const *ccp;
32113 char **p;
32114 /* NEC SVR4.0.2 mips cc rejects this. */
32115 struct point {int x, y;};
32116 static struct point const zero = {0,0};
32117 /* AIX XL C 1.02.0.0 rejects this.
32118 It does not let you subtract one const X* pointer from another in
32119 an arm of an if-expression whose if-part is not a constant
32120 expression */
32121 const char *g = "string";
32122 ccp = &g + (g ? g-g : 0);
32123 /* HPUX 7.0 cc rejects these. */
32124 ++ccp;
32125 p = (char**) ccp;
32126 ccp = (char const *const *) p;
32127 { /* SCO 3.2v4 cc rejects this. */
32128 char *t;
32129 char const *s = 0 ? (char *) 0 : (char const *) 0;
32131 *t++ = 0;
32133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32134 int x[] = {25, 17};
32135 const int *foo = &x[0];
32136 ++foo;
32138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32139 typedef const int *iptr;
32140 iptr p = 0;
32141 ++p;
32143 { /* AIX XL C 1.02.0.0 rejects this saying
32144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32145 struct s { int j; const int *ap[3]; };
32146 struct s *b; b->j = 5;
32148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32149 const int foo = 10;
32151 #endif
32154 return 0;
32156 _ACEOF
32157 rm -f conftest.$ac_objext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32159 (eval $ac_compile) 2>conftest.er1
32160 ac_status=$?
32161 grep -v '^ *+' conftest.er1 >conftest.err
32162 rm -f conftest.er1
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } &&
32166 { ac_try='test -z "$ac_c_werror_flag"
32167 || test ! -s conftest.err'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest.$ac_objext'
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
32179 ac_cv_c_const=yes
32180 else
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32184 ac_cv_c_const=no
32186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32188 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32189 echo "${ECHO_T}$ac_cv_c_const" >&6
32190 if test $ac_cv_c_const = no; then
32192 cat >>confdefs.h <<\_ACEOF
32193 #define const
32194 _ACEOF
32198 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32199 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32200 if test "${ac_cv_c_bigendian+set}" = set; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32202 else
32203 # See if sys/param.h defines the BYTE_ORDER macro.
32204 cat >conftest.$ac_ext <<_ACEOF
32205 /* confdefs.h. */
32206 _ACEOF
32207 cat confdefs.h >>conftest.$ac_ext
32208 cat >>conftest.$ac_ext <<_ACEOF
32209 /* end confdefs.h. */
32210 #include <sys/types.h>
32211 #include <sys/param.h>
32214 main ()
32216 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32217 bogus endian macros
32218 #endif
32221 return 0;
32223 _ACEOF
32224 rm -f conftest.$ac_objext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32226 (eval $ac_compile) 2>conftest.er1
32227 ac_status=$?
32228 grep -v '^ *+' conftest.er1 >conftest.err
32229 rm -f conftest.er1
32230 cat conftest.err >&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } &&
32233 { ac_try='test -z "$ac_c_werror_flag"
32234 || test ! -s conftest.err'
32235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236 (eval $ac_try) 2>&5
32237 ac_status=$?
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); }; } &&
32240 { ac_try='test -s conftest.$ac_objext'
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32243 ac_status=$?
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; }; then
32246 # It does; now see whether it defined to BIG_ENDIAN or not.
32247 cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h. */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 #include <sys/types.h>
32254 #include <sys/param.h>
32257 main ()
32259 #if BYTE_ORDER != BIG_ENDIAN
32260 not big endian
32261 #endif
32264 return 0;
32266 _ACEOF
32267 rm -f conftest.$ac_objext
32268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32269 (eval $ac_compile) 2>conftest.er1
32270 ac_status=$?
32271 grep -v '^ *+' conftest.er1 >conftest.err
32272 rm -f conftest.er1
32273 cat conftest.err >&5
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); } &&
32276 { ac_try='test -z "$ac_c_werror_flag"
32277 || test ! -s conftest.err'
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285 (eval $ac_try) 2>&5
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_cv_c_bigendian=yes
32290 else
32291 echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32294 ac_cv_c_bigendian=no
32296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32297 else
32298 echo "$as_me: failed program was:" >&5
32299 sed 's/^/| /' conftest.$ac_ext >&5
32301 # It does not; compile a test program.
32302 if test "$cross_compiling" = yes; then
32303 # try to guess the endianness by grepping values into an object file
32304 ac_cv_c_bigendian=unknown
32305 cat >conftest.$ac_ext <<_ACEOF
32306 /* confdefs.h. */
32307 _ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h. */
32311 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32312 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32313 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32314 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32315 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32316 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32318 main ()
32320 _ascii (); _ebcdic ();
32322 return 0;
32324 _ACEOF
32325 rm -f conftest.$ac_objext
32326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32327 (eval $ac_compile) 2>conftest.er1
32328 ac_status=$?
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } &&
32334 { ac_try='test -z "$ac_c_werror_flag"
32335 || test ! -s conftest.err'
32336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337 (eval $ac_try) 2>&5
32338 ac_status=$?
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; } &&
32341 { ac_try='test -s conftest.$ac_objext'
32342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343 (eval $ac_try) 2>&5
32344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; }; then
32347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32348 ac_cv_c_bigendian=yes
32350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32351 if test "$ac_cv_c_bigendian" = unknown; then
32352 ac_cv_c_bigendian=no
32353 else
32354 # finding both strings is unlikely to happen, but who knows?
32355 ac_cv_c_bigendian=unknown
32358 else
32359 echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32364 else
32365 cat >conftest.$ac_ext <<_ACEOF
32366 /* confdefs.h. */
32367 _ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h. */
32372 main ()
32374 /* Are we little or big endian? From Harbison&Steele. */
32375 union
32377 long l;
32378 char c[sizeof (long)];
32379 } u;
32380 u.l = 1;
32381 exit (u.c[sizeof (long) - 1] == 1);
32383 _ACEOF
32384 rm -f conftest$ac_exeext
32385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32386 (eval $ac_link) 2>&5
32387 ac_status=$?
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32392 ac_status=$?
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; }; then
32395 ac_cv_c_bigendian=no
32396 else
32397 echo "$as_me: program exited with status $ac_status" >&5
32398 echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32401 ( exit $ac_status )
32402 ac_cv_c_bigendian=yes
32404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32409 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32410 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
32411 case $ac_cv_c_bigendian in
32412 yes)
32414 cat >>confdefs.h <<\_ACEOF
32415 #define WORDS_BIGENDIAN 1
32416 _ACEOF
32421 { { echo "$as_me:$LINENO: error: unknown endianness
32422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32423 echo "$as_me: error: unknown endianness
32424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32425 { (exit 1); exit 1; }; } ;;
32426 esac
32428 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32429 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32430 if test "${ac_cv_type_signal+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433 cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h. */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32439 #include <sys/types.h>
32440 #include <signal.h>
32441 #ifdef signal
32442 # undef signal
32443 #endif
32444 #ifdef __cplusplus
32445 extern "C" void (*signal (int, void (*)(int)))(int);
32446 #else
32447 void (*signal ()) ();
32448 #endif
32451 main ()
32453 int i;
32455 return 0;
32457 _ACEOF
32458 rm -f conftest.$ac_objext
32459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32460 (eval $ac_compile) 2>conftest.er1
32461 ac_status=$?
32462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
32467 { ac_try='test -z "$ac_c_werror_flag"
32468 || test ! -s conftest.err'
32469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32470 (eval $ac_try) 2>&5
32471 ac_status=$?
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest.$ac_objext'
32475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476 (eval $ac_try) 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; }; then
32480 ac_cv_type_signal=void
32481 else
32482 echo "$as_me: failed program was:" >&5
32483 sed 's/^/| /' conftest.$ac_ext >&5
32485 ac_cv_type_signal=int
32487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32489 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32490 echo "${ECHO_T}$ac_cv_type_signal" >&6
32492 cat >>confdefs.h <<_ACEOF
32493 #define RETSIGTYPE $ac_cv_type_signal
32494 _ACEOF
32497 echo "$as_me:$LINENO: checking for off_t" >&5
32498 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32499 if test "${ac_cv_type_off_t+set}" = set; then
32500 echo $ECHO_N "(cached) $ECHO_C" >&6
32501 else
32502 cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h. */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 $ac_includes_default
32510 main ()
32512 if ((off_t *) 0)
32513 return 0;
32514 if (sizeof (off_t))
32515 return 0;
32517 return 0;
32519 _ACEOF
32520 rm -f conftest.$ac_objext
32521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32522 (eval $ac_compile) 2>conftest.er1
32523 ac_status=$?
32524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_c_werror_flag"
32530 || test ! -s conftest.err'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } &&
32536 { ac_try='test -s conftest.$ac_objext'
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; }; then
32542 ac_cv_type_off_t=yes
32543 else
32544 echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32547 ac_cv_type_off_t=no
32549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32551 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32552 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32553 if test $ac_cv_type_off_t = yes; then
32555 else
32557 cat >>confdefs.h <<_ACEOF
32558 #define off_t long
32559 _ACEOF
32563 echo "$as_me:$LINENO: checking for size_t" >&5
32564 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32565 if test "${ac_cv_type_size_t+set}" = set; then
32566 echo $ECHO_N "(cached) $ECHO_C" >&6
32567 else
32568 cat >conftest.$ac_ext <<_ACEOF
32569 /* confdefs.h. */
32570 _ACEOF
32571 cat confdefs.h >>conftest.$ac_ext
32572 cat >>conftest.$ac_ext <<_ACEOF
32573 /* end confdefs.h. */
32574 $ac_includes_default
32576 main ()
32578 if ((size_t *) 0)
32579 return 0;
32580 if (sizeof (size_t))
32581 return 0;
32583 return 0;
32585 _ACEOF
32586 rm -f conftest.$ac_objext
32587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32588 (eval $ac_compile) 2>conftest.er1
32589 ac_status=$?
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
32595 { ac_try='test -z "$ac_c_werror_flag"
32596 || test ! -s conftest.err'
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; } &&
32602 { ac_try='test -s conftest.$ac_objext'
32603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32604 (eval $ac_try) 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; }; then
32608 ac_cv_type_size_t=yes
32609 else
32610 echo "$as_me: failed program was:" >&5
32611 sed 's/^/| /' conftest.$ac_ext >&5
32613 ac_cv_type_size_t=no
32615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32617 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32618 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32619 if test $ac_cv_type_size_t = yes; then
32621 else
32623 cat >>confdefs.h <<_ACEOF
32624 #define size_t unsigned
32625 _ACEOF
32629 echo "$as_me:$LINENO: checking for time_t" >&5
32630 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
32631 if test "${ac_cv_type_time_t+set}" = set; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634 cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h. */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 $ac_includes_default
32642 main ()
32644 if ((time_t *) 0)
32645 return 0;
32646 if (sizeof (time_t))
32647 return 0;
32649 return 0;
32651 _ACEOF
32652 rm -f conftest.$ac_objext
32653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32654 (eval $ac_compile) 2>conftest.er1
32655 ac_status=$?
32656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } &&
32661 { ac_try='test -z "$ac_c_werror_flag"
32662 || test ! -s conftest.err'
32663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32664 (eval $ac_try) 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; }; then
32674 ac_cv_type_time_t=yes
32675 else
32676 echo "$as_me: failed program was:" >&5
32677 sed 's/^/| /' conftest.$ac_ext >&5
32679 ac_cv_type_time_t=no
32681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32683 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
32684 echo "${ECHO_T}$ac_cv_type_time_t" >&6
32685 if test $ac_cv_type_time_t = yes; then
32687 else
32689 cat >>confdefs.h <<_ACEOF
32690 #define time_t long
32691 _ACEOF
32695 echo "$as_me:$LINENO: checking for time_t" >&5
32696 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
32697 if test "${ac_cv_type_time_t+set}" = set; then
32698 echo $ECHO_N "(cached) $ECHO_C" >&6
32699 else
32700 cat >conftest.$ac_ext <<_ACEOF
32701 /* confdefs.h. */
32702 _ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h. */
32706 $ac_includes_default
32708 main ()
32710 if ((time_t *) 0)
32711 return 0;
32712 if (sizeof (time_t))
32713 return 0;
32715 return 0;
32717 _ACEOF
32718 rm -f conftest.$ac_objext
32719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32720 (eval $ac_compile) 2>conftest.er1
32721 ac_status=$?
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
32727 { ac_try='test -z "$ac_c_werror_flag"
32728 || test ! -s conftest.err'
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32731 ac_status=$?
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; } &&
32734 { ac_try='test -s conftest.$ac_objext'
32735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32736 (eval $ac_try) 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_type_time_t=yes
32741 else
32742 echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_cv_type_time_t=no
32747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32749 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
32750 echo "${ECHO_T}$ac_cv_type_time_t" >&6
32752 echo "$as_me:$LINENO: checking size of time_t" >&5
32753 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
32754 if test "${ac_cv_sizeof_time_t+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 else
32757 if test "$ac_cv_type_time_t" = yes; then
32758 # The cast to unsigned long works around a bug in the HP C Compiler
32759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32761 # This bug is HP SR number 8606223364.
32762 if test "$cross_compiling" = yes; then
32763 # Depending upon the size, compute the lo and hi bounds.
32764 cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h. */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h. */
32770 $ac_includes_default
32772 main ()
32774 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
32775 test_array [0] = 0
32778 return 0;
32780 _ACEOF
32781 rm -f conftest.$ac_objext
32782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32783 (eval $ac_compile) 2>conftest.er1
32784 ac_status=$?
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } &&
32790 { ac_try='test -z "$ac_c_werror_flag"
32791 || test ! -s conftest.err'
32792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32793 (eval $ac_try) 2>&5
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; } &&
32797 { ac_try='test -s conftest.$ac_objext'
32798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799 (eval $ac_try) 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; }; then
32803 ac_lo=0 ac_mid=0
32804 while :; do
32805 cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h. */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32811 $ac_includes_default
32813 main ()
32815 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
32816 test_array [0] = 0
32819 return 0;
32821 _ACEOF
32822 rm -f conftest.$ac_objext
32823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32824 (eval $ac_compile) 2>conftest.er1
32825 ac_status=$?
32826 grep -v '^ *+' conftest.er1 >conftest.err
32827 rm -f conftest.er1
32828 cat conftest.err >&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); } &&
32831 { ac_try='test -z "$ac_c_werror_flag"
32832 || test ! -s conftest.err'
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; } &&
32838 { ac_try='test -s conftest.$ac_objext'
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32841 ac_status=$?
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 ac_hi=$ac_mid; break
32845 else
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 ac_lo=`expr $ac_mid + 1`
32850 if test $ac_lo -le $ac_mid; then
32851 ac_lo= ac_hi=
32852 break
32854 ac_mid=`expr 2 '*' $ac_mid + 1`
32856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32857 done
32858 else
32859 echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32862 cat >conftest.$ac_ext <<_ACEOF
32863 /* confdefs.h. */
32864 _ACEOF
32865 cat confdefs.h >>conftest.$ac_ext
32866 cat >>conftest.$ac_ext <<_ACEOF
32867 /* end confdefs.h. */
32868 $ac_includes_default
32870 main ()
32872 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
32873 test_array [0] = 0
32876 return 0;
32878 _ACEOF
32879 rm -f conftest.$ac_objext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32881 (eval $ac_compile) 2>conftest.er1
32882 ac_status=$?
32883 grep -v '^ *+' conftest.er1 >conftest.err
32884 rm -f conftest.er1
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } &&
32888 { ac_try='test -z "$ac_c_werror_flag"
32889 || test ! -s conftest.err'
32890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891 (eval $ac_try) 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32898 ac_status=$?
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; }; then
32901 ac_hi=-1 ac_mid=-1
32902 while :; do
32903 cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h. */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 $ac_includes_default
32911 main ()
32913 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
32914 test_array [0] = 0
32917 return 0;
32919 _ACEOF
32920 rm -f conftest.$ac_objext
32921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32922 (eval $ac_compile) 2>conftest.er1
32923 ac_status=$?
32924 grep -v '^ *+' conftest.er1 >conftest.err
32925 rm -f conftest.er1
32926 cat conftest.err >&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } &&
32929 { ac_try='test -z "$ac_c_werror_flag"
32930 || test ! -s conftest.err'
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest.$ac_objext'
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; }; then
32942 ac_lo=$ac_mid; break
32943 else
32944 echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32947 ac_hi=`expr '(' $ac_mid ')' - 1`
32948 if test $ac_mid -le $ac_hi; then
32949 ac_lo= ac_hi=
32950 break
32952 ac_mid=`expr 2 '*' $ac_mid`
32954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32955 done
32956 else
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32960 ac_lo= ac_hi=
32962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32965 # Binary search between lo and hi bounds.
32966 while test "x$ac_lo" != "x$ac_hi"; do
32967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32968 cat >conftest.$ac_ext <<_ACEOF
32969 /* confdefs.h. */
32970 _ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h. */
32974 $ac_includes_default
32976 main ()
32978 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
32979 test_array [0] = 0
32982 return 0;
32984 _ACEOF
32985 rm -f conftest.$ac_objext
32986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32987 (eval $ac_compile) 2>conftest.er1
32988 ac_status=$?
32989 grep -v '^ *+' conftest.er1 >conftest.err
32990 rm -f conftest.er1
32991 cat conftest.err >&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); } &&
32994 { ac_try='test -z "$ac_c_werror_flag"
32995 || test ! -s conftest.err'
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; } &&
33001 { ac_try='test -s conftest.$ac_objext'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 ac_hi=$ac_mid
33008 else
33009 echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33012 ac_lo=`expr '(' $ac_mid ')' + 1`
33014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33015 done
33016 case $ac_lo in
33017 ?*) ac_cv_sizeof_time_t=$ac_lo;;
33018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
33019 See \`config.log' for more details." >&5
33020 echo "$as_me: error: cannot compute sizeof (time_t), 77
33021 See \`config.log' for more details." >&2;}
33022 { (exit 1); exit 1; }; } ;;
33023 esac
33024 else
33025 if test "$cross_compiling" = yes; then
33026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33027 See \`config.log' for more details." >&5
33028 echo "$as_me: error: cannot run test program while cross compiling
33029 See \`config.log' for more details." >&2;}
33030 { (exit 1); exit 1; }; }
33031 else
33032 cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h. */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33038 $ac_includes_default
33039 long longval () { return (long) (sizeof (time_t)); }
33040 unsigned long ulongval () { return (long) (sizeof (time_t)); }
33041 #include <stdio.h>
33042 #include <stdlib.h>
33044 main ()
33047 FILE *f = fopen ("conftest.val", "w");
33048 if (! f)
33049 exit (1);
33050 if (((long) (sizeof (time_t))) < 0)
33052 long i = longval ();
33053 if (i != ((long) (sizeof (time_t))))
33054 exit (1);
33055 fprintf (f, "%ld\n", i);
33057 else
33059 unsigned long i = ulongval ();
33060 if (i != ((long) (sizeof (time_t))))
33061 exit (1);
33062 fprintf (f, "%lu\n", i);
33064 exit (ferror (f) || fclose (f) != 0);
33067 return 0;
33069 _ACEOF
33070 rm -f conftest$ac_exeext
33071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33072 (eval $ac_link) 2>&5
33073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33077 (eval $ac_try) 2>&5
33078 ac_status=$?
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); }; }; then
33081 ac_cv_sizeof_time_t=`cat conftest.val`
33082 else
33083 echo "$as_me: program exited with status $ac_status" >&5
33084 echo "$as_me: failed program was:" >&5
33085 sed 's/^/| /' conftest.$ac_ext >&5
33087 ( exit $ac_status )
33088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
33089 See \`config.log' for more details." >&5
33090 echo "$as_me: error: cannot compute sizeof (time_t), 77
33091 See \`config.log' for more details." >&2;}
33092 { (exit 1); exit 1; }; }
33094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33097 rm -f conftest.val
33098 else
33099 ac_cv_sizeof_time_t=0
33102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
33103 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
33104 cat >>confdefs.h <<_ACEOF
33105 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
33106 _ACEOF
33109 echo "$as_me:$LINENO: checking for uintptr_t" >&5
33110 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
33111 if test "${ac_cv_type_uintptr_t+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 else
33114 cat >conftest.$ac_ext <<_ACEOF
33115 /* confdefs.h. */
33116 _ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h. */
33120 $ac_includes_default
33122 main ()
33124 if ((uintptr_t *) 0)
33125 return 0;
33126 if (sizeof (uintptr_t))
33127 return 0;
33129 return 0;
33131 _ACEOF
33132 rm -f conftest.$ac_objext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33134 (eval $ac_compile) 2>conftest.er1
33135 ac_status=$?
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
33141 { ac_try='test -z "$ac_c_werror_flag"
33142 || test ! -s conftest.err'
33143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144 (eval $ac_try) 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; } &&
33148 { ac_try='test -s conftest.$ac_objext'
33149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150 (eval $ac_try) 2>&5
33151 ac_status=$?
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); }; }; then
33154 ac_cv_type_uintptr_t=yes
33155 else
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_cv_type_uintptr_t=no
33161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33163 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33164 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
33165 if test $ac_cv_type_uintptr_t = yes; then
33167 cat >>confdefs.h <<_ACEOF
33168 #define HAVE_UINTPTR_T 1
33169 _ACEOF
33178 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33179 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
33180 if test "${ac_cv_struct_tm+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33182 else
33183 cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h. */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33189 #include <sys/types.h>
33190 #include <time.h>
33193 main ()
33195 struct tm *tp; tp->tm_sec;
33197 return 0;
33199 _ACEOF
33200 rm -f conftest.$ac_objext
33201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33202 (eval $ac_compile) 2>conftest.er1
33203 ac_status=$?
33204 grep -v '^ *+' conftest.er1 >conftest.err
33205 rm -f conftest.er1
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_c_werror_flag"
33210 || test ! -s conftest.err'
33211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33212 (eval $ac_try) 2>&5
33213 ac_status=$?
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; } &&
33216 { ac_try='test -s conftest.$ac_objext'
33217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218 (eval $ac_try) 2>&5
33219 ac_status=$?
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; }; then
33222 ac_cv_struct_tm=time.h
33223 else
33224 echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33227 ac_cv_struct_tm=sys/time.h
33229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33231 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33232 echo "${ECHO_T}$ac_cv_struct_tm" >&6
33233 if test $ac_cv_struct_tm = sys/time.h; then
33235 cat >>confdefs.h <<\_ACEOF
33236 #define TM_IN_SYS_TIME 1
33237 _ACEOF
33242 echo "$as_me:$LINENO: checking for u_int8_t" >&5
33243 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
33244 if test "${ac_cv_type_u_int8_t+set}" = set; then
33245 echo $ECHO_N "(cached) $ECHO_C" >&6
33246 else
33247 cat >conftest.$ac_ext <<_ACEOF
33248 /* confdefs.h. */
33249 _ACEOF
33250 cat confdefs.h >>conftest.$ac_ext
33251 cat >>conftest.$ac_ext <<_ACEOF
33252 /* end confdefs.h. */
33253 #include <sys/types.h>
33255 main ()
33257 u_int8_t len = 42; return 0;
33259 return 0;
33261 _ACEOF
33262 rm -f conftest.$ac_objext
33263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33264 (eval $ac_compile) 2>conftest.er1
33265 ac_status=$?
33266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_c_werror_flag"
33272 || test ! -s conftest.err'
33273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33274 (eval $ac_try) 2>&5
33275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; } &&
33278 { ac_try='test -s conftest.$ac_objext'
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
33284 ac_cv_type_u_int8_t=yes
33285 else
33286 echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33289 ac_cv_type_u_int8_t=no
33291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33294 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
33295 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
33296 if test $ac_cv_type_u_int8_t = yes; then
33298 cat >>confdefs.h <<\_ACEOF
33299 #define HAVE_TYPE_U_INT8_T 1
33300 _ACEOF
33304 echo "$as_me:$LINENO: checking for u_int64_t" >&5
33305 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
33306 if test "${ac_cv_type_u_int64_t+set}" = set; then
33307 echo $ECHO_N "(cached) $ECHO_C" >&6
33308 else
33309 cat >conftest.$ac_ext <<_ACEOF
33310 /* confdefs.h. */
33311 _ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h. */
33315 #include <sys/types.h>
33317 main ()
33319 u_int64_t len = 42; return 0;
33321 return 0;
33323 _ACEOF
33324 rm -f conftest.$ac_objext
33325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33326 (eval $ac_compile) 2>conftest.er1
33327 ac_status=$?
33328 grep -v '^ *+' conftest.er1 >conftest.err
33329 rm -f conftest.er1
33330 cat conftest.err >&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); } &&
33333 { ac_try='test -z "$ac_c_werror_flag"
33334 || test ! -s conftest.err'
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; } &&
33340 { ac_try='test -s conftest.$ac_objext'
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33343 ac_status=$?
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; }; then
33346 ac_cv_type_u_int64_t=yes
33347 else
33348 echo "$as_me: failed program was:" >&5
33349 sed 's/^/| /' conftest.$ac_ext >&5
33351 ac_cv_type_u_int64_t=no
33353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33356 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
33357 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
33358 if test $ac_cv_type_u_int64_t = yes; then
33360 cat >>confdefs.h <<\_ACEOF
33361 #define HAVE_TYPE_U_INT64_T 1
33362 _ACEOF
33367 # Look for in_port_t.
33369 echo "$as_me:$LINENO: checking for in_port_t" >&5
33370 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
33371 cat >conftest.$ac_ext <<_ACEOF
33372 /* confdefs.h. */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h. */
33378 #include <sys/types.h>
33379 #include <netinet/in.h>
33381 main ()
33383 in_port_t port = 25; return (0);
33385 return 0;
33387 _ACEOF
33388 rm -f conftest.$ac_objext
33389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33390 (eval $ac_compile) 2>conftest.er1
33391 ac_status=$?
33392 grep -v '^ *+' conftest.er1 >conftest.err
33393 rm -f conftest.er1
33394 cat conftest.err >&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } &&
33397 { ac_try='test -z "$ac_c_werror_flag"
33398 || test ! -s conftest.err'
33399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400 (eval $ac_try) 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; } &&
33404 { ac_try='test -s conftest.$ac_objext'
33405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406 (eval $ac_try) 2>&5
33407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; }; then
33410 echo "$as_me:$LINENO: result: yes" >&5
33411 echo "${ECHO_T}yes" >&6
33413 else
33414 echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33417 echo "$as_me:$LINENO: result: no" >&5
33418 echo "${ECHO_T}no" >&6
33420 cat >>confdefs.h <<\_ACEOF
33421 #define ISC_PLATFORM_NEEDPORTT 1
33422 _ACEOF
33426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33428 echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
33429 echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
33430 if test "${ac_cv_var_default_hz+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33432 else
33433 ac_cv_var_default_hz=100
33434 case "$host" in
33435 alpha*-dec-osf4*|alpha*-dec-osf5*)
33436 ac_cv_var_default_hz=1024
33438 mips-dec-ultrix4*)
33439 ac_cv_var_default_hz=256
33441 esac
33443 echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
33444 echo "${ECHO_T}$ac_cv_var_default_hz" >&6
33446 cat >>confdefs.h <<_ACEOF
33447 #define DEFAULT_HZ $ac_cv_var_default_hz
33448 _ACEOF
33451 echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
33452 echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
33453 if test "${ac_cv_var_override_hz+set}" = set; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33455 else
33456 ac_cv_var_override_hz=no
33457 case "$host" in
33458 alpha*-dec-osf4*|alpha*-dec-osf5*)
33459 ac_cv_var_override_hz=yes
33461 mips-dec-ultrix4*)
33462 ac_cv_var_override_hz=yes
33464 *-*-freebsd*)
33465 ac_cv_var_override_hz=yes
33467 *-*-sunos4*)
33468 ac_cv_var_override_hz=yes
33470 esac
33472 echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
33473 echo "${ECHO_T}$ac_cv_var_override_hz" >&6
33474 case "$ac_cv_var_override_hz" in
33475 yes)
33477 cat >>confdefs.h <<\_ACEOF
33478 #define OVERRIDE_HZ 1
33479 _ACEOF
33482 esac
33486 echo "$as_me:$LINENO: checking for struct rt_msghdr" >&5
33487 echo $ECHO_N "checking for struct rt_msghdr... $ECHO_C" >&6
33488 if test "${ac_cv_struct_rt_msghdr+set}" = set; then
33489 echo $ECHO_N "(cached) $ECHO_C" >&6
33490 else
33491 cat >conftest.$ac_ext <<_ACEOF
33492 /* confdefs.h. */
33493 _ACEOF
33494 cat confdefs.h >>conftest.$ac_ext
33495 cat >>conftest.$ac_ext <<_ACEOF
33496 /* end confdefs.h. */
33498 #include <sys/types.h>
33499 #include <sys/socket.h>
33500 #include <net/if.h>
33501 #include <net/route.h>
33503 main ()
33505 struct rt_msghdr p;
33507 return 0;
33509 _ACEOF
33510 rm -f conftest.$ac_objext
33511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33512 (eval $ac_compile) 2>conftest.er1
33513 ac_status=$?
33514 grep -v '^ *+' conftest.er1 >conftest.err
33515 rm -f conftest.er1
33516 cat conftest.err >&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } &&
33519 { ac_try='test -z "$ac_c_werror_flag"
33520 || test ! -s conftest.err'
33521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522 (eval $ac_try) 2>&5
33523 ac_status=$?
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; } &&
33526 { ac_try='test -s conftest.$ac_objext'
33527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 (eval $ac_try) 2>&5
33529 ac_status=$?
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; }; then
33532 ac_cv_struct_rt_msghdr=yes
33533 else
33534 echo "$as_me: failed program was:" >&5
33535 sed 's/^/| /' conftest.$ac_ext >&5
33537 ac_cv_struct_rt_msghdr=no
33539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33542 echo "$as_me:$LINENO: result: $ac_cv_struct_rt_msghdr" >&5
33543 echo "${ECHO_T}$ac_cv_struct_rt_msghdr" >&6
33545 if test $ac_cv_struct_rt_msghdr = yes; then
33547 cat >>confdefs.h <<\_ACEOF
33548 #define HAS_ROUTING_SOCKET 1
33549 _ACEOF
33553 echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
33554 echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
33555 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33557 else
33559 cat >conftest.$ac_ext <<_ACEOF
33560 /* confdefs.h. */
33561 _ACEOF
33562 cat confdefs.h >>conftest.$ac_ext
33563 cat >>conftest.$ac_ext <<_ACEOF
33564 /* end confdefs.h. */
33565 #include <signal.h>
33567 main ()
33569 struct sigaction act; act.sa_sigaction = 0;
33571 return 0;
33573 _ACEOF
33574 rm -f conftest.$ac_objext
33575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33576 (eval $ac_compile) 2>conftest.er1
33577 ac_status=$?
33578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } &&
33583 { ac_try='test -z "$ac_c_werror_flag"
33584 || test ! -s conftest.err'
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; } &&
33590 { ac_try='test -s conftest.$ac_objext'
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33593 ac_status=$?
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; }; then
33596 ac_cv_struct_sigaction_has_sa_sigaction=yes
33597 else
33598 echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33601 ac_cv_struct_sigaction_has_sa_sigaction=no
33604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33608 echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
33609 echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
33610 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
33612 cat >>confdefs.h <<\_ACEOF
33613 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
33614 _ACEOF
33618 echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
33619 echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
33620 if test "${ac_cv_struct_ppsclockev+set}" = set; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33622 else
33623 cat >conftest.$ac_ext <<_ACEOF
33624 /* confdefs.h. */
33625 _ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h. */
33630 #include <sys/types.h>
33631 #ifdef HAVE_SYS_TERMIOS_H
33632 # include <sys/termios.h>
33633 #endif
33634 #ifdef HAVE_SYS_TIME_H
33635 # include <sys/time.h>
33636 #endif
33637 #ifdef HAVE_SYS_PPSCLOCK_H
33638 # include <sys/ppsclock.h>
33639 #endif
33641 main ()
33644 extern struct ppsclockev *pce;
33645 return pce->serial;
33647 return 0;
33649 _ACEOF
33650 rm -f conftest.$ac_objext
33651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33652 (eval $ac_compile) 2>conftest.er1
33653 ac_status=$?
33654 grep -v '^ *+' conftest.er1 >conftest.err
33655 rm -f conftest.er1
33656 cat conftest.err >&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } &&
33659 { ac_try='test -z "$ac_c_werror_flag"
33660 || test ! -s conftest.err'
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33663 ac_status=$?
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; } &&
33666 { ac_try='test -s conftest.$ac_objext'
33667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668 (eval $ac_try) 2>&5
33669 ac_status=$?
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); }; }; then
33672 ac_cv_struct_ppsclockev=yes
33673 else
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33677 ac_cv_struct_ppsclockev=no
33679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33682 echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
33683 echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
33684 if test $ac_cv_struct_ppsclockev = yes; then
33686 cat >>confdefs.h <<\_ACEOF
33687 #define HAVE_STRUCT_PPSCLOCKEV 1
33688 _ACEOF
33692 echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
33693 echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
33694 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
33695 echo $ECHO_N "(cached) $ECHO_C" >&6
33696 else
33697 cat >conftest.$ac_ext <<_ACEOF
33698 /* confdefs.h. */
33699 _ACEOF
33700 cat confdefs.h >>conftest.$ac_ext
33701 cat >>conftest.$ac_ext <<_ACEOF
33702 /* end confdefs.h. */
33704 #include <sys/types.h>
33705 #include <sys/socket.h>
33707 main ()
33710 extern struct sockaddr *ps;
33711 return ps->sa_len;
33713 return 0;
33715 _ACEOF
33716 rm -f conftest.$ac_objext
33717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33718 (eval $ac_compile) 2>conftest.er1
33719 ac_status=$?
33720 grep -v '^ *+' conftest.er1 >conftest.err
33721 rm -f conftest.er1
33722 cat conftest.err >&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
33725 { ac_try='test -z "$ac_c_werror_flag"
33726 || test ! -s conftest.err'
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest.$ac_objext'
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 ac_cv_struct_sockaddr_has_sa_len=yes
33739 else
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_cv_struct_sockaddr_has_sa_len=no
33745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33748 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
33749 echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
33750 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
33752 cat >>confdefs.h <<\_ACEOF
33753 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
33754 _ACEOF
33758 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
33759 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
33760 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
33761 echo $ECHO_N "(cached) $ECHO_C" >&6
33762 else
33763 cat >conftest.$ac_ext <<_ACEOF
33764 /* confdefs.h. */
33765 _ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h. */
33770 #include <sys/types.h>
33771 #include <sys/socket.h>
33772 #include <netinet/in.h>
33775 main ()
33778 struct sockaddr_storage n;
33780 return 0;
33782 _ACEOF
33783 rm -f conftest.$ac_objext
33784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33785 (eval $ac_compile) 2>conftest.er1
33786 ac_status=$?
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
33789 cat conftest.err >&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } &&
33792 { ac_try='test -z "$ac_c_werror_flag"
33793 || test ! -s conftest.err'
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; } &&
33799 { ac_try='test -s conftest.$ac_objext'
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; }; then
33805 ac_cv_struct_sockaddr_storage=yes
33806 else
33807 echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33810 ac_cv_struct_sockaddr_storage=no
33812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33815 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
33816 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
33817 if test $ac_cv_struct_sockaddr_storage = yes; then
33819 cat >>confdefs.h <<\_ACEOF
33820 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
33821 _ACEOF
33825 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
33826 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
33827 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33829 else
33831 cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h. */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h. */
33838 #include <sys/types.h>
33839 #include <sys/socket.h>
33842 main ()
33844 struct sockaddr_storage s; s.ss_family = 1;
33846 return 0;
33848 _ACEOF
33849 rm -f conftest.$ac_objext
33850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33851 (eval $ac_compile) 2>conftest.er1
33852 ac_status=$?
33853 grep -v '^ *+' conftest.er1 >conftest.err
33854 rm -f conftest.er1
33855 cat conftest.err >&5
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } &&
33858 { ac_try='test -z "$ac_c_werror_flag"
33859 || test ! -s conftest.err'
33860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861 (eval $ac_try) 2>&5
33862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; } &&
33865 { ac_try='test -s conftest.$ac_objext'
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33868 ac_status=$?
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; }; then
33871 ac_cv_have_ss_family_in_struct_ss="yes"
33872 else
33873 echo "$as_me: failed program was:" >&5
33874 sed 's/^/| /' conftest.$ac_ext >&5
33876 ac_cv_have_ss_family_in_struct_ss="no"
33878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33881 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
33882 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
33883 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
33885 cat >>confdefs.h <<\_ACEOF
33886 #define HAVE_SS_FAMILY_IN_SS 1
33887 _ACEOF
33889 else
33890 # Hack around a problem...
33891 # HMS: This is $host because we need the -D if we are building *for* it.
33892 # HMS: 061029: Now that we separate the ss_* checks this is causing
33893 # a problem - disable it until we get to the bottom of it.
33894 case "$host" in
33895 XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
33897 esac
33900 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
33901 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
33902 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33906 cat >conftest.$ac_ext <<_ACEOF
33907 /* confdefs.h. */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h. */
33913 #include <sys/types.h>
33914 #include <sys/socket.h>
33917 main ()
33919 struct sockaddr_storage s; s.__ss_family = 1;
33921 return 0;
33923 _ACEOF
33924 rm -f conftest.$ac_objext
33925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33926 (eval $ac_compile) 2>conftest.er1
33927 ac_status=$?
33928 grep -v '^ *+' conftest.er1 >conftest.err
33929 rm -f conftest.er1
33930 cat conftest.err >&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } &&
33933 { ac_try='test -z "$ac_c_werror_flag"
33934 || test ! -s conftest.err'
33935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936 (eval $ac_try) 2>&5
33937 ac_status=$?
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; } &&
33940 { ac_try='test -s conftest.$ac_objext'
33941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 (eval $ac_try) 2>&5
33943 ac_status=$?
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
33946 ac_cv_have___ss_family_in_struct_ss="yes"
33947 else
33948 echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33951 ac_cv_have___ss_family_in_struct_ss="no"
33954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33957 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
33958 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
33959 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
33961 cat >>confdefs.h <<\_ACEOF
33962 #define HAVE___SS_FAMILY_IN_SS 1
33963 _ACEOF
33970 echo "$as_me:$LINENO: checking for ss_len field in struct sockaddr_storage" >&5
33971 echo $ECHO_N "checking for ss_len field in struct sockaddr_storage... $ECHO_C" >&6
33972 if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974 else
33976 cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h. */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h. */
33983 #include <sys/types.h>
33984 #include <sys/socket.h>
33987 main ()
33989 struct sockaddr_storage s; s.ss_len = 1;
33991 return 0;
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33996 (eval $ac_compile) 2>conftest.er1
33997 ac_status=$?
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
34003 { ac_try='test -z "$ac_c_werror_flag"
34004 || test ! -s conftest.err'
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; } &&
34010 { ac_try='test -s conftest.$ac_objext'
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34013 ac_status=$?
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; }; then
34016 ac_cv_have_ss_len_in_struct_ss="yes"
34017 else
34018 echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34021 ac_cv_have_ss_len_in_struct_ss="no"
34023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34026 echo "$as_me:$LINENO: result: $ac_cv_have_ss_len_in_struct_ss" >&5
34027 echo "${ECHO_T}$ac_cv_have_ss_len_in_struct_ss" >&6
34028 if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
34030 cat >>confdefs.h <<\_ACEOF
34031 #define HAVE_SS_LEN_IN_SS 1
34032 _ACEOF
34036 echo "$as_me:$LINENO: checking for __ss_len field in struct sockaddr_storage" >&5
34037 echo $ECHO_N "checking for __ss_len field in struct sockaddr_storage... $ECHO_C" >&6
34038 if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then
34039 echo $ECHO_N "(cached) $ECHO_C" >&6
34040 else
34042 cat >conftest.$ac_ext <<_ACEOF
34043 /* confdefs.h. */
34044 _ACEOF
34045 cat confdefs.h >>conftest.$ac_ext
34046 cat >>conftest.$ac_ext <<_ACEOF
34047 /* end confdefs.h. */
34049 #include <sys/types.h>
34050 #include <sys/socket.h>
34053 main ()
34055 struct sockaddr_storage s; s.__ss_len = 1;
34057 return 0;
34059 _ACEOF
34060 rm -f conftest.$ac_objext
34061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34062 (eval $ac_compile) 2>conftest.er1
34063 ac_status=$?
34064 grep -v '^ *+' conftest.er1 >conftest.err
34065 rm -f conftest.er1
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } &&
34069 { ac_try='test -z "$ac_c_werror_flag"
34070 || test ! -s conftest.err'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest.$ac_objext'
34077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078 (eval $ac_try) 2>&5
34079 ac_status=$?
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_have___ss_len_in_struct_ss="yes"
34083 else
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ac_cv_have___ss_len_in_struct_ss="no"
34090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34093 echo "$as_me:$LINENO: result: $ac_cv_have___ss_len_in_struct_ss" >&5
34094 echo "${ECHO_T}$ac_cv_have___ss_len_in_struct_ss" >&6
34095 if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
34097 cat >>confdefs.h <<\_ACEOF
34098 #define HAVE___SS_LEN_IN_SS 1
34099 _ACEOF
34106 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
34107 *yes*)
34108 echo "$as_me:$LINENO: checking for struct snd_size" >&5
34109 echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
34110 if test "${ac_cv_struct_snd_size+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113 cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h. */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h. */
34120 #ifdef HAVE_MACHINE_SOUNDCARD_H
34121 # include <machine/soundcard.h>
34122 #endif
34123 #ifdef HAVE_SYS_SOUNDCARD_H
34124 # include <sys/soundcard.h>
34125 #endif
34127 main ()
34130 extern struct snd_size *ss;
34131 return ss->rec_size;
34133 return 0;
34135 _ACEOF
34136 rm -f conftest.$ac_objext
34137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34138 (eval $ac_compile) 2>conftest.er1
34139 ac_status=$?
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } &&
34145 { ac_try='test -z "$ac_c_werror_flag"
34146 || test ! -s conftest.err'
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; } &&
34152 { ac_try='test -s conftest.$ac_objext'
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; }; then
34158 ac_cv_struct_snd_size=yes
34159 else
34160 echo "$as_me: failed program was:" >&5
34161 sed 's/^/| /' conftest.$ac_ext >&5
34163 ac_cv_struct_snd_size=no
34165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34168 echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
34169 echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
34170 case "$ac_cv_struct_snd_size" in
34171 yes)
34172 cat >>confdefs.h <<\_ACEOF
34173 #define HAVE_STRUCT_SND_SIZE 1
34174 _ACEOF
34176 esac
34178 esac
34180 echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
34181 echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
34182 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34184 else
34185 cat >conftest.$ac_ext <<_ACEOF
34186 /* confdefs.h. */
34187 _ACEOF
34188 cat confdefs.h >>conftest.$ac_ext
34189 cat >>conftest.$ac_ext <<_ACEOF
34190 /* end confdefs.h. */
34192 #include <sys/time.h>
34194 main ()
34197 extern struct clockinfo *pc;
34198 return pc->hz;
34200 return 0;
34202 _ACEOF
34203 rm -f conftest.$ac_objext
34204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34205 (eval $ac_compile) 2>conftest.er1
34206 ac_status=$?
34207 grep -v '^ *+' conftest.er1 >conftest.err
34208 rm -f conftest.er1
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } &&
34212 { ac_try='test -z "$ac_c_werror_flag"
34213 || test ! -s conftest.err'
34214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215 (eval $ac_try) 2>&5
34216 ac_status=$?
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; } &&
34219 { ac_try='test -s conftest.$ac_objext'
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; }; then
34225 ac_cv_struct_clockinfo_has_hz=yes
34226 else
34227 echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34230 ac_cv_struct_clockinfo_has_hz=no
34232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34235 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
34236 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
34237 if test $ac_cv_struct_clockinfo_has_hz = yes; then
34239 cat >>confdefs.h <<\_ACEOF
34240 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
34241 _ACEOF
34245 echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
34246 echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
34247 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
34248 echo $ECHO_N "(cached) $ECHO_C" >&6
34249 else
34250 cat >conftest.$ac_ext <<_ACEOF
34251 /* confdefs.h. */
34252 _ACEOF
34253 cat confdefs.h >>conftest.$ac_ext
34254 cat >>conftest.$ac_ext <<_ACEOF
34255 /* end confdefs.h. */
34257 #include <sys/time.h>
34259 main ()
34262 extern struct clockinfo *pc;
34263 return pc->tickadj;
34265 return 0;
34267 _ACEOF
34268 rm -f conftest.$ac_objext
34269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34270 (eval $ac_compile) 2>conftest.er1
34271 ac_status=$?
34272 grep -v '^ *+' conftest.er1 >conftest.err
34273 rm -f conftest.er1
34274 cat conftest.err >&5
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } &&
34277 { ac_try='test -z "$ac_c_werror_flag"
34278 || test ! -s conftest.err'
34279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280 (eval $ac_try) 2>&5
34281 ac_status=$?
34282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); }; } &&
34284 { ac_try='test -s conftest.$ac_objext'
34285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34286 (eval $ac_try) 2>&5
34287 ac_status=$?
34288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289 (exit $ac_status); }; }; then
34290 ac_cv_struct_clockinfo_has_tickadj=yes
34291 else
34292 echo "$as_me: failed program was:" >&5
34293 sed 's/^/| /' conftest.$ac_ext >&5
34295 ac_cv_struct_clockinfo_has_tickadj=no
34297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34300 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
34301 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
34302 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
34304 cat >>confdefs.h <<\_ACEOF
34305 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
34306 _ACEOF
34310 echo "$as_me:$LINENO: checking for struct timespec" >&5
34311 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
34312 if test "${ac_cv_struct_timespec+set}" = set; then
34313 echo $ECHO_N "(cached) $ECHO_C" >&6
34314 else
34315 cat >conftest.$ac_ext <<_ACEOF
34316 /* confdefs.h. */
34317 _ACEOF
34318 cat confdefs.h >>conftest.$ac_ext
34319 cat >>conftest.$ac_ext <<_ACEOF
34320 /* end confdefs.h. */
34322 #include <sys/time.h>
34323 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
34324 #ifdef HAVE_ERRNO_H
34325 # include <errno.h>
34326 #endif
34327 #ifdef HAVE_SYS_TIMEPPS_H
34328 # define FRAC 4294967296
34329 # include <sys/timepps.h>
34330 #endif
34332 main ()
34334 struct timespec n;
34336 return 0;
34338 _ACEOF
34339 rm -f conftest.$ac_objext
34340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34341 (eval $ac_compile) 2>conftest.er1
34342 ac_status=$?
34343 grep -v '^ *+' conftest.er1 >conftest.err
34344 rm -f conftest.er1
34345 cat conftest.err >&5
34346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347 (exit $ac_status); } &&
34348 { ac_try='test -z "$ac_c_werror_flag"
34349 || test ! -s conftest.err'
34350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351 (eval $ac_try) 2>&5
34352 ac_status=$?
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); }; } &&
34355 { ac_try='test -s conftest.$ac_objext'
34356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34357 (eval $ac_try) 2>&5
34358 ac_status=$?
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); }; }; then
34361 ac_cv_struct_timespec=yes
34362 else
34363 echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34366 ac_cv_struct_timespec=no
34368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34370 echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
34371 echo "${ECHO_T}$ac_cv_struct_timespec" >&6
34372 if test $ac_cv_struct_timespec = yes; then
34374 cat >>confdefs.h <<\_ACEOF
34375 #define HAVE_STRUCT_TIMESPEC 1
34376 _ACEOF
34380 echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
34381 echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
34382 if test "${ac_cv_struct_ntptimeval+set}" = set; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34384 else
34385 cat >conftest.$ac_ext <<_ACEOF
34386 /* confdefs.h. */
34387 _ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h. */
34392 #include <sys/time.h>
34393 #include <sys/timex.h>
34395 main ()
34397 struct ntptimeval n;
34399 return 0;
34401 _ACEOF
34402 rm -f conftest.$ac_objext
34403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34404 (eval $ac_compile) 2>conftest.er1
34405 ac_status=$?
34406 grep -v '^ *+' conftest.er1 >conftest.err
34407 rm -f conftest.er1
34408 cat conftest.err >&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); } &&
34411 { ac_try='test -z "$ac_c_werror_flag"
34412 || test ! -s conftest.err'
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34415 ac_status=$?
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; } &&
34418 { ac_try='test -s conftest.$ac_objext'
34419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420 (eval $ac_try) 2>&5
34421 ac_status=$?
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); }; }; then
34424 ac_cv_struct_ntptimeval=yes
34425 else
34426 echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34429 ac_cv_struct_ntptimeval=no
34431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34433 echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
34434 echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
34435 if test $ac_cv_struct_ntptimeval = yes; then
34437 cat >>confdefs.h <<\_ACEOF
34438 #define HAVE_STRUCT_NTPTIMEVAL 1
34439 _ACEOF
34443 echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
34444 echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
34445 if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
34446 echo $ECHO_N "(cached) $ECHO_C" >&6
34447 else
34448 cat >conftest.$ac_ext <<_ACEOF
34449 /* confdefs.h. */
34450 _ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h. */
34454 #ifdef HAVE_SYS_TIME_H
34455 #include <sys/time.h>
34456 #else
34457 # ifdef HAVE_TIME_H
34458 # include <time.h>
34459 # endif
34460 #endif
34461 #ifdef HAVE_SYS_TIMEX_H
34462 #include <sys/timex.h>
34463 #else
34464 # ifdef HAVE_TIMEX_H
34465 # include <timex.h>
34466 # endif
34467 #endif
34470 main ()
34472 static struct ntptimeval ac_aggr;
34473 if (ac_aggr.time.tv_nsec)
34474 return 0;
34476 return 0;
34478 _ACEOF
34479 rm -f conftest.$ac_objext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34481 (eval $ac_compile) 2>conftest.er1
34482 ac_status=$?
34483 grep -v '^ *+' conftest.er1 >conftest.err
34484 rm -f conftest.er1
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try='test -z "$ac_c_werror_flag"
34489 || test ! -s conftest.err'
34490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 (eval $ac_try) 2>&5
34492 ac_status=$?
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); }; } &&
34495 { ac_try='test -s conftest.$ac_objext'
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; }; then
34501 ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
34502 else
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 cat >conftest.$ac_ext <<_ACEOF
34507 /* confdefs.h. */
34508 _ACEOF
34509 cat confdefs.h >>conftest.$ac_ext
34510 cat >>conftest.$ac_ext <<_ACEOF
34511 /* end confdefs.h. */
34512 #ifdef HAVE_SYS_TIME_H
34513 #include <sys/time.h>
34514 #else
34515 # ifdef HAVE_TIME_H
34516 # include <time.h>
34517 # endif
34518 #endif
34519 #ifdef HAVE_SYS_TIMEX_H
34520 #include <sys/timex.h>
34521 #else
34522 # ifdef HAVE_TIMEX_H
34523 # include <timex.h>
34524 # endif
34525 #endif
34528 main ()
34530 static struct ntptimeval ac_aggr;
34531 if (sizeof ac_aggr.time.tv_nsec)
34532 return 0;
34534 return 0;
34536 _ACEOF
34537 rm -f conftest.$ac_objext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34539 (eval $ac_compile) 2>conftest.er1
34540 ac_status=$?
34541 grep -v '^ *+' conftest.er1 >conftest.err
34542 rm -f conftest.er1
34543 cat conftest.err >&5
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } &&
34546 { ac_try='test -z "$ac_c_werror_flag"
34547 || test ! -s conftest.err'
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; } &&
34553 { ac_try='test -s conftest.$ac_objext'
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34556 ac_status=$?
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; }; then
34559 ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
34560 else
34561 echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34564 ac_cv_member_struct_ntptimeval_time_tv_nsec=no
34566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
34571 echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
34572 if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
34574 cat >>confdefs.h <<_ACEOF
34575 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
34576 _ACEOF
34582 echo "$as_me:$LINENO: checking for inline" >&5
34583 echo $ECHO_N "checking for inline... $ECHO_C" >&6
34584 if test "${ac_cv_c_inline+set}" = set; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
34586 else
34587 ac_cv_c_inline=no
34588 for ac_kw in inline __inline__ __inline; do
34589 cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h. */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h. */
34595 #ifndef __cplusplus
34596 typedef int foo_t;
34597 static $ac_kw foo_t static_foo () {return 0; }
34598 $ac_kw foo_t foo () {return 0; }
34599 #endif
34601 _ACEOF
34602 rm -f conftest.$ac_objext
34603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34604 (eval $ac_compile) 2>conftest.er1
34605 ac_status=$?
34606 grep -v '^ *+' conftest.er1 >conftest.err
34607 rm -f conftest.er1
34608 cat conftest.err >&5
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
34611 { ac_try='test -z "$ac_c_werror_flag"
34612 || test ! -s conftest.err'
34613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614 (eval $ac_try) 2>&5
34615 ac_status=$?
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); }; } &&
34618 { ac_try='test -s conftest.$ac_objext'
34619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620 (eval $ac_try) 2>&5
34621 ac_status=$?
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624 ac_cv_c_inline=$ac_kw; break
34625 else
34626 echo "$as_me: failed program was:" >&5
34627 sed 's/^/| /' conftest.$ac_ext >&5
34630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34631 done
34634 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
34635 echo "${ECHO_T}$ac_cv_c_inline" >&6
34638 case $ac_cv_c_inline in
34639 inline | yes) ;;
34641 case $ac_cv_c_inline in
34642 no) ac_val=;;
34643 *) ac_val=$ac_cv_c_inline;;
34644 esac
34645 cat >>confdefs.h <<_ACEOF
34646 #ifndef __cplusplus
34647 #define inline $ac_val
34648 #endif
34649 _ACEOF
34651 esac
34654 case "$ac_cv_c_inline" in
34659 cat >>confdefs.h <<\_ACEOF
34660 #define HAVE_INLINE 1
34661 _ACEOF
34664 esac
34667 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
34668 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
34669 if test "${ac_cv_c_char_unsigned+set}" = set; then
34670 echo $ECHO_N "(cached) $ECHO_C" >&6
34671 else
34672 cat >conftest.$ac_ext <<_ACEOF
34673 /* confdefs.h. */
34674 _ACEOF
34675 cat confdefs.h >>conftest.$ac_ext
34676 cat >>conftest.$ac_ext <<_ACEOF
34677 /* end confdefs.h. */
34678 $ac_includes_default
34680 main ()
34682 static int test_array [1 - 2 * !(((char) -1) < 0)];
34683 test_array [0] = 0
34686 return 0;
34688 _ACEOF
34689 rm -f conftest.$ac_objext
34690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34691 (eval $ac_compile) 2>conftest.er1
34692 ac_status=$?
34693 grep -v '^ *+' conftest.er1 >conftest.err
34694 rm -f conftest.er1
34695 cat conftest.err >&5
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); } &&
34698 { ac_try='test -z "$ac_c_werror_flag"
34699 || test ! -s conftest.err'
34700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34701 (eval $ac_try) 2>&5
34702 ac_status=$?
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); }; } &&
34705 { ac_try='test -s conftest.$ac_objext'
34706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34707 (eval $ac_try) 2>&5
34708 ac_status=$?
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); }; }; then
34711 ac_cv_c_char_unsigned=no
34712 else
34713 echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34716 ac_cv_c_char_unsigned=yes
34718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34720 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
34721 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
34722 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
34723 cat >>confdefs.h <<\_ACEOF
34724 #define __CHAR_UNSIGNED__ 1
34725 _ACEOF
34728 echo "$as_me:$LINENO: checking for signed char" >&5
34729 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
34730 if test "${ac_cv_type_signed_char+set}" = set; then
34731 echo $ECHO_N "(cached) $ECHO_C" >&6
34732 else
34733 cat >conftest.$ac_ext <<_ACEOF
34734 /* confdefs.h. */
34735 _ACEOF
34736 cat confdefs.h >>conftest.$ac_ext
34737 cat >>conftest.$ac_ext <<_ACEOF
34738 /* end confdefs.h. */
34739 $ac_includes_default
34741 main ()
34743 if ((signed char *) 0)
34744 return 0;
34745 if (sizeof (signed char))
34746 return 0;
34748 return 0;
34750 _ACEOF
34751 rm -f conftest.$ac_objext
34752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34753 (eval $ac_compile) 2>conftest.er1
34754 ac_status=$?
34755 grep -v '^ *+' conftest.er1 >conftest.err
34756 rm -f conftest.er1
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } &&
34760 { ac_try='test -z "$ac_c_werror_flag"
34761 || test ! -s conftest.err'
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; } &&
34767 { ac_try='test -s conftest.$ac_objext'
34768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769 (eval $ac_try) 2>&5
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; }; then
34773 ac_cv_type_signed_char=yes
34774 else
34775 echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34778 ac_cv_type_signed_char=no
34780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34782 echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
34783 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
34785 echo "$as_me:$LINENO: checking size of signed char" >&5
34786 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
34787 if test "${ac_cv_sizeof_signed_char+set}" = set; then
34788 echo $ECHO_N "(cached) $ECHO_C" >&6
34789 else
34790 if test "$ac_cv_type_signed_char" = yes; then
34791 # The cast to unsigned long works around a bug in the HP C Compiler
34792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34794 # This bug is HP SR number 8606223364.
34795 if test "$cross_compiling" = yes; then
34796 # Depending upon the size, compute the lo and hi bounds.
34797 cat >conftest.$ac_ext <<_ACEOF
34798 /* confdefs.h. */
34799 _ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h. */
34803 $ac_includes_default
34805 main ()
34807 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
34808 test_array [0] = 0
34811 return 0;
34813 _ACEOF
34814 rm -f conftest.$ac_objext
34815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34816 (eval $ac_compile) 2>conftest.er1
34817 ac_status=$?
34818 grep -v '^ *+' conftest.er1 >conftest.err
34819 rm -f conftest.er1
34820 cat conftest.err >&5
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); } &&
34823 { ac_try='test -z "$ac_c_werror_flag"
34824 || test ! -s conftest.err'
34825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34826 (eval $ac_try) 2>&5
34827 ac_status=$?
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); }; } &&
34830 { ac_try='test -s conftest.$ac_objext'
34831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34832 (eval $ac_try) 2>&5
34833 ac_status=$?
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); }; }; then
34836 ac_lo=0 ac_mid=0
34837 while :; do
34838 cat >conftest.$ac_ext <<_ACEOF
34839 /* confdefs.h. */
34840 _ACEOF
34841 cat confdefs.h >>conftest.$ac_ext
34842 cat >>conftest.$ac_ext <<_ACEOF
34843 /* end confdefs.h. */
34844 $ac_includes_default
34846 main ()
34848 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
34849 test_array [0] = 0
34852 return 0;
34854 _ACEOF
34855 rm -f conftest.$ac_objext
34856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34857 (eval $ac_compile) 2>conftest.er1
34858 ac_status=$?
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } &&
34864 { ac_try='test -z "$ac_c_werror_flag"
34865 || test ! -s conftest.err'
34866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867 (eval $ac_try) 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; } &&
34871 { ac_try='test -s conftest.$ac_objext'
34872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34873 (eval $ac_try) 2>&5
34874 ac_status=$?
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); }; }; then
34877 ac_hi=$ac_mid; break
34878 else
34879 echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34882 ac_lo=`expr $ac_mid + 1`
34883 if test $ac_lo -le $ac_mid; then
34884 ac_lo= ac_hi=
34885 break
34887 ac_mid=`expr 2 '*' $ac_mid + 1`
34889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34890 done
34891 else
34892 echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34895 cat >conftest.$ac_ext <<_ACEOF
34896 /* confdefs.h. */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 $ac_includes_default
34903 main ()
34905 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
34906 test_array [0] = 0
34909 return 0;
34911 _ACEOF
34912 rm -f conftest.$ac_objext
34913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34914 (eval $ac_compile) 2>conftest.er1
34915 ac_status=$?
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
34921 { ac_try='test -z "$ac_c_werror_flag"
34922 || test ! -s conftest.err'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; } &&
34928 { ac_try='test -s conftest.$ac_objext'
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; }; then
34934 ac_hi=-1 ac_mid=-1
34935 while :; do
34936 cat >conftest.$ac_ext <<_ACEOF
34937 /* confdefs.h. */
34938 _ACEOF
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h. */
34942 $ac_includes_default
34944 main ()
34946 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
34947 test_array [0] = 0
34950 return 0;
34952 _ACEOF
34953 rm -f conftest.$ac_objext
34954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34955 (eval $ac_compile) 2>conftest.er1
34956 ac_status=$?
34957 grep -v '^ *+' conftest.er1 >conftest.err
34958 rm -f conftest.er1
34959 cat conftest.err >&5
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); } &&
34962 { ac_try='test -z "$ac_c_werror_flag"
34963 || test ! -s conftest.err'
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34966 ac_status=$?
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; } &&
34969 { ac_try='test -s conftest.$ac_objext'
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; }; then
34975 ac_lo=$ac_mid; break
34976 else
34977 echo "$as_me: failed program was:" >&5
34978 sed 's/^/| /' conftest.$ac_ext >&5
34980 ac_hi=`expr '(' $ac_mid ')' - 1`
34981 if test $ac_mid -le $ac_hi; then
34982 ac_lo= ac_hi=
34983 break
34985 ac_mid=`expr 2 '*' $ac_mid`
34987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34988 done
34989 else
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34993 ac_lo= ac_hi=
34995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34998 # Binary search between lo and hi bounds.
34999 while test "x$ac_lo" != "x$ac_hi"; do
35000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35001 cat >conftest.$ac_ext <<_ACEOF
35002 /* confdefs.h. */
35003 _ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h. */
35007 $ac_includes_default
35009 main ()
35011 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
35012 test_array [0] = 0
35015 return 0;
35017 _ACEOF
35018 rm -f conftest.$ac_objext
35019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35020 (eval $ac_compile) 2>conftest.er1
35021 ac_status=$?
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
35027 { ac_try='test -z "$ac_c_werror_flag"
35028 || test ! -s conftest.err'
35029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35030 (eval $ac_try) 2>&5
35031 ac_status=$?
35032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033 (exit $ac_status); }; } &&
35034 { ac_try='test -s conftest.$ac_objext'
35035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35036 (eval $ac_try) 2>&5
35037 ac_status=$?
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; }; then
35040 ac_hi=$ac_mid
35041 else
35042 echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35045 ac_lo=`expr '(' $ac_mid ')' + 1`
35047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35048 done
35049 case $ac_lo in
35050 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
35051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
35052 See \`config.log' for more details." >&5
35053 echo "$as_me: error: cannot compute sizeof (signed char), 77
35054 See \`config.log' for more details." >&2;}
35055 { (exit 1); exit 1; }; } ;;
35056 esac
35057 else
35058 if test "$cross_compiling" = yes; then
35059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35060 See \`config.log' for more details." >&5
35061 echo "$as_me: error: cannot run test program while cross compiling
35062 See \`config.log' for more details." >&2;}
35063 { (exit 1); exit 1; }; }
35064 else
35065 cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h. */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h. */
35071 $ac_includes_default
35072 long longval () { return (long) (sizeof (signed char)); }
35073 unsigned long ulongval () { return (long) (sizeof (signed char)); }
35074 #include <stdio.h>
35075 #include <stdlib.h>
35077 main ()
35080 FILE *f = fopen ("conftest.val", "w");
35081 if (! f)
35082 exit (1);
35083 if (((long) (sizeof (signed char))) < 0)
35085 long i = longval ();
35086 if (i != ((long) (sizeof (signed char))))
35087 exit (1);
35088 fprintf (f, "%ld\n", i);
35090 else
35092 unsigned long i = ulongval ();
35093 if (i != ((long) (sizeof (signed char))))
35094 exit (1);
35095 fprintf (f, "%lu\n", i);
35097 exit (ferror (f) || fclose (f) != 0);
35100 return 0;
35102 _ACEOF
35103 rm -f conftest$ac_exeext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35105 (eval $ac_link) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110 (eval $ac_try) 2>&5
35111 ac_status=$?
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); }; }; then
35114 ac_cv_sizeof_signed_char=`cat conftest.val`
35115 else
35116 echo "$as_me: program exited with status $ac_status" >&5
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35120 ( exit $ac_status )
35121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
35122 See \`config.log' for more details." >&5
35123 echo "$as_me: error: cannot compute sizeof (signed char), 77
35124 See \`config.log' for more details." >&2;}
35125 { (exit 1); exit 1; }; }
35127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35130 rm -f conftest.val
35131 else
35132 ac_cv_sizeof_signed_char=0
35135 echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
35136 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
35137 cat >>confdefs.h <<_ACEOF
35138 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
35139 _ACEOF
35142 echo "$as_me:$LINENO: checking for int" >&5
35143 echo $ECHO_N "checking for int... $ECHO_C" >&6
35144 if test "${ac_cv_type_int+set}" = set; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 else
35147 cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h. */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 $ac_includes_default
35155 main ()
35157 if ((int *) 0)
35158 return 0;
35159 if (sizeof (int))
35160 return 0;
35162 return 0;
35164 _ACEOF
35165 rm -f conftest.$ac_objext
35166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35167 (eval $ac_compile) 2>conftest.er1
35168 ac_status=$?
35169 grep -v '^ *+' conftest.er1 >conftest.err
35170 rm -f conftest.er1
35171 cat conftest.err >&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); } &&
35174 { ac_try='test -z "$ac_c_werror_flag"
35175 || test ! -s conftest.err'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; } &&
35181 { ac_try='test -s conftest.$ac_objext'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35184 ac_status=$?
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
35187 ac_cv_type_int=yes
35188 else
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 ac_cv_type_int=no
35194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35196 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35197 echo "${ECHO_T}$ac_cv_type_int" >&6
35199 echo "$as_me:$LINENO: checking size of int" >&5
35200 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35201 if test "${ac_cv_sizeof_int+set}" = set; then
35202 echo $ECHO_N "(cached) $ECHO_C" >&6
35203 else
35204 if test "$ac_cv_type_int" = yes; then
35205 # The cast to unsigned long works around a bug in the HP C Compiler
35206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35208 # This bug is HP SR number 8606223364.
35209 if test "$cross_compiling" = yes; then
35210 # Depending upon the size, compute the lo and hi bounds.
35211 cat >conftest.$ac_ext <<_ACEOF
35212 /* confdefs.h. */
35213 _ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h. */
35217 $ac_includes_default
35219 main ()
35221 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35222 test_array [0] = 0
35225 return 0;
35227 _ACEOF
35228 rm -f conftest.$ac_objext
35229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35230 (eval $ac_compile) 2>conftest.er1
35231 ac_status=$?
35232 grep -v '^ *+' conftest.er1 >conftest.err
35233 rm -f conftest.er1
35234 cat conftest.err >&5
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); } &&
35237 { ac_try='test -z "$ac_c_werror_flag"
35238 || test ! -s conftest.err'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35241 ac_status=$?
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest.$ac_objext'
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35247 ac_status=$?
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 ac_lo=0 ac_mid=0
35251 while :; do
35252 cat >conftest.$ac_ext <<_ACEOF
35253 /* confdefs.h. */
35254 _ACEOF
35255 cat confdefs.h >>conftest.$ac_ext
35256 cat >>conftest.$ac_ext <<_ACEOF
35257 /* end confdefs.h. */
35258 $ac_includes_default
35260 main ()
35262 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35263 test_array [0] = 0
35266 return 0;
35268 _ACEOF
35269 rm -f conftest.$ac_objext
35270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35271 (eval $ac_compile) 2>conftest.er1
35272 ac_status=$?
35273 grep -v '^ *+' conftest.er1 >conftest.err
35274 rm -f conftest.er1
35275 cat conftest.err >&5
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } &&
35278 { ac_try='test -z "$ac_c_werror_flag"
35279 || test ! -s conftest.err'
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; } &&
35285 { ac_try='test -s conftest.$ac_objext'
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35288 ac_status=$?
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; }; then
35291 ac_hi=$ac_mid; break
35292 else
35293 echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35296 ac_lo=`expr $ac_mid + 1`
35297 if test $ac_lo -le $ac_mid; then
35298 ac_lo= ac_hi=
35299 break
35301 ac_mid=`expr 2 '*' $ac_mid + 1`
35303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35304 done
35305 else
35306 echo "$as_me: failed program was:" >&5
35307 sed 's/^/| /' conftest.$ac_ext >&5
35309 cat >conftest.$ac_ext <<_ACEOF
35310 /* confdefs.h. */
35311 _ACEOF
35312 cat confdefs.h >>conftest.$ac_ext
35313 cat >>conftest.$ac_ext <<_ACEOF
35314 /* end confdefs.h. */
35315 $ac_includes_default
35317 main ()
35319 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35320 test_array [0] = 0
35323 return 0;
35325 _ACEOF
35326 rm -f conftest.$ac_objext
35327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35328 (eval $ac_compile) 2>conftest.er1
35329 ac_status=$?
35330 grep -v '^ *+' conftest.er1 >conftest.err
35331 rm -f conftest.er1
35332 cat conftest.err >&5
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } &&
35335 { ac_try='test -z "$ac_c_werror_flag"
35336 || test ! -s conftest.err'
35337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35338 (eval $ac_try) 2>&5
35339 ac_status=$?
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); }; } &&
35342 { ac_try='test -s conftest.$ac_objext'
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35345 ac_status=$?
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; }; then
35348 ac_hi=-1 ac_mid=-1
35349 while :; do
35350 cat >conftest.$ac_ext <<_ACEOF
35351 /* confdefs.h. */
35352 _ACEOF
35353 cat confdefs.h >>conftest.$ac_ext
35354 cat >>conftest.$ac_ext <<_ACEOF
35355 /* end confdefs.h. */
35356 $ac_includes_default
35358 main ()
35360 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35361 test_array [0] = 0
35364 return 0;
35366 _ACEOF
35367 rm -f conftest.$ac_objext
35368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35369 (eval $ac_compile) 2>conftest.er1
35370 ac_status=$?
35371 grep -v '^ *+' conftest.er1 >conftest.err
35372 rm -f conftest.er1
35373 cat conftest.err >&5
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); } &&
35376 { ac_try='test -z "$ac_c_werror_flag"
35377 || test ! -s conftest.err'
35378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35379 (eval $ac_try) 2>&5
35380 ac_status=$?
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); }; } &&
35383 { ac_try='test -s conftest.$ac_objext'
35384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35385 (eval $ac_try) 2>&5
35386 ac_status=$?
35387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); }; }; then
35389 ac_lo=$ac_mid; break
35390 else
35391 echo "$as_me: failed program was:" >&5
35392 sed 's/^/| /' conftest.$ac_ext >&5
35394 ac_hi=`expr '(' $ac_mid ')' - 1`
35395 if test $ac_mid -le $ac_hi; then
35396 ac_lo= ac_hi=
35397 break
35399 ac_mid=`expr 2 '*' $ac_mid`
35401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35402 done
35403 else
35404 echo "$as_me: failed program was:" >&5
35405 sed 's/^/| /' conftest.$ac_ext >&5
35407 ac_lo= ac_hi=
35409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35412 # Binary search between lo and hi bounds.
35413 while test "x$ac_lo" != "x$ac_hi"; do
35414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35415 cat >conftest.$ac_ext <<_ACEOF
35416 /* confdefs.h. */
35417 _ACEOF
35418 cat confdefs.h >>conftest.$ac_ext
35419 cat >>conftest.$ac_ext <<_ACEOF
35420 /* end confdefs.h. */
35421 $ac_includes_default
35423 main ()
35425 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35426 test_array [0] = 0
35429 return 0;
35431 _ACEOF
35432 rm -f conftest.$ac_objext
35433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35434 (eval $ac_compile) 2>conftest.er1
35435 ac_status=$?
35436 grep -v '^ *+' conftest.er1 >conftest.err
35437 rm -f conftest.er1
35438 cat conftest.err >&5
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); } &&
35441 { ac_try='test -z "$ac_c_werror_flag"
35442 || test ! -s conftest.err'
35443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35444 (eval $ac_try) 2>&5
35445 ac_status=$?
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); }; } &&
35448 { ac_try='test -s conftest.$ac_objext'
35449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450 (eval $ac_try) 2>&5
35451 ac_status=$?
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); }; }; then
35454 ac_hi=$ac_mid
35455 else
35456 echo "$as_me: failed program was:" >&5
35457 sed 's/^/| /' conftest.$ac_ext >&5
35459 ac_lo=`expr '(' $ac_mid ')' + 1`
35461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35462 done
35463 case $ac_lo in
35464 ?*) ac_cv_sizeof_int=$ac_lo;;
35465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35466 See \`config.log' for more details." >&5
35467 echo "$as_me: error: cannot compute sizeof (int), 77
35468 See \`config.log' for more details." >&2;}
35469 { (exit 1); exit 1; }; } ;;
35470 esac
35471 else
35472 if test "$cross_compiling" = yes; then
35473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35474 See \`config.log' for more details." >&5
35475 echo "$as_me: error: cannot run test program while cross compiling
35476 See \`config.log' for more details." >&2;}
35477 { (exit 1); exit 1; }; }
35478 else
35479 cat >conftest.$ac_ext <<_ACEOF
35480 /* confdefs.h. */
35481 _ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35485 $ac_includes_default
35486 long longval () { return (long) (sizeof (int)); }
35487 unsigned long ulongval () { return (long) (sizeof (int)); }
35488 #include <stdio.h>
35489 #include <stdlib.h>
35491 main ()
35494 FILE *f = fopen ("conftest.val", "w");
35495 if (! f)
35496 exit (1);
35497 if (((long) (sizeof (int))) < 0)
35499 long i = longval ();
35500 if (i != ((long) (sizeof (int))))
35501 exit (1);
35502 fprintf (f, "%ld\n", i);
35504 else
35506 unsigned long i = ulongval ();
35507 if (i != ((long) (sizeof (int))))
35508 exit (1);
35509 fprintf (f, "%lu\n", i);
35511 exit (ferror (f) || fclose (f) != 0);
35514 return 0;
35516 _ACEOF
35517 rm -f conftest$ac_exeext
35518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35519 (eval $ac_link) 2>&5
35520 ac_status=$?
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524 (eval $ac_try) 2>&5
35525 ac_status=$?
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); }; }; then
35528 ac_cv_sizeof_int=`cat conftest.val`
35529 else
35530 echo "$as_me: program exited with status $ac_status" >&5
35531 echo "$as_me: failed program was:" >&5
35532 sed 's/^/| /' conftest.$ac_ext >&5
35534 ( exit $ac_status )
35535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35536 See \`config.log' for more details." >&5
35537 echo "$as_me: error: cannot compute sizeof (int), 77
35538 See \`config.log' for more details." >&2;}
35539 { (exit 1); exit 1; }; }
35541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35544 rm -f conftest.val
35545 else
35546 ac_cv_sizeof_int=0
35549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35550 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35551 cat >>confdefs.h <<_ACEOF
35552 #define SIZEOF_INT $ac_cv_sizeof_int
35553 _ACEOF
35556 echo "$as_me:$LINENO: checking for long" >&5
35557 echo $ECHO_N "checking for long... $ECHO_C" >&6
35558 if test "${ac_cv_type_long+set}" = set; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561 cat >conftest.$ac_ext <<_ACEOF
35562 /* confdefs.h. */
35563 _ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h. */
35567 $ac_includes_default
35569 main ()
35571 if ((long *) 0)
35572 return 0;
35573 if (sizeof (long))
35574 return 0;
35576 return 0;
35578 _ACEOF
35579 rm -f conftest.$ac_objext
35580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35581 (eval $ac_compile) 2>conftest.er1
35582 ac_status=$?
35583 grep -v '^ *+' conftest.er1 >conftest.err
35584 rm -f conftest.er1
35585 cat conftest.err >&5
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); } &&
35588 { ac_try='test -z "$ac_c_werror_flag"
35589 || test ! -s conftest.err'
35590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591 (eval $ac_try) 2>&5
35592 ac_status=$?
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); }; } &&
35595 { ac_try='test -s conftest.$ac_objext'
35596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597 (eval $ac_try) 2>&5
35598 ac_status=$?
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); }; }; then
35601 ac_cv_type_long=yes
35602 else
35603 echo "$as_me: failed program was:" >&5
35604 sed 's/^/| /' conftest.$ac_ext >&5
35606 ac_cv_type_long=no
35608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35611 echo "${ECHO_T}$ac_cv_type_long" >&6
35613 echo "$as_me:$LINENO: checking size of long" >&5
35614 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35615 if test "${ac_cv_sizeof_long+set}" = set; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35617 else
35618 if test "$ac_cv_type_long" = yes; then
35619 # The cast to unsigned long works around a bug in the HP C Compiler
35620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35622 # This bug is HP SR number 8606223364.
35623 if test "$cross_compiling" = yes; then
35624 # Depending upon the size, compute the lo and hi bounds.
35625 cat >conftest.$ac_ext <<_ACEOF
35626 /* confdefs.h. */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h. */
35631 $ac_includes_default
35633 main ()
35635 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35636 test_array [0] = 0
35639 return 0;
35641 _ACEOF
35642 rm -f conftest.$ac_objext
35643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35644 (eval $ac_compile) 2>conftest.er1
35645 ac_status=$?
35646 grep -v '^ *+' conftest.er1 >conftest.err
35647 rm -f conftest.er1
35648 cat conftest.err >&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); } &&
35651 { ac_try='test -z "$ac_c_werror_flag"
35652 || test ! -s conftest.err'
35653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654 (eval $ac_try) 2>&5
35655 ac_status=$?
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); }; } &&
35658 { ac_try='test -s conftest.$ac_objext'
35659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35660 (eval $ac_try) 2>&5
35661 ac_status=$?
35662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663 (exit $ac_status); }; }; then
35664 ac_lo=0 ac_mid=0
35665 while :; do
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h. */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 $ac_includes_default
35674 main ()
35676 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35677 test_array [0] = 0
35680 return 0;
35682 _ACEOF
35683 rm -f conftest.$ac_objext
35684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35685 (eval $ac_compile) 2>conftest.er1
35686 ac_status=$?
35687 grep -v '^ *+' conftest.er1 >conftest.err
35688 rm -f conftest.er1
35689 cat conftest.err >&5
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); } &&
35692 { ac_try='test -z "$ac_c_werror_flag"
35693 || test ! -s conftest.err'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35696 ac_status=$?
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; } &&
35699 { ac_try='test -s conftest.$ac_objext'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35702 ac_status=$?
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; }; then
35705 ac_hi=$ac_mid; break
35706 else
35707 echo "$as_me: failed program was:" >&5
35708 sed 's/^/| /' conftest.$ac_ext >&5
35710 ac_lo=`expr $ac_mid + 1`
35711 if test $ac_lo -le $ac_mid; then
35712 ac_lo= ac_hi=
35713 break
35715 ac_mid=`expr 2 '*' $ac_mid + 1`
35717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35718 done
35719 else
35720 echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35723 cat >conftest.$ac_ext <<_ACEOF
35724 /* confdefs.h. */
35725 _ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35729 $ac_includes_default
35731 main ()
35733 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
35734 test_array [0] = 0
35737 return 0;
35739 _ACEOF
35740 rm -f conftest.$ac_objext
35741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35742 (eval $ac_compile) 2>conftest.er1
35743 ac_status=$?
35744 grep -v '^ *+' conftest.er1 >conftest.err
35745 rm -f conftest.er1
35746 cat conftest.err >&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); } &&
35749 { ac_try='test -z "$ac_c_werror_flag"
35750 || test ! -s conftest.err'
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35753 ac_status=$?
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; } &&
35756 { ac_try='test -s conftest.$ac_objext'
35757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758 (eval $ac_try) 2>&5
35759 ac_status=$?
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); }; }; then
35762 ac_hi=-1 ac_mid=-1
35763 while :; do
35764 cat >conftest.$ac_ext <<_ACEOF
35765 /* confdefs.h. */
35766 _ACEOF
35767 cat confdefs.h >>conftest.$ac_ext
35768 cat >>conftest.$ac_ext <<_ACEOF
35769 /* end confdefs.h. */
35770 $ac_includes_default
35772 main ()
35774 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
35775 test_array [0] = 0
35778 return 0;
35780 _ACEOF
35781 rm -f conftest.$ac_objext
35782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35783 (eval $ac_compile) 2>conftest.er1
35784 ac_status=$?
35785 grep -v '^ *+' conftest.er1 >conftest.err
35786 rm -f conftest.er1
35787 cat conftest.err >&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try='test -z "$ac_c_werror_flag"
35791 || test ! -s conftest.err'
35792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793 (eval $ac_try) 2>&5
35794 ac_status=$?
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); }; } &&
35797 { ac_try='test -s conftest.$ac_objext'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803 ac_lo=$ac_mid; break
35804 else
35805 echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35808 ac_hi=`expr '(' $ac_mid ')' - 1`
35809 if test $ac_mid -le $ac_hi; then
35810 ac_lo= ac_hi=
35811 break
35813 ac_mid=`expr 2 '*' $ac_mid`
35815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35816 done
35817 else
35818 echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35821 ac_lo= ac_hi=
35823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35826 # Binary search between lo and hi bounds.
35827 while test "x$ac_lo" != "x$ac_hi"; do
35828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35829 cat >conftest.$ac_ext <<_ACEOF
35830 /* confdefs.h. */
35831 _ACEOF
35832 cat confdefs.h >>conftest.$ac_ext
35833 cat >>conftest.$ac_ext <<_ACEOF
35834 /* end confdefs.h. */
35835 $ac_includes_default
35837 main ()
35839 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35840 test_array [0] = 0
35843 return 0;
35845 _ACEOF
35846 rm -f conftest.$ac_objext
35847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35848 (eval $ac_compile) 2>conftest.er1
35849 ac_status=$?
35850 grep -v '^ *+' conftest.er1 >conftest.err
35851 rm -f conftest.er1
35852 cat conftest.err >&5
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
35855 { ac_try='test -z "$ac_c_werror_flag"
35856 || test ! -s conftest.err'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; } &&
35862 { ac_try='test -s conftest.$ac_objext'
35863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35864 (eval $ac_try) 2>&5
35865 ac_status=$?
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); }; }; then
35868 ac_hi=$ac_mid
35869 else
35870 echo "$as_me: failed program was:" >&5
35871 sed 's/^/| /' conftest.$ac_ext >&5
35873 ac_lo=`expr '(' $ac_mid ')' + 1`
35875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35876 done
35877 case $ac_lo in
35878 ?*) ac_cv_sizeof_long=$ac_lo;;
35879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35880 See \`config.log' for more details." >&5
35881 echo "$as_me: error: cannot compute sizeof (long), 77
35882 See \`config.log' for more details." >&2;}
35883 { (exit 1); exit 1; }; } ;;
35884 esac
35885 else
35886 if test "$cross_compiling" = yes; then
35887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35888 See \`config.log' for more details." >&5
35889 echo "$as_me: error: cannot run test program while cross compiling
35890 See \`config.log' for more details." >&2;}
35891 { (exit 1); exit 1; }; }
35892 else
35893 cat >conftest.$ac_ext <<_ACEOF
35894 /* confdefs.h. */
35895 _ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h. */
35899 $ac_includes_default
35900 long longval () { return (long) (sizeof (long)); }
35901 unsigned long ulongval () { return (long) (sizeof (long)); }
35902 #include <stdio.h>
35903 #include <stdlib.h>
35905 main ()
35908 FILE *f = fopen ("conftest.val", "w");
35909 if (! f)
35910 exit (1);
35911 if (((long) (sizeof (long))) < 0)
35913 long i = longval ();
35914 if (i != ((long) (sizeof (long))))
35915 exit (1);
35916 fprintf (f, "%ld\n", i);
35918 else
35920 unsigned long i = ulongval ();
35921 if (i != ((long) (sizeof (long))))
35922 exit (1);
35923 fprintf (f, "%lu\n", i);
35925 exit (ferror (f) || fclose (f) != 0);
35928 return 0;
35930 _ACEOF
35931 rm -f conftest$ac_exeext
35932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35933 (eval $ac_link) 2>&5
35934 ac_status=$?
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35939 ac_status=$?
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; }; then
35942 ac_cv_sizeof_long=`cat conftest.val`
35943 else
35944 echo "$as_me: program exited with status $ac_status" >&5
35945 echo "$as_me: failed program was:" >&5
35946 sed 's/^/| /' conftest.$ac_ext >&5
35948 ( exit $ac_status )
35949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35950 See \`config.log' for more details." >&5
35951 echo "$as_me: error: cannot compute sizeof (long), 77
35952 See \`config.log' for more details." >&2;}
35953 { (exit 1); exit 1; }; }
35955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35958 rm -f conftest.val
35959 else
35960 ac_cv_sizeof_long=0
35963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35964 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
35965 cat >>confdefs.h <<_ACEOF
35966 #define SIZEOF_LONG $ac_cv_sizeof_long
35967 _ACEOF
35971 echo "$as_me:$LINENO: checking for s_char" >&5
35972 echo $ECHO_N "checking for s_char... $ECHO_C" >&6
35973 if test "${ac_cv_type_s_char+set}" = set; then
35974 echo $ECHO_N "(cached) $ECHO_C" >&6
35975 else
35976 cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h. */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35982 $ac_includes_default
35984 main ()
35986 if ((s_char *) 0)
35987 return 0;
35988 if (sizeof (s_char))
35989 return 0;
35991 return 0;
35993 _ACEOF
35994 rm -f conftest.$ac_objext
35995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996 (eval $ac_compile) 2>conftest.er1
35997 ac_status=$?
35998 grep -v '^ *+' conftest.er1 >conftest.err
35999 rm -f conftest.er1
36000 cat conftest.err >&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } &&
36003 { ac_try='test -z "$ac_c_werror_flag"
36004 || test ! -s conftest.err'
36005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006 (eval $ac_try) 2>&5
36007 ac_status=$?
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); }; } &&
36010 { ac_try='test -s conftest.$ac_objext'
36011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012 (eval $ac_try) 2>&5
36013 ac_status=$?
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; }; then
36016 ac_cv_type_s_char=yes
36017 else
36018 echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36021 ac_cv_type_s_char=no
36023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36025 echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
36026 echo "${ECHO_T}$ac_cv_type_s_char" >&6
36027 if test $ac_cv_type_s_char = yes; then
36029 cat >>confdefs.h <<_ACEOF
36030 #define HAVE_S_CHAR 1
36031 _ACEOF
36036 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
36037 *yes)
36038 # We have a typedef for s_char. Might as well believe it...
36040 no0no)
36041 # We have signed chars, can't say 'signed char', no s_char typedef.
36043 cat >>confdefs.h <<\_ACEOF
36044 #define NEED_S_CHAR_TYPEDEF 1
36045 _ACEOF
36048 no1no)
36049 # We have signed chars, can say 'signed char', no s_char typedef.
36050 cat >>confdefs.h <<\_ACEOF
36051 #define NEED_S_CHAR_TYPEDEF 1
36052 _ACEOF
36055 yes0no)
36056 # We have unsigned chars, can't say 'signed char', no s_char typedef.
36057 { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
36058 echo "$as_me: error: No way to specify a signed character!" >&2;}
36059 { (exit 1); exit 1; }; }
36061 yes1no)
36062 # We have unsigned chars, can say 'signed char', no s_char typedef.
36063 cat >>confdefs.h <<\_ACEOF
36064 #define NEED_S_CHAR_TYPEDEF 1
36065 _ACEOF
36068 esac
36069 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36070 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
36071 if test "${ac_cv_type_uid_t+set}" = set; then
36072 echo $ECHO_N "(cached) $ECHO_C" >&6
36073 else
36074 cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h. */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 #include <sys/types.h>
36082 _ACEOF
36083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36084 $EGREP "uid_t" >/dev/null 2>&1; then
36085 ac_cv_type_uid_t=yes
36086 else
36087 ac_cv_type_uid_t=no
36089 rm -f conftest*
36092 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36093 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
36094 if test $ac_cv_type_uid_t = no; then
36096 cat >>confdefs.h <<\_ACEOF
36097 #define uid_t int
36098 _ACEOF
36101 cat >>confdefs.h <<\_ACEOF
36102 #define gid_t int
36103 _ACEOF
36108 case "$host" in
36109 *-*-aix[456]*)
36110 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
36111 # (returning ENOSYS). I didn't check 4.2. If, in the future,
36112 # IBM pulls its thumbs out long enough to implement clock_settime,
36113 # this conditional will need to change. Maybe use AC_TRY_RUN
36114 # instead to try to set the time to itself and check errno.
36118 for ac_func in clock_gettime clock_settime
36120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36121 echo "$as_me:$LINENO: checking for $ac_func" >&5
36122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36123 if eval "test \"\${$as_ac_var+set}\" = set"; then
36124 echo $ECHO_N "(cached) $ECHO_C" >&6
36125 else
36126 cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h. */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36134 #define $ac_func innocuous_$ac_func
36136 /* System header to define __stub macros and hopefully few prototypes,
36137 which can conflict with char $ac_func (); below.
36138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36139 <limits.h> exists even on freestanding compilers. */
36141 #ifdef __STDC__
36142 # include <limits.h>
36143 #else
36144 # include <assert.h>
36145 #endif
36147 #undef $ac_func
36149 /* Override any gcc2 internal prototype to avoid an error. */
36150 #ifdef __cplusplus
36151 extern "C"
36153 #endif
36154 /* We use char because int might match the return type of a gcc2
36155 builtin and then its argument prototype would still apply. */
36156 char $ac_func ();
36157 /* The GNU C library defines this for functions which it implements
36158 to always fail with ENOSYS. Some functions are actually named
36159 something starting with __ and the normal name is an alias. */
36160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36161 choke me
36162 #else
36163 char (*f) () = $ac_func;
36164 #endif
36165 #ifdef __cplusplus
36167 #endif
36170 main ()
36172 return f != $ac_func;
36174 return 0;
36176 _ACEOF
36177 rm -f conftest.$ac_objext conftest$ac_exeext
36178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36179 (eval $ac_link) 2>conftest.er1
36180 ac_status=$?
36181 grep -v '^ *+' conftest.er1 >conftest.err
36182 rm -f conftest.er1
36183 cat conftest.err >&5
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); } &&
36186 { ac_try='test -z "$ac_c_werror_flag"
36187 || test ! -s conftest.err'
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest$ac_exeext'
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199 eval "$as_ac_var=yes"
36200 else
36201 echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36204 eval "$as_ac_var=no"
36206 rm -f conftest.err conftest.$ac_objext \
36207 conftest$ac_exeext conftest.$ac_ext
36209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36211 if test `eval echo '${'$as_ac_var'}'` = yes; then
36212 cat >>confdefs.h <<_ACEOF
36213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36214 _ACEOF
36217 done
36220 esac
36222 for ac_func in daemon
36224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36225 echo "$as_me:$LINENO: checking for $ac_func" >&5
36226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36227 if eval "test \"\${$as_ac_var+set}\" = set"; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36230 cat >conftest.$ac_ext <<_ACEOF
36231 /* confdefs.h. */
36232 _ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36238 #define $ac_func innocuous_$ac_func
36240 /* System header to define __stub macros and hopefully few prototypes,
36241 which can conflict with char $ac_func (); below.
36242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36243 <limits.h> exists even on freestanding compilers. */
36245 #ifdef __STDC__
36246 # include <limits.h>
36247 #else
36248 # include <assert.h>
36249 #endif
36251 #undef $ac_func
36253 /* Override any gcc2 internal prototype to avoid an error. */
36254 #ifdef __cplusplus
36255 extern "C"
36257 #endif
36258 /* We use char because int might match the return type of a gcc2
36259 builtin and then its argument prototype would still apply. */
36260 char $ac_func ();
36261 /* The GNU C library defines this for functions which it implements
36262 to always fail with ENOSYS. Some functions are actually named
36263 something starting with __ and the normal name is an alias. */
36264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36265 choke me
36266 #else
36267 char (*f) () = $ac_func;
36268 #endif
36269 #ifdef __cplusplus
36271 #endif
36274 main ()
36276 return f != $ac_func;
36278 return 0;
36280 _ACEOF
36281 rm -f conftest.$ac_objext conftest$ac_exeext
36282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36283 (eval $ac_link) 2>conftest.er1
36284 ac_status=$?
36285 grep -v '^ *+' conftest.er1 >conftest.err
36286 rm -f conftest.er1
36287 cat conftest.err >&5
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); } &&
36290 { ac_try='test -z "$ac_c_werror_flag"
36291 || test ! -s conftest.err'
36292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293 (eval $ac_try) 2>&5
36294 ac_status=$?
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); }; } &&
36297 { ac_try='test -s conftest$ac_exeext'
36298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299 (eval $ac_try) 2>&5
36300 ac_status=$?
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); }; }; then
36303 eval "$as_ac_var=yes"
36304 else
36305 echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36308 eval "$as_ac_var=no"
36310 rm -f conftest.err conftest.$ac_objext \
36311 conftest$ac_exeext conftest.$ac_ext
36313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36315 if test `eval echo '${'$as_ac_var'}'` = yes; then
36316 cat >>confdefs.h <<_ACEOF
36317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36318 _ACEOF
36321 done
36324 for ac_func in finite
36326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36327 echo "$as_me:$LINENO: checking for $ac_func" >&5
36328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36329 if eval "test \"\${$as_ac_var+set}\" = set"; then
36330 echo $ECHO_N "(cached) $ECHO_C" >&6
36331 else
36332 cat >conftest.$ac_ext <<_ACEOF
36333 /* confdefs.h. */
36334 _ACEOF
36335 cat confdefs.h >>conftest.$ac_ext
36336 cat >>conftest.$ac_ext <<_ACEOF
36337 /* end confdefs.h. */
36338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36340 #define $ac_func innocuous_$ac_func
36342 /* System header to define __stub macros and hopefully few prototypes,
36343 which can conflict with char $ac_func (); below.
36344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36345 <limits.h> exists even on freestanding compilers. */
36347 #ifdef __STDC__
36348 # include <limits.h>
36349 #else
36350 # include <assert.h>
36351 #endif
36353 #undef $ac_func
36355 /* Override any gcc2 internal prototype to avoid an error. */
36356 #ifdef __cplusplus
36357 extern "C"
36359 #endif
36360 /* We use char because int might match the return type of a gcc2
36361 builtin and then its argument prototype would still apply. */
36362 char $ac_func ();
36363 /* The GNU C library defines this for functions which it implements
36364 to always fail with ENOSYS. Some functions are actually named
36365 something starting with __ and the normal name is an alias. */
36366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36367 choke me
36368 #else
36369 char (*f) () = $ac_func;
36370 #endif
36371 #ifdef __cplusplus
36373 #endif
36376 main ()
36378 return f != $ac_func;
36380 return 0;
36382 _ACEOF
36383 rm -f conftest.$ac_objext conftest$ac_exeext
36384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36385 (eval $ac_link) 2>conftest.er1
36386 ac_status=$?
36387 grep -v '^ *+' conftest.er1 >conftest.err
36388 rm -f conftest.er1
36389 cat conftest.err >&5
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); } &&
36392 { ac_try='test -z "$ac_c_werror_flag"
36393 || test ! -s conftest.err'
36394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36395 (eval $ac_try) 2>&5
36396 ac_status=$?
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); }; } &&
36399 { ac_try='test -s conftest$ac_exeext'
36400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36401 (eval $ac_try) 2>&5
36402 ac_status=$?
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); }; }; then
36405 eval "$as_ac_var=yes"
36406 else
36407 echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36410 eval "$as_ac_var=no"
36412 rm -f conftest.err conftest.$ac_objext \
36413 conftest$ac_exeext conftest.$ac_ext
36415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36417 if test `eval echo '${'$as_ac_var'}'` = yes; then
36418 cat >>confdefs.h <<_ACEOF
36419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36420 _ACEOF
36422 else
36424 for ac_func in isfinite
36426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36427 echo "$as_me:$LINENO: checking for $ac_func" >&5
36428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36429 if eval "test \"\${$as_ac_var+set}\" = set"; then
36430 echo $ECHO_N "(cached) $ECHO_C" >&6
36431 else
36432 cat >conftest.$ac_ext <<_ACEOF
36433 /* confdefs.h. */
36434 _ACEOF
36435 cat confdefs.h >>conftest.$ac_ext
36436 cat >>conftest.$ac_ext <<_ACEOF
36437 /* end confdefs.h. */
36438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36440 #define $ac_func innocuous_$ac_func
36442 /* System header to define __stub macros and hopefully few prototypes,
36443 which can conflict with char $ac_func (); below.
36444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36445 <limits.h> exists even on freestanding compilers. */
36447 #ifdef __STDC__
36448 # include <limits.h>
36449 #else
36450 # include <assert.h>
36451 #endif
36453 #undef $ac_func
36455 /* Override any gcc2 internal prototype to avoid an error. */
36456 #ifdef __cplusplus
36457 extern "C"
36459 #endif
36460 /* We use char because int might match the return type of a gcc2
36461 builtin and then its argument prototype would still apply. */
36462 char $ac_func ();
36463 /* The GNU C library defines this for functions which it implements
36464 to always fail with ENOSYS. Some functions are actually named
36465 something starting with __ and the normal name is an alias. */
36466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36467 choke me
36468 #else
36469 char (*f) () = $ac_func;
36470 #endif
36471 #ifdef __cplusplus
36473 #endif
36476 main ()
36478 return f != $ac_func;
36480 return 0;
36482 _ACEOF
36483 rm -f conftest.$ac_objext conftest$ac_exeext
36484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36485 (eval $ac_link) 2>conftest.er1
36486 ac_status=$?
36487 grep -v '^ *+' conftest.er1 >conftest.err
36488 rm -f conftest.er1
36489 cat conftest.err >&5
36490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36491 (exit $ac_status); } &&
36492 { ac_try='test -z "$ac_c_werror_flag"
36493 || test ! -s conftest.err'
36494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36495 (eval $ac_try) 2>&5
36496 ac_status=$?
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); }; } &&
36499 { ac_try='test -s conftest$ac_exeext'
36500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501 (eval $ac_try) 2>&5
36502 ac_status=$?
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); }; }; then
36505 eval "$as_ac_var=yes"
36506 else
36507 echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36510 eval "$as_ac_var=no"
36512 rm -f conftest.err conftest.$ac_objext \
36513 conftest$ac_exeext conftest.$ac_ext
36515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36517 if test `eval echo '${'$as_ac_var'}'` = yes; then
36518 cat >>confdefs.h <<_ACEOF
36519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36520 _ACEOF
36522 else
36523 echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
36524 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
36525 _libs=$LIBS
36526 LIBS="$LIBS -lm"
36527 cat >conftest.$ac_ext <<_ACEOF
36528 /* confdefs.h. */
36529 _ACEOF
36530 cat confdefs.h >>conftest.$ac_ext
36531 cat >>conftest.$ac_ext <<_ACEOF
36532 /* end confdefs.h. */
36533 #include <math.h>
36535 main ()
36537 float f = 0.0; isfinite(f)
36539 return 0;
36541 _ACEOF
36542 rm -f conftest.$ac_objext conftest$ac_exeext
36543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36544 (eval $ac_link) 2>conftest.er1
36545 ac_status=$?
36546 grep -v '^ *+' conftest.er1 >conftest.err
36547 rm -f conftest.er1
36548 cat conftest.err >&5
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); } &&
36551 { ac_try='test -z "$ac_c_werror_flag"
36552 || test ! -s conftest.err'
36553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554 (eval $ac_try) 2>&5
36555 ac_status=$?
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); }; } &&
36558 { ac_try='test -s conftest$ac_exeext'
36559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36560 (eval $ac_try) 2>&5
36561 ac_status=$?
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); }; }; then
36564 echo "$as_me:$LINENO: result: yes" >&5
36565 echo "${ECHO_T}yes" >&6
36566 cat >>confdefs.h <<\_ACEOF
36567 #define HAVE_ISFINITE 1
36568 _ACEOF
36570 else
36571 echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36574 echo "$as_me:$LINENO: result: no" >&5
36575 echo "${ECHO_T}no" >&6
36577 rm -f conftest.err conftest.$ac_objext \
36578 conftest$ac_exeext conftest.$ac_ext
36579 LIBS=$_libs
36581 done
36584 done
36589 for ac_func in getbootfile getclock getdtablesize
36591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36592 echo "$as_me:$LINENO: checking for $ac_func" >&5
36593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36594 if eval "test \"\${$as_ac_var+set}\" = set"; then
36595 echo $ECHO_N "(cached) $ECHO_C" >&6
36596 else
36597 cat >conftest.$ac_ext <<_ACEOF
36598 /* confdefs.h. */
36599 _ACEOF
36600 cat confdefs.h >>conftest.$ac_ext
36601 cat >>conftest.$ac_ext <<_ACEOF
36602 /* end confdefs.h. */
36603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36605 #define $ac_func innocuous_$ac_func
36607 /* System header to define __stub macros and hopefully few prototypes,
36608 which can conflict with char $ac_func (); below.
36609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36610 <limits.h> exists even on freestanding compilers. */
36612 #ifdef __STDC__
36613 # include <limits.h>
36614 #else
36615 # include <assert.h>
36616 #endif
36618 #undef $ac_func
36620 /* Override any gcc2 internal prototype to avoid an error. */
36621 #ifdef __cplusplus
36622 extern "C"
36624 #endif
36625 /* We use char because int might match the return type of a gcc2
36626 builtin and then its argument prototype would still apply. */
36627 char $ac_func ();
36628 /* The GNU C library defines this for functions which it implements
36629 to always fail with ENOSYS. Some functions are actually named
36630 something starting with __ and the normal name is an alias. */
36631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36632 choke me
36633 #else
36634 char (*f) () = $ac_func;
36635 #endif
36636 #ifdef __cplusplus
36638 #endif
36641 main ()
36643 return f != $ac_func;
36645 return 0;
36647 _ACEOF
36648 rm -f conftest.$ac_objext conftest$ac_exeext
36649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36650 (eval $ac_link) 2>conftest.er1
36651 ac_status=$?
36652 grep -v '^ *+' conftest.er1 >conftest.err
36653 rm -f conftest.er1
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } &&
36657 { ac_try='test -z "$ac_c_werror_flag"
36658 || test ! -s conftest.err'
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; } &&
36664 { ac_try='test -s conftest$ac_exeext'
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36667 ac_status=$?
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; }; then
36670 eval "$as_ac_var=yes"
36671 else
36672 echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36675 eval "$as_ac_var=no"
36677 rm -f conftest.err conftest.$ac_objext \
36678 conftest$ac_exeext conftest.$ac_ext
36680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36682 if test `eval echo '${'$as_ac_var'}'` = yes; then
36683 cat >>confdefs.h <<_ACEOF
36684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36685 _ACEOF
36688 done
36691 # Check whether --enable-getifaddrs or --disable-getifaddrs was given.
36692 if test "${enable_getifaddrs+set}" = set; then
36693 enableval="$enable_getifaddrs"
36694 want_getifaddrs="$enableval"
36695 else
36696 want_getifaddrs="yes"
36699 case $want_getifaddrs in
36700 yes|glibc)
36702 # Do we have getifaddrs() ?
36704 case $host in
36705 *-*linux*)
36706 # Some recent versions of glibc support getifaddrs() which does not
36707 # provide AF_INET6 addresses while the function provided by the USAGI
36708 # project handles the AF_INET6 case correctly. We need to avoid
36709 # using the former but prefer the latter unless overridden by
36710 # --enable-getifaddrs=glibc.
36711 if test $want_getifaddrs = glibc
36712 then
36714 for ac_func in getifaddrs
36716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36717 echo "$as_me:$LINENO: checking for $ac_func" >&5
36718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36719 if eval "test \"\${$as_ac_var+set}\" = set"; then
36720 echo $ECHO_N "(cached) $ECHO_C" >&6
36721 else
36722 cat >conftest.$ac_ext <<_ACEOF
36723 /* confdefs.h. */
36724 _ACEOF
36725 cat confdefs.h >>conftest.$ac_ext
36726 cat >>conftest.$ac_ext <<_ACEOF
36727 /* end confdefs.h. */
36728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36730 #define $ac_func innocuous_$ac_func
36732 /* System header to define __stub macros and hopefully few prototypes,
36733 which can conflict with char $ac_func (); below.
36734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36735 <limits.h> exists even on freestanding compilers. */
36737 #ifdef __STDC__
36738 # include <limits.h>
36739 #else
36740 # include <assert.h>
36741 #endif
36743 #undef $ac_func
36745 /* Override any gcc2 internal prototype to avoid an error. */
36746 #ifdef __cplusplus
36747 extern "C"
36749 #endif
36750 /* We use char because int might match the return type of a gcc2
36751 builtin and then its argument prototype would still apply. */
36752 char $ac_func ();
36753 /* The GNU C library defines this for functions which it implements
36754 to always fail with ENOSYS. Some functions are actually named
36755 something starting with __ and the normal name is an alias. */
36756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36757 choke me
36758 #else
36759 char (*f) () = $ac_func;
36760 #endif
36761 #ifdef __cplusplus
36763 #endif
36766 main ()
36768 return f != $ac_func;
36770 return 0;
36772 _ACEOF
36773 rm -f conftest.$ac_objext conftest$ac_exeext
36774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36775 (eval $ac_link) 2>conftest.er1
36776 ac_status=$?
36777 grep -v '^ *+' conftest.er1 >conftest.err
36778 rm -f conftest.er1
36779 cat conftest.err >&5
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); } &&
36782 { ac_try='test -z "$ac_c_werror_flag"
36783 || test ! -s conftest.err'
36784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36785 (eval $ac_try) 2>&5
36786 ac_status=$?
36787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); }; } &&
36789 { ac_try='test -s conftest$ac_exeext'
36790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36791 (eval $ac_try) 2>&5
36792 ac_status=$?
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); }; }; then
36795 eval "$as_ac_var=yes"
36796 else
36797 echo "$as_me: failed program was:" >&5
36798 sed 's/^/| /' conftest.$ac_ext >&5
36800 eval "$as_ac_var=no"
36802 rm -f conftest.err conftest.$ac_objext \
36803 conftest$ac_exeext conftest.$ac_ext
36805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36807 if test `eval echo '${'$as_ac_var'}'` = yes; then
36808 cat >>confdefs.h <<_ACEOF
36809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36810 _ACEOF
36813 done
36815 else
36816 save_LIBS="$LIBS"
36817 LIBS="-L/usr/local/v6/lib $LIBS"
36818 echo "$as_me:$LINENO: checking for getifaddrs in -linet6" >&5
36819 echo $ECHO_N "checking for getifaddrs in -linet6... $ECHO_C" >&6
36820 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then
36821 echo $ECHO_N "(cached) $ECHO_C" >&6
36822 else
36823 ac_check_lib_save_LIBS=$LIBS
36824 LIBS="-linet6 $LIBS"
36825 cat >conftest.$ac_ext <<_ACEOF
36826 /* confdefs.h. */
36827 _ACEOF
36828 cat confdefs.h >>conftest.$ac_ext
36829 cat >>conftest.$ac_ext <<_ACEOF
36830 /* end confdefs.h. */
36832 /* Override any gcc2 internal prototype to avoid an error. */
36833 #ifdef __cplusplus
36834 extern "C"
36835 #endif
36836 /* We use char because int might match the return type of a gcc2
36837 builtin and then its argument prototype would still apply. */
36838 char getifaddrs ();
36840 main ()
36842 getifaddrs ();
36844 return 0;
36846 _ACEOF
36847 rm -f conftest.$ac_objext conftest$ac_exeext
36848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36849 (eval $ac_link) 2>conftest.er1
36850 ac_status=$?
36851 grep -v '^ *+' conftest.er1 >conftest.err
36852 rm -f conftest.er1
36853 cat conftest.err >&5
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } &&
36856 { ac_try='test -z "$ac_c_werror_flag"
36857 || test ! -s conftest.err'
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36860 ac_status=$?
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; } &&
36863 { ac_try='test -s conftest$ac_exeext'
36864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36865 (eval $ac_try) 2>&5
36866 ac_status=$?
36867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 (exit $ac_status); }; }; then
36869 ac_cv_lib_inet6_getifaddrs=yes
36870 else
36871 echo "$as_me: failed program was:" >&5
36872 sed 's/^/| /' conftest.$ac_ext >&5
36874 ac_cv_lib_inet6_getifaddrs=no
36876 rm -f conftest.err conftest.$ac_objext \
36877 conftest$ac_exeext conftest.$ac_ext
36878 LIBS=$ac_check_lib_save_LIBS
36880 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getifaddrs" >&5
36881 echo "${ECHO_T}$ac_cv_lib_inet6_getifaddrs" >&6
36882 if test $ac_cv_lib_inet6_getifaddrs = yes; then
36883 LIBS="$LIBS -linet6"
36884 cat >>confdefs.h <<\_ACEOF
36885 #define HAVE_GETIFADDRS 1
36886 _ACEOF
36888 else
36889 LIBS=${save_LIBS}
36896 for ac_func in getifaddrs
36898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36899 echo "$as_me:$LINENO: checking for $ac_func" >&5
36900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36901 if eval "test \"\${$as_ac_var+set}\" = set"; then
36902 echo $ECHO_N "(cached) $ECHO_C" >&6
36903 else
36904 cat >conftest.$ac_ext <<_ACEOF
36905 /* confdefs.h. */
36906 _ACEOF
36907 cat confdefs.h >>conftest.$ac_ext
36908 cat >>conftest.$ac_ext <<_ACEOF
36909 /* end confdefs.h. */
36910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36912 #define $ac_func innocuous_$ac_func
36914 /* System header to define __stub macros and hopefully few prototypes,
36915 which can conflict with char $ac_func (); below.
36916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36917 <limits.h> exists even on freestanding compilers. */
36919 #ifdef __STDC__
36920 # include <limits.h>
36921 #else
36922 # include <assert.h>
36923 #endif
36925 #undef $ac_func
36927 /* Override any gcc2 internal prototype to avoid an error. */
36928 #ifdef __cplusplus
36929 extern "C"
36931 #endif
36932 /* We use char because int might match the return type of a gcc2
36933 builtin and then its argument prototype would still apply. */
36934 char $ac_func ();
36935 /* The GNU C library defines this for functions which it implements
36936 to always fail with ENOSYS. Some functions are actually named
36937 something starting with __ and the normal name is an alias. */
36938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36939 choke me
36940 #else
36941 char (*f) () = $ac_func;
36942 #endif
36943 #ifdef __cplusplus
36945 #endif
36948 main ()
36950 return f != $ac_func;
36952 return 0;
36954 _ACEOF
36955 rm -f conftest.$ac_objext conftest$ac_exeext
36956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36957 (eval $ac_link) 2>conftest.er1
36958 ac_status=$?
36959 grep -v '^ *+' conftest.er1 >conftest.err
36960 rm -f conftest.er1
36961 cat conftest.err >&5
36962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963 (exit $ac_status); } &&
36964 { ac_try='test -z "$ac_c_werror_flag"
36965 || test ! -s conftest.err'
36966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967 (eval $ac_try) 2>&5
36968 ac_status=$?
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); }; } &&
36971 { ac_try='test -s conftest$ac_exeext'
36972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36973 (eval $ac_try) 2>&5
36974 ac_status=$?
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); }; }; then
36977 eval "$as_ac_var=yes"
36978 else
36979 echo "$as_me: failed program was:" >&5
36980 sed 's/^/| /' conftest.$ac_ext >&5
36982 eval "$as_ac_var=no"
36984 rm -f conftest.err conftest.$ac_objext \
36985 conftest$ac_exeext conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36989 if test `eval echo '${'$as_ac_var'}'` = yes; then
36990 cat >>confdefs.h <<_ACEOF
36991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36992 _ACEOF
36995 done
36998 esac
37002 esac
37004 echo "$as_me:$LINENO: checking type of socklen arg for getsockname()" >&5
37005 echo $ECHO_N "checking type of socklen arg for getsockname()... $ECHO_C" >&6
37006 if test "${ac_cv_func_getsockname_arg2+set}" = set; then
37007 echo $ECHO_N "(cached) $ECHO_C" >&6
37008 else
37009 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then
37010 echo $ECHO_N "(cached) $ECHO_C" >&6
37011 else
37012 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
37013 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
37014 cat >conftest.$ac_ext <<_ACEOF
37015 /* confdefs.h. */
37016 _ACEOF
37017 cat confdefs.h >>conftest.$ac_ext
37018 cat >>conftest.$ac_ext <<_ACEOF
37019 /* end confdefs.h. */
37020 #ifdef HAVE_SYS_TYPES_H
37021 #include <sys/types.h>
37022 #endif
37023 #ifdef HAVE_SYS_SOCKET_H
37024 #include <sys/socket.h>
37025 #endif
37026 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
37028 main ()
37032 return 0;
37034 _ACEOF
37035 rm -f conftest.$ac_objext
37036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37037 (eval $ac_compile) 2>conftest.er1
37038 ac_status=$?
37039 grep -v '^ *+' conftest.er1 >conftest.err
37040 rm -f conftest.er1
37041 cat conftest.err >&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } &&
37044 { ac_try='test -z "$ac_c_werror_flag"
37045 || test ! -s conftest.err'
37046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047 (eval $ac_try) 2>&5
37048 ac_status=$?
37049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050 (exit $ac_status); }; } &&
37051 { ac_try='test -s conftest.$ac_objext'
37052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053 (eval $ac_try) 2>&5
37054 ac_status=$?
37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); }; }; then
37057 ac_not_found=no ; break 2
37058 else
37059 echo "$as_me: failed program was:" >&5
37060 sed 's/^/| /' conftest.$ac_ext >&5
37062 ac_not_found=yes
37064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37065 done
37066 done
37071 if test "$ac_not_found" = yes; then
37072 ac_cv_func_getsockname_socklen_type='socklen_t'
37074 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_socklen_type" >&5
37075 echo "${ECHO_T}$ac_cv_func_getsockname_socklen_type" >&6
37077 cat >>confdefs.h <<_ACEOF
37078 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
37079 _ACEOF
37083 for ac_func in getrusage
37085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37086 echo "$as_me:$LINENO: checking for $ac_func" >&5
37087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37088 if eval "test \"\${$as_ac_var+set}\" = set"; then
37089 echo $ECHO_N "(cached) $ECHO_C" >&6
37090 else
37091 cat >conftest.$ac_ext <<_ACEOF
37092 /* confdefs.h. */
37093 _ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h. */
37097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37099 #define $ac_func innocuous_$ac_func
37101 /* System header to define __stub macros and hopefully few prototypes,
37102 which can conflict with char $ac_func (); below.
37103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37104 <limits.h> exists even on freestanding compilers. */
37106 #ifdef __STDC__
37107 # include <limits.h>
37108 #else
37109 # include <assert.h>
37110 #endif
37112 #undef $ac_func
37114 /* Override any gcc2 internal prototype to avoid an error. */
37115 #ifdef __cplusplus
37116 extern "C"
37118 #endif
37119 /* We use char because int might match the return type of a gcc2
37120 builtin and then its argument prototype would still apply. */
37121 char $ac_func ();
37122 /* The GNU C library defines this for functions which it implements
37123 to always fail with ENOSYS. Some functions are actually named
37124 something starting with __ and the normal name is an alias. */
37125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37126 choke me
37127 #else
37128 char (*f) () = $ac_func;
37129 #endif
37130 #ifdef __cplusplus
37132 #endif
37135 main ()
37137 return f != $ac_func;
37139 return 0;
37141 _ACEOF
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37144 (eval $ac_link) 2>conftest.er1
37145 ac_status=$?
37146 grep -v '^ *+' conftest.er1 >conftest.err
37147 rm -f conftest.er1
37148 cat conftest.err >&5
37149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150 (exit $ac_status); } &&
37151 { ac_try='test -z "$ac_c_werror_flag"
37152 || test ! -s conftest.err'
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; } &&
37158 { ac_try='test -s conftest$ac_exeext'
37159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160 (eval $ac_try) 2>&5
37161 ac_status=$?
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); }; }; then
37164 eval "$as_ac_var=yes"
37165 else
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37169 eval "$as_ac_var=no"
37171 rm -f conftest.err conftest.$ac_objext \
37172 conftest$ac_exeext conftest.$ac_ext
37174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37176 if test `eval echo '${'$as_ac_var'}'` = yes; then
37177 cat >>confdefs.h <<_ACEOF
37178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37179 _ACEOF
37182 done
37184 echo "$as_me:$LINENO: checking for gettimeofday" >&5
37185 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
37186 if test "${ac_cv_func_gettimeofday+set}" = set; then
37187 echo $ECHO_N "(cached) $ECHO_C" >&6
37188 else
37189 cat >conftest.$ac_ext <<_ACEOF
37190 /* confdefs.h. */
37191 _ACEOF
37192 cat confdefs.h >>conftest.$ac_ext
37193 cat >>conftest.$ac_ext <<_ACEOF
37194 /* end confdefs.h. */
37195 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
37196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37197 #define gettimeofday innocuous_gettimeofday
37199 /* System header to define __stub macros and hopefully few prototypes,
37200 which can conflict with char gettimeofday (); below.
37201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37202 <limits.h> exists even on freestanding compilers. */
37204 #ifdef __STDC__
37205 # include <limits.h>
37206 #else
37207 # include <assert.h>
37208 #endif
37210 #undef gettimeofday
37212 /* Override any gcc2 internal prototype to avoid an error. */
37213 #ifdef __cplusplus
37214 extern "C"
37216 #endif
37217 /* We use char because int might match the return type of a gcc2
37218 builtin and then its argument prototype would still apply. */
37219 char gettimeofday ();
37220 /* The GNU C library defines this for functions which it implements
37221 to always fail with ENOSYS. Some functions are actually named
37222 something starting with __ and the normal name is an alias. */
37223 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
37224 choke me
37225 #else
37226 char (*f) () = gettimeofday;
37227 #endif
37228 #ifdef __cplusplus
37230 #endif
37233 main ()
37235 return f != gettimeofday;
37237 return 0;
37239 _ACEOF
37240 rm -f conftest.$ac_objext conftest$ac_exeext
37241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37242 (eval $ac_link) 2>conftest.er1
37243 ac_status=$?
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } &&
37249 { ac_try='test -z "$ac_c_werror_flag"
37250 || test ! -s conftest.err'
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; } &&
37256 { ac_try='test -s conftest$ac_exeext'
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; }; then
37262 ac_cv_func_gettimeofday=yes
37263 else
37264 echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37267 ac_cv_func_gettimeofday=no
37269 rm -f conftest.err conftest.$ac_objext \
37270 conftest$ac_exeext conftest.$ac_ext
37272 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
37273 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
37274 if test $ac_cv_func_gettimeofday = yes; then
37276 else
37278 case "$host" in
37279 *-*-mpeix*) ac_cv_func_gettimeofday=yes
37281 esac
37284 case "$host" in
37285 *-pc-cygwin*)
37288 for ac_func in getuid
37290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37291 echo "$as_me:$LINENO: checking for $ac_func" >&5
37292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37293 if eval "test \"\${$as_ac_var+set}\" = set"; then
37294 echo $ECHO_N "(cached) $ECHO_C" >&6
37295 else
37296 cat >conftest.$ac_ext <<_ACEOF
37297 /* confdefs.h. */
37298 _ACEOF
37299 cat confdefs.h >>conftest.$ac_ext
37300 cat >>conftest.$ac_ext <<_ACEOF
37301 /* end confdefs.h. */
37302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37304 #define $ac_func innocuous_$ac_func
37306 /* System header to define __stub macros and hopefully few prototypes,
37307 which can conflict with char $ac_func (); below.
37308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37309 <limits.h> exists even on freestanding compilers. */
37311 #ifdef __STDC__
37312 # include <limits.h>
37313 #else
37314 # include <assert.h>
37315 #endif
37317 #undef $ac_func
37319 /* Override any gcc2 internal prototype to avoid an error. */
37320 #ifdef __cplusplus
37321 extern "C"
37323 #endif
37324 /* We use char because int might match the return type of a gcc2
37325 builtin and then its argument prototype would still apply. */
37326 char $ac_func ();
37327 /* The GNU C library defines this for functions which it implements
37328 to always fail with ENOSYS. Some functions are actually named
37329 something starting with __ and the normal name is an alias. */
37330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37331 choke me
37332 #else
37333 char (*f) () = $ac_func;
37334 #endif
37335 #ifdef __cplusplus
37337 #endif
37340 main ()
37342 return f != $ac_func;
37344 return 0;
37346 _ACEOF
37347 rm -f conftest.$ac_objext conftest$ac_exeext
37348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37349 (eval $ac_link) 2>conftest.er1
37350 ac_status=$?
37351 grep -v '^ *+' conftest.er1 >conftest.err
37352 rm -f conftest.er1
37353 cat conftest.err >&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); } &&
37356 { ac_try='test -z "$ac_c_werror_flag"
37357 || test ! -s conftest.err'
37358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37359 (eval $ac_try) 2>&5
37360 ac_status=$?
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); }; } &&
37363 { ac_try='test -s conftest$ac_exeext'
37364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37365 (eval $ac_try) 2>&5
37366 ac_status=$?
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); }; }; then
37369 eval "$as_ac_var=yes"
37370 else
37371 echo "$as_me: failed program was:" >&5
37372 sed 's/^/| /' conftest.$ac_ext >&5
37374 eval "$as_ac_var=no"
37376 rm -f conftest.err conftest.$ac_objext \
37377 conftest$ac_exeext conftest.$ac_ext
37379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37381 if test `eval echo '${'$as_ac_var'}'` = yes; then
37382 cat >>confdefs.h <<_ACEOF
37383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37384 _ACEOF
37387 done
37390 esac
37392 for ac_func in hstrerror
37394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37395 echo "$as_me:$LINENO: checking for $ac_func" >&5
37396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37397 if eval "test \"\${$as_ac_var+set}\" = set"; then
37398 echo $ECHO_N "(cached) $ECHO_C" >&6
37399 else
37400 cat >conftest.$ac_ext <<_ACEOF
37401 /* confdefs.h. */
37402 _ACEOF
37403 cat confdefs.h >>conftest.$ac_ext
37404 cat >>conftest.$ac_ext <<_ACEOF
37405 /* end confdefs.h. */
37406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37408 #define $ac_func innocuous_$ac_func
37410 /* System header to define __stub macros and hopefully few prototypes,
37411 which can conflict with char $ac_func (); below.
37412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37413 <limits.h> exists even on freestanding compilers. */
37415 #ifdef __STDC__
37416 # include <limits.h>
37417 #else
37418 # include <assert.h>
37419 #endif
37421 #undef $ac_func
37423 /* Override any gcc2 internal prototype to avoid an error. */
37424 #ifdef __cplusplus
37425 extern "C"
37427 #endif
37428 /* We use char because int might match the return type of a gcc2
37429 builtin and then its argument prototype would still apply. */
37430 char $ac_func ();
37431 /* The GNU C library defines this for functions which it implements
37432 to always fail with ENOSYS. Some functions are actually named
37433 something starting with __ and the normal name is an alias. */
37434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37435 choke me
37436 #else
37437 char (*f) () = $ac_func;
37438 #endif
37439 #ifdef __cplusplus
37441 #endif
37444 main ()
37446 return f != $ac_func;
37448 return 0;
37450 _ACEOF
37451 rm -f conftest.$ac_objext conftest$ac_exeext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37453 (eval $ac_link) 2>conftest.er1
37454 ac_status=$?
37455 grep -v '^ *+' conftest.er1 >conftest.err
37456 rm -f conftest.er1
37457 cat conftest.err >&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); } &&
37460 { ac_try='test -z "$ac_c_werror_flag"
37461 || test ! -s conftest.err'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37464 ac_status=$?
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; } &&
37467 { ac_try='test -s conftest$ac_exeext'
37468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469 (eval $ac_try) 2>&5
37470 ac_status=$?
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); }; }; then
37473 eval "$as_ac_var=yes"
37474 else
37475 echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37478 eval "$as_ac_var=no"
37480 rm -f conftest.err conftest.$ac_objext \
37481 conftest$ac_exeext conftest.$ac_ext
37483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37485 if test `eval echo '${'$as_ac_var'}'` = yes; then
37486 cat >>confdefs.h <<_ACEOF
37487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37488 _ACEOF
37491 done
37495 # Check for if_nametoindex() for IPv6 scoped addresses support
37497 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
37498 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
37499 if test "${ac_cv_func_if_nametoindex+set}" = set; then
37500 echo $ECHO_N "(cached) $ECHO_C" >&6
37501 else
37502 cat >conftest.$ac_ext <<_ACEOF
37503 /* confdefs.h. */
37504 _ACEOF
37505 cat confdefs.h >>conftest.$ac_ext
37506 cat >>conftest.$ac_ext <<_ACEOF
37507 /* end confdefs.h. */
37508 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
37509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37510 #define if_nametoindex innocuous_if_nametoindex
37512 /* System header to define __stub macros and hopefully few prototypes,
37513 which can conflict with char if_nametoindex (); below.
37514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37515 <limits.h> exists even on freestanding compilers. */
37517 #ifdef __STDC__
37518 # include <limits.h>
37519 #else
37520 # include <assert.h>
37521 #endif
37523 #undef if_nametoindex
37525 /* Override any gcc2 internal prototype to avoid an error. */
37526 #ifdef __cplusplus
37527 extern "C"
37529 #endif
37530 /* We use char because int might match the return type of a gcc2
37531 builtin and then its argument prototype would still apply. */
37532 char if_nametoindex ();
37533 /* The GNU C library defines this for functions which it implements
37534 to always fail with ENOSYS. Some functions are actually named
37535 something starting with __ and the normal name is an alias. */
37536 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
37537 choke me
37538 #else
37539 char (*f) () = if_nametoindex;
37540 #endif
37541 #ifdef __cplusplus
37543 #endif
37546 main ()
37548 return f != if_nametoindex;
37550 return 0;
37552 _ACEOF
37553 rm -f conftest.$ac_objext conftest$ac_exeext
37554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37555 (eval $ac_link) 2>conftest.er1
37556 ac_status=$?
37557 grep -v '^ *+' conftest.er1 >conftest.err
37558 rm -f conftest.er1
37559 cat conftest.err >&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); } &&
37562 { ac_try='test -z "$ac_c_werror_flag"
37563 || test ! -s conftest.err'
37564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565 (eval $ac_try) 2>&5
37566 ac_status=$?
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); }; } &&
37569 { ac_try='test -s conftest$ac_exeext'
37570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37571 (eval $ac_try) 2>&5
37572 ac_status=$?
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); }; }; then
37575 ac_cv_func_if_nametoindex=yes
37576 else
37577 echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37580 ac_cv_func_if_nametoindex=no
37582 rm -f conftest.err conftest.$ac_objext \
37583 conftest$ac_exeext conftest.$ac_ext
37585 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
37586 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
37587 if test $ac_cv_func_if_nametoindex = yes; then
37588 ac_cv_have_if_nametoindex=yes
37589 else
37590 ac_cv_have_if_nametoindex=no
37593 case $ac_cv_have_if_nametoindex in
37595 case "$host" in
37596 *-hp-hpux*)
37597 echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
37598 echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6
37599 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
37600 echo $ECHO_N "(cached) $ECHO_C" >&6
37601 else
37602 ac_check_lib_save_LIBS=$LIBS
37603 LIBS="-lipv6 $LIBS"
37604 cat >conftest.$ac_ext <<_ACEOF
37605 /* confdefs.h. */
37606 _ACEOF
37607 cat confdefs.h >>conftest.$ac_ext
37608 cat >>conftest.$ac_ext <<_ACEOF
37609 /* end confdefs.h. */
37611 /* Override any gcc2 internal prototype to avoid an error. */
37612 #ifdef __cplusplus
37613 extern "C"
37614 #endif
37615 /* We use char because int might match the return type of a gcc2
37616 builtin and then its argument prototype would still apply. */
37617 char if_nametoindex ();
37619 main ()
37621 if_nametoindex ();
37623 return 0;
37625 _ACEOF
37626 rm -f conftest.$ac_objext conftest$ac_exeext
37627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37628 (eval $ac_link) 2>conftest.er1
37629 ac_status=$?
37630 grep -v '^ *+' conftest.er1 >conftest.err
37631 rm -f conftest.er1
37632 cat conftest.err >&5
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); } &&
37635 { ac_try='test -z "$ac_c_werror_flag"
37636 || test ! -s conftest.err'
37637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37638 (eval $ac_try) 2>&5
37639 ac_status=$?
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); }; } &&
37642 { ac_try='test -s conftest$ac_exeext'
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37644 (eval $ac_try) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; }; then
37648 ac_cv_lib_ipv6_if_nametoindex=yes
37649 else
37650 echo "$as_me: failed program was:" >&5
37651 sed 's/^/| /' conftest.$ac_ext >&5
37653 ac_cv_lib_ipv6_if_nametoindex=no
37655 rm -f conftest.err conftest.$ac_objext \
37656 conftest$ac_exeext conftest.$ac_ext
37657 LIBS=$ac_check_lib_save_LIBS
37659 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
37660 echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6
37661 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
37662 ac_cv_have_if_nametoindex=yes
37663 LIBS="-lipv6 $LIBS"
37667 esac
37668 esac
37669 case $ac_cv_have_if_nametoindex in
37670 yes)
37672 cat >>confdefs.h <<\_ACEOF
37673 #define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
37674 _ACEOF
37677 esac
37679 echo "$as_me:$LINENO: checking for inet_ntop" >&5
37680 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
37681 if test "${ac_cv_func_inet_ntop+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684 cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h. */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37690 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
37691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37692 #define inet_ntop innocuous_inet_ntop
37694 /* System header to define __stub macros and hopefully few prototypes,
37695 which can conflict with char inet_ntop (); below.
37696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37697 <limits.h> exists even on freestanding compilers. */
37699 #ifdef __STDC__
37700 # include <limits.h>
37701 #else
37702 # include <assert.h>
37703 #endif
37705 #undef inet_ntop
37707 /* Override any gcc2 internal prototype to avoid an error. */
37708 #ifdef __cplusplus
37709 extern "C"
37711 #endif
37712 /* We use char because int might match the return type of a gcc2
37713 builtin and then its argument prototype would still apply. */
37714 char inet_ntop ();
37715 /* The GNU C library defines this for functions which it implements
37716 to always fail with ENOSYS. Some functions are actually named
37717 something starting with __ and the normal name is an alias. */
37718 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
37719 choke me
37720 #else
37721 char (*f) () = inet_ntop;
37722 #endif
37723 #ifdef __cplusplus
37725 #endif
37728 main ()
37730 return f != inet_ntop;
37732 return 0;
37734 _ACEOF
37735 rm -f conftest.$ac_objext conftest$ac_exeext
37736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37737 (eval $ac_link) 2>conftest.er1
37738 ac_status=$?
37739 grep -v '^ *+' conftest.er1 >conftest.err
37740 rm -f conftest.er1
37741 cat conftest.err >&5
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); } &&
37744 { ac_try='test -z "$ac_c_werror_flag"
37745 || test ! -s conftest.err'
37746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747 (eval $ac_try) 2>&5
37748 ac_status=$?
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); }; } &&
37751 { ac_try='test -s conftest$ac_exeext'
37752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753 (eval $ac_try) 2>&5
37754 ac_status=$?
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); }; }; then
37757 ac_cv_func_inet_ntop=yes
37758 else
37759 echo "$as_me: failed program was:" >&5
37760 sed 's/^/| /' conftest.$ac_ext >&5
37762 ac_cv_func_inet_ntop=no
37764 rm -f conftest.err conftest.$ac_objext \
37765 conftest$ac_exeext conftest.$ac_ext
37767 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
37768 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
37769 if test $ac_cv_func_inet_ntop = yes; then
37771 else
37773 cat >>confdefs.h <<\_ACEOF
37774 #define ISC_PLATFORM_NEEDNTOP 1
37775 _ACEOF
37779 echo "$as_me:$LINENO: checking for inet_pton" >&5
37780 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
37781 if test "${ac_cv_func_inet_pton+set}" = set; then
37782 echo $ECHO_N "(cached) $ECHO_C" >&6
37783 else
37784 cat >conftest.$ac_ext <<_ACEOF
37785 /* confdefs.h. */
37786 _ACEOF
37787 cat confdefs.h >>conftest.$ac_ext
37788 cat >>conftest.$ac_ext <<_ACEOF
37789 /* end confdefs.h. */
37790 /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
37791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37792 #define inet_pton innocuous_inet_pton
37794 /* System header to define __stub macros and hopefully few prototypes,
37795 which can conflict with char inet_pton (); below.
37796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37797 <limits.h> exists even on freestanding compilers. */
37799 #ifdef __STDC__
37800 # include <limits.h>
37801 #else
37802 # include <assert.h>
37803 #endif
37805 #undef inet_pton
37807 /* Override any gcc2 internal prototype to avoid an error. */
37808 #ifdef __cplusplus
37809 extern "C"
37811 #endif
37812 /* We use char because int might match the return type of a gcc2
37813 builtin and then its argument prototype would still apply. */
37814 char inet_pton ();
37815 /* The GNU C library defines this for functions which it implements
37816 to always fail with ENOSYS. Some functions are actually named
37817 something starting with __ and the normal name is an alias. */
37818 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
37819 choke me
37820 #else
37821 char (*f) () = inet_pton;
37822 #endif
37823 #ifdef __cplusplus
37825 #endif
37828 main ()
37830 return f != inet_pton;
37832 return 0;
37834 _ACEOF
37835 rm -f conftest.$ac_objext conftest$ac_exeext
37836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37837 (eval $ac_link) 2>conftest.er1
37838 ac_status=$?
37839 grep -v '^ *+' conftest.er1 >conftest.err
37840 rm -f conftest.er1
37841 cat conftest.err >&5
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); } &&
37844 { ac_try='test -z "$ac_c_werror_flag"
37845 || test ! -s conftest.err'
37846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 (eval $ac_try) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); }; } &&
37851 { ac_try='test -s conftest$ac_exeext'
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853 (eval $ac_try) 2>&5
37854 ac_status=$?
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); }; }; then
37857 ac_cv_func_inet_pton=yes
37858 else
37859 echo "$as_me: failed program was:" >&5
37860 sed 's/^/| /' conftest.$ac_ext >&5
37862 ac_cv_func_inet_pton=no
37864 rm -f conftest.err conftest.$ac_objext \
37865 conftest$ac_exeext conftest.$ac_ext
37867 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
37868 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
37869 if test $ac_cv_func_inet_pton = yes; then
37871 else
37873 cat >>confdefs.h <<\_ACEOF
37874 #define ISC_PLATFORM_NEEDPTON 1
37875 _ACEOF
37879 echo "$as_me:$LINENO: checking for inet_aton" >&5
37880 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
37881 if test "${ac_cv_func_inet_aton+set}" = set; then
37882 echo $ECHO_N "(cached) $ECHO_C" >&6
37883 else
37884 cat >conftest.$ac_ext <<_ACEOF
37885 /* confdefs.h. */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h. */
37890 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
37891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37892 #define inet_aton innocuous_inet_aton
37894 /* System header to define __stub macros and hopefully few prototypes,
37895 which can conflict with char inet_aton (); below.
37896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897 <limits.h> exists even on freestanding compilers. */
37899 #ifdef __STDC__
37900 # include <limits.h>
37901 #else
37902 # include <assert.h>
37903 #endif
37905 #undef inet_aton
37907 /* Override any gcc2 internal prototype to avoid an error. */
37908 #ifdef __cplusplus
37909 extern "C"
37911 #endif
37912 /* We use char because int might match the return type of a gcc2
37913 builtin and then its argument prototype would still apply. */
37914 char inet_aton ();
37915 /* The GNU C library defines this for functions which it implements
37916 to always fail with ENOSYS. Some functions are actually named
37917 something starting with __ and the normal name is an alias. */
37918 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
37919 choke me
37920 #else
37921 char (*f) () = inet_aton;
37922 #endif
37923 #ifdef __cplusplus
37925 #endif
37928 main ()
37930 return f != inet_aton;
37932 return 0;
37934 _ACEOF
37935 rm -f conftest.$ac_objext conftest$ac_exeext
37936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37937 (eval $ac_link) 2>conftest.er1
37938 ac_status=$?
37939 grep -v '^ *+' conftest.er1 >conftest.err
37940 rm -f conftest.er1
37941 cat conftest.err >&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); } &&
37944 { ac_try='test -z "$ac_c_werror_flag"
37945 || test ! -s conftest.err'
37946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947 (eval $ac_try) 2>&5
37948 ac_status=$?
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; } &&
37951 { ac_try='test -s conftest$ac_exeext'
37952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37953 (eval $ac_try) 2>&5
37954 ac_status=$?
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); }; }; then
37957 ac_cv_func_inet_aton=yes
37958 else
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ac_cv_func_inet_aton=no
37964 rm -f conftest.err conftest.$ac_objext \
37965 conftest$ac_exeext conftest.$ac_ext
37967 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
37968 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
37969 if test $ac_cv_func_inet_aton = yes; then
37971 else
37973 cat >>confdefs.h <<\_ACEOF
37974 #define ISC_PLATFORM_NEEDATON 1
37975 _ACEOF
37984 for ac_func in K_open kvm_open memcpy memmove memset
37986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37987 echo "$as_me:$LINENO: checking for $ac_func" >&5
37988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37989 if eval "test \"\${$as_ac_var+set}\" = set"; then
37990 echo $ECHO_N "(cached) $ECHO_C" >&6
37991 else
37992 cat >conftest.$ac_ext <<_ACEOF
37993 /* confdefs.h. */
37994 _ACEOF
37995 cat confdefs.h >>conftest.$ac_ext
37996 cat >>conftest.$ac_ext <<_ACEOF
37997 /* end confdefs.h. */
37998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38000 #define $ac_func innocuous_$ac_func
38002 /* System header to define __stub macros and hopefully few prototypes,
38003 which can conflict with char $ac_func (); below.
38004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38005 <limits.h> exists even on freestanding compilers. */
38007 #ifdef __STDC__
38008 # include <limits.h>
38009 #else
38010 # include <assert.h>
38011 #endif
38013 #undef $ac_func
38015 /* Override any gcc2 internal prototype to avoid an error. */
38016 #ifdef __cplusplus
38017 extern "C"
38019 #endif
38020 /* We use char because int might match the return type of a gcc2
38021 builtin and then its argument prototype would still apply. */
38022 char $ac_func ();
38023 /* The GNU C library defines this for functions which it implements
38024 to always fail with ENOSYS. Some functions are actually named
38025 something starting with __ and the normal name is an alias. */
38026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38027 choke me
38028 #else
38029 char (*f) () = $ac_func;
38030 #endif
38031 #ifdef __cplusplus
38033 #endif
38036 main ()
38038 return f != $ac_func;
38040 return 0;
38042 _ACEOF
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38045 (eval $ac_link) 2>conftest.er1
38046 ac_status=$?
38047 grep -v '^ *+' conftest.er1 >conftest.err
38048 rm -f conftest.er1
38049 cat conftest.err >&5
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } &&
38052 { ac_try='test -z "$ac_c_werror_flag"
38053 || test ! -s conftest.err'
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38056 ac_status=$?
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest$ac_exeext'
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38062 ac_status=$?
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; }; then
38065 eval "$as_ac_var=yes"
38066 else
38067 echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.$ac_ext >&5
38070 eval "$as_ac_var=no"
38072 rm -f conftest.err conftest.$ac_objext \
38073 conftest$ac_exeext conftest.$ac_ext
38075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38077 if test `eval echo '${'$as_ac_var'}'` = yes; then
38078 cat >>confdefs.h <<_ACEOF
38079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38080 _ACEOF
38083 done
38085 case "$host" in
38086 *-*-sco3.2v5.0.*)
38087 # Just stubs. Idiots.
38090 for ac_func in mkstemp
38092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38093 echo "$as_me:$LINENO: checking for $ac_func" >&5
38094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38095 if eval "test \"\${$as_ac_var+set}\" = set"; then
38096 echo $ECHO_N "(cached) $ECHO_C" >&6
38097 else
38098 cat >conftest.$ac_ext <<_ACEOF
38099 /* confdefs.h. */
38100 _ACEOF
38101 cat confdefs.h >>conftest.$ac_ext
38102 cat >>conftest.$ac_ext <<_ACEOF
38103 /* end confdefs.h. */
38104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38106 #define $ac_func innocuous_$ac_func
38108 /* System header to define __stub macros and hopefully few prototypes,
38109 which can conflict with char $ac_func (); below.
38110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38111 <limits.h> exists even on freestanding compilers. */
38113 #ifdef __STDC__
38114 # include <limits.h>
38115 #else
38116 # include <assert.h>
38117 #endif
38119 #undef $ac_func
38121 /* Override any gcc2 internal prototype to avoid an error. */
38122 #ifdef __cplusplus
38123 extern "C"
38125 #endif
38126 /* We use char because int might match the return type of a gcc2
38127 builtin and then its argument prototype would still apply. */
38128 char $ac_func ();
38129 /* The GNU C library defines this for functions which it implements
38130 to always fail with ENOSYS. Some functions are actually named
38131 something starting with __ and the normal name is an alias. */
38132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38133 choke me
38134 #else
38135 char (*f) () = $ac_func;
38136 #endif
38137 #ifdef __cplusplus
38139 #endif
38142 main ()
38144 return f != $ac_func;
38146 return 0;
38148 _ACEOF
38149 rm -f conftest.$ac_objext conftest$ac_exeext
38150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38151 (eval $ac_link) 2>conftest.er1
38152 ac_status=$?
38153 grep -v '^ *+' conftest.er1 >conftest.err
38154 rm -f conftest.er1
38155 cat conftest.err >&5
38156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38157 (exit $ac_status); } &&
38158 { ac_try='test -z "$ac_c_werror_flag"
38159 || test ! -s conftest.err'
38160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38161 (eval $ac_try) 2>&5
38162 ac_status=$?
38163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38164 (exit $ac_status); }; } &&
38165 { ac_try='test -s conftest$ac_exeext'
38166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38167 (eval $ac_try) 2>&5
38168 ac_status=$?
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); }; }; then
38171 eval "$as_ac_var=yes"
38172 else
38173 echo "$as_me: failed program was:" >&5
38174 sed 's/^/| /' conftest.$ac_ext >&5
38176 eval "$as_ac_var=no"
38178 rm -f conftest.err conftest.$ac_objext \
38179 conftest$ac_exeext conftest.$ac_ext
38181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38183 if test `eval echo '${'$as_ac_var'}'` = yes; then
38184 cat >>confdefs.h <<_ACEOF
38185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38186 _ACEOF
38189 done
38192 esac
38194 for ac_func in mktime
38196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38197 echo "$as_me:$LINENO: checking for $ac_func" >&5
38198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38199 if eval "test \"\${$as_ac_var+set}\" = set"; then
38200 echo $ECHO_N "(cached) $ECHO_C" >&6
38201 else
38202 cat >conftest.$ac_ext <<_ACEOF
38203 /* confdefs.h. */
38204 _ACEOF
38205 cat confdefs.h >>conftest.$ac_ext
38206 cat >>conftest.$ac_ext <<_ACEOF
38207 /* end confdefs.h. */
38208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38210 #define $ac_func innocuous_$ac_func
38212 /* System header to define __stub macros and hopefully few prototypes,
38213 which can conflict with char $ac_func (); below.
38214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38215 <limits.h> exists even on freestanding compilers. */
38217 #ifdef __STDC__
38218 # include <limits.h>
38219 #else
38220 # include <assert.h>
38221 #endif
38223 #undef $ac_func
38225 /* Override any gcc2 internal prototype to avoid an error. */
38226 #ifdef __cplusplus
38227 extern "C"
38229 #endif
38230 /* We use char because int might match the return type of a gcc2
38231 builtin and then its argument prototype would still apply. */
38232 char $ac_func ();
38233 /* The GNU C library defines this for functions which it implements
38234 to always fail with ENOSYS. Some functions are actually named
38235 something starting with __ and the normal name is an alias. */
38236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38237 choke me
38238 #else
38239 char (*f) () = $ac_func;
38240 #endif
38241 #ifdef __cplusplus
38243 #endif
38246 main ()
38248 return f != $ac_func;
38250 return 0;
38252 _ACEOF
38253 rm -f conftest.$ac_objext conftest$ac_exeext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38255 (eval $ac_link) 2>conftest.er1
38256 ac_status=$?
38257 grep -v '^ *+' conftest.er1 >conftest.err
38258 rm -f conftest.er1
38259 cat conftest.err >&5
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); } &&
38262 { ac_try='test -z "$ac_c_werror_flag"
38263 || test ! -s conftest.err'
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; } &&
38269 { ac_try='test -s conftest$ac_exeext'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38272 ac_status=$?
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275 eval "$as_ac_var=yes"
38276 else
38277 echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38280 eval "$as_ac_var=no"
38282 rm -f conftest.err conftest.$ac_objext \
38283 conftest$ac_exeext conftest.$ac_ext
38285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38287 if test `eval echo '${'$as_ac_var'}'` = yes; then
38288 cat >>confdefs.h <<_ACEOF
38289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38290 _ACEOF
38293 done
38295 case "$host" in
38296 *-*-aix[456]*)
38297 # Just a stub. Idiots.
38299 *-*-irix[45]*)
38300 # Just a stub in "old" Irix. Idiots.
38302 *-*-*linux*)
38303 # there, but more trouble than it is worth for now (resolver problems)
38305 *-*-qnx*)
38306 # Apparently there but not working in QNX. Idiots?
38308 *-*-sco3.2v5.0.*)
38309 # Just a stub. Idiots.
38311 alpha*-dec-osf4*|alpha*-dec-osf5*)
38312 # mlockall is there, as a #define calling memlk via <sys/mman.h>
38313 # Not easy to test for - cheat.
38315 for ac_func in memlk
38317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38318 echo "$as_me:$LINENO: checking for $ac_func" >&5
38319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38320 if eval "test \"\${$as_ac_var+set}\" = set"; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323 cat >conftest.$ac_ext <<_ACEOF
38324 /* confdefs.h. */
38325 _ACEOF
38326 cat confdefs.h >>conftest.$ac_ext
38327 cat >>conftest.$ac_ext <<_ACEOF
38328 /* end confdefs.h. */
38329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38331 #define $ac_func innocuous_$ac_func
38333 /* System header to define __stub macros and hopefully few prototypes,
38334 which can conflict with char $ac_func (); below.
38335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38336 <limits.h> exists even on freestanding compilers. */
38338 #ifdef __STDC__
38339 # include <limits.h>
38340 #else
38341 # include <assert.h>
38342 #endif
38344 #undef $ac_func
38346 /* Override any gcc2 internal prototype to avoid an error. */
38347 #ifdef __cplusplus
38348 extern "C"
38350 #endif
38351 /* We use char because int might match the return type of a gcc2
38352 builtin and then its argument prototype would still apply. */
38353 char $ac_func ();
38354 /* The GNU C library defines this for functions which it implements
38355 to always fail with ENOSYS. Some functions are actually named
38356 something starting with __ and the normal name is an alias. */
38357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38358 choke me
38359 #else
38360 char (*f) () = $ac_func;
38361 #endif
38362 #ifdef __cplusplus
38364 #endif
38367 main ()
38369 return f != $ac_func;
38371 return 0;
38373 _ACEOF
38374 rm -f conftest.$ac_objext conftest$ac_exeext
38375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38376 (eval $ac_link) 2>conftest.er1
38377 ac_status=$?
38378 grep -v '^ *+' conftest.er1 >conftest.err
38379 rm -f conftest.er1
38380 cat conftest.err >&5
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); } &&
38383 { ac_try='test -z "$ac_c_werror_flag"
38384 || test ! -s conftest.err'
38385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38386 (eval $ac_try) 2>&5
38387 ac_status=$?
38388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38389 (exit $ac_status); }; } &&
38390 { ac_try='test -s conftest$ac_exeext'
38391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38392 (eval $ac_try) 2>&5
38393 ac_status=$?
38394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395 (exit $ac_status); }; }; then
38396 eval "$as_ac_var=yes"
38397 else
38398 echo "$as_me: failed program was:" >&5
38399 sed 's/^/| /' conftest.$ac_ext >&5
38401 eval "$as_ac_var=no"
38403 rm -f conftest.err conftest.$ac_objext \
38404 conftest$ac_exeext conftest.$ac_ext
38406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38408 if test `eval echo '${'$as_ac_var'}'` = yes; then
38409 cat >>confdefs.h <<_ACEOF
38410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38411 _ACEOF
38412 ac_cv_func_mlockall='yes'
38414 done
38417 for ac_func in mlockall
38419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38420 echo "$as_me:$LINENO: checking for $ac_func" >&5
38421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38422 if eval "test \"\${$as_ac_var+set}\" = set"; then
38423 echo $ECHO_N "(cached) $ECHO_C" >&6
38424 else
38425 cat >conftest.$ac_ext <<_ACEOF
38426 /* confdefs.h. */
38427 _ACEOF
38428 cat confdefs.h >>conftest.$ac_ext
38429 cat >>conftest.$ac_ext <<_ACEOF
38430 /* end confdefs.h. */
38431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38433 #define $ac_func innocuous_$ac_func
38435 /* System header to define __stub macros and hopefully few prototypes,
38436 which can conflict with char $ac_func (); below.
38437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38438 <limits.h> exists even on freestanding compilers. */
38440 #ifdef __STDC__
38441 # include <limits.h>
38442 #else
38443 # include <assert.h>
38444 #endif
38446 #undef $ac_func
38448 /* Override any gcc2 internal prototype to avoid an error. */
38449 #ifdef __cplusplus
38450 extern "C"
38452 #endif
38453 /* We use char because int might match the return type of a gcc2
38454 builtin and then its argument prototype would still apply. */
38455 char $ac_func ();
38456 /* The GNU C library defines this for functions which it implements
38457 to always fail with ENOSYS. Some functions are actually named
38458 something starting with __ and the normal name is an alias. */
38459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38460 choke me
38461 #else
38462 char (*f) () = $ac_func;
38463 #endif
38464 #ifdef __cplusplus
38466 #endif
38469 main ()
38471 return f != $ac_func;
38473 return 0;
38475 _ACEOF
38476 rm -f conftest.$ac_objext conftest$ac_exeext
38477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38478 (eval $ac_link) 2>conftest.er1
38479 ac_status=$?
38480 grep -v '^ *+' conftest.er1 >conftest.err
38481 rm -f conftest.er1
38482 cat conftest.err >&5
38483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38484 (exit $ac_status); } &&
38485 { ac_try='test -z "$ac_c_werror_flag"
38486 || test ! -s conftest.err'
38487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488 (eval $ac_try) 2>&5
38489 ac_status=$?
38490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491 (exit $ac_status); }; } &&
38492 { ac_try='test -s conftest$ac_exeext'
38493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38494 (eval $ac_try) 2>&5
38495 ac_status=$?
38496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497 (exit $ac_status); }; }; then
38498 eval "$as_ac_var=yes"
38499 else
38500 echo "$as_me: failed program was:" >&5
38501 sed 's/^/| /' conftest.$ac_ext >&5
38503 eval "$as_ac_var=no"
38505 rm -f conftest.err conftest.$ac_objext \
38506 conftest$ac_exeext conftest.$ac_ext
38508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38510 if test `eval echo '${'$as_ac_var'}'` = yes; then
38511 cat >>confdefs.h <<_ACEOF
38512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38513 _ACEOF
38516 done
38520 for ac_func in mlockall
38522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38523 echo "$as_me:$LINENO: checking for $ac_func" >&5
38524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38525 if eval "test \"\${$as_ac_var+set}\" = set"; then
38526 echo $ECHO_N "(cached) $ECHO_C" >&6
38527 else
38528 cat >conftest.$ac_ext <<_ACEOF
38529 /* confdefs.h. */
38530 _ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h. */
38534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38536 #define $ac_func innocuous_$ac_func
38538 /* System header to define __stub macros and hopefully few prototypes,
38539 which can conflict with char $ac_func (); below.
38540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38541 <limits.h> exists even on freestanding compilers. */
38543 #ifdef __STDC__
38544 # include <limits.h>
38545 #else
38546 # include <assert.h>
38547 #endif
38549 #undef $ac_func
38551 /* Override any gcc2 internal prototype to avoid an error. */
38552 #ifdef __cplusplus
38553 extern "C"
38555 #endif
38556 /* We use char because int might match the return type of a gcc2
38557 builtin and then its argument prototype would still apply. */
38558 char $ac_func ();
38559 /* The GNU C library defines this for functions which it implements
38560 to always fail with ENOSYS. Some functions are actually named
38561 something starting with __ and the normal name is an alias. */
38562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38563 choke me
38564 #else
38565 char (*f) () = $ac_func;
38566 #endif
38567 #ifdef __cplusplus
38569 #endif
38572 main ()
38574 return f != $ac_func;
38576 return 0;
38578 _ACEOF
38579 rm -f conftest.$ac_objext conftest$ac_exeext
38580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38581 (eval $ac_link) 2>conftest.er1
38582 ac_status=$?
38583 grep -v '^ *+' conftest.er1 >conftest.err
38584 rm -f conftest.er1
38585 cat conftest.err >&5
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); } &&
38588 { ac_try='test -z "$ac_c_werror_flag"
38589 || test ! -s conftest.err'
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38592 ac_status=$?
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; } &&
38595 { ac_try='test -s conftest$ac_exeext'
38596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38597 (eval $ac_try) 2>&5
38598 ac_status=$?
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); }; }; then
38601 eval "$as_ac_var=yes"
38602 else
38603 echo "$as_me: failed program was:" >&5
38604 sed 's/^/| /' conftest.$ac_ext >&5
38606 eval "$as_ac_var=no"
38608 rm -f conftest.err conftest.$ac_objext \
38609 conftest$ac_exeext conftest.$ac_ext
38611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38613 if test `eval echo '${'$as_ac_var'}'` = yes; then
38614 cat >>confdefs.h <<_ACEOF
38615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38616 _ACEOF
38619 done
38622 esac
38625 for ac_func in nice nlist
38627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38628 echo "$as_me:$LINENO: checking for $ac_func" >&5
38629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38630 if eval "test \"\${$as_ac_var+set}\" = set"; then
38631 echo $ECHO_N "(cached) $ECHO_C" >&6
38632 else
38633 cat >conftest.$ac_ext <<_ACEOF
38634 /* confdefs.h. */
38635 _ACEOF
38636 cat confdefs.h >>conftest.$ac_ext
38637 cat >>conftest.$ac_ext <<_ACEOF
38638 /* end confdefs.h. */
38639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38641 #define $ac_func innocuous_$ac_func
38643 /* System header to define __stub macros and hopefully few prototypes,
38644 which can conflict with char $ac_func (); below.
38645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38646 <limits.h> exists even on freestanding compilers. */
38648 #ifdef __STDC__
38649 # include <limits.h>
38650 #else
38651 # include <assert.h>
38652 #endif
38654 #undef $ac_func
38656 /* Override any gcc2 internal prototype to avoid an error. */
38657 #ifdef __cplusplus
38658 extern "C"
38660 #endif
38661 /* We use char because int might match the return type of a gcc2
38662 builtin and then its argument prototype would still apply. */
38663 char $ac_func ();
38664 /* The GNU C library defines this for functions which it implements
38665 to always fail with ENOSYS. Some functions are actually named
38666 something starting with __ and the normal name is an alias. */
38667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38668 choke me
38669 #else
38670 char (*f) () = $ac_func;
38671 #endif
38672 #ifdef __cplusplus
38674 #endif
38677 main ()
38679 return f != $ac_func;
38681 return 0;
38683 _ACEOF
38684 rm -f conftest.$ac_objext conftest$ac_exeext
38685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38686 (eval $ac_link) 2>conftest.er1
38687 ac_status=$?
38688 grep -v '^ *+' conftest.er1 >conftest.err
38689 rm -f conftest.er1
38690 cat conftest.err >&5
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); } &&
38693 { ac_try='test -z "$ac_c_werror_flag"
38694 || test ! -s conftest.err'
38695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38696 (eval $ac_try) 2>&5
38697 ac_status=$?
38698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38699 (exit $ac_status); }; } &&
38700 { ac_try='test -s conftest$ac_exeext'
38701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38702 (eval $ac_try) 2>&5
38703 ac_status=$?
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); }; }; then
38706 eval "$as_ac_var=yes"
38707 else
38708 echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38711 eval "$as_ac_var=no"
38713 rm -f conftest.err conftest.$ac_objext \
38714 conftest$ac_exeext conftest.$ac_ext
38716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38718 if test `eval echo '${'$as_ac_var'}'` = yes; then
38719 cat >>confdefs.h <<_ACEOF
38720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38721 _ACEOF
38724 done
38726 case "$host" in
38727 *-*-solaris2.6)
38728 # Broken...
38732 for ac_func in ntp_adjtime ntp_gettime
38734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38735 echo "$as_me:$LINENO: checking for $ac_func" >&5
38736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38737 if eval "test \"\${$as_ac_var+set}\" = set"; then
38738 echo $ECHO_N "(cached) $ECHO_C" >&6
38739 else
38740 cat >conftest.$ac_ext <<_ACEOF
38741 /* confdefs.h. */
38742 _ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38748 #define $ac_func innocuous_$ac_func
38750 /* System header to define __stub macros and hopefully few prototypes,
38751 which can conflict with char $ac_func (); below.
38752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38753 <limits.h> exists even on freestanding compilers. */
38755 #ifdef __STDC__
38756 # include <limits.h>
38757 #else
38758 # include <assert.h>
38759 #endif
38761 #undef $ac_func
38763 /* Override any gcc2 internal prototype to avoid an error. */
38764 #ifdef __cplusplus
38765 extern "C"
38767 #endif
38768 /* We use char because int might match the return type of a gcc2
38769 builtin and then its argument prototype would still apply. */
38770 char $ac_func ();
38771 /* The GNU C library defines this for functions which it implements
38772 to always fail with ENOSYS. Some functions are actually named
38773 something starting with __ and the normal name is an alias. */
38774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38775 choke me
38776 #else
38777 char (*f) () = $ac_func;
38778 #endif
38779 #ifdef __cplusplus
38781 #endif
38784 main ()
38786 return f != $ac_func;
38788 return 0;
38790 _ACEOF
38791 rm -f conftest.$ac_objext conftest$ac_exeext
38792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38793 (eval $ac_link) 2>conftest.er1
38794 ac_status=$?
38795 grep -v '^ *+' conftest.er1 >conftest.err
38796 rm -f conftest.er1
38797 cat conftest.err >&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); } &&
38800 { ac_try='test -z "$ac_c_werror_flag"
38801 || test ! -s conftest.err'
38802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803 (eval $ac_try) 2>&5
38804 ac_status=$?
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); }; } &&
38807 { ac_try='test -s conftest$ac_exeext'
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38810 ac_status=$?
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; }; then
38813 eval "$as_ac_var=yes"
38814 else
38815 echo "$as_me: failed program was:" >&5
38816 sed 's/^/| /' conftest.$ac_ext >&5
38818 eval "$as_ac_var=no"
38820 rm -f conftest.err conftest.$ac_objext \
38821 conftest$ac_exeext conftest.$ac_ext
38823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38825 if test `eval echo '${'$as_ac_var'}'` = yes; then
38826 cat >>confdefs.h <<_ACEOF
38827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38828 _ACEOF
38831 done
38834 esac
38841 for ac_func in plock pututline pututxline readlink recvmsg rtprio
38843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38844 echo "$as_me:$LINENO: checking for $ac_func" >&5
38845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38846 if eval "test \"\${$as_ac_var+set}\" = set"; then
38847 echo $ECHO_N "(cached) $ECHO_C" >&6
38848 else
38849 cat >conftest.$ac_ext <<_ACEOF
38850 /* confdefs.h. */
38851 _ACEOF
38852 cat confdefs.h >>conftest.$ac_ext
38853 cat >>conftest.$ac_ext <<_ACEOF
38854 /* end confdefs.h. */
38855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38857 #define $ac_func innocuous_$ac_func
38859 /* System header to define __stub macros and hopefully few prototypes,
38860 which can conflict with char $ac_func (); below.
38861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38862 <limits.h> exists even on freestanding compilers. */
38864 #ifdef __STDC__
38865 # include <limits.h>
38866 #else
38867 # include <assert.h>
38868 #endif
38870 #undef $ac_func
38872 /* Override any gcc2 internal prototype to avoid an error. */
38873 #ifdef __cplusplus
38874 extern "C"
38876 #endif
38877 /* We use char because int might match the return type of a gcc2
38878 builtin and then its argument prototype would still apply. */
38879 char $ac_func ();
38880 /* The GNU C library defines this for functions which it implements
38881 to always fail with ENOSYS. Some functions are actually named
38882 something starting with __ and the normal name is an alias. */
38883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38884 choke me
38885 #else
38886 char (*f) () = $ac_func;
38887 #endif
38888 #ifdef __cplusplus
38890 #endif
38893 main ()
38895 return f != $ac_func;
38897 return 0;
38899 _ACEOF
38900 rm -f conftest.$ac_objext conftest$ac_exeext
38901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38902 (eval $ac_link) 2>conftest.er1
38903 ac_status=$?
38904 grep -v '^ *+' conftest.er1 >conftest.err
38905 rm -f conftest.er1
38906 cat conftest.err >&5
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); } &&
38909 { ac_try='test -z "$ac_c_werror_flag"
38910 || test ! -s conftest.err'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38913 ac_status=$?
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; } &&
38916 { ac_try='test -s conftest$ac_exeext'
38917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918 (eval $ac_try) 2>&5
38919 ac_status=$?
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); }; }; then
38922 eval "$as_ac_var=yes"
38923 else
38924 echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38927 eval "$as_ac_var=no"
38929 rm -f conftest.err conftest.$ac_objext \
38930 conftest$ac_exeext conftest.$ac_ext
38932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38934 if test `eval echo '${'$as_ac_var'}'` = yes; then
38935 cat >>confdefs.h <<_ACEOF
38936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38937 _ACEOF
38940 done
38942 case "$host" in
38943 *-*-aix[456]*)
38944 # Just a stub in AIX 4. Idiots.
38946 *-*-solaris2.5*)
38947 # Just stubs in solaris2.5. Idiots.
38950 for ac_func in sched_setscheduler
38952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953 echo "$as_me:$LINENO: checking for $ac_func" >&5
38954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38955 if eval "test \"\${$as_ac_var+set}\" = set"; then
38956 echo $ECHO_N "(cached) $ECHO_C" >&6
38957 else
38958 cat >conftest.$ac_ext <<_ACEOF
38959 /* confdefs.h. */
38960 _ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h. */
38964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38966 #define $ac_func innocuous_$ac_func
38968 /* System header to define __stub macros and hopefully few prototypes,
38969 which can conflict with char $ac_func (); below.
38970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971 <limits.h> exists even on freestanding compilers. */
38973 #ifdef __STDC__
38974 # include <limits.h>
38975 #else
38976 # include <assert.h>
38977 #endif
38979 #undef $ac_func
38981 /* Override any gcc2 internal prototype to avoid an error. */
38982 #ifdef __cplusplus
38983 extern "C"
38985 #endif
38986 /* We use char because int might match the return type of a gcc2
38987 builtin and then its argument prototype would still apply. */
38988 char $ac_func ();
38989 /* The GNU C library defines this for functions which it implements
38990 to always fail with ENOSYS. Some functions are actually named
38991 something starting with __ and the normal name is an alias. */
38992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38993 choke me
38994 #else
38995 char (*f) () = $ac_func;
38996 #endif
38997 #ifdef __cplusplus
38999 #endif
39002 main ()
39004 return f != $ac_func;
39006 return 0;
39008 _ACEOF
39009 rm -f conftest.$ac_objext conftest$ac_exeext
39010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39011 (eval $ac_link) 2>conftest.er1
39012 ac_status=$?
39013 grep -v '^ *+' conftest.er1 >conftest.err
39014 rm -f conftest.er1
39015 cat conftest.err >&5
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); } &&
39018 { ac_try='test -z "$ac_c_werror_flag"
39019 || test ! -s conftest.err'
39020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39021 (eval $ac_try) 2>&5
39022 ac_status=$?
39023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); }; } &&
39025 { ac_try='test -s conftest$ac_exeext'
39026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39027 (eval $ac_try) 2>&5
39028 ac_status=$?
39029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030 (exit $ac_status); }; }; then
39031 eval "$as_ac_var=yes"
39032 else
39033 echo "$as_me: failed program was:" >&5
39034 sed 's/^/| /' conftest.$ac_ext >&5
39036 eval "$as_ac_var=no"
39038 rm -f conftest.err conftest.$ac_objext \
39039 conftest$ac_exeext conftest.$ac_ext
39041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39043 if test `eval echo '${'$as_ac_var'}'` = yes; then
39044 cat >>confdefs.h <<_ACEOF
39045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39046 _ACEOF
39049 done
39052 esac
39057 for ac_func in setlinebuf setpgid setpriority setsid
39059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39060 echo "$as_me:$LINENO: checking for $ac_func" >&5
39061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39062 if eval "test \"\${$as_ac_var+set}\" = set"; then
39063 echo $ECHO_N "(cached) $ECHO_C" >&6
39064 else
39065 cat >conftest.$ac_ext <<_ACEOF
39066 /* confdefs.h. */
39067 _ACEOF
39068 cat confdefs.h >>conftest.$ac_ext
39069 cat >>conftest.$ac_ext <<_ACEOF
39070 /* end confdefs.h. */
39071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39073 #define $ac_func innocuous_$ac_func
39075 /* System header to define __stub macros and hopefully few prototypes,
39076 which can conflict with char $ac_func (); below.
39077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39078 <limits.h> exists even on freestanding compilers. */
39080 #ifdef __STDC__
39081 # include <limits.h>
39082 #else
39083 # include <assert.h>
39084 #endif
39086 #undef $ac_func
39088 /* Override any gcc2 internal prototype to avoid an error. */
39089 #ifdef __cplusplus
39090 extern "C"
39092 #endif
39093 /* We use char because int might match the return type of a gcc2
39094 builtin and then its argument prototype would still apply. */
39095 char $ac_func ();
39096 /* The GNU C library defines this for functions which it implements
39097 to always fail with ENOSYS. Some functions are actually named
39098 something starting with __ and the normal name is an alias. */
39099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39100 choke me
39101 #else
39102 char (*f) () = $ac_func;
39103 #endif
39104 #ifdef __cplusplus
39106 #endif
39109 main ()
39111 return f != $ac_func;
39113 return 0;
39115 _ACEOF
39116 rm -f conftest.$ac_objext conftest$ac_exeext
39117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39118 (eval $ac_link) 2>conftest.er1
39119 ac_status=$?
39120 grep -v '^ *+' conftest.er1 >conftest.err
39121 rm -f conftest.er1
39122 cat conftest.err >&5
39123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 (exit $ac_status); } &&
39125 { ac_try='test -z "$ac_c_werror_flag"
39126 || test ! -s conftest.err'
39127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128 (eval $ac_try) 2>&5
39129 ac_status=$?
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); }; } &&
39132 { ac_try='test -s conftest$ac_exeext'
39133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39134 (eval $ac_try) 2>&5
39135 ac_status=$?
39136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39137 (exit $ac_status); }; }; then
39138 eval "$as_ac_var=yes"
39139 else
39140 echo "$as_me: failed program was:" >&5
39141 sed 's/^/| /' conftest.$ac_ext >&5
39143 eval "$as_ac_var=no"
39145 rm -f conftest.err conftest.$ac_objext \
39146 conftest$ac_exeext conftest.$ac_ext
39148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39150 if test `eval echo '${'$as_ac_var'}'` = yes; then
39151 cat >>confdefs.h <<_ACEOF
39152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39153 _ACEOF
39156 done
39159 for ac_func in setrlimit
39161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39162 echo "$as_me:$LINENO: checking for $ac_func" >&5
39163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39164 if eval "test \"\${$as_ac_var+set}\" = set"; then
39165 echo $ECHO_N "(cached) $ECHO_C" >&6
39166 else
39167 cat >conftest.$ac_ext <<_ACEOF
39168 /* confdefs.h. */
39169 _ACEOF
39170 cat confdefs.h >>conftest.$ac_ext
39171 cat >>conftest.$ac_ext <<_ACEOF
39172 /* end confdefs.h. */
39173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39175 #define $ac_func innocuous_$ac_func
39177 /* System header to define __stub macros and hopefully few prototypes,
39178 which can conflict with char $ac_func (); below.
39179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39180 <limits.h> exists even on freestanding compilers. */
39182 #ifdef __STDC__
39183 # include <limits.h>
39184 #else
39185 # include <assert.h>
39186 #endif
39188 #undef $ac_func
39190 /* Override any gcc2 internal prototype to avoid an error. */
39191 #ifdef __cplusplus
39192 extern "C"
39194 #endif
39195 /* We use char because int might match the return type of a gcc2
39196 builtin and then its argument prototype would still apply. */
39197 char $ac_func ();
39198 /* The GNU C library defines this for functions which it implements
39199 to always fail with ENOSYS. Some functions are actually named
39200 something starting with __ and the normal name is an alias. */
39201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39202 choke me
39203 #else
39204 char (*f) () = $ac_func;
39205 #endif
39206 #ifdef __cplusplus
39208 #endif
39211 main ()
39213 return f != $ac_func;
39215 return 0;
39217 _ACEOF
39218 rm -f conftest.$ac_objext conftest$ac_exeext
39219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39220 (eval $ac_link) 2>conftest.er1
39221 ac_status=$?
39222 grep -v '^ *+' conftest.er1 >conftest.err
39223 rm -f conftest.er1
39224 cat conftest.err >&5
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); } &&
39227 { ac_try='test -z "$ac_c_werror_flag"
39228 || test ! -s conftest.err'
39229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230 (eval $ac_try) 2>&5
39231 ac_status=$?
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); }; } &&
39234 { ac_try='test -s conftest$ac_exeext'
39235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236 (eval $ac_try) 2>&5
39237 ac_status=$?
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); }; }; then
39240 eval "$as_ac_var=yes"
39241 else
39242 echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39245 eval "$as_ac_var=no"
39247 rm -f conftest.err conftest.$ac_objext \
39248 conftest$ac_exeext conftest.$ac_ext
39250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39252 if test `eval echo '${'$as_ac_var'}'` = yes; then
39253 cat >>confdefs.h <<_ACEOF
39254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39255 _ACEOF
39258 done
39261 for ac_func in settimeofday
39263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39264 echo "$as_me:$LINENO: checking for $ac_func" >&5
39265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39266 if eval "test \"\${$as_ac_var+set}\" = set"; then
39267 echo $ECHO_N "(cached) $ECHO_C" >&6
39268 else
39269 cat >conftest.$ac_ext <<_ACEOF
39270 /* confdefs.h. */
39271 _ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h. */
39275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39277 #define $ac_func innocuous_$ac_func
39279 /* System header to define __stub macros and hopefully few prototypes,
39280 which can conflict with char $ac_func (); below.
39281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39282 <limits.h> exists even on freestanding compilers. */
39284 #ifdef __STDC__
39285 # include <limits.h>
39286 #else
39287 # include <assert.h>
39288 #endif
39290 #undef $ac_func
39292 /* Override any gcc2 internal prototype to avoid an error. */
39293 #ifdef __cplusplus
39294 extern "C"
39296 #endif
39297 /* We use char because int might match the return type of a gcc2
39298 builtin and then its argument prototype would still apply. */
39299 char $ac_func ();
39300 /* The GNU C library defines this for functions which it implements
39301 to always fail with ENOSYS. Some functions are actually named
39302 something starting with __ and the normal name is an alias. */
39303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39304 choke me
39305 #else
39306 char (*f) () = $ac_func;
39307 #endif
39308 #ifdef __cplusplus
39310 #endif
39313 main ()
39315 return f != $ac_func;
39317 return 0;
39319 _ACEOF
39320 rm -f conftest.$ac_objext conftest$ac_exeext
39321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39322 (eval $ac_link) 2>conftest.er1
39323 ac_status=$?
39324 grep -v '^ *+' conftest.er1 >conftest.err
39325 rm -f conftest.er1
39326 cat conftest.err >&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); } &&
39329 { ac_try='test -z "$ac_c_werror_flag"
39330 || test ! -s conftest.err'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39333 ac_status=$?
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; } &&
39336 { ac_try='test -s conftest$ac_exeext'
39337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39338 (eval $ac_try) 2>&5
39339 ac_status=$?
39340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341 (exit $ac_status); }; }; then
39342 eval "$as_ac_var=yes"
39343 else
39344 echo "$as_me: failed program was:" >&5
39345 sed 's/^/| /' conftest.$ac_ext >&5
39347 eval "$as_ac_var=no"
39349 rm -f conftest.err conftest.$ac_objext \
39350 conftest$ac_exeext conftest.$ac_ext
39352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39354 if test `eval echo '${'$as_ac_var'}'` = yes; then
39355 cat >>confdefs.h <<_ACEOF
39356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39357 _ACEOF
39359 else
39361 case "$host" in
39362 *-*-mpeix*) ac_cv_func_settimeofday=yes
39364 esac
39366 done
39370 for ac_func in setvbuf sigaction
39372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39373 echo "$as_me:$LINENO: checking for $ac_func" >&5
39374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39375 if eval "test \"\${$as_ac_var+set}\" = set"; then
39376 echo $ECHO_N "(cached) $ECHO_C" >&6
39377 else
39378 cat >conftest.$ac_ext <<_ACEOF
39379 /* confdefs.h. */
39380 _ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h. */
39384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39386 #define $ac_func innocuous_$ac_func
39388 /* System header to define __stub macros and hopefully few prototypes,
39389 which can conflict with char $ac_func (); below.
39390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39391 <limits.h> exists even on freestanding compilers. */
39393 #ifdef __STDC__
39394 # include <limits.h>
39395 #else
39396 # include <assert.h>
39397 #endif
39399 #undef $ac_func
39401 /* Override any gcc2 internal prototype to avoid an error. */
39402 #ifdef __cplusplus
39403 extern "C"
39405 #endif
39406 /* We use char because int might match the return type of a gcc2
39407 builtin and then its argument prototype would still apply. */
39408 char $ac_func ();
39409 /* The GNU C library defines this for functions which it implements
39410 to always fail with ENOSYS. Some functions are actually named
39411 something starting with __ and the normal name is an alias. */
39412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39413 choke me
39414 #else
39415 char (*f) () = $ac_func;
39416 #endif
39417 #ifdef __cplusplus
39419 #endif
39422 main ()
39424 return f != $ac_func;
39426 return 0;
39428 _ACEOF
39429 rm -f conftest.$ac_objext conftest$ac_exeext
39430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39431 (eval $ac_link) 2>conftest.er1
39432 ac_status=$?
39433 grep -v '^ *+' conftest.er1 >conftest.err
39434 rm -f conftest.er1
39435 cat conftest.err >&5
39436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437 (exit $ac_status); } &&
39438 { ac_try='test -z "$ac_c_werror_flag"
39439 || test ! -s conftest.err'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39442 ac_status=$?
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; } &&
39445 { ac_try='test -s conftest$ac_exeext'
39446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39447 (eval $ac_try) 2>&5
39448 ac_status=$?
39449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450 (exit $ac_status); }; }; then
39451 eval "$as_ac_var=yes"
39452 else
39453 echo "$as_me: failed program was:" >&5
39454 sed 's/^/| /' conftest.$ac_ext >&5
39456 eval "$as_ac_var=no"
39458 rm -f conftest.err conftest.$ac_objext \
39459 conftest$ac_exeext conftest.$ac_ext
39461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39463 if test `eval echo '${'$as_ac_var'}'` = yes; then
39464 cat >>confdefs.h <<_ACEOF
39465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39466 _ACEOF
39469 done
39478 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
39480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39481 echo "$as_me:$LINENO: checking for $ac_func" >&5
39482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39483 if eval "test \"\${$as_ac_var+set}\" = set"; then
39484 echo $ECHO_N "(cached) $ECHO_C" >&6
39485 else
39486 cat >conftest.$ac_ext <<_ACEOF
39487 /* confdefs.h. */
39488 _ACEOF
39489 cat confdefs.h >>conftest.$ac_ext
39490 cat >>conftest.$ac_ext <<_ACEOF
39491 /* end confdefs.h. */
39492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39494 #define $ac_func innocuous_$ac_func
39496 /* System header to define __stub macros and hopefully few prototypes,
39497 which can conflict with char $ac_func (); below.
39498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39499 <limits.h> exists even on freestanding compilers. */
39501 #ifdef __STDC__
39502 # include <limits.h>
39503 #else
39504 # include <assert.h>
39505 #endif
39507 #undef $ac_func
39509 /* Override any gcc2 internal prototype to avoid an error. */
39510 #ifdef __cplusplus
39511 extern "C"
39513 #endif
39514 /* We use char because int might match the return type of a gcc2
39515 builtin and then its argument prototype would still apply. */
39516 char $ac_func ();
39517 /* The GNU C library defines this for functions which it implements
39518 to always fail with ENOSYS. Some functions are actually named
39519 something starting with __ and the normal name is an alias. */
39520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39521 choke me
39522 #else
39523 char (*f) () = $ac_func;
39524 #endif
39525 #ifdef __cplusplus
39527 #endif
39530 main ()
39532 return f != $ac_func;
39534 return 0;
39536 _ACEOF
39537 rm -f conftest.$ac_objext conftest$ac_exeext
39538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39539 (eval $ac_link) 2>conftest.er1
39540 ac_status=$?
39541 grep -v '^ *+' conftest.er1 >conftest.err
39542 rm -f conftest.er1
39543 cat conftest.err >&5
39544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545 (exit $ac_status); } &&
39546 { ac_try='test -z "$ac_c_werror_flag"
39547 || test ! -s conftest.err'
39548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39549 (eval $ac_try) 2>&5
39550 ac_status=$?
39551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552 (exit $ac_status); }; } &&
39553 { ac_try='test -s conftest$ac_exeext'
39554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555 (eval $ac_try) 2>&5
39556 ac_status=$?
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); }; }; then
39559 eval "$as_ac_var=yes"
39560 else
39561 echo "$as_me: failed program was:" >&5
39562 sed 's/^/| /' conftest.$ac_ext >&5
39564 eval "$as_ac_var=no"
39566 rm -f conftest.err conftest.$ac_objext \
39567 conftest$ac_exeext conftest.$ac_ext
39569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39571 if test `eval echo '${'$as_ac_var'}'` = yes; then
39572 cat >>confdefs.h <<_ACEOF
39573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39574 _ACEOF
39577 done
39583 for ac_func in snprintf strdup strerror strstr
39585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39586 echo "$as_me:$LINENO: checking for $ac_func" >&5
39587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39588 if eval "test \"\${$as_ac_var+set}\" = set"; then
39589 echo $ECHO_N "(cached) $ECHO_C" >&6
39590 else
39591 cat >conftest.$ac_ext <<_ACEOF
39592 /* confdefs.h. */
39593 _ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h. */
39597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39599 #define $ac_func innocuous_$ac_func
39601 /* System header to define __stub macros and hopefully few prototypes,
39602 which can conflict with char $ac_func (); below.
39603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39604 <limits.h> exists even on freestanding compilers. */
39606 #ifdef __STDC__
39607 # include <limits.h>
39608 #else
39609 # include <assert.h>
39610 #endif
39612 #undef $ac_func
39614 /* Override any gcc2 internal prototype to avoid an error. */
39615 #ifdef __cplusplus
39616 extern "C"
39618 #endif
39619 /* We use char because int might match the return type of a gcc2
39620 builtin and then its argument prototype would still apply. */
39621 char $ac_func ();
39622 /* The GNU C library defines this for functions which it implements
39623 to always fail with ENOSYS. Some functions are actually named
39624 something starting with __ and the normal name is an alias. */
39625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39626 choke me
39627 #else
39628 char (*f) () = $ac_func;
39629 #endif
39630 #ifdef __cplusplus
39632 #endif
39635 main ()
39637 return f != $ac_func;
39639 return 0;
39641 _ACEOF
39642 rm -f conftest.$ac_objext conftest$ac_exeext
39643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39644 (eval $ac_link) 2>conftest.er1
39645 ac_status=$?
39646 grep -v '^ *+' conftest.er1 >conftest.err
39647 rm -f conftest.er1
39648 cat conftest.err >&5
39649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650 (exit $ac_status); } &&
39651 { ac_try='test -z "$ac_c_werror_flag"
39652 || test ! -s conftest.err'
39653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654 (eval $ac_try) 2>&5
39655 ac_status=$?
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); }; } &&
39658 { ac_try='test -s conftest$ac_exeext'
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39661 ac_status=$?
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; }; then
39664 eval "$as_ac_var=yes"
39665 else
39666 echo "$as_me: failed program was:" >&5
39667 sed 's/^/| /' conftest.$ac_ext >&5
39669 eval "$as_ac_var=no"
39671 rm -f conftest.err conftest.$ac_objext \
39672 conftest$ac_exeext conftest.$ac_ext
39674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39676 if test `eval echo '${'$as_ac_var'}'` = yes; then
39677 cat >>confdefs.h <<_ACEOF
39678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39679 _ACEOF
39682 done
39685 for ac_func in timegm
39687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39688 echo "$as_me:$LINENO: checking for $ac_func" >&5
39689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39690 if eval "test \"\${$as_ac_var+set}\" = set"; then
39691 echo $ECHO_N "(cached) $ECHO_C" >&6
39692 else
39693 cat >conftest.$ac_ext <<_ACEOF
39694 /* confdefs.h. */
39695 _ACEOF
39696 cat confdefs.h >>conftest.$ac_ext
39697 cat >>conftest.$ac_ext <<_ACEOF
39698 /* end confdefs.h. */
39699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39701 #define $ac_func innocuous_$ac_func
39703 /* System header to define __stub macros and hopefully few prototypes,
39704 which can conflict with char $ac_func (); below.
39705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39706 <limits.h> exists even on freestanding compilers. */
39708 #ifdef __STDC__
39709 # include <limits.h>
39710 #else
39711 # include <assert.h>
39712 #endif
39714 #undef $ac_func
39716 /* Override any gcc2 internal prototype to avoid an error. */
39717 #ifdef __cplusplus
39718 extern "C"
39720 #endif
39721 /* We use char because int might match the return type of a gcc2
39722 builtin and then its argument prototype would still apply. */
39723 char $ac_func ();
39724 /* The GNU C library defines this for functions which it implements
39725 to always fail with ENOSYS. Some functions are actually named
39726 something starting with __ and the normal name is an alias. */
39727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39728 choke me
39729 #else
39730 char (*f) () = $ac_func;
39731 #endif
39732 #ifdef __cplusplus
39734 #endif
39737 main ()
39739 return f != $ac_func;
39741 return 0;
39743 _ACEOF
39744 rm -f conftest.$ac_objext conftest$ac_exeext
39745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39746 (eval $ac_link) 2>conftest.er1
39747 ac_status=$?
39748 grep -v '^ *+' conftest.er1 >conftest.err
39749 rm -f conftest.er1
39750 cat conftest.err >&5
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); } &&
39753 { ac_try='test -z "$ac_c_werror_flag"
39754 || test ! -s conftest.err'
39755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39756 (eval $ac_try) 2>&5
39757 ac_status=$?
39758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); }; } &&
39760 { ac_try='test -s conftest$ac_exeext'
39761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762 (eval $ac_try) 2>&5
39763 ac_status=$?
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; }; then
39766 eval "$as_ac_var=yes"
39767 else
39768 echo "$as_me: failed program was:" >&5
39769 sed 's/^/| /' conftest.$ac_ext >&5
39771 eval "$as_ac_var=no"
39773 rm -f conftest.err conftest.$ac_objext \
39774 conftest$ac_exeext conftest.$ac_ext
39776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39778 if test `eval echo '${'$as_ac_var'}'` = yes; then
39779 cat >>confdefs.h <<_ACEOF
39780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39781 _ACEOF
39784 done
39786 case "$host" in
39787 *-*-aix[456]*)
39788 # Just stubs. Idiots.
39790 *-*-netbsd1*)
39791 # Just stubs. Idiots.
39793 *-*-netbsdelf1*)
39794 # Just stubs. Idiots.
39796 *-*-openbsd*)
39797 # Just stubs. Idiots.
39801 for ac_func in timer_create timer_settime
39803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39804 echo "$as_me:$LINENO: checking for $ac_func" >&5
39805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39806 if eval "test \"\${$as_ac_var+set}\" = set"; then
39807 echo $ECHO_N "(cached) $ECHO_C" >&6
39808 else
39809 cat >conftest.$ac_ext <<_ACEOF
39810 /* confdefs.h. */
39811 _ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h. */
39815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39817 #define $ac_func innocuous_$ac_func
39819 /* System header to define __stub macros and hopefully few prototypes,
39820 which can conflict with char $ac_func (); below.
39821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39822 <limits.h> exists even on freestanding compilers. */
39824 #ifdef __STDC__
39825 # include <limits.h>
39826 #else
39827 # include <assert.h>
39828 #endif
39830 #undef $ac_func
39832 /* Override any gcc2 internal prototype to avoid an error. */
39833 #ifdef __cplusplus
39834 extern "C"
39836 #endif
39837 /* We use char because int might match the return type of a gcc2
39838 builtin and then its argument prototype would still apply. */
39839 char $ac_func ();
39840 /* The GNU C library defines this for functions which it implements
39841 to always fail with ENOSYS. Some functions are actually named
39842 something starting with __ and the normal name is an alias. */
39843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39844 choke me
39845 #else
39846 char (*f) () = $ac_func;
39847 #endif
39848 #ifdef __cplusplus
39850 #endif
39853 main ()
39855 return f != $ac_func;
39857 return 0;
39859 _ACEOF
39860 rm -f conftest.$ac_objext conftest$ac_exeext
39861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39862 (eval $ac_link) 2>conftest.er1
39863 ac_status=$?
39864 grep -v '^ *+' conftest.er1 >conftest.err
39865 rm -f conftest.er1
39866 cat conftest.err >&5
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } &&
39869 { ac_try='test -z "$ac_c_werror_flag"
39870 || test ! -s conftest.err'
39871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872 (eval $ac_try) 2>&5
39873 ac_status=$?
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); }; } &&
39876 { ac_try='test -s conftest$ac_exeext'
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; }; then
39882 eval "$as_ac_var=yes"
39883 else
39884 echo "$as_me: failed program was:" >&5
39885 sed 's/^/| /' conftest.$ac_ext >&5
39887 eval "$as_ac_var=no"
39889 rm -f conftest.err conftest.$ac_objext \
39890 conftest$ac_exeext conftest.$ac_ext
39892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39894 if test `eval echo '${'$as_ac_var'}'` = yes; then
39895 cat >>confdefs.h <<_ACEOF
39896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39897 _ACEOF
39900 done
39903 esac
39904 case "$host" in
39905 *-pc-cygwin*)
39906 # I have no idea...
39909 for ac_func in umask
39911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39912 echo "$as_me:$LINENO: checking for $ac_func" >&5
39913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39914 if eval "test \"\${$as_ac_var+set}\" = set"; then
39915 echo $ECHO_N "(cached) $ECHO_C" >&6
39916 else
39917 cat >conftest.$ac_ext <<_ACEOF
39918 /* confdefs.h. */
39919 _ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h. */
39923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39925 #define $ac_func innocuous_$ac_func
39927 /* System header to define __stub macros and hopefully few prototypes,
39928 which can conflict with char $ac_func (); below.
39929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39930 <limits.h> exists even on freestanding compilers. */
39932 #ifdef __STDC__
39933 # include <limits.h>
39934 #else
39935 # include <assert.h>
39936 #endif
39938 #undef $ac_func
39940 /* Override any gcc2 internal prototype to avoid an error. */
39941 #ifdef __cplusplus
39942 extern "C"
39944 #endif
39945 /* We use char because int might match the return type of a gcc2
39946 builtin and then its argument prototype would still apply. */
39947 char $ac_func ();
39948 /* The GNU C library defines this for functions which it implements
39949 to always fail with ENOSYS. Some functions are actually named
39950 something starting with __ and the normal name is an alias. */
39951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39952 choke me
39953 #else
39954 char (*f) () = $ac_func;
39955 #endif
39956 #ifdef __cplusplus
39958 #endif
39961 main ()
39963 return f != $ac_func;
39965 return 0;
39967 _ACEOF
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39970 (eval $ac_link) 2>conftest.er1
39971 ac_status=$?
39972 grep -v '^ *+' conftest.er1 >conftest.err
39973 rm -f conftest.er1
39974 cat conftest.err >&5
39975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976 (exit $ac_status); } &&
39977 { ac_try='test -z "$ac_c_werror_flag"
39978 || test ! -s conftest.err'
39979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39980 (eval $ac_try) 2>&5
39981 ac_status=$?
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); }; } &&
39984 { ac_try='test -s conftest$ac_exeext'
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; }; then
39990 eval "$as_ac_var=yes"
39991 else
39992 echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39995 eval "$as_ac_var=no"
39997 rm -f conftest.err conftest.$ac_objext \
39998 conftest$ac_exeext conftest.$ac_ext
40000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40002 if test `eval echo '${'$as_ac_var'}'` = yes; then
40003 cat >>confdefs.h <<_ACEOF
40004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40005 _ACEOF
40008 done
40011 esac
40017 for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
40019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40020 echo "$as_me:$LINENO: checking for $ac_func" >&5
40021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40022 if eval "test \"\${$as_ac_var+set}\" = set"; then
40023 echo $ECHO_N "(cached) $ECHO_C" >&6
40024 else
40025 cat >conftest.$ac_ext <<_ACEOF
40026 /* confdefs.h. */
40027 _ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40033 #define $ac_func innocuous_$ac_func
40035 /* System header to define __stub macros and hopefully few prototypes,
40036 which can conflict with char $ac_func (); below.
40037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40038 <limits.h> exists even on freestanding compilers. */
40040 #ifdef __STDC__
40041 # include <limits.h>
40042 #else
40043 # include <assert.h>
40044 #endif
40046 #undef $ac_func
40048 /* Override any gcc2 internal prototype to avoid an error. */
40049 #ifdef __cplusplus
40050 extern "C"
40052 #endif
40053 /* We use char because int might match the return type of a gcc2
40054 builtin and then its argument prototype would still apply. */
40055 char $ac_func ();
40056 /* The GNU C library defines this for functions which it implements
40057 to always fail with ENOSYS. Some functions are actually named
40058 something starting with __ and the normal name is an alias. */
40059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40060 choke me
40061 #else
40062 char (*f) () = $ac_func;
40063 #endif
40064 #ifdef __cplusplus
40066 #endif
40069 main ()
40071 return f != $ac_func;
40073 return 0;
40075 _ACEOF
40076 rm -f conftest.$ac_objext conftest$ac_exeext
40077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40078 (eval $ac_link) 2>conftest.er1
40079 ac_status=$?
40080 grep -v '^ *+' conftest.er1 >conftest.err
40081 rm -f conftest.er1
40082 cat conftest.err >&5
40083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40084 (exit $ac_status); } &&
40085 { ac_try='test -z "$ac_c_werror_flag"
40086 || test ! -s conftest.err'
40087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40088 (eval $ac_try) 2>&5
40089 ac_status=$?
40090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091 (exit $ac_status); }; } &&
40092 { ac_try='test -s conftest$ac_exeext'
40093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40094 (eval $ac_try) 2>&5
40095 ac_status=$?
40096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097 (exit $ac_status); }; }; then
40098 eval "$as_ac_var=yes"
40099 else
40100 echo "$as_me: failed program was:" >&5
40101 sed 's/^/| /' conftest.$ac_ext >&5
40103 eval "$as_ac_var=no"
40105 rm -f conftest.err conftest.$ac_objext \
40106 conftest$ac_exeext conftest.$ac_ext
40108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40110 if test `eval echo '${'$as_ac_var'}'` = yes; then
40111 cat >>confdefs.h <<_ACEOF
40112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40113 _ACEOF
40116 done
40121 # http://bugs.ntp.org/737
40122 case "$ac_cv_func_recvmsg" in
40123 yes)
40124 echo "$as_me:$LINENO: checking if we need extra help to define struct iovec" >&5
40125 echo $ECHO_N "checking if we need extra help to define struct iovec... $ECHO_C" >&6
40126 if test "${ac_cv_struct_iovec_help+set}" = set; then
40127 echo $ECHO_N "(cached) $ECHO_C" >&6
40128 else
40129 for ac_cv_struct_iovec_help in '0' '1'; do
40130 cat >conftest.$ac_ext <<_ACEOF
40131 /* confdefs.h. */
40132 _ACEOF
40133 cat confdefs.h >>conftest.$ac_ext
40134 cat >>conftest.$ac_ext <<_ACEOF
40135 /* end confdefs.h. */
40136 #ifdef HAVE_SYS_TYPES_H
40137 #include <sys/types.h>
40138 #endif
40139 #ifdef HAVE_SYS_SOCKET_H
40140 #include <sys/socket.h>
40141 #endif
40142 #if $ac_cv_struct_iovec_help
40143 #include <sys/uio.h>
40144 #endif
40146 void foo();
40147 void foo() {
40148 ssize_t x;
40149 int s = 0;
40150 struct iovec iov;
40151 struct msghdr mh;
40152 int flags = 0;
40154 mh.msg_iov = &iov;
40155 x = recvmsg(s, &mh, flags);
40158 main ()
40162 return 0;
40164 _ACEOF
40165 rm -f conftest.$ac_objext
40166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40167 (eval $ac_compile) 2>conftest.er1
40168 ac_status=$?
40169 grep -v '^ *+' conftest.er1 >conftest.err
40170 rm -f conftest.er1
40171 cat conftest.err >&5
40172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40173 (exit $ac_status); } &&
40174 { ac_try='test -z "$ac_c_werror_flag"
40175 || test ! -s conftest.err'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; } &&
40181 { ac_try='test -s conftest.$ac_objext'
40182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183 (eval $ac_try) 2>&5
40184 ac_status=$?
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; }; then
40187 ac_worked=yes ; break 1
40188 else
40189 echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40192 ac_worked=no
40194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40195 done
40198 case "$ac_worked$ac_cv_struct_iovec_help" in
40199 yes1)
40201 cat >>confdefs.h <<\_ACEOF
40202 #define HAVE_SYS_UIO_H 1
40203 _ACEOF
40205 ans=yes
40207 *) ans=no
40208 esac
40209 echo "$as_me:$LINENO: result: $ans" >&5
40210 echo "${ECHO_T}$ans" >&6
40212 esac
40214 case "$host" in
40215 *-*-sunos4*)
40217 cat >>confdefs.h <<\_ACEOF
40218 #define SPRINTF_CHAR 1
40219 _ACEOF
40222 esac
40224 echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
40225 echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
40226 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
40227 echo $ECHO_N "(cached) $ECHO_C" >&6
40228 else
40229 cat >conftest.$ac_ext <<_ACEOF
40230 /* confdefs.h. */
40231 _ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40235 #include <sys/time.h>
40237 main ()
40240 gettimeofday((struct timeval*)0,(struct timezone*)0);
40241 settimeofday((struct timeval*)0,(struct timezone*)0);
40244 return 0;
40246 _ACEOF
40247 rm -f conftest.$ac_objext
40248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40249 (eval $ac_compile) 2>conftest.er1
40250 ac_status=$?
40251 grep -v '^ *+' conftest.er1 >conftest.err
40252 rm -f conftest.er1
40253 cat conftest.err >&5
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); } &&
40256 { ac_try='test -z "$ac_c_werror_flag"
40257 || test ! -s conftest.err'
40258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40259 (eval $ac_try) 2>&5
40260 ac_status=$?
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); }; } &&
40263 { ac_try='test -s conftest.$ac_objext'
40264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40265 (eval $ac_try) 2>&5
40266 ac_status=$?
40267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268 (exit $ac_status); }; }; then
40269 ac_cv_func_Xettimeofday_nargs=2
40270 else
40271 echo "$as_me: failed program was:" >&5
40272 sed 's/^/| /' conftest.$ac_ext >&5
40274 ac_cv_func_Xettimeofday_nargs=1
40276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40279 echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
40280 echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
40281 if test $ac_cv_func_Xettimeofday_nargs = 1; then
40283 cat >>confdefs.h <<\_ACEOF
40284 #define SYSV_TIMEOFDAY 1
40285 _ACEOF
40289 echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
40290 echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
40291 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294 cat >conftest.$ac_ext <<_ACEOF
40295 /* confdefs.h. */
40296 _ACEOF
40297 cat confdefs.h >>conftest.$ac_ext
40298 cat >>conftest.$ac_ext <<_ACEOF
40299 /* end confdefs.h. */
40301 #ifdef HAVE_SYS_TYPES_H
40302 # include <sys/types.h>
40303 #endif
40304 #ifdef HAVE_UNISTD_H
40305 # include <unistd.h>
40306 #endif
40309 main ()
40311 setpgrp(0,0);
40313 return 0;
40315 _ACEOF
40316 rm -f conftest.$ac_objext
40317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40318 (eval $ac_compile) 2>conftest.er1
40319 ac_status=$?
40320 grep -v '^ *+' conftest.er1 >conftest.err
40321 rm -f conftest.er1
40322 cat conftest.err >&5
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); } &&
40325 { ac_try='test -z "$ac_c_werror_flag"
40326 || test ! -s conftest.err'
40327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40328 (eval $ac_try) 2>&5
40329 ac_status=$?
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); }; } &&
40332 { ac_try='test -s conftest.$ac_objext'
40333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334 (eval $ac_try) 2>&5
40335 ac_status=$?
40336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337 (exit $ac_status); }; }; then
40338 ac_cv_func_setpgrp_nargs=2
40339 else
40340 echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40343 ac_cv_func_setpgrp_nargs=0
40345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40348 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
40349 echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
40350 if test $ac_cv_func_setpgrp_nargs = 0; then
40352 cat >>confdefs.h <<\_ACEOF
40353 #define HAVE_SETPGRP_0 1
40354 _ACEOF
40358 save_CFLAGS=$CFLAGS
40359 CFLAGS="$CFLAGS -I$srcdir/include"
40361 echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
40362 echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
40363 if test "${ac_cv_func_qsort_argtype+set}" = set; then
40364 echo $ECHO_N "(cached) $ECHO_C" >&6
40365 else
40366 cat >conftest.$ac_ext <<_ACEOF
40367 /* confdefs.h. */
40368 _ACEOF
40369 cat confdefs.h >>conftest.$ac_ext
40370 cat >>conftest.$ac_ext <<_ACEOF
40371 /* end confdefs.h. */
40373 #include "l_stdlib.h"
40375 #ifdef HAVE_PROTOTYPES
40376 #define P(x) x
40377 #else
40378 #define P(x) ()
40379 #endif
40381 extern void *base;
40382 extern sortfunc P((const void *, const void *));
40383 int sortfunc(a, b)
40384 const void *a;
40385 const void *b; { return 0; }
40388 main ()
40391 qsort(base, 2, sizeof(char *), sortfunc);
40394 return 0;
40396 _ACEOF
40397 rm -f conftest.$ac_objext
40398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40399 (eval $ac_compile) 2>conftest.er1
40400 ac_status=$?
40401 grep -v '^ *+' conftest.er1 >conftest.err
40402 rm -f conftest.er1
40403 cat conftest.err >&5
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
40406 { ac_try='test -z "$ac_c_werror_flag"
40407 || test ! -s conftest.err'
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40410 ac_status=$?
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; } &&
40413 { ac_try='test -s conftest.$ac_objext'
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40416 ac_status=$?
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; }; then
40419 ac_cv_func_qsort_argtype=void
40420 else
40421 echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40424 ac_cv_func_qsort_argtype=char
40426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40429 echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
40430 echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
40431 case "$ac_cv_func_qsort_argtype" in
40432 void)
40434 cat >>confdefs.h <<\_ACEOF
40435 #define QSORT_USES_VOID_P 1
40436 _ACEOF
40439 esac
40441 CFLAGS=$save_CFLAGS
40443 echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
40444 echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
40445 if test "${ac_cv_decl_errno+set}" = set; then
40446 echo $ECHO_N "(cached) $ECHO_C" >&6
40447 else
40448 cat >conftest.$ac_ext <<_ACEOF
40449 /* confdefs.h. */
40450 _ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h. */
40454 #ifdef HAVE_ERRNO_H
40455 #include <errno.h>
40456 #endif
40458 main ()
40460 errno = 0;
40462 return 0;
40464 _ACEOF
40465 rm -f conftest.$ac_objext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40467 (eval $ac_compile) 2>conftest.er1
40468 ac_status=$?
40469 grep -v '^ *+' conftest.er1 >conftest.err
40470 rm -f conftest.er1
40471 cat conftest.err >&5
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); } &&
40474 { ac_try='test -z "$ac_c_werror_flag"
40475 || test ! -s conftest.err'
40476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40477 (eval $ac_try) 2>&5
40478 ac_status=$?
40479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480 (exit $ac_status); }; } &&
40481 { ac_try='test -s conftest.$ac_objext'
40482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40483 (eval $ac_try) 2>&5
40484 ac_status=$?
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); }; }; then
40487 ac_cv_decl_errno=no
40488 else
40489 echo "$as_me: failed program was:" >&5
40490 sed 's/^/| /' conftest.$ac_ext >&5
40492 ac_cv_decl_errno=yes
40494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40496 echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
40497 echo "${ECHO_T}$ac_cv_decl_errno" >&6
40498 case "$ac_cv_decl_errno" in
40499 yes)
40500 cat >>confdefs.h <<\_ACEOF
40501 #define DECL_ERRNO 1
40502 _ACEOF
40504 esac
40506 echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
40507 echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
40508 if test "${ac_cv_decl_h_errno+set}" = set; then
40509 echo $ECHO_N "(cached) $ECHO_C" >&6
40510 else
40511 cat >conftest.$ac_ext <<_ACEOF
40512 /* confdefs.h. */
40513 _ACEOF
40514 cat confdefs.h >>conftest.$ac_ext
40515 cat >>conftest.$ac_ext <<_ACEOF
40516 /* end confdefs.h. */
40517 #include <sys/types.h>
40518 #ifdef HAVE_NETINET_IN_H
40519 #include <netinet/in.h>
40520 #endif
40521 #ifdef HAVE_ARPA_NAMESER_H
40522 #include <arpa/nameser.h>
40523 #endif
40524 #ifdef HAVE_NETDB_H
40525 #include <netdb.h>
40526 #endif
40527 #ifdef HAVE_RESOLV_H
40528 #include <resolv.h>
40529 #endif
40531 main ()
40533 extern int h_errno;
40535 return 0;
40537 _ACEOF
40538 rm -f conftest.$ac_objext
40539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40540 (eval $ac_compile) 2>conftest.er1
40541 ac_status=$?
40542 grep -v '^ *+' conftest.er1 >conftest.err
40543 rm -f conftest.er1
40544 cat conftest.err >&5
40545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546 (exit $ac_status); } &&
40547 { ac_try='test -z "$ac_c_werror_flag"
40548 || test ! -s conftest.err'
40549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40550 (eval $ac_try) 2>&5
40551 ac_status=$?
40552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553 (exit $ac_status); }; } &&
40554 { ac_try='test -s conftest.$ac_objext'
40555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556 (eval $ac_try) 2>&5
40557 ac_status=$?
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); }; }; then
40560 ac_cv_decl_h_errno=yes
40561 else
40562 echo "$as_me: failed program was:" >&5
40563 sed 's/^/| /' conftest.$ac_ext >&5
40565 ac_cv_decl_h_errno=no
40567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40569 echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
40570 echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
40571 case "$ac_cv_decl_h_errno" in
40572 yes)
40573 cat >>confdefs.h <<\_ACEOF
40574 #define DECL_H_ERRNO 1
40575 _ACEOF
40577 esac
40579 echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
40580 echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
40581 if test "${ac_cv_decl_sys_errlist+set}" = set; then
40582 echo $ECHO_N "(cached) $ECHO_C" >&6
40583 else
40584 cat >conftest.$ac_ext <<_ACEOF
40585 /* confdefs.h. */
40586 _ACEOF
40587 cat confdefs.h >>conftest.$ac_ext
40588 cat >>conftest.$ac_ext <<_ACEOF
40589 /* end confdefs.h. */
40590 #include <stdio.h>
40591 #ifdef HAVE_ERRNO_H
40592 #include <errno.h>
40593 #endif
40595 main ()
40597 extern char *sys_errlist[];
40600 return 0;
40602 _ACEOF
40603 rm -f conftest.$ac_objext
40604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40605 (eval $ac_compile) 2>conftest.er1
40606 ac_status=$?
40607 grep -v '^ *+' conftest.er1 >conftest.err
40608 rm -f conftest.er1
40609 cat conftest.err >&5
40610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40611 (exit $ac_status); } &&
40612 { ac_try='test -z "$ac_c_werror_flag"
40613 || test ! -s conftest.err'
40614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615 (eval $ac_try) 2>&5
40616 ac_status=$?
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); }; } &&
40619 { ac_try='test -s conftest.$ac_objext'
40620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40621 (eval $ac_try) 2>&5
40622 ac_status=$?
40623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624 (exit $ac_status); }; }; then
40625 ac_cv_decl_sys_errlist=yes
40626 else
40627 echo "$as_me: failed program was:" >&5
40628 sed 's/^/| /' conftest.$ac_ext >&5
40630 ac_cv_decl_sys_errlist=no
40632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40634 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
40635 echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
40636 case "$ac_cv_decl_sys_errlist" in
40637 yes)
40638 cat >>confdefs.h <<\_ACEOF
40639 #define CHAR_SYS_ERRLIST 1
40640 _ACEOF
40642 esac
40644 echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
40645 echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
40646 if test "${ac_cv_decl_syscall+set}" = set; then
40647 echo $ECHO_N "(cached) $ECHO_C" >&6
40648 else
40649 cat >conftest.$ac_ext <<_ACEOF
40650 /* confdefs.h. */
40651 _ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h. */
40656 #ifdef HAVE_SYS_TYPES_H
40657 # include <sys/types.h>
40658 #endif
40659 #ifdef HAVE_UNISTD_H
40660 # include <unistd.h>
40661 #endif
40662 #ifdef HAVE_PROTOTYPES
40663 #define P(x) x
40664 #else
40665 #define P(x) ()
40666 #endif
40669 main ()
40671 extern int syscall P((int, ...));
40673 return 0;
40675 _ACEOF
40676 rm -f conftest.$ac_objext
40677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40678 (eval $ac_compile) 2>conftest.er1
40679 ac_status=$?
40680 grep -v '^ *+' conftest.er1 >conftest.err
40681 rm -f conftest.er1
40682 cat conftest.err >&5
40683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684 (exit $ac_status); } &&
40685 { ac_try='test -z "$ac_c_werror_flag"
40686 || test ! -s conftest.err'
40687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40688 (eval $ac_try) 2>&5
40689 ac_status=$?
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); }; } &&
40692 { ac_try='test -s conftest.$ac_objext'
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40695 ac_status=$?
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; }; then
40698 ac_cv_decl_syscall=yes
40699 else
40700 echo "$as_me: failed program was:" >&5
40701 sed 's/^/| /' conftest.$ac_ext >&5
40703 ac_cv_decl_syscall=no
40705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40707 echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
40708 echo "${ECHO_T}$ac_cv_decl_syscall" >&6
40709 case "$ac_cv_decl_syscall" in
40710 yes)
40711 cat >>confdefs.h <<\_ACEOF
40712 #define DECL_SYSCALL 1
40713 _ACEOF
40715 esac
40717 case "$host" in
40718 *-*-aix4.3.*)
40720 cat >>confdefs.h <<\_ACEOF
40721 #define DECL_HSTRERROR_0 1
40722 _ACEOF
40723 # Needed for XLC under AIX 4.3.2
40725 *-*-mpeix*)
40727 cat >>confdefs.h <<\_ACEOF
40728 #define DECL_ADJTIME_0 1
40729 _ACEOF
40732 cat >>confdefs.h <<\_ACEOF
40733 #define DECL_INET_NTOA_0 1
40734 _ACEOF
40737 cat >>confdefs.h <<\_ACEOF
40738 #define DECL_MKTEMP_0 1
40739 _ACEOF
40742 cat >>confdefs.h <<\_ACEOF
40743 #define DECL_SELECT_0 1
40744 _ACEOF
40747 cat >>confdefs.h <<\_ACEOF
40748 #define DECL_SETITIMER_0 1
40749 _ACEOF
40752 cat >>confdefs.h <<\_ACEOF
40753 #define DECL_SYSLOG_0 1
40754 _ACEOF
40757 cat >>confdefs.h <<\_ACEOF
40758 #define DECL_TIMEOFDAY_0 1
40759 _ACEOF
40762 *-*-osf[45]*)
40764 cat >>confdefs.h <<\_ACEOF
40765 #define DECL_PLOCK_0 1
40766 _ACEOF
40769 cat >>confdefs.h <<\_ACEOF
40770 #define DECL_STIME_1 1
40771 _ACEOF
40774 *-*-qnx*)
40776 cat >>confdefs.h <<\_ACEOF
40777 #define DECL_ADJTIME_0 1
40778 _ACEOF
40781 *-*-riscos4*)
40783 cat >>confdefs.h <<\_ACEOF
40784 #define DECL_ADJTIME_0 1
40785 _ACEOF
40788 cat >>confdefs.h <<\_ACEOF
40789 #define DECL_BZERO_0 1
40790 _ACEOF
40793 cat >>confdefs.h <<\_ACEOF
40794 #define DECL_IOCTL_0 1
40795 _ACEOF
40798 cat >>confdefs.h <<\_ACEOF
40799 #define DECL_IPC_0 1
40800 _ACEOF
40803 cat >>confdefs.h <<\_ACEOF
40804 #define DECL_MEMMOVE_0 1
40805 _ACEOF
40808 cat >>confdefs.h <<\_ACEOF
40809 #define DECL_MKTEMP_0 1
40810 _ACEOF
40813 cat >>confdefs.h <<\_ACEOF
40814 #define DECL_RENAME_0 1
40815 _ACEOF
40818 cat >>confdefs.h <<\_ACEOF
40819 #define DECL_SELECT_0 1
40820 _ACEOF
40823 cat >>confdefs.h <<\_ACEOF
40824 #define DECL_SETITIMER_0 1
40825 _ACEOF
40828 cat >>confdefs.h <<\_ACEOF
40829 #define DECL_SETPRIORITY_0 1
40830 _ACEOF
40833 cat >>confdefs.h <<\_ACEOF
40834 #define DECL_STDIO_0 1
40835 _ACEOF
40838 cat >>confdefs.h <<\_ACEOF
40839 #define DECL_STRTOL_0 1
40840 _ACEOF
40843 cat >>confdefs.h <<\_ACEOF
40844 #define DECL_SYSLOG_0 1
40845 _ACEOF
40848 cat >>confdefs.h <<\_ACEOF
40849 #define DECL_TIME_0 1
40850 _ACEOF
40853 cat >>confdefs.h <<\_ACEOF
40854 #define DECL_TIMEOFDAY_0 1
40855 _ACEOF
40858 cat >>confdefs.h <<\_ACEOF
40859 #define DECL_TOLOWER_0 1
40860 _ACEOF
40863 *-*-solaris2*)
40865 cat >>confdefs.h <<\_ACEOF
40866 #define DECL_MKSTEMP_0 1
40867 _ACEOF
40870 cat >>confdefs.h <<\_ACEOF
40871 #define DECL_SETPRIORITY_1 1
40872 _ACEOF
40874 case "$host" in
40875 *-*-solaris2.4)
40877 cat >>confdefs.h <<\_ACEOF
40878 #define DECL_TIMEOFDAY_0 1
40879 _ACEOF
40882 esac
40884 *-*-sunos4*)
40886 cat >>confdefs.h <<\_ACEOF
40887 #define DECL_ADJTIME_0 1
40888 _ACEOF
40891 cat >>confdefs.h <<\_ACEOF
40892 #define DECL_BCOPY_0 1
40893 _ACEOF
40896 cat >>confdefs.h <<\_ACEOF
40897 #define DECL_BZERO_0 1
40898 _ACEOF
40901 cat >>confdefs.h <<\_ACEOF
40902 #define DECL_IOCTL_0 1
40903 _ACEOF
40906 cat >>confdefs.h <<\_ACEOF
40907 #define DECL_IPC_0 1
40908 _ACEOF
40911 cat >>confdefs.h <<\_ACEOF
40912 #define DECL_MEMMOVE_0 1
40913 _ACEOF
40916 cat >>confdefs.h <<\_ACEOF
40917 #define DECL_MKTEMP_0 1
40918 _ACEOF
40921 cat >>confdefs.h <<\_ACEOF
40922 #define DECL_MKSTEMP_0 1
40923 _ACEOF
40926 cat >>confdefs.h <<\_ACEOF
40927 #define DECL_RENAME_0 1
40928 _ACEOF
40931 cat >>confdefs.h <<\_ACEOF
40932 #define DECL_SELECT_0 1
40933 _ACEOF
40936 cat >>confdefs.h <<\_ACEOF
40937 #define DECL_SETITIMER_0 1
40938 _ACEOF
40941 cat >>confdefs.h <<\_ACEOF
40942 #define DECL_SETPRIORITY_0 1
40943 _ACEOF
40946 cat >>confdefs.h <<\_ACEOF
40947 #define DECL_SIGVEC_0 1
40948 _ACEOF
40950 case "`basename $ac_cv_prog_CC`" in
40951 acc*) ;;
40953 cat >>confdefs.h <<\_ACEOF
40954 #define DECL_STDIO_0 1
40955 _ACEOF
40958 esac
40960 cat >>confdefs.h <<\_ACEOF
40961 #define DECL_STRTOL_0 1
40962 _ACEOF
40965 cat >>confdefs.h <<\_ACEOF
40966 #define DECL_SYSLOG_0 1
40967 _ACEOF
40970 cat >>confdefs.h <<\_ACEOF
40971 #define DECL_TIME_0 1
40972 _ACEOF
40975 cat >>confdefs.h <<\_ACEOF
40976 #define DECL_TIMEOFDAY_0 1
40977 _ACEOF
40980 cat >>confdefs.h <<\_ACEOF
40981 #define DECL_TOLOWER_0 1
40982 _ACEOF
40985 cat >>confdefs.h <<\_ACEOF
40986 #define DECL_TOUPPER_0 1
40987 _ACEOF
40990 cat >>confdefs.h <<\_ACEOF
40991 #define DECL_STRERROR_0 1
40992 _ACEOF
40995 *-*-ultrix4*)
40997 cat >>confdefs.h <<\_ACEOF
40998 #define DECL_ADJTIME_0 1
40999 _ACEOF
41002 cat >>confdefs.h <<\_ACEOF
41003 #define DECL_BZERO_0 1
41004 _ACEOF
41007 cat >>confdefs.h <<\_ACEOF
41008 #define DECL_CFSETISPEED_0 1
41009 _ACEOF
41012 cat >>confdefs.h <<\_ACEOF
41013 #define DECL_IOCTL_0 1
41014 _ACEOF
41017 cat >>confdefs.h <<\_ACEOF
41018 #define DECL_IPC_0 1
41019 _ACEOF
41022 cat >>confdefs.h <<\_ACEOF
41023 #define DECL_MKTEMP_0 1
41024 _ACEOF
41027 cat >>confdefs.h <<\_ACEOF
41028 #define DECL_NLIST_0 1
41029 _ACEOF
41032 cat >>confdefs.h <<\_ACEOF
41033 #define DECL_PLOCK_0 1
41034 _ACEOF
41037 cat >>confdefs.h <<\_ACEOF
41038 #define DECL_SELECT_0 1
41039 _ACEOF
41042 cat >>confdefs.h <<\_ACEOF
41043 #define DECL_SETITIMER_0 1
41044 _ACEOF
41047 cat >>confdefs.h <<\_ACEOF
41048 #define DECL_SETPRIORITY_0 1
41049 _ACEOF
41052 cat >>confdefs.h <<\_ACEOF
41053 #define DECL_STIME_0 1
41054 _ACEOF
41057 cat >>confdefs.h <<\_ACEOF
41058 #define DECL_SYSLOG_0 1
41059 _ACEOF
41062 cat >>confdefs.h <<\_ACEOF
41063 #define DECL_TIMEOFDAY_0 1
41064 _ACEOF
41067 esac
41069 case "$host" in
41070 *-*-sco3.2*)
41072 cat >>confdefs.h <<\_ACEOF
41073 #define TERMIOS_NEEDS__SVID3 1
41074 _ACEOF
41077 esac
41079 echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
41080 echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
41081 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
41082 echo $ECHO_N "(cached) $ECHO_C" >&6
41083 else
41084 ans=no
41085 case "$host" in
41086 *-*-hpux[567]*)
41087 ans=yes
41089 esac
41090 ac_cv_var_rcvbuf_slop=$ans
41092 echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
41093 echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
41094 case "$ac_cv_var_rcvbuf_slop" in
41095 yes)
41096 cat >>confdefs.h <<\_ACEOF
41097 #define NEED_RCVBUF_SLOP 1
41098 _ACEOF
41100 esac
41102 echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
41103 echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
41104 if test "${ac_cv_var_open_bcast_socket+set}" = set; then
41105 echo $ECHO_N "(cached) $ECHO_C" >&6
41106 else
41107 ans=yes
41108 case "$host" in
41109 *-*-domainos)
41110 ans=no
41112 esac
41113 ac_cv_var_open_bcast_socket=$ans
41115 echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
41116 echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
41117 case "$ac_cv_var_open_bcast_socket" in
41118 yes)
41119 cat >>confdefs.h <<\_ACEOF
41120 #define OPEN_BCAST_SOCKET 1
41121 _ACEOF
41123 esac
41125 echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
41126 echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
41127 if test "${ac_cv_var_hpux_findconfig+set}" = set; then
41128 echo $ECHO_N "(cached) $ECHO_C" >&6
41129 else
41130 ans=no
41131 case "$host" in
41132 *-*-hpux*)
41133 ans=yes
41135 esac
41136 ac_cv_var_hpux_findconfig=$ans
41138 echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
41139 echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
41140 case "$ac_cv_var_hpux_findconfig" in
41141 yes)
41142 cat >>confdefs.h <<\_ACEOF
41143 #define NEED_HPUX_FINDCONFIG 1
41144 _ACEOF
41146 esac
41148 echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
41149 echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
41150 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
41151 echo $ECHO_N "(cached) $ECHO_C" >&6
41152 else
41153 case "$host" in
41154 *-*-hpux[567]*)
41155 ans=no
41157 *-*-hpux*)
41158 ans=yes
41160 *-*-*linux*)
41161 ans=yes
41163 *-*-sunos3*)
41164 ans=yes
41166 *-*-ultrix2*)
41167 ans=yes
41170 ans=no
41172 esac
41173 ac_cv_arg_setpgrp_negpid=$ans
41175 echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
41176 echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
41177 case "$ac_cv_arg_setpgrp_negpid" in
41178 yes)
41179 cat >>confdefs.h <<\_ACEOF
41180 #define UDP_BACKWARDS_SETOWN 1
41181 _ACEOF
41183 esac
41185 echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
41186 echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
41187 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
41188 echo $ECHO_N "(cached) $ECHO_C" >&6
41189 else
41190 case "$host" in
41191 *-*-bsdi[23]*)
41192 ans=yes
41194 *-*-freebsd*)
41195 ans=yes
41197 *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7])
41198 ans=yes
41200 *-*-openbsd*)
41201 ans=yes
41203 *-*-osf*)
41204 ans=yes
41206 *-*-darwin*)
41207 ans=yes
41209 *) ans=no
41211 esac
41212 ac_cv_func_ctty_for_f_setown=$ans
41214 echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
41215 echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
41216 case "$ac_cv_func_ctty_for_f_setown" in
41217 yes)
41218 cat >>confdefs.h <<\_ACEOF
41219 #define USE_FSETOWNCTTY 1
41220 _ACEOF
41222 esac
41224 echo "$as_me:$LINENO: checking if the OS fails to clear cached routes when more specific routes become available" >&5
41225 echo $ECHO_N "checking if the OS fails to clear cached routes when more specific routes become available... $ECHO_C" >&6
41226 if test "${ac_cv_os_routeupdates+set}" = set; then
41227 echo $ECHO_N "(cached) $ECHO_C" >&6
41228 else
41229 case "$host" in
41230 *-*-netbsd*)
41231 ans=yes
41233 *) ans=no
41235 esac
41236 ac_cv_os_routeupdates=$ans
41238 echo "$as_me:$LINENO: result: $ac_cv_os_routeupdates" >&5
41239 echo "${ECHO_T}$ac_cv_os_routeupdates" >&6
41240 case "$ac_cv_os_routeupdates" in
41241 yes)
41242 cat >>confdefs.h <<\_ACEOF
41243 #define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1
41244 _ACEOF
41246 esac
41248 echo "$as_me:$LINENO: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
41249 echo $ECHO_N "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... $ECHO_C" >&6
41250 if test "${ac_cv_os_wildcardreuse+set}" = set; then
41251 echo $ECHO_N "(cached) $ECHO_C" >&6
41252 else
41253 case "$host" in
41254 *-*-*linux*)
41255 ans=yes
41257 *) ans=no
41259 esac
41260 ac_cv_os_wildcardreuse=$ans
41262 echo "$as_me:$LINENO: result: $ac_cv_os_wildcardreuse" >&5
41263 echo "${ECHO_T}$ac_cv_os_wildcardreuse" >&6
41264 case "$ac_cv_os_wildcardreuse" in
41265 yes)
41266 cat >>confdefs.h <<\_ACEOF
41267 #define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1
41268 _ACEOF
41270 esac
41272 ntp_warning='GRONK'
41273 echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
41274 echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
41275 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
41276 yes*)
41277 ntp_warning=''
41278 ans='clock_settime()'
41280 noyes*)
41281 ntp_warning='But clock_settime() would be better (if we had it)'
41282 ans='settimeofday()'
41284 nonoyes)
41285 ntp_warning='Which is the worst of the three'
41286 ans='stime()'
41289 case "$build" in
41290 $host) ntp_warning='Which leaves us with nothing to use!'
41291 ans=none
41293 esac
41294 esac
41295 echo "$as_me:$LINENO: result: $ans" >&5
41296 echo "${ECHO_T}$ans" >&6
41297 case "$ntp_warning" in
41298 '') ;;
41299 *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
41300 echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
41302 esac
41304 echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
41305 echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
41306 if test "${ac_cv_var_syscall_bug+set}" = set; then
41307 echo $ECHO_N "(cached) $ECHO_C" >&6
41308 else
41309 case "$host" in
41310 *-*-solaris2.4*)
41311 ans=yes
41313 *) ans=no
41315 esac
41316 ac_cv_var_syscall_bug=$ans
41318 echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
41319 echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
41320 case "$ac_cv_var_syscall_bug" in
41321 yes)
41322 cat >>confdefs.h <<\_ACEOF
41323 #define SYSCALL_BUG 1
41324 _ACEOF
41326 esac
41328 echo "$as_me:$LINENO: checking for SIGIO" >&5
41329 echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
41330 if test "${ac_cv_hdr_def_sigio+set}" = set; then
41331 echo $ECHO_N "(cached) $ECHO_C" >&6
41332 else
41333 cat >conftest.$ac_ext <<_ACEOF
41334 /* confdefs.h. */
41335 _ACEOF
41336 cat confdefs.h >>conftest.$ac_ext
41337 cat >>conftest.$ac_ext <<_ACEOF
41338 /* end confdefs.h. */
41339 #include <signal.h>
41340 #ifdef SIGIO
41342 #endif
41344 _ACEOF
41345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41346 $EGREP "yes" >/dev/null 2>&1; then
41347 ac_cv_hdr_def_sigio=yes
41348 else
41349 ac_cv_hdr_def_sigio=no
41351 rm -f conftest*
41354 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
41355 echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
41357 echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
41358 echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
41359 if test "${ac_cv_var_signalled_io+set}" = set; then
41360 echo $ECHO_N "(cached) $ECHO_C" >&6
41361 else
41362 ans=no
41363 case "$ac_cv_hdr_def_sigio" in
41364 yes)
41365 ans=yes
41366 case "$host" in
41367 alpha*-dec-osf4*|alpha*-dec-osf5*)
41368 ans=no
41370 *-convex-*)
41371 ans=no
41373 *-dec-*)
41374 ans=no
41376 *-pc-cygwin*)
41377 ans=no
41379 *-sni-sysv*)
41380 ans=no
41382 *-univel-sysv*)
41383 ans=no
41385 *-*-irix6*)
41386 ans=no
41388 *-*-freebsd*)
41389 ans=no
41391 *-*-*linux*)
41392 ans=no
41394 *-*-unicosmp*)
41395 ans=no
41397 esac
41399 esac
41400 ac_cv_var_signalled_io=$ans
41402 echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
41403 echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
41404 case "$ac_cv_var_signalled_io" in
41405 yes)
41406 cat >>confdefs.h <<\_ACEOF
41407 #define HAVE_SIGNALED_IO 1
41408 _ACEOF
41410 esac
41412 echo "$as_me:$LINENO: checking for SIGPOLL" >&5
41413 echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
41414 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
41415 echo $ECHO_N "(cached) $ECHO_C" >&6
41416 else
41417 cat >conftest.$ac_ext <<_ACEOF
41418 /* confdefs.h. */
41419 _ACEOF
41420 cat confdefs.h >>conftest.$ac_ext
41421 cat >>conftest.$ac_ext <<_ACEOF
41422 /* end confdefs.h. */
41423 #include <signal.h>
41424 #ifdef SIGPOLL
41426 #endif
41428 _ACEOF
41429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41430 $EGREP "yes" >/dev/null 2>&1; then
41431 ac_cv_hdr_def_sigpoll=yes
41432 else
41433 ac_cv_hdr_def_sigpoll=no
41435 rm -f conftest*
41438 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
41439 echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
41441 echo "$as_me:$LINENO: checking for SIGSYS" >&5
41442 echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
41443 if test "${ac_cv_hdr_def_sigsys+set}" = set; then
41444 echo $ECHO_N "(cached) $ECHO_C" >&6
41445 else
41446 cat >conftest.$ac_ext <<_ACEOF
41447 /* confdefs.h. */
41448 _ACEOF
41449 cat confdefs.h >>conftest.$ac_ext
41450 cat >>conftest.$ac_ext <<_ACEOF
41451 /* end confdefs.h. */
41452 #include <signal.h>
41453 #ifdef SIGSYS
41455 #endif
41457 _ACEOF
41458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41459 $EGREP "yes" >/dev/null 2>&1; then
41460 ac_cv_hdr_def_sigsys=yes
41461 else
41462 ac_cv_hdr_def_sigsys=no
41464 rm -f conftest*
41467 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
41468 echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
41470 echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
41471 echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
41472 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
41473 echo $ECHO_N "(cached) $ECHO_C" >&6
41474 else
41475 ans=no
41476 case "$ac_cv_hdr_def_sigpoll" in
41477 yes)
41478 case "$host" in
41479 mips-sgi-irix*)
41480 ans=no
41482 vax-dec-bsd)
41483 ans=no
41485 *-pc-cygwin*)
41486 ans=no
41488 *-sni-sysv*)
41489 ans=no
41491 *-*-aix[456]*)
41492 ans=no
41494 *-*-hpux*)
41495 ans=no
41497 *-*-*linux*)
41498 ans=no
41500 *-*-osf*)
41501 ans=no
41503 *-*-qnx*)
41504 ans=no
41506 *-*-sunos*)
41507 ans=no
41509 *-*-solaris*)
41510 ans=no
41512 *-*-ultrix*)
41513 ans=no
41515 *-*-unicosmp*)
41516 ans=no
41518 *) ans=yes
41520 esac
41522 esac
41523 ac_cv_var_use_udp_sigpoll=$ans
41525 echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
41526 echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
41527 case "$ac_cv_var_use_udp_sigpoll" in
41528 yes)
41529 cat >>confdefs.h <<\_ACEOF
41530 #define USE_UDP_SIGPOLL 1
41531 _ACEOF
41533 esac
41535 echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
41536 echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
41537 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
41538 echo $ECHO_N "(cached) $ECHO_C" >&6
41539 else
41540 ans=no
41541 case "$ac_cv_hdr_def_sigpoll" in
41542 yes)
41543 case "$host" in
41544 mips-sgi-irix*)
41545 ans=no
41547 vax-dec-bsd)
41548 ans=no
41550 *-pc-cygwin*)
41551 ans=no
41553 *-sni-sysv*)
41554 ans=no
41556 *-*-aix[456]*)
41557 ans=no
41559 *-*-hpux*)
41560 ans=no
41562 *-*-*linux*)
41563 ans=no
41565 *-*-osf*)
41566 ans=no
41568 *-*-sunos*)
41569 ans=no
41571 *-*-ultrix*)
41572 ans=no
41574 *-*-qnx*)
41575 ans=no
41577 *-*-unicosmp*)
41578 ans=no
41580 *) ans=yes
41582 esac
41584 esac
41585 ac_cv_var_use_tty_sigpoll=$ans
41587 echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
41588 echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
41589 case "$ac_cv_var_use_tty_sigpoll" in
41590 yes)
41591 cat >>confdefs.h <<\_ACEOF
41592 #define USE_TTY_SIGPOLL 1
41593 _ACEOF
41595 esac
41597 case "$ac_cv_header_sys_sio_h" in
41598 yes)
41599 echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
41600 echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
41601 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
41602 echo $ECHO_N "(cached) $ECHO_C" >&6
41603 else
41604 cat >conftest.$ac_ext <<_ACEOF
41605 /* confdefs.h. */
41606 _ACEOF
41607 cat confdefs.h >>conftest.$ac_ext
41608 cat >>conftest.$ac_ext <<_ACEOF
41609 /* end confdefs.h. */
41610 #include <sys/sio.h>
41611 #ifdef TIOCDCDTIMESTAMP
41613 #endif
41615 _ACEOF
41616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41617 $EGREP "yes" >/dev/null 2>&1; then
41618 ac_cv_hdr_def_tiocdcdtimestamp=yes
41619 else
41620 ac_cv_hdr_def_tiocdcdtimestamp=no
41622 rm -f conftest*
41625 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
41626 echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
41628 esac
41630 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
41631 yes)
41632 ac_cv_var_oncore_ok=yes
41634 esac
41636 echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
41637 echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
41638 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
41639 echo $ECHO_N "(cached) $ECHO_C" >&6
41640 else
41641 ans=no
41642 case "$host" in
41643 *-*-aix*)
41644 ans=yes
41646 esac
41647 ac_cv_var_nlist_extra_indirection=$ans
41649 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
41650 echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
41651 case "$ac_cv_var_nlist_extra_indirection" in
41652 yes)
41653 cat >>confdefs.h <<\_ACEOF
41654 #define NLIST_EXTRA_INDIRECTION 1
41655 _ACEOF
41657 esac
41659 echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
41660 echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
41661 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
41662 echo $ECHO_N "(cached) $ECHO_C" >&6
41663 else
41664 ans=no
41665 case "$host" in
41666 *-*-aix*)
41667 ans=40
41669 esac
41670 ac_cv_var_min_rec_tickadj=$ans
41672 echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
41673 echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
41674 case "$ac_cv_var_min_rec_tickadj" in
41675 ''|no) ;;
41677 cat >>confdefs.h <<_ACEOF
41678 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
41679 _ACEOF
41681 esac
41683 echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
41684 echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
41685 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
41686 echo $ECHO_N "(cached) $ECHO_C" >&6
41687 else
41688 ans=no
41689 case "$host" in
41690 i?86-*-*linux*)
41691 ans=yes
41693 mips-sgi-irix*)
41694 ans=yes
41696 i?86-*-freebsd[123].*)
41698 i?86-*-freebsd*)
41699 ans=yes
41701 *-*-unicosmp*)
41702 ans=yes
41704 esac
41705 ac_cv_var_no_parenb_ignpar=$ans
41707 echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
41708 echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
41709 case "$ac_cv_var_no_parenb_ignpar" in
41710 yes)
41711 cat >>confdefs.h <<\_ACEOF
41712 #define NO_PARENB_IGNPAR 1
41713 _ACEOF
41715 esac
41717 echo "$as_me:$LINENO: checking if we're including debugging code" >&5
41718 echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
41719 # Check whether --enable-debugging or --disable-debugging was given.
41720 if test "${enable_debugging+set}" = set; then
41721 enableval="$enable_debugging"
41722 ntp_ok=$enableval
41723 else
41724 ntp_ok=yes
41726 if test "$ntp_ok" = "yes"; then
41728 cat >>confdefs.h <<\_ACEOF
41729 #define DEBUG 1
41730 _ACEOF
41733 echo "$as_me:$LINENO: result: $ntp_ok" >&5
41734 echo "${ECHO_T}$ntp_ok" >&6
41736 echo "$as_me:$LINENO: checking if we including processing time debugging code" >&5
41737 echo $ECHO_N "checking if we including processing time debugging code... $ECHO_C" >&6
41738 # Check whether --enable-debug-timing or --disable-debug-timing was given.
41739 if test "${enable_debug_timing+set}" = set; then
41740 enableval="$enable_debug_timing"
41741 ntp_ok=$enableval
41742 else
41743 ntp_ok=no
41745 if test "$ntp_ok" = "yes"; then
41747 cat >>confdefs.h <<\_ACEOF
41748 #define DEBUG_TIMING 1
41749 _ACEOF
41752 echo "$as_me:$LINENO: result: $ntp_ok" >&5
41753 echo "${ECHO_T}$ntp_ok" >&6
41755 echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
41756 echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
41757 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
41758 if test "${enable_dst_minutes+set}" = set; then
41759 enableval="$enable_dst_minutes"
41760 ans=$enableval
41761 else
41762 ans=60
41766 cat >>confdefs.h <<_ACEOF
41767 #define DSTMINUTES $ans
41768 _ACEOF
41770 echo "$as_me:$LINENO: result: $ans" >&5
41771 echo "${ECHO_T}$ans" >&6
41773 echo "$as_me:$LINENO: checking if ntpd will retry on permanent DNS errors" >&5
41774 echo $ECHO_N "checking if ntpd will retry on permanent DNS errors... $ECHO_C" >&6
41775 # Check whether --enable-ignore-dns-errors or --disable-ignore-dns-errors was given.
41776 if test "${enable_ignore_dns_errors+set}" = set; then
41777 enableval="$enable_ignore_dns_errors"
41778 ans=$enableval
41779 else
41780 ans=no
41783 case "$ans" in
41784 yes)
41786 cat >>confdefs.h <<\_ACEOF
41787 #define IGNORE_DNS_ERRORS 1
41788 _ACEOF
41790 esac
41791 echo "$as_me:$LINENO: result: $ans" >&5
41792 echo "${ECHO_T}$ans" >&6
41794 echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
41795 echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
41796 if test "${ac_cv_var_tty_clk+set}" = set; then
41797 echo $ECHO_N "(cached) $ECHO_C" >&6
41798 else
41799 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
41800 *yes*) ac_cv_var_tty_clk=yes ;;
41801 *) ac_cv_var_tty_clk=no ;;
41802 esac
41804 echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
41805 echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
41806 case "$ac_cv_var_tty_clk" in
41807 yes)
41808 cat >>confdefs.h <<\_ACEOF
41809 #define TTYCLK 1
41810 _ACEOF
41812 esac
41814 echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
41815 echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
41816 if test "${ac_cv_var_ppsclock+set}" = set; then
41817 echo $ECHO_N "(cached) $ECHO_C" >&6
41818 else
41819 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
41821 echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
41822 echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
41823 case "$ac_cv_var_ppsclock" in
41824 yes)
41825 cat >>confdefs.h <<\_ACEOF
41826 #define PPS 1
41827 _ACEOF
41829 esac
41831 echo "$as_me:$LINENO: checking for kernel multicast support" >&5
41832 echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
41833 if test "${ac_cv_var_mcast+set}" = set; then
41834 echo $ECHO_N "(cached) $ECHO_C" >&6
41835 else
41836 ac_cv_var_mcast=no
41837 case "$host" in
41838 i386-sequent-sysv4) ;;
41839 *) cat >conftest.$ac_ext <<_ACEOF
41840 /* confdefs.h. */
41841 _ACEOF
41842 cat confdefs.h >>conftest.$ac_ext
41843 cat >>conftest.$ac_ext <<_ACEOF
41844 /* end confdefs.h. */
41845 #include <netinet/in.h>
41846 #ifdef IP_ADD_MEMBERSHIP
41848 #endif
41850 _ACEOF
41851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41852 $EGREP "yes" >/dev/null 2>&1; then
41853 ac_cv_var_mcast=yes
41855 rm -f conftest*
41857 esac
41859 echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
41860 echo "${ECHO_T}$ac_cv_var_mcast" >&6
41861 case "$ac_cv_var_mcast" in
41862 yes)
41864 cat >>confdefs.h <<\_ACEOF
41865 #define MCAST 1
41866 _ACEOF
41868 echo "$as_me:$LINENO: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
41869 echo $ECHO_N "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... $ECHO_C" >&6
41870 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then
41871 echo $ECHO_N "(cached) $ECHO_C" >&6
41872 else
41873 case "$host" in
41874 *-*-netbsd*|*-*-*linux*)
41875 ac_cv_var_typeof_ip_multicast_loop=u_int
41877 *-*-winnt*)
41878 ac_cv_var_typeof_ip_multicast_loop=BOOL
41880 *) ac_cv_var_typeof_ip_multicast_loop=u_char
41882 esac
41884 echo "$as_me:$LINENO: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
41885 echo "${ECHO_T}$ac_cv_var_typeof_ip_multicast_loop" >&6
41887 cat >>confdefs.h <<_ACEOF
41888 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
41889 _ACEOF
41892 esac
41894 echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
41895 echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
41896 if test "${ac_cv_var_ntp_syscalls+set}" = set; then
41897 echo $ECHO_N "(cached) $ECHO_C" >&6
41898 else
41899 ac_cv_var_ntp_syscalls=no
41900 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
41901 yesyes*)
41902 ac_cv_var_ntp_syscalls=libc
41904 *yes)
41905 ac_cv_var_ntp_syscalls=inline
41907 *) cat >conftest.$ac_ext <<_ACEOF
41908 /* confdefs.h. */
41909 _ACEOF
41910 cat confdefs.h >>conftest.$ac_ext
41911 cat >>conftest.$ac_ext <<_ACEOF
41912 /* end confdefs.h. */
41913 #include <sys/syscall.h>
41914 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
41916 #endif
41918 _ACEOF
41919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41920 $EGREP "yes" >/dev/null 2>&1; then
41921 ac_cv_var_ntp_syscalls=kernel
41923 rm -f conftest*
41926 esac
41928 echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
41929 echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
41930 case "$ac_cv_var_ntp_syscalls" in
41931 libc)
41933 cat >>confdefs.h <<\_ACEOF
41934 #define NTP_SYSCALLS_LIBC 1
41935 _ACEOF
41938 kernel)
41940 cat >>confdefs.h <<\_ACEOF
41941 #define NTP_SYSCALLS_STD 1
41942 _ACEOF
41947 esac
41949 echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
41950 echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
41951 if test "${ac_cv_var_sta_fll+set}" = set; then
41952 echo $ECHO_N "(cached) $ECHO_C" >&6
41953 else
41954 cat >conftest.$ac_ext <<_ACEOF
41955 /* confdefs.h. */
41956 _ACEOF
41957 cat confdefs.h >>conftest.$ac_ext
41958 cat >>conftest.$ac_ext <<_ACEOF
41959 /* end confdefs.h. */
41960 #include <sys/timex.h>
41961 #ifdef STA_FLL
41963 #endif
41965 _ACEOF
41966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41967 $EGREP "yes" >/dev/null 2>&1; then
41968 ac_cv_var_sta_fll=yes
41969 else
41970 ac_cv_var_sta_fll=no
41972 rm -f conftest*
41975 echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
41976 echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
41978 echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
41979 echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
41980 if test "${ac_cv_var_kernel_pll+set}" = set; then
41981 echo $ECHO_N "(cached) $ECHO_C" >&6
41982 else
41983 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
41984 *no*)
41985 ac_cv_var_kernel_pll=no
41987 *) ac_cv_var_kernel_pll=yes
41989 esac
41991 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
41992 echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
41993 case "$ac_cv_var_kernel_pll" in
41994 yes)
41996 cat >>confdefs.h <<\_ACEOF
41997 #define KERNEL_PLL 1
41998 _ACEOF
42001 esac
42003 echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
42004 echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
42005 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
42006 echo $ECHO_N "(cached) $ECHO_C" >&6
42007 else
42008 ans=no
42009 case "$host" in
42010 *-fujitsu-uxp*)
42011 ans=yes
42013 *-ncr-sysv4*)
42014 ans=yes
42016 *-univel-sysv*)
42017 ans=yes
42019 esac
42020 ac_cv_var_size_returned_in_buffer=$ans
42022 echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
42023 echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
42024 case "$ac_cv_var_size_returned_in_buffer" in
42025 yes)
42026 cat >>confdefs.h <<\_ACEOF
42027 #define SIZE_RETURNED_IN_BUFFER 1
42028 _ACEOF
42030 esac
42033 # Check for ioctls TIOCGPPSEV
42034 echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
42035 echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
42036 if test "$ac_cv_header_termios_h" = "yes"; then
42037 cat >conftest.$ac_ext <<_ACEOF
42038 /* confdefs.h. */
42039 _ACEOF
42040 cat confdefs.h >>conftest.$ac_ext
42041 cat >>conftest.$ac_ext <<_ACEOF
42042 /* end confdefs.h. */
42043 #include <termios.h>
42044 #ifdef TIOCGPPSEV
42046 #endif
42048 _ACEOF
42049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42050 $EGREP "yes" >/dev/null 2>&1; then
42051 ntp_ok=yes
42052 else
42053 ntp_ok=no
42055 rm -f conftest*
42057 else
42058 ntp_ok=no
42060 if test "$ntp_ok" = "yes"; then
42062 cat >>confdefs.h <<\_ACEOF
42063 #define HAVE_TIOCGPPSEV 1
42064 _ACEOF
42066 ac_cv_var_oncore_ok=yes
42068 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42069 echo "${ECHO_T}$ntp_ok" >&6
42071 # Check for ioctls TIOCSPPS
42072 echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
42073 echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
42074 if test "$ac_cv_header_termios_h" = "yes"; then
42075 cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h. */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h. */
42081 #include <termios.h>
42082 #ifdef TIOCSPPS
42084 #endif
42086 _ACEOF
42087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42088 $EGREP "yes" >/dev/null 2>&1; then
42089 ntp_ok=yes
42090 else
42091 ntp_ok=no
42093 rm -f conftest*
42095 else
42096 ntp_ok=no
42099 if test "$ntp_ok" = "yes"; then
42101 cat >>confdefs.h <<\_ACEOF
42102 #define HAVE_TIOCSPPS 1
42103 _ACEOF
42106 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42107 echo "${ECHO_T}$ntp_ok" >&6
42109 # Check for ioctls CIOGETEV
42110 echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
42111 echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
42112 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
42113 cat >conftest.$ac_ext <<_ACEOF
42114 /* confdefs.h. */
42115 _ACEOF
42116 cat confdefs.h >>conftest.$ac_ext
42117 cat >>conftest.$ac_ext <<_ACEOF
42118 /* end confdefs.h. */
42119 #include <sys/ppsclock.h>
42120 #ifdef CIOGETEV
42122 #endif
42124 _ACEOF
42125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42126 $EGREP "yes" >/dev/null 2>&1; then
42127 ntp_ok=yes
42128 else
42129 ntp_ok=no
42131 rm -f conftest*
42133 else
42134 ntp_ok=no
42136 if test "$ntp_ok" = "yes"; then
42137 ac_cv_var_oncore_ok=yes
42139 cat >>confdefs.h <<\_ACEOF
42140 #define HAVE_CIOGETEV 1
42141 _ACEOF
42144 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42145 echo "${ECHO_T}$ntp_ok" >&6
42148 # ATOM/PPSAPI stuff.
42150 # ATOM used to require struct timespec, but that's been fixed now.
42152 # case "$ac_cv_struct_timespec" in
42153 # 'yes')
42154 # ac_cv_var_atom_ok=yes
42155 # ;;
42156 # esac
42157 ac_cv_var_atom_ok=yes
42159 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
42161 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
42163 # The PPSAPI needs struct timespec.
42165 # The PPSAPI also needs a timepps header.
42167 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
42168 inlineyes)
42169 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
42170 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
42172 cat >>confdefs.h <<\_ACEOF
42173 #define HAVE_PPSAPI 1
42174 _ACEOF
42176 ac_cv_var_jupiter_ok=yes
42177 ac_cv_var_oncore_ok=yes
42178 ac_cv_var_parse_ok=yes
42179 ac_cv_var_ripe_ncc_ok=yes
42181 esac
42183 esac
42185 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
42186 if test "${ac_cv_header_linux_serial_h+set}" = set; then
42187 echo "$as_me:$LINENO: checking for linux/serial.h" >&5
42188 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
42189 if test "${ac_cv_header_linux_serial_h+set}" = set; then
42190 echo $ECHO_N "(cached) $ECHO_C" >&6
42192 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
42193 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
42194 else
42195 # Is the header compilable?
42196 echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
42197 echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
42198 cat >conftest.$ac_ext <<_ACEOF
42199 /* confdefs.h. */
42200 _ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h. */
42204 $ac_includes_default
42205 #include <linux/serial.h>
42206 _ACEOF
42207 rm -f conftest.$ac_objext
42208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42209 (eval $ac_compile) 2>conftest.er1
42210 ac_status=$?
42211 grep -v '^ *+' conftest.er1 >conftest.err
42212 rm -f conftest.er1
42213 cat conftest.err >&5
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); } &&
42216 { ac_try='test -z "$ac_c_werror_flag"
42217 || test ! -s conftest.err'
42218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42219 (eval $ac_try) 2>&5
42220 ac_status=$?
42221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42222 (exit $ac_status); }; } &&
42223 { ac_try='test -s conftest.$ac_objext'
42224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42225 (eval $ac_try) 2>&5
42226 ac_status=$?
42227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42228 (exit $ac_status); }; }; then
42229 ac_header_compiler=yes
42230 else
42231 echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42234 ac_header_compiler=no
42236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42238 echo "${ECHO_T}$ac_header_compiler" >&6
42240 # Is the header present?
42241 echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
42242 echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
42243 cat >conftest.$ac_ext <<_ACEOF
42244 /* confdefs.h. */
42245 _ACEOF
42246 cat confdefs.h >>conftest.$ac_ext
42247 cat >>conftest.$ac_ext <<_ACEOF
42248 /* end confdefs.h. */
42249 #include <linux/serial.h>
42250 _ACEOF
42251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42253 ac_status=$?
42254 grep -v '^ *+' conftest.er1 >conftest.err
42255 rm -f conftest.er1
42256 cat conftest.err >&5
42257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258 (exit $ac_status); } >/dev/null; then
42259 if test -s conftest.err; then
42260 ac_cpp_err=$ac_c_preproc_warn_flag
42261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42262 else
42263 ac_cpp_err=
42265 else
42266 ac_cpp_err=yes
42268 if test -z "$ac_cpp_err"; then
42269 ac_header_preproc=yes
42270 else
42271 echo "$as_me: failed program was:" >&5
42272 sed 's/^/| /' conftest.$ac_ext >&5
42274 ac_header_preproc=no
42276 rm -f conftest.err conftest.$ac_ext
42277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42278 echo "${ECHO_T}$ac_header_preproc" >&6
42280 # So? What about this header?
42281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42282 yes:no: )
42283 { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
42284 echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42285 { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the compiler's result" >&5
42286 echo "$as_me: WARNING: linux/serial.h: proceeding with the compiler's result" >&2;}
42287 ac_header_preproc=yes
42289 no:yes:* )
42290 { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
42291 echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
42292 { echo "$as_me:$LINENO: WARNING: linux/serial.h: check for missing prerequisite headers?" >&5
42293 echo "$as_me: WARNING: linux/serial.h: check for missing prerequisite headers?" >&2;}
42294 { echo "$as_me:$LINENO: WARNING: linux/serial.h: see the Autoconf documentation" >&5
42295 echo "$as_me: WARNING: linux/serial.h: see the Autoconf documentation" >&2;}
42296 { echo "$as_me:$LINENO: WARNING: linux/serial.h: section \"Present But Cannot Be Compiled\"" >&5
42297 echo "$as_me: WARNING: linux/serial.h: section \"Present But Cannot Be Compiled\"" >&2;}
42298 { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
42299 echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
42300 { echo "$as_me:$LINENO: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&5
42301 echo "$as_me: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&2;}
42303 cat <<\_ASBOX
42304 ## ------------------------------ ##
42305 ## Report this to the ntp lists. ##
42306 ## ------------------------------ ##
42307 _ASBOX
42309 sed "s/^/$as_me: WARNING: /" >&2
42311 esac
42312 echo "$as_me:$LINENO: checking for linux/serial.h" >&5
42313 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
42314 if test "${ac_cv_header_linux_serial_h+set}" = set; then
42315 echo $ECHO_N "(cached) $ECHO_C" >&6
42316 else
42317 ac_cv_header_linux_serial_h=$ac_header_preproc
42319 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
42320 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
42325 echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
42326 echo $ECHO_N "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... $ECHO_C" >&6
42327 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
42328 yesyes)
42329 cat >conftest.$ac_ext <<_ACEOF
42330 /* confdefs.h. */
42331 _ACEOF
42332 cat confdefs.h >>conftest.$ac_ext
42333 cat >>conftest.$ac_ext <<_ACEOF
42334 /* end confdefs.h. */
42335 #include <sys/time.h>
42336 typedef int u_int;
42338 #include <sys/ppsclock.h>
42339 #include <linux/serial.h>
42341 #ifdef TIOCGSERIAL
42342 #ifdef TIOCSSERIAL
42343 #ifdef ASYNC_PPS_CD_POS
42344 #ifdef ASYNC_PPS_CD_NEG
42345 #ifdef CIOGETEV
42347 #endif
42348 #endif
42349 #endif
42350 #endif
42351 #endif
42353 _ACEOF
42354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42355 $EGREP "yes" >/dev/null 2>&1; then
42356 ntp_ok=yes
42358 rm -f conftest*
42362 ntp_ok=no
42364 esac
42365 if test "$ntp_ok" = "yes"; then
42367 cat >>confdefs.h <<\_ACEOF
42368 #define HAVE_TIO_SERIAL_STUFF 1
42369 _ACEOF
42372 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42373 echo "${ECHO_T}$ntp_ok" >&6
42375 # Check for SHMEM_STATUS support
42376 echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
42377 echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
42378 case "$ac_cv_header_sys_mman_h" in
42379 yes) ntp_ok=yes ;;
42380 *) ntp_ok=no ;;
42381 esac
42382 if test "$ntp_ok" = "yes"; then
42384 cat >>confdefs.h <<\_ACEOF
42385 #define ONCORE_SHMEM_STATUS 1
42386 _ACEOF
42389 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42390 echo "${ECHO_T}$ntp_ok" >&6
42393 ntp_refclock=no
42395 # HPUX only, and by explicit request
42396 echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
42397 echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
42398 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
42399 if test "${enable_BANCOMM+set}" = set; then
42400 enableval="$enable_BANCOMM"
42401 ntp_ok=$enableval
42402 else
42403 ntp_ok=no
42405 if test "$ntp_ok" = "yes"; then
42406 ntp_refclock=yes
42408 cat >>confdefs.h <<\_ACEOF
42409 #define CLOCK_BANC 1
42410 _ACEOF
42413 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42414 echo "${ECHO_T}$ntp_ok" >&6
42415 case "$ntp_ok$host" in
42416 yes*-*-hpux*) ;;
42417 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
42418 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
42419 esac
42421 #HPUX only, and only by explicit request
42422 echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
42423 echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
42424 # Check whether --enable-GPSVME or --disable-GPSVME was given.
42425 if test "${enable_GPSVME+set}" = set; then
42426 enableval="$enable_GPSVME"
42427 ntp_ok=$enableval
42428 else
42429 ntp_ok=no
42431 if test "$ntp_ok" = "yes"; then
42432 ntp_refclock=yes
42434 cat >>confdefs.h <<\_ACEOF
42435 #define CLOCK_GPSVME 1
42436 _ACEOF
42439 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42440 echo "${ECHO_T}$ntp_ok" >&6
42441 case "$ntp_ok$host" in
42442 yes*-*-hpux*) ;;
42443 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
42444 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
42445 esac
42447 echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
42448 echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
42449 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
42450 yesyesyes)
42452 cat >>confdefs.h <<\_ACEOF
42453 #define CLOCK_PPS720 1
42454 _ACEOF
42456 ans=yes
42459 ans=no
42461 esac
42462 echo "$as_me:$LINENO: result: $ans" >&5
42463 echo "${ECHO_T}$ans" >&6
42465 echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
42466 echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
42467 # Check whether --enable-all-clocks or --disable-all-clocks was given.
42468 if test "${enable_all_clocks+set}" = set; then
42469 enableval="$enable_all_clocks"
42470 ntp_eac=$enableval
42471 else
42472 ntp_eac=yes
42474 echo "$as_me:$LINENO: result: $ntp_eac" >&5
42475 echo "${ECHO_T}$ntp_eac" >&6
42477 # HMS: Should we also require ac_cv_var_parse_ok?
42478 echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
42479 echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
42480 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
42481 yes*yes*)
42482 ntp_canparse=yes
42484 *) ntp_canparse=no
42486 esac
42487 echo "$as_me:$LINENO: result: $ntp_canparse" >&5
42488 echo "${ECHO_T}$ntp_canparse" >&6
42490 echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
42491 echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
42492 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
42493 *yes*)
42494 ntp_canaudio=yes
42496 cat >>confdefs.h <<\_ACEOF
42497 #define HAVE_AUDIO
42498 _ACEOF
42501 *) ntp_canaudio=no ;;
42502 esac
42503 echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
42504 echo "${ECHO_T}$ntp_canaudio" >&6
42506 echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5
42507 echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6
42508 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
42509 yesyes)
42510 ntp_canshm=yes
42512 *) ntp_canshm=no ;;
42513 esac
42514 echo "$as_me:$LINENO: result: $ntp_canshm" >&5
42515 echo "${ECHO_T}$ntp_canshm" >&6
42517 # Requires modem control
42518 echo "$as_me:$LINENO: checking ACTS modem service" >&5
42519 echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
42520 # Check whether --enable-ACTS or --disable-ACTS was given.
42521 if test "${enable_ACTS+set}" = set; then
42522 enableval="$enable_ACTS"
42523 ntp_ok=$enableval
42524 else
42525 cat >conftest.$ac_ext <<_ACEOF
42526 /* confdefs.h. */
42527 _ACEOF
42528 cat confdefs.h >>conftest.$ac_ext
42529 cat >>conftest.$ac_ext <<_ACEOF
42530 /* end confdefs.h. */
42531 #include <termios.h>
42532 #ifdef HAVE_SYS_IOCTL_H
42533 #include <sys/ioctl.h>
42534 #endif
42535 #ifdef TIOCMBIS
42537 #endif
42539 _ACEOF
42540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42541 $EGREP "yes" >/dev/null 2>&1; then
42542 ntp_ok=$ntp_eac
42543 else
42544 ntp_ok=no
42546 rm -f conftest*
42549 if test "$ntp_ok" = "yes"; then
42550 ntp_refclock=yes
42552 cat >>confdefs.h <<\_ACEOF
42553 #define CLOCK_ACTS 1
42554 _ACEOF
42557 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42558 echo "${ECHO_T}$ntp_ok" >&6
42560 echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
42561 echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
42562 # Check whether --enable-ARBITER or --disable-ARBITER was given.
42563 if test "${enable_ARBITER+set}" = set; then
42564 enableval="$enable_ARBITER"
42565 ntp_ok=$enableval
42566 else
42567 ntp_ok=$ntp_eac
42569 if test "$ntp_ok" = "yes"; then
42570 ntp_refclock=yes
42572 cat >>confdefs.h <<\_ACEOF
42573 #define CLOCK_ARBITER 1
42574 _ACEOF
42577 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42578 echo "${ECHO_T}$ntp_ok" >&6
42580 echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
42581 echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
42582 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
42583 if test "${enable_ARCRON_MSF+set}" = set; then
42584 enableval="$enable_ARCRON_MSF"
42585 ntp_ok=$enableval
42586 else
42587 ntp_ok=$ntp_eac
42589 if test "$ntp_ok" = "yes"; then
42590 ntp_refclock=yes
42592 cat >>confdefs.h <<\_ACEOF
42593 #define CLOCK_ARCRON_MSF 1
42594 _ACEOF
42597 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42598 echo "${ECHO_T}$ntp_ok" >&6
42600 echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
42601 echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
42602 # Check whether --enable-AS2201 or --disable-AS2201 was given.
42603 if test "${enable_AS2201+set}" = set; then
42604 enableval="$enable_AS2201"
42605 ntp_ok=$enableval
42606 else
42607 ntp_ok=$ntp_eac
42609 if test "$ntp_ok" = "yes"; then
42610 ntp_refclock=yes
42612 cat >>confdefs.h <<\_ACEOF
42613 #define CLOCK_AS2201 1
42614 _ACEOF
42617 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42618 echo "${ECHO_T}$ntp_ok" >&6
42620 echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
42621 echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
42622 # Check whether --enable-ATOM or --disable-ATOM was given.
42623 if test "${enable_ATOM+set}" = set; then
42624 enableval="$enable_ATOM"
42625 ntp_ok=$enableval
42626 else
42627 ntp_ok=$ntp_eac
42629 case "$ac_cv_var_atom_ok" in
42630 no) ntp_ok=no ;;
42631 esac
42632 if test "$ntp_ok" = "yes"; then
42633 ntp_refclock=yes
42635 cat >>confdefs.h <<\_ACEOF
42636 #define CLOCK_ATOM 1
42637 _ACEOF
42640 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42641 echo "${ECHO_T}$ntp_ok" >&6
42643 echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
42644 echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
42645 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
42646 if test "${enable_CHRONOLOG+set}" = set; then
42647 enableval="$enable_CHRONOLOG"
42648 ntp_ok=$enableval
42649 else
42650 ntp_ok=$ntp_eac
42652 if test "$ntp_ok" = "yes"; then
42653 ntp_refclock=yes
42655 cat >>confdefs.h <<\_ACEOF
42656 #define CLOCK_CHRONOLOG 1
42657 _ACEOF
42660 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42661 echo "${ECHO_T}$ntp_ok" >&6
42663 echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
42664 echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
42665 # Check whether --enable-CHU or --disable-CHU was given.
42666 if test "${enable_CHU+set}" = set; then
42667 enableval="$enable_CHU"
42668 ntp_ok=$enableval
42669 else
42670 ntp_ok=$ntp_eac
42672 if test "$ntp_ok" = "yes"; then
42673 ntp_refclock=yes
42675 cat >>confdefs.h <<\_ACEOF
42676 #define CLOCK_CHU 1
42677 _ACEOF
42680 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42681 echo "${ECHO_T}$ntp_ok" >&6
42682 ac_refclock_chu=$ntp_ok
42684 echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
42685 echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
42686 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
42687 if test "${enable_AUDIO_CHU+set}" = set; then
42688 enableval="$enable_AUDIO_CHU"
42689 ntp_ok=$enableval
42690 else
42691 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
42692 *no*) ntp_ok=no ;;
42693 *) ntp_ok=yes ;;
42694 esac
42696 if test "$ntp_ok" = "yes"; then
42698 cat >>confdefs.h <<\_ACEOF
42699 #define AUDIO_CHU 1
42700 _ACEOF
42703 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42704 echo "${ECHO_T}$ntp_ok" >&6
42705 # We used to check for sunos/solaris target...
42706 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
42707 yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
42708 echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
42709 esac
42711 # Not under HP-UX
42712 echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
42713 echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
42714 # Check whether --enable-DATUM or --disable-DATUM was given.
42715 if test "${enable_DATUM+set}" = set; then
42716 enableval="$enable_DATUM"
42717 ntp_ok=$enableval
42718 else
42719 case "$ac_cv_header_termios_h" in
42720 yes)
42721 ntp_ok=$ntp_eac
42723 *) ntp_ok=no
42725 esac
42727 if test "$ntp_ok" = "yes"; then
42728 ntp_refclock=yes
42730 cat >>confdefs.h <<\_ACEOF
42731 #define CLOCK_DATUM 1
42732 _ACEOF
42735 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42736 echo "${ECHO_T}$ntp_ok" >&6
42738 echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
42739 echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
42740 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
42741 if test "${enable_DUMBCLOCK+set}" = set; then
42742 enableval="$enable_DUMBCLOCK"
42743 ntp_ok=$enableval
42744 else
42745 ntp_ok=$ntp_eac
42747 if test "$ntp_ok" = "yes"; then
42748 ntp_refclock=yes
42750 cat >>confdefs.h <<\_ACEOF
42751 #define CLOCK_DUMBCLOCK 1
42752 _ACEOF
42755 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42756 echo "${ECHO_T}$ntp_ok" >&6
42758 echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
42759 echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
42760 # Check whether --enable-FG or --disable-FG was given.
42761 if test "${enable_FG+set}" = set; then
42762 enableval="$enable_FG"
42763 ntp_ok=$enableval
42764 else
42765 ntp_ok=$ntp_eac
42767 if test "$ntp_ok" = "yes"; then
42768 ntp_refclock=yes
42770 cat >>confdefs.h <<\_ACEOF
42771 #define CLOCK_FG 1
42772 _ACEOF
42775 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42776 echo "${ECHO_T}$ntp_ok" >&6
42778 # Requires modem control
42779 echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
42780 echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
42781 # Check whether --enable-HEATH or --disable-HEATH was given.
42782 if test "${enable_HEATH+set}" = set; then
42783 enableval="$enable_HEATH"
42784 ntp_ok=$enableval
42785 else
42786 cat >conftest.$ac_ext <<_ACEOF
42787 /* confdefs.h. */
42788 _ACEOF
42789 cat confdefs.h >>conftest.$ac_ext
42790 cat >>conftest.$ac_ext <<_ACEOF
42791 /* end confdefs.h. */
42792 #include <termios.h>
42793 #ifdef HAVE_SYS_IOCTL_H
42794 #include <sys/ioctl.h>
42795 #endif
42796 #ifdef TIOCMBIS
42798 #endif
42800 _ACEOF
42801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42802 $EGREP "yes" >/dev/null 2>&1; then
42803 ntp_ok=$ntp_eac
42804 else
42805 ntp_ok=no
42807 rm -f conftest*
42810 if test "$ntp_ok" = "yes"; then
42811 ntp_refclock=yes
42813 cat >>confdefs.h <<\_ACEOF
42814 #define CLOCK_HEATH 1
42815 _ACEOF
42818 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42819 echo "${ECHO_T}$ntp_ok" >&6
42821 echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
42822 echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
42823 # Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
42824 if test "${enable_HOPFSERIAL+set}" = set; then
42825 enableval="$enable_HOPFSERIAL"
42826 ntp_ok=$enableval
42827 else
42828 ntp_ok=$ntp_eac
42830 if test "$ntp_ok" = "yes"; then
42831 ntp_refclock=yes
42833 cat >>confdefs.h <<\_ACEOF
42834 #define CLOCK_HOPF_SERIAL 1
42835 _ACEOF
42838 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42839 echo "${ECHO_T}$ntp_ok" >&6
42841 echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
42842 echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
42843 # Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
42844 if test "${enable_HOPFPCI+set}" = set; then
42845 enableval="$enable_HOPFPCI"
42846 ntp_ok=$enableval
42847 else
42848 ntp_ok=$ntp_eac
42850 if test "$ntp_ok" = "yes"; then
42851 ntp_refclock=yes
42853 cat >>confdefs.h <<\_ACEOF
42854 #define CLOCK_HOPF_PCI 1
42855 _ACEOF
42858 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42859 echo "${ECHO_T}$ntp_ok" >&6
42861 echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
42862 echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
42863 # Check whether --enable-HPGPS or --disable-HPGPS was given.
42864 if test "${enable_HPGPS+set}" = set; then
42865 enableval="$enable_HPGPS"
42866 ntp_ok=$enableval
42867 else
42868 ntp_ok=$ntp_eac
42870 if test "$ntp_ok" = "yes"; then
42871 ntp_refclock=yes
42873 cat >>confdefs.h <<\_ACEOF
42874 #define CLOCK_HPGPS 1
42875 _ACEOF
42878 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42879 echo "${ECHO_T}$ntp_ok" >&6
42881 echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
42882 echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
42883 # Check whether --enable-IRIG or --disable-IRIG was given.
42884 if test "${enable_IRIG+set}" = set; then
42885 enableval="$enable_IRIG"
42886 ntp_ok=$enableval
42887 else
42888 case "$ntp_eac$ntp_canaudio" in
42889 *no*) ntp_ok=no ;;
42890 *) ntp_ok=yes ;;
42891 esac
42893 if test "$ntp_ok" = "yes"; then
42894 ntp_refclock=yes
42896 cat >>confdefs.h <<\_ACEOF
42897 #define CLOCK_IRIG 1
42898 _ACEOF
42901 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42902 echo "${ECHO_T}$ntp_ok" >&6
42903 case "$ntp_ok$ntp_canaudio" in
42904 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
42905 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
42906 esac
42908 echo "$as_me:$LINENO: checking for JJY receiver" >&5
42909 echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
42910 # Check whether --enable-JJY or --disable-JJY was given.
42911 if test "${enable_JJY+set}" = set; then
42912 enableval="$enable_JJY"
42913 ntp_ok=$enableval
42914 else
42915 ntp_ok=$ntp_eac
42917 if test "$ntp_ok" = "yes"; then
42918 ntp_refclock=yes
42920 cat >>confdefs.h <<\_ACEOF
42921 #define CLOCK_JJY 1
42922 _ACEOF
42925 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42926 echo "${ECHO_T}$ntp_ok" >&6
42928 echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
42929 echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
42930 # Check whether --enable-JUPITER or --disable-JUPITER was given.
42931 if test "${enable_JUPITER+set}" = set; then
42932 enableval="$enable_JUPITER"
42933 ntp_ok=$enableval
42934 else
42935 ntp_ok=$ntp_eac
42937 case "$ac_cv_var_jupiter_ok" in
42938 no) ntp_ok=no ;;
42939 esac
42940 if test "$ntp_ok" = "yes"; then
42941 ntp_refclock=yes
42943 cat >>confdefs.h <<\_ACEOF
42944 #define CLOCK_JUPITER 1
42945 _ACEOF
42948 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42949 echo "${ECHO_T}$ntp_ok" >&6
42951 echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
42952 echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
42953 # Check whether --enable-LEITCH or --disable-LEITCH was given.
42954 if test "${enable_LEITCH+set}" = set; then
42955 enableval="$enable_LEITCH"
42956 ntp_ok=$enableval
42957 else
42958 ntp_ok=$ntp_eac
42960 if test "$ntp_ok" = "yes"; then
42961 ntp_refclock=yes
42963 cat >>confdefs.h <<\_ACEOF
42964 #define CLOCK_LEITCH 1
42965 _ACEOF
42968 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42969 echo "${ECHO_T}$ntp_ok" >&6
42971 echo "$as_me:$LINENO: checking local clock reference" >&5
42972 echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
42973 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
42974 if test "${enable_LOCAL_CLOCK+set}" = set; then
42975 enableval="$enable_LOCAL_CLOCK"
42976 ntp_ok=$enableval
42977 else
42978 ntp_ok=$ntp_eac
42980 if test "$ntp_ok" = "yes"; then
42981 ntp_refclock=yes
42983 cat >>confdefs.h <<\_ACEOF
42984 #define CLOCK_LOCAL 1
42985 _ACEOF
42988 echo "$as_me:$LINENO: result: $ntp_ok" >&5
42989 echo "${ECHO_T}$ntp_ok" >&6
42992 # Not Ultrix
42993 echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
42994 echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
42995 # Check whether --enable-MX4200 or --disable-MX4200 was given.
42996 if test "${enable_MX4200+set}" = set; then
42997 enableval="$enable_MX4200"
42998 ntp_ok=$enableval
42999 else
43000 case "$ac_cv_var_ppsclock" in
43001 yes) ntp_ok=$ntp_eac
43003 *) ntp_ok=no
43005 esac
43007 if test "$ntp_ok" = "yes"; then
43008 ntp_refclock=yes
43010 cat >>confdefs.h <<\_ACEOF
43011 #define CLOCK_MX4200 1
43012 _ACEOF
43015 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43016 echo "${ECHO_T}$ntp_ok" >&6
43017 case "$ntp_ok$host" in
43018 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
43019 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
43020 esac
43022 echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
43023 echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
43024 # Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
43025 if test "${enable_NEOCLOCK4X+set}" = set; then
43026 enableval="$enable_NEOCLOCK4X"
43027 ntp_ok=$enableval
43028 else
43029 ntp_ok=$ntp_eac
43031 if test "$ntp_ok" = "yes"; then
43032 ntp_refclock=yes
43034 cat >>confdefs.h <<\_ACEOF
43035 #define CLOCK_NEOCLOCK4X 1
43036 _ACEOF
43039 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43040 echo "${ECHO_T}$ntp_ok" >&6
43042 echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
43043 echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
43044 # Check whether --enable-NMEA or --disable-NMEA was given.
43045 if test "${enable_NMEA+set}" = set; then
43046 enableval="$enable_NMEA"
43047 ntp_ok=$enableval
43048 else
43049 ntp_ok=$ntp_eac
43051 if test "$ntp_ok" = "yes"; then
43052 ntp_refclock=yes
43054 cat >>confdefs.h <<\_ACEOF
43055 #define CLOCK_NMEA 1
43056 _ACEOF
43059 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43060 echo "${ECHO_T}$ntp_ok" >&6
43062 echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
43063 echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
43064 # Check whether --enable-ONCORE or --disable-ONCORE was given.
43065 if test "${enable_ONCORE+set}" = set; then
43066 enableval="$enable_ONCORE"
43067 ntp_ok=$enableval
43068 else
43069 ntp_ok=$ntp_eac
43071 case "$ac_cv_var_oncore_ok" in
43072 no) ntp_ok=no ;;
43073 esac
43074 if test "$ntp_ok" = "yes"; then
43075 ntp_refclock=yes
43077 cat >>confdefs.h <<\_ACEOF
43078 #define CLOCK_ONCORE 1
43079 _ACEOF
43082 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43083 echo "${ECHO_T}$ntp_ok" >&6
43085 echo "$as_me:$LINENO: checking for Palisade clock" >&5
43086 echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
43087 # Check whether --enable-PALISADE or --disable-PALISADE was given.
43088 if test "${enable_PALISADE+set}" = set; then
43089 enableval="$enable_PALISADE"
43090 ntp_ok=$enableval
43091 else
43092 case "$ac_cv_header_termios_h" in
43093 yes)
43094 ntp_ok=$ntp_eac
43096 *) ntp_ok=no
43098 esac
43101 if test "$ntp_ok" = "yes"; then
43102 ntp_refclock=yes
43104 cat >>confdefs.h <<\_ACEOF
43105 #define CLOCK_PALISADE 1
43106 _ACEOF
43109 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43110 echo "${ECHO_T}$ntp_ok" >&6
43112 echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
43113 echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
43114 # Check whether --enable-PCF or --disable-PCF was given.
43115 if test "${enable_PCF+set}" = set; then
43116 enableval="$enable_PCF"
43117 ntp_ok=$enableval
43118 else
43119 ntp_ok=$ntp_eac
43121 if test "$ntp_ok" = "yes"; then
43122 ntp_refclock=yes
43124 cat >>confdefs.h <<\_ACEOF
43125 #define CLOCK_PCF 1
43126 _ACEOF
43129 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43130 echo "${ECHO_T}$ntp_ok" >&6
43132 echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
43133 echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
43134 # Check whether --enable-PST or --disable-PST was given.
43135 if test "${enable_PST+set}" = set; then
43136 enableval="$enable_PST"
43137 ntp_ok=$enableval
43138 else
43139 ntp_ok=$ntp_eac
43141 if test "$ntp_ok" = "yes"; then
43142 ntp_refclock=yes
43144 cat >>confdefs.h <<\_ACEOF
43145 #define CLOCK_PST 1
43146 _ACEOF
43149 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43150 echo "${ECHO_T}$ntp_ok" >&6
43152 echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
43153 echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
43154 # Check whether --enable-RIPENCC or --disable-RIPENCC was given.
43155 if test "${enable_RIPENCC+set}" = set; then
43156 enableval="$enable_RIPENCC"
43157 ntp_ok=$enableval
43158 else
43159 ntp_ok=no
43161 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
43162 case "$ac_cv_var_ripe_ncc_ok" in
43163 no) ntp_ok=no ;;
43164 esac
43165 if test "$ntp_ok" = "yes"; then
43166 ntp_refclock=yes
43168 cat >>confdefs.h <<\_ACEOF
43169 #define CLOCK_RIPENCC
43170 _ACEOF
43173 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43174 echo "${ECHO_T}$ntp_ok" >&6
43176 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
43177 # For *IX, we need sys/ipc.h and sys/shm.h.
43178 echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
43179 echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
43180 # Check whether --enable-SHM or --disable-SHM was given.
43181 if test "${enable_SHM+set}" = set; then
43182 enableval="$enable_SHM"
43183 ntp_ok=$enableval
43184 else
43185 case "$ntp_eac$ntp_canshm" in
43186 *no*) ntp_ok=no ;;
43187 *) ntp_ok=yes ;;
43188 esac
43190 if test "$ntp_ok" = "yes"; then
43191 ntp_refclock=yes
43193 cat >>confdefs.h <<\_ACEOF
43194 #define CLOCK_SHM 1
43195 _ACEOF
43198 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43199 echo "${ECHO_T}$ntp_ok" >&6
43201 echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
43202 echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
43203 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
43204 if test "${enable_SPECTRACOM+set}" = set; then
43205 enableval="$enable_SPECTRACOM"
43206 ntp_ok=$enableval
43207 else
43208 ntp_ok=$ntp_eac
43210 if test "$ntp_ok" = "yes"; then
43211 ntp_refclock=yes
43213 cat >>confdefs.h <<\_ACEOF
43214 #define CLOCK_SPECTRACOM 1
43215 _ACEOF
43218 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43219 echo "${ECHO_T}$ntp_ok" >&6
43221 echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
43222 echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
43223 # Check whether --enable-TPRO or --disable-TPRO was given.
43224 if test "${enable_TPRO+set}" = set; then
43225 enableval="$enable_TPRO"
43226 ntp_ok=$enableval
43227 else
43228 case "$ac_cv_header_sys_tpro_h" in
43229 yes)
43230 ntp_ok=$ntp_eac
43232 *) ntp_ok=no
43234 esac
43236 if test "$ntp_ok" = "yes"; then
43237 ntp_refclock=yes
43239 cat >>confdefs.h <<\_ACEOF
43240 #define CLOCK_TPRO 1
43241 _ACEOF
43244 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43245 echo "${ECHO_T}$ntp_ok" >&6
43246 case "$ntp_ok$ac_cv_header_sys_tpro" in
43247 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
43248 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
43249 esac
43252 # Not on a vax-dec-bsd
43253 echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
43254 echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
43255 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
43256 if test "${enable_TRUETIME+set}" = set; then
43257 enableval="$enable_TRUETIME"
43258 ntp_ok=$enableval
43259 else
43260 case "$host" in
43261 vax-dec-bsd)
43262 ntp_ok=no
43265 ntp_ok=$ntp_eac
43267 esac
43270 if test "$ntp_ok" = "yes"; then
43271 ntp_refclock=yes
43273 cat >>confdefs.h <<\_ACEOF
43274 #define CLOCK_TRUETIME 1
43275 _ACEOF
43278 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43279 echo "${ECHO_T}$ntp_ok" >&6
43280 case "$ntp_ok$host" in
43281 yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
43282 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
43283 esac
43285 echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
43286 echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
43287 # Check whether --enable-TT560 or --disable-TT560 was given.
43288 if test "${enable_TT560+set}" = set; then
43289 enableval="$enable_TT560"
43290 ntp_ok=$enableval
43291 else
43292 ntp_ok=no
43294 if test "$ntp_ok" = "yes"; then
43295 ntp_refclock=yes
43297 cat >>confdefs.h <<\_ACEOF
43298 #define CLOCK_TT560
43299 _ACEOF
43302 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43303 echo "${ECHO_T}$ntp_ok" >&6
43305 echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
43306 echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
43307 # Check whether --enable-ULINK or --disable-ULINK was given.
43308 if test "${enable_ULINK+set}" = set; then
43309 enableval="$enable_ULINK"
43310 ntp_ok=$enableval
43311 else
43312 ntp_ok=$ntp_eac
43314 if test "$ntp_ok" = "yes"; then
43315 ntp_refclock=yes
43317 cat >>confdefs.h <<\_ACEOF
43318 #define CLOCK_ULINK 1
43319 _ACEOF
43322 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43323 echo "${ECHO_T}$ntp_ok" >&6
43325 echo "$as_me:$LINENO: checking WWV receiver" >&5
43326 echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
43327 # Check whether --enable-WWV or --disable-WWV was given.
43328 if test "${enable_WWV+set}" = set; then
43329 enableval="$enable_WWV"
43330 ntp_ok=$enableval
43331 else
43332 case "$ntp_eac$ntp_canaudio" in
43333 *no*) ntp_ok=no ;;
43334 *) ntp_ok=yes ;;
43335 esac
43337 if test "$ntp_ok" = "yes"; then
43338 ntp_refclock=yes
43340 cat >>confdefs.h <<\_ACEOF
43341 #define CLOCK_WWV 1
43342 _ACEOF
43345 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43346 echo "${ECHO_T}$ntp_ok" >&6
43347 case "$ntp_ok$ntp_canaudio" in
43348 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
43349 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
43350 esac
43352 echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
43353 echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
43354 # Check whether --enable-ZYFER or --disable-ZYFER was given.
43355 if test "${enable_ZYFER+set}" = set; then
43356 enableval="$enable_ZYFER"
43357 ntp_ok=$enableval
43358 else
43359 ntp_ok=$ntp_eac
43361 if test "$ntp_ok" = "yes"; then
43362 ntp_refclock=yes
43364 cat >>confdefs.h <<\_ACEOF
43365 #define CLOCK_ZYFER 1
43366 _ACEOF
43369 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43370 echo "${ECHO_T}$ntp_ok" >&6
43372 echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
43373 echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
43374 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
43375 if test "${enable_parse_clocks+set}" = set; then
43376 enableval="$enable_parse_clocks"
43377 ntp_eapc=$enableval
43378 else
43379 case "$ntp_eac" in
43380 yes) ntp_eapc=$ntp_canparse ;;
43381 *) ntp_eapc=no ;;
43382 esac
43383 # Delete the next line one of these days
43384 ntp_eapc=no
43386 echo "$as_me:$LINENO: result: $ntp_eapc" >&5
43387 echo "${ECHO_T}$ntp_eapc" >&6
43389 case "$ntp_eac$ntp_eapc$ntp_canparse" in
43390 noyes*)
43391 { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
43392 echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
43393 { (exit 1); exit 1; }; }
43395 yesyesno)
43396 { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
43397 echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
43398 { (exit 1); exit 1; }; }
43400 *) ;;
43401 esac
43403 ntp_libparse=no
43404 ntp_parseutil=no
43405 ntp_rawdcf=no
43407 echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
43408 echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
43409 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
43410 if test "${enable_COMPUTIME+set}" = set; then
43411 enableval="$enable_COMPUTIME"
43412 ntp_ok=$enableval
43413 else
43414 ntp_ok=$ntp_eapc
43416 if test "$ntp_ok" = "yes"; then
43417 ntp_libparse=yes
43418 ntp_refclock=yes
43420 cat >>confdefs.h <<\_ACEOF
43421 #define CLOCK_COMPUTIME 1
43422 _ACEOF
43425 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43426 echo "${ECHO_T}$ntp_ok" >&6
43427 case "$ntp_ok$ntp_canparse" in
43428 yesno)
43429 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43430 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43431 { (exit 1); exit 1; }; }
43433 esac
43435 echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
43436 echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
43437 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
43438 if test "${enable_DCF7000+set}" = set; then
43439 enableval="$enable_DCF7000"
43440 ntp_ok=$enableval
43441 else
43442 ntp_ok=$ntp_eapc
43444 if test "$ntp_ok" = "yes"; then
43445 ntp_libparse=yes
43446 ntp_refclock=yes
43448 cat >>confdefs.h <<\_ACEOF
43449 #define CLOCK_DCF7000 1
43450 _ACEOF
43453 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43454 echo "${ECHO_T}$ntp_ok" >&6
43455 case "$ntp_ok$ntp_canparse" in
43456 yesno)
43457 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43458 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43459 { (exit 1); exit 1; }; }
43461 esac
43463 echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
43464 echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
43465 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
43466 if test "${enable_HOPF6021+set}" = set; then
43467 enableval="$enable_HOPF6021"
43468 ntp_ok=$enableval
43469 else
43470 ntp_ok=$ntp_eapc
43472 if test "$ntp_ok" = "yes"; then
43473 ntp_libparse=yes
43474 ntp_refclock=yes
43476 cat >>confdefs.h <<\_ACEOF
43477 #define CLOCK_HOPF6021 1
43478 _ACEOF
43481 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43482 echo "${ECHO_T}$ntp_ok" >&6
43483 case "$ntp_ok$ntp_canparse" in
43484 yesno)
43485 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43486 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43487 { (exit 1); exit 1; }; }
43489 esac
43491 echo "$as_me:$LINENO: checking Meinberg clocks" >&5
43492 echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
43493 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
43494 if test "${enable_MEINBERG+set}" = set; then
43495 enableval="$enable_MEINBERG"
43496 ntp_ok=$enableval
43497 else
43498 ntp_ok=$ntp_eapc
43500 if test "$ntp_ok" = "yes"; then
43501 ntp_libparse=yes
43502 ntp_refclock=yes
43504 cat >>confdefs.h <<\_ACEOF
43505 #define CLOCK_MEINBERG 1
43506 _ACEOF
43509 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43510 echo "${ECHO_T}$ntp_ok" >&6
43511 case "$ntp_ok$ntp_canparse" in
43512 yesno)
43513 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43514 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43515 { (exit 1); exit 1; }; }
43517 esac
43519 echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
43520 echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
43521 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
43522 if test "${enable_RAWDCF+set}" = set; then
43523 enableval="$enable_RAWDCF"
43524 ntp_ok=$enableval
43525 else
43526 ntp_ok=$ntp_eapc
43528 if test "$ntp_ok" = "yes"; then
43529 ntp_libparse=yes
43530 ntp_parseutil=yes
43531 ntp_refclock=yes
43532 ntp_rawdcf=yes
43534 cat >>confdefs.h <<\_ACEOF
43535 #define CLOCK_RAWDCF 1
43536 _ACEOF
43539 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43540 echo "${ECHO_T}$ntp_ok" >&6
43541 case "$ntp_ok$ntp_canparse" in
43542 yesno)
43543 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43544 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43545 { (exit 1); exit 1; }; }
43547 esac
43549 case "$ntp_rawdcf" in
43550 yes)
43551 echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
43552 echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
43553 if test "${ac_cv_var_rawdcf_parity+set}" = set; then
43554 echo $ECHO_N "(cached) $ECHO_C" >&6
43555 else
43556 ans=no
43557 case "$host" in
43558 *-*-*linux*)
43559 ans=yes
43561 esac
43562 ac_cv_var_rawdcf_parity=$ans
43564 echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
43565 echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
43566 case "$ac_cv_var_rawdcf_parity" in
43567 yes)
43568 cat >>confdefs.h <<\_ACEOF
43569 #define RAWDCF_NO_IGNPAR 1
43570 _ACEOF
43572 esac
43575 *) # HMS: Is this a good idea?
43576 ac_cv_var_rawdcf_parity=no
43578 esac
43580 echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
43581 echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
43582 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
43583 if test "${enable_RCC8000+set}" = set; then
43584 enableval="$enable_RCC8000"
43585 ntp_ok=$enableval
43586 else
43587 ntp_ok=$ntp_eapc
43589 if test "$ntp_ok" = "yes"; then
43590 ntp_libparse=yes
43591 ntp_refclock=yes
43593 cat >>confdefs.h <<\_ACEOF
43594 #define CLOCK_RCC8000 1
43595 _ACEOF
43598 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43599 echo "${ECHO_T}$ntp_ok" >&6
43600 case "$ntp_ok$ntp_canparse" in
43601 yesno)
43602 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43603 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43604 { (exit 1); exit 1; }; }
43606 esac
43608 echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
43609 echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
43610 # Check whether --enable-SCHMID or --disable-SCHMID was given.
43611 if test "${enable_SCHMID+set}" = set; then
43612 enableval="$enable_SCHMID"
43613 ntp_ok=$enableval
43614 else
43615 ntp_ok=$ntp_eapc
43617 if test "$ntp_ok" = "yes"; then
43618 ntp_libparse=yes
43619 ntp_refclock=yes
43621 cat >>confdefs.h <<\_ACEOF
43622 #define CLOCK_SCHMID 1
43623 _ACEOF
43626 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43627 echo "${ECHO_T}$ntp_ok" >&6
43628 case "$ntp_ok$ntp_canparse" in
43629 yesno)
43630 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43631 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43632 { (exit 1); exit 1; }; }
43634 esac
43636 echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
43637 echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
43638 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
43639 if test "${enable_TRIMTAIP+set}" = set; then
43640 enableval="$enable_TRIMTAIP"
43641 ntp_ok=$enableval
43642 else
43643 ntp_ok=$ntp_eapc
43645 if test "$ntp_ok" = "yes"; then
43646 ntp_libparse=yes
43647 ntp_refclock=yes
43649 cat >>confdefs.h <<\_ACEOF
43650 #define CLOCK_TRIMTAIP 1
43651 _ACEOF
43654 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43655 echo "${ECHO_T}$ntp_ok" >&6
43656 case "$ntp_ok$ntp_canparse" in
43657 yesno)
43658 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43659 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43660 { (exit 1); exit 1; }; }
43662 esac
43664 echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
43665 echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
43666 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
43667 if test "${enable_TRIMTSIP+set}" = set; then
43668 enableval="$enable_TRIMTSIP"
43669 ntp_ok=$enableval
43670 else
43671 ntp_ok=$ntp_eapc
43673 if test "$ntp_ok" = "yes"; then
43674 ntp_libparse=yes
43675 ntp_refclock=yes
43677 cat >>confdefs.h <<\_ACEOF
43678 #define CLOCK_TRIMTSIP 1
43679 _ACEOF
43682 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43683 echo "${ECHO_T}$ntp_ok" >&6
43684 case "$ntp_ok$ntp_canparse" in
43685 yesno)
43686 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43687 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43688 { (exit 1); exit 1; }; }
43690 esac
43692 echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
43693 echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
43694 # Check whether --enable-WHARTON or --disable-WHARTON was given.
43695 if test "${enable_WHARTON+set}" = set; then
43696 enableval="$enable_WHARTON"
43697 ntp_ok=$enableval
43698 else
43699 ntp_ok=$ntp_eapc
43701 if test "$ntp_ok" = "yes"; then
43702 ntp_libparse=yes
43703 ntp_refclock=yes
43705 cat >>confdefs.h <<\_ACEOF
43706 #define CLOCK_WHARTON_400A 1
43707 _ACEOF
43710 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43711 echo "${ECHO_T}$ntp_ok" >&6
43712 case "$ntp_ok$ntp_canparse" in
43713 yesno)
43714 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43715 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43716 { (exit 1); exit 1; }; }
43718 esac
43720 echo "$as_me:$LINENO: checking VARITEXT clock" >&5
43721 echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
43722 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
43723 if test "${enable_VARITEXT+set}" = set; then
43724 enableval="$enable_VARITEXT"
43725 ntp_ok=$enableval
43726 else
43727 ntp_ok=$ntp_eapc
43729 if test "$ntp_ok" = "yes"; then
43730 ntp_libparse=yes
43731 ntp_refclock=yes
43733 cat >>confdefs.h <<\_ACEOF
43734 #define CLOCK_VARITEXT 1
43735 _ACEOF
43738 echo "$as_me:$LINENO: result: $ntp_ok" >&5
43739 echo "${ECHO_T}$ntp_ok" >&6
43740 case "$ntp_ok$ntp_canparse" in
43741 yesno)
43742 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
43743 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
43744 { (exit 1); exit 1; }; }
43746 esac
43751 echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
43752 echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
43753 ans=no
43754 case "$ntp_libparse" in
43755 yes)
43756 ans=yes
43758 cat >>confdefs.h <<\_ACEOF
43759 #define CLOCK_PARSE 1
43760 _ACEOF
43762 LIBPARSE=../libparse/libparse.a
43763 MAKE_LIBPARSE=libparse.a
43764 # HMS: check_y2k trips the 34 year problem now...
43765 false && MAKE_CHECK_Y2K=check_y2k
43767 cat >>confdefs.h <<\_ACEOF
43768 #define PPS_SAMPLE 1
43769 _ACEOF
43771 cat >>confdefs.h <<\_ACEOF
43772 #define CLOCK_ATOM 1
43773 _ACEOF
43776 esac
43777 echo "$as_me:$LINENO: result: $ans" >&5
43778 echo "${ECHO_T}$ans" >&6
43780 # AC_SUBST(RSAOBJS)
43781 # AC_SUBST(RSASRCS)
43782 # AC_SUBST(RSADIR)
43783 # AC_SUBST(RSAREF)
43784 # AC_SUBST(LIBRSAREF)
43785 # AC_SUBST(MAKE_LIBRSAREF)
43791 echo "$as_me:$LINENO: checking for openssl library directory" >&5
43792 echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
43794 # Check whether --with-openssl-libdir or --without-openssl-libdir was given.
43795 if test "${with_openssl_libdir+set}" = set; then
43796 withval="$with_openssl_libdir"
43797 ans=$withval
43798 else
43799 case "$build" in
43800 $host) ans=yes ;;
43801 *) ans=no ;;
43802 esac
43804 case "$ans" in
43805 no) ;;
43806 yes) # Look in:
43807 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
43809 *) # Look where they said
43811 esac
43812 case "$ans" in
43813 no) ;;
43814 *) # Look for libcrypto.a and libssl.a:
43815 for i in $ans no
43817 case "$host" in
43818 *-*-darwin*)
43819 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
43822 test -f $i/libcrypto.so -a -f $i/libssl.so && break
43823 test -f $i/libcrypto.a -a -f $i/libssl.a && break
43825 esac
43826 done
43827 case "$i" in
43829 ans=no
43830 OPENSSL_LIB=
43832 *) ans=$i
43833 OPENSSL_LIB=$ans
43835 esac
43837 esac
43838 echo "$as_me:$LINENO: result: $ans" >&5
43839 echo "${ECHO_T}$ans" >&6
43841 echo "$as_me:$LINENO: checking for openssl include directory" >&5
43842 echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
43844 # Check whether --with-openssl-incdir or --without-openssl-incdir was given.
43845 if test "${with_openssl_incdir+set}" = set; then
43846 withval="$with_openssl_incdir"
43847 ans=$withval
43848 else
43849 case "$build" in
43850 $host) ans=yes ;;
43851 *) ans=no ;;
43852 esac
43854 case "$ans" in
43855 no) ;;
43856 yes) # look in:
43857 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
43859 *) # Look where they said
43861 esac
43862 case "$ans" in
43863 no) ;;
43864 *) # look for openssl/opensslconf.h:
43865 for i in $ans no
43867 test -f $i/openssl/opensslconf.h && break
43868 done
43869 case "$i" in
43871 ans=no
43872 OPENSSL_INC=
43874 *) ans=$i
43875 OPENSSL_INC=$ans
43877 esac
43879 esac
43880 echo "$as_me:$LINENO: result: $ans" >&5
43881 echo "${ECHO_T}$ans" >&6
43884 # Check whether --with-crypto or --without-crypto was given.
43885 if test "${with_crypto+set}" = set; then
43886 withval="$with_crypto"
43887 ans=$withval
43888 else
43889 ans=yes
43891 case "$ans" in
43892 no) ;;
43893 yes|openssl)
43894 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
43895 then
43896 ans=no
43897 else
43898 # We have OpenSSL inc/lib - use them.
43899 ans=openssl
43900 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
43901 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
43902 case "$need_dash_r" in
43903 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
43905 esac
43906 LCRYPTO=-lcrypto
43909 cat >>confdefs.h <<\_ACEOF
43910 #define OPENSSL
43911 _ACEOF
43915 for ac_func in EVP_md2 EVP_mdc2
43917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43918 echo "$as_me:$LINENO: checking for $ac_func" >&5
43919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43920 if eval "test \"\${$as_ac_var+set}\" = set"; then
43921 echo $ECHO_N "(cached) $ECHO_C" >&6
43922 else
43923 cat >conftest.$ac_ext <<_ACEOF
43924 /* confdefs.h. */
43925 _ACEOF
43926 cat confdefs.h >>conftest.$ac_ext
43927 cat >>conftest.$ac_ext <<_ACEOF
43928 /* end confdefs.h. */
43929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43931 #define $ac_func innocuous_$ac_func
43933 /* System header to define __stub macros and hopefully few prototypes,
43934 which can conflict with char $ac_func (); below.
43935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43936 <limits.h> exists even on freestanding compilers. */
43938 #ifdef __STDC__
43939 # include <limits.h>
43940 #else
43941 # include <assert.h>
43942 #endif
43944 #undef $ac_func
43946 /* Override any gcc2 internal prototype to avoid an error. */
43947 #ifdef __cplusplus
43948 extern "C"
43950 #endif
43951 /* We use char because int might match the return type of a gcc2
43952 builtin and then its argument prototype would still apply. */
43953 char $ac_func ();
43954 /* The GNU C library defines this for functions which it implements
43955 to always fail with ENOSYS. Some functions are actually named
43956 something starting with __ and the normal name is an alias. */
43957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43958 choke me
43959 #else
43960 char (*f) () = $ac_func;
43961 #endif
43962 #ifdef __cplusplus
43964 #endif
43967 main ()
43969 return f != $ac_func;
43971 return 0;
43973 _ACEOF
43974 rm -f conftest.$ac_objext conftest$ac_exeext
43975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43976 (eval $ac_link) 2>conftest.er1
43977 ac_status=$?
43978 grep -v '^ *+' conftest.er1 >conftest.err
43979 rm -f conftest.er1
43980 cat conftest.err >&5
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); } &&
43983 { ac_try='test -z "$ac_c_werror_flag"
43984 || test ! -s conftest.err'
43985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986 (eval $ac_try) 2>&5
43987 ac_status=$?
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); }; } &&
43990 { ac_try='test -s conftest$ac_exeext'
43991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992 (eval $ac_try) 2>&5
43993 ac_status=$?
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); }; }; then
43996 eval "$as_ac_var=yes"
43997 else
43998 echo "$as_me: failed program was:" >&5
43999 sed 's/^/| /' conftest.$ac_ext >&5
44001 eval "$as_ac_var=no"
44003 rm -f conftest.err conftest.$ac_objext \
44004 conftest$ac_exeext conftest.$ac_ext
44006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44008 if test `eval echo '${'$as_ac_var'}'` = yes; then
44009 cat >>confdefs.h <<_ACEOF
44010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44011 _ACEOF
44014 done
44018 esac
44019 echo "$as_me:$LINENO: checking for the level of crypto support" >&5
44020 echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
44021 echo "$as_me:$LINENO: result: $ans" >&5
44022 echo "${ECHO_T}$ans" >&6
44024 echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
44025 echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
44027 # Check whether --with-electricfence or --without-electricfence was given.
44028 if test "${with_electricfence+set}" = set; then
44029 withval="$with_electricfence"
44030 ans=$withval
44031 else
44032 ans=no
44034 case "$ans" in
44035 no) ;;
44037 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
44038 EF_PROGS="eftest tstheap"
44040 EF_LIBS=libefence.a
44042 ans=yes
44044 esac
44045 echo "$as_me:$LINENO: result: $ans" >&5
44046 echo "${ECHO_T}$ans" >&6
44049 echo "$as_me:$LINENO: checking if we want to run check-layout" >&5
44050 echo $ECHO_N "checking if we want to run check-layout... $ECHO_C" >&6
44051 case "$cross_compiling$PATH_PERL" in
44052 no/*)
44053 MAKE_CHECK_LAYOUT=check-layout
44054 ans=yes
44057 ans=no
44059 esac
44060 echo "$as_me:$LINENO: result: $ans" >&5
44061 echo "${ECHO_T}$ans" >&6
44066 echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
44067 echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
44068 ans=no
44069 if test "$ntp_parseutil" = "yes"; then
44070 case "$host" in
44071 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
44072 ans="dcfd testdcf"
44073 DCFD=dcfd
44074 TESTDCF=testdcf
44076 esac
44078 echo "$as_me:$LINENO: result: $ans" >&5
44079 echo "${ECHO_T}$ans" >&6
44082 echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
44083 echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
44084 ans=no
44085 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
44086 yesyes)
44087 case "$host" in
44088 sparc-*-sunos4*)
44089 case "$ac_cv_var_kernel_pll" in
44090 yes)
44092 cat >>confdefs.h <<\_ACEOF
44093 #define PPS_SYNC 1
44094 _ACEOF
44097 esac
44098 ans=parsestreams
44099 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
44101 sparc-*-solaris2*)
44102 ans=parsesolaris
44103 MAKE_PARSEKMODULE=parse
44105 esac
44107 esac
44108 echo "$as_me:$LINENO: result: $ans" >&5
44109 echo "${ECHO_T}$ans" >&6
44111 echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
44112 echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
44113 if test "$ntp_refclock" = "yes"; then
44115 cat >>confdefs.h <<\_ACEOF
44116 #define REFCLOCK 1
44117 _ACEOF
44120 echo "$as_me:$LINENO: result: $ntp_refclock" >&5
44121 echo "${ECHO_T}$ntp_refclock" >&6
44125 echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
44126 echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
44127 case "$host" in
44128 *-*-hpux[56789]*)
44129 ans=yes
44131 *) ans=no
44133 esac
44134 if test "$ans" = "yes"; then
44135 MAKE_ADJTIMED=adjtimed
44137 cat >>confdefs.h <<\_ACEOF
44138 #define NEED_HPUX_ADJTIME 1
44139 _ACEOF
44142 echo "$as_me:$LINENO: result: $ans" >&5
44143 echo "${ECHO_T}$ans" >&6
44145 echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
44146 echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
44147 case "$host" in
44148 *-*-qnx*)
44149 ans=yes
44151 *) ans=no
44153 esac
44154 if test "$ans" = "yes"; then
44156 cat >>confdefs.h <<\_ACEOF
44157 #define NEED_QNX_ADJTIME 1
44158 _ACEOF
44161 echo "$as_me:$LINENO: result: $ans" >&5
44162 echo "${ECHO_T}$ans" >&6
44164 echo "$as_me:$LINENO: checking if we can read kmem" >&5
44165 echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
44167 # the default is to enable it if the system has the capability
44169 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
44170 *yes*)
44171 ans=yes
44173 *) ans=no
44174 esac
44176 case "$host" in
44177 *-*-domainos) # Won't be found...
44178 ans=no
44180 *-*-hpux*)
44181 #ans=no
44183 *-*-irix[456]*)
44184 ans=no
44186 *-*-*linux*)
44187 ans=no
44189 *-*-winnt3.5)
44190 ans=no
44192 *-*-unicosmp*)
44193 ans=no
44195 esac
44197 # --enable-kmem / --disable-kmem controls if present
44198 # Check whether --enable-kmem or --disable-kmem was given.
44199 if test "${enable_kmem+set}" = set; then
44200 enableval="$enable_kmem"
44201 ans=$enableval
44205 echo "$as_me:$LINENO: result: $ans" >&5
44206 echo "${ECHO_T}$ans" >&6
44208 case "$ans" in
44209 yes)
44210 can_kmem=yes
44213 can_kmem=no
44215 cat >>confdefs.h <<\_ACEOF
44216 #define NOKMEM 1
44217 _ACEOF
44219 esac
44222 echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
44223 echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
44225 # target-dependent defaults
44227 case "$host" in
44228 i386-sequent-ptx*)
44229 ans=no
44231 i386-unknown-osf1*)
44232 ans=yes
44234 mips-sgi-irix[456]*)
44235 ans=yes
44237 *-fujitsu-uxp*)
44238 ans=yes
44240 *-ibm-aix[456]*)
44241 ans=yes
44243 *-*-*linux*)
44244 ans=yes
44246 *-*-solaris2.[01])
44247 ans=no
44249 *-*-solaris2*)
44250 ans=yes
44252 *-*-unicosmp*)
44253 ans=yes
44255 *) ans=no
44256 esac
44258 # --enable-accurate-adjtime / --disable-accurate-adjtime
44259 # override the default
44260 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
44261 if test "${enable_accurate_adjtime+set}" = set; then
44262 enableval="$enable_accurate_adjtime"
44263 ans=$enableval
44266 echo "$as_me:$LINENO: result: $ans" >&5
44267 echo "${ECHO_T}$ans" >&6
44269 case "$ans" in
44270 yes)
44272 cat >>confdefs.h <<\_ACEOF
44273 #define ADJTIME_IS_ACCURATE 1
44274 _ACEOF
44276 adjtime_is_accurate=yes
44279 adjtime_is_accurate=no
44280 esac
44282 echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
44283 echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
44284 if test "${ac_cv_var_nlist_tick+set}" = set; then
44285 echo $ECHO_N "(cached) $ECHO_C" >&6
44286 else
44287 ans=_tick
44288 case "$host" in
44289 m68*-hp-hpux*) # HP9000/300?
44290 ans=_old_tick
44292 *-apple-aux[23]*)
44293 ans=tick
44295 *-hp-hpux*)
44296 ans=old_tick
44298 *-ibm-aix[3456]*)
44299 ans=no
44301 *-*-mpeix*)
44302 ans=no
44304 *-*-ptx*)
44305 ans=tick
44307 *-*-sco3.2v[45]*)
44308 ans=no
44310 *-*-solaris2*)
44311 ans=nsec_per_tick
44313 *-*-sysv4*)
44314 ans=tick
44316 esac
44317 ac_cv_var_nlist_tick=$ans
44319 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
44320 echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
44321 case "$ac_cv_var_nlist_tick" in
44322 ''|no) ;; # HMS: I think we can only get 'no' here...
44324 cat >>confdefs.h <<_ACEOF
44325 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
44326 _ACEOF
44328 esac
44330 echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
44331 echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
44332 if test "${ac_cv_var_tick_nano+set}" = set; then
44333 echo $ECHO_N "(cached) $ECHO_C" >&6
44334 else
44335 ans=usec
44336 case "$host" in
44337 *-*-solaris2*)
44338 ans=nsec
44340 esac
44341 ac_cv_var_tick_nano=$ans
44343 echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
44344 echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
44345 case "$ac_cv_var_tick_nano" in
44346 nsec)
44348 cat >>confdefs.h <<\_ACEOF
44349 #define TICK_NANO 1
44350 _ACEOF
44353 esac
44355 echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
44356 echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
44357 if test "${ac_cv_var_nlist_tickadj+set}" = set; then
44358 echo $ECHO_N "(cached) $ECHO_C" >&6
44359 else
44360 ans=_tickadj
44361 case "$host" in
44362 m68*-hp-hpux*) # HP9000/300?
44363 ans=_tickadj
44365 *-apple-aux[23]*)
44366 ans=tickadj
44368 *-hp-hpux10*)
44369 ans=no
44371 *-hp-hpux9*)
44372 ans=no
44374 *-hp-hpux*)
44375 ans=tickadj
44377 *-*-aix*)
44378 ans=tickadj
44380 *-*-mpeix*)
44381 ans=no
44383 *-*-ptx*)
44384 ans=tickadj
44386 *-*-sco3.2v4*)
44387 ans=no
44389 *-*-sco3.2v5.0*)
44390 ans=clock_drift
44392 *-*-solaris2*)
44393 ans=no # hrestime_adj
44395 *-*-sysv4*)
44396 ans=tickadj
44398 esac
44399 ac_cv_var_nlist_tickadj=$ans
44401 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
44402 echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
44403 case "$ac_cv_var_nlist_tickadj" in
44404 ''|no) ;; # HMS: I think we can only get 'no' here...
44406 cat >>confdefs.h <<_ACEOF
44407 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
44408 _ACEOF
44410 esac
44412 echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
44413 echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
44414 if test "${ac_cv_var_tickadj_nano+set}" = set; then
44415 echo $ECHO_N "(cached) $ECHO_C" >&6
44416 else
44417 ans=usec
44418 case "$host" in
44419 *-*-solaris2*)
44420 ans=nsec
44422 esac
44423 ac_cv_var_tickadj_nano=$ans
44425 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
44426 echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
44427 case "$ac_cv_var_tickadj_nano" in
44428 nsec)
44430 cat >>confdefs.h <<\_ACEOF
44431 #define TICKADJ_NANO 1
44432 _ACEOF
44435 esac
44437 echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
44438 echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
44439 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44441 else
44442 case "$host" in
44443 *-apple-aux[23]*)
44444 ans=no
44446 *-sni-sysv*)
44447 ans=dosynctodr
44449 *-*-aix*)
44450 ans=dosynctodr
44452 *-*-hpux*)
44453 ans=no
44455 *-*-mpeix*)
44456 ans=no
44458 *-*-nextstep*)
44459 ans=_dosynctodr
44461 *-*-ptx*)
44462 ans=doresettodr
44464 *-*-sco3.2v4*)
44465 ans=no
44467 *-*-sco3.2v5*)
44468 ans=track_rtc
44470 *-*-solaris2*)
44471 ans=dosynctodr
44473 *-*-sysv4*)
44474 ans=doresettodr
44477 ans=_dosynctodr
44479 esac
44480 ac_cv_var_nlist_dosynctodr=$ans
44482 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
44483 echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
44484 case "$ac_cv_var_nlist_dosynctodr" in
44485 no) ;;
44487 cat >>confdefs.h <<_ACEOF
44488 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
44489 _ACEOF
44492 esac
44494 echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
44495 echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
44496 if test "${ac_cv_var_nlist_noprintf+set}" = set; then
44497 echo $ECHO_N "(cached) $ECHO_C" >&6
44498 else
44499 case "$host" in
44500 *-apple-aux[23]*)
44501 ans=no
44503 *-sni-sysv*)
44504 ans=noprintf
44506 *-*-aix*)
44507 ans=noprintf
44509 *-*-hpux*)
44510 ans=no
44512 *-*-mpeix*)
44513 ans=no
44515 *-*-ptx*)
44516 ans=noprintf
44518 *-*-nextstep*)
44519 ans=_noprintf
44521 *-*-solaris2*)
44522 ans=noprintf
44524 *-*-sysv4*)
44525 ans=noprintf
44528 ans=_noprintf
44530 esac
44531 ac_cv_var_nlist_noprintf=$ans
44533 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
44534 echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
44535 case "$ac_cv_var_nlist_noprintf" in
44536 no) ;;
44538 cat >>confdefs.h <<_ACEOF
44539 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
44540 _ACEOF
44543 esac
44548 echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
44549 echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
44551 # target-dependent default for tick
44553 case "$host" in
44554 *-*-pc-cygwin*)
44555 { { echo "$as_me:$LINENO: error: tick needs work for cygwin" >&5
44556 echo "$as_me: error: tick needs work for cygwin" >&2;}
44557 { (exit 1); exit 1; }; }
44559 *-univel-sysv*)
44560 ans=10000
44562 *-*-irix*)
44563 ans=10000
44565 *-*-*linux*)
44566 ans=txc.tick
44568 *-*-mpeix*)
44569 ans=no
44571 *-*-winnt3.5)
44572 ans='(every / 10)'
44574 *-*-unicosmp*)
44575 ans=10000
44578 ans='1000000L/hz'
44580 esac
44582 # Check whether --enable-tick or --disable-tick was given.
44583 if test "${enable_tick+set}" = set; then
44584 enableval="$enable_tick"
44585 ans=$enableval
44589 echo "$as_me:$LINENO: result: $ans" >&5
44590 echo "${ECHO_T}$ans" >&6
44592 case "$ans" in
44593 ''|no) ;; # HMS: I think we can only get 'no' here...
44595 cat >>confdefs.h <<_ACEOF
44596 #define PRESET_TICK $ans
44597 _ACEOF
44599 esac
44602 echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
44603 echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
44605 # target-specific default
44607 ans='500/hz'
44609 case "$host" in
44610 *-fujitsu-uxp*)
44611 case "$adjtime_is_accurate" in
44612 yes)
44613 ans='tick/16'
44614 esac
44616 XXX-*-pc-cygwin*)
44617 ans=no
44619 *-univel-sysv*)
44620 ans=80
44622 *-*-aix*)
44623 case "$can_kmem" in
44625 ans=1000
44626 esac
44628 *-*-domainos) # Skippy: won't be found...
44629 case "$can_kmem" in
44631 ans=668
44632 esac
44634 *-*-hpux*)
44635 case "$adjtime_is_accurate" in
44636 yes)
44637 ans='tick/16'
44638 esac
44640 *-*-irix*)
44641 ans=150
44643 *-*-mpeix*)
44644 ans=no
44646 *-*-sco3.2v5.0*)
44647 ans=10000L/hz
44649 *-*-winnt3.5)
44650 ans=50
44652 *-*-unicosmp*)
44653 ans=150
44654 esac
44656 # Check whether --enable-tickadj or --disable-tickadj was given.
44657 if test "${enable_tickadj+set}" = set; then
44658 enableval="$enable_tickadj"
44659 ans=$enableval
44663 echo "$as_me:$LINENO: result: $ans" >&5
44664 echo "${ECHO_T}$ans" >&6
44666 default_tickadj=$ans
44668 case "$default_tickadj" in
44669 ''|no) ;; # HMS: I think we can only get 'no' here...
44671 cat >>confdefs.h <<_ACEOF
44672 #define PRESET_TICKADJ $default_tickadj
44673 _ACEOF
44675 esac
44677 # Newer versions of ReliantUNIX round adjtime() values down to
44678 # 1/100s (system tick). Sigh ...
44679 # Unfortunately, there is no easy way to know if particular release
44680 # has this "feature" or any obvious way to test for it.
44681 case "$host" in
44682 mips-sni-sysv4*)
44683 cat >>confdefs.h <<\_ACEOF
44684 #define RELIANTUNIX_CLOCK 1
44685 _ACEOF
44687 esac
44689 case "$host" in
44690 *-*-sco3.2v5*)
44691 cat >>confdefs.h <<\_ACEOF
44692 #define SCO5_CLOCK 1
44693 _ACEOF
44695 esac
44697 ac_cv_make_tickadj=yes
44698 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
44699 nonono) # Don't read KMEM, no presets. Bogus.
44700 { echo "$as_me:$LINENO: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
44701 echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
44702 ac_cv_make_tickadj=no
44704 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
44705 { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
44706 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
44707 ac_cv_make_tickadj=no
44709 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
44710 { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
44711 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
44712 ac_cv_make_tickadj=no
44714 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
44716 yesnono) # Read KMEM, no presets. Cool.
44718 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
44719 { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
44720 echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
44722 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
44724 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
44726 *) # Generally bogus.
44727 { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
44728 echo "$as_me: error: This shouldn't happen." >&2;}
44729 { (exit 1); exit 1; }; }
44731 esac
44734 echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
44735 echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
44736 if test "${ac_cv_make_ntptime+set}" = set; then
44737 echo $ECHO_N "(cached) $ECHO_C" >&6
44738 else
44739 case "$host" in
44740 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
44741 yesyes)
44742 ans=yes
44745 ans=no
44747 esac
44749 esac
44750 ac_cv_make_ntptime=$ans
44752 echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
44753 echo "${ECHO_T}$ac_cv_make_ntptime" >&6
44754 case "$ac_cv_make_ntptime" in
44755 yes)
44756 MAKE_NTPTIME=ntptime
44758 esac
44761 case "$host" in
44762 mips-sni-sysv4*)
44763 # tickadj is pretty useless on newer versions of ReliantUNIX
44764 # Do not bother
44765 ac_cv_make_tickadj=no
44767 *-*-irix*)
44768 ac_cv_make_tickadj=no
44770 *-*-solaris2*)
44771 # DLM says tickadj is a no-no starting with solaris2.5
44772 case "$host" in
44773 *-*-solaris2.1[0-9]*)
44774 ac_cv_make_tickadj=no
44776 *-*-solaris2.[0-4]*) ;;
44777 *) ac_cv_make_tickadj=no ;;
44778 esac
44780 *-*-unicosmp*)
44781 ac_cv_make_tickadj=no
44783 esac
44786 # Despite all the above, we always make tickadj. Setting
44787 # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
44788 # report that the configuration variable was cached. It may
44789 # be better to simply remove the hunk above, I did not want
44790 # to remove it if there is hope it will be used again.
44792 unset ac_cv_make_tickadj
44794 echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
44795 echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
44796 if test "${ac_cv_make_tickadj+set}" = set; then
44797 echo $ECHO_N "(cached) $ECHO_C" >&6
44798 else
44799 ac_cv_make_tickadj=yes
44801 echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
44802 echo "${ECHO_T}$ac_cv_make_tickadj" >&6
44803 case "$ac_cv_make_tickadj" in
44804 yes)
44805 MAKE_TICKADJ=tickadj
44807 esac
44810 echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
44811 echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
44812 if test "${ac_cv_make_timetrim+set}" = set; then
44813 echo $ECHO_N "(cached) $ECHO_C" >&6
44814 else
44815 case "$host" in
44816 *-*-irix*)
44817 ac_cv_make_timetrim=yes
44819 *-*-unicosmp*)
44820 ac_cv_make_timetrim=yes
44823 ac_cv_make_timetrim=no
44825 esac
44827 echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
44828 echo "${ECHO_T}$ac_cv_make_timetrim" >&6
44829 case "$ac_cv_make_timetrim" in
44830 yes)
44831 MAKE_TIMETRIM=timetrim
44833 esac
44838 echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5
44839 echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6
44841 # Check whether --enable-simulator or --disable-simulator was given.
44842 if test "${enable_simulator+set}" = set; then
44843 enableval="$enable_simulator"
44844 ans=$enableval
44845 else
44846 ans=no
44850 echo "$as_me:$LINENO: result: $ans" >&5
44851 echo "${ECHO_T}$ans" >&6
44853 case "$ans" in
44854 yes)
44855 MAKE_NTPDSIM=ntpdsim
44856 MAKE_LIBNTPSIM=libntpsim.a
44858 esac
44860 case "$build" in
44861 $host)
44863 *) case "$host" in
44864 *-*-vxworks*)
44865 LDFLAGS="$LDFLAGS -r"
44867 esac
44869 esac
44872 echo "$as_me:$LINENO: checking if we should always slew the time" >&5
44873 echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
44875 # target-specific defaults
44877 case "$host" in
44878 *-apple-aux[23]*)
44879 ans=yes
44881 *-*-bsdi[012]*)
44882 ans=no
44884 *-*-bsdi*)
44885 ans=yes
44887 *-*-openvms*) # HMS: won't be found
44888 ans=yes
44890 *) ans=no
44892 esac
44894 # --enable-slew-always / --disable-slew-always overrides default
44896 # Check whether --enable-slew-always or --disable-slew-always was given.
44897 if test "${enable_slew_always+set}" = set; then
44898 enableval="$enable_slew_always"
44899 ans=$enableval
44903 echo "$as_me:$LINENO: result: $ans" >&5
44904 echo "${ECHO_T}$ans" >&6
44906 case "$ans" in
44907 yes)
44908 cat >>confdefs.h <<\_ACEOF
44909 #define SLEWALWAYS 1
44910 _ACEOF
44912 esac
44914 echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
44915 echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
44917 case "$host" in
44918 *-sni-sysv*)
44919 ans=yes
44921 *-univel-sysv*)
44922 ans=no
44924 *-*-ptx*)
44925 ans=yes
44927 *-*-solaris2.1[0-9]*)
44928 ans=no
44930 *-*-solaris2.[012]*)
44931 ans=yes
44933 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
44934 ans=yes
44936 *) ans=no
44938 esac
44941 # Check whether --enable-step-slew or --disable-step-slew was given.
44942 if test "${enable_step_slew+set}" = set; then
44943 enableval="$enable_step_slew"
44944 ans=$enableval
44948 echo "$as_me:$LINENO: result: $ans" >&5
44949 echo "${ECHO_T}$ans" >&6
44951 case "$ans" in
44952 yes)
44953 cat >>confdefs.h <<\_ACEOF
44954 #define STEP_SLEW 1
44955 _ACEOF
44957 esac
44959 echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
44960 echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
44962 case "$host" in
44963 *-apple-aux[23]*)
44964 ans=yes
44966 *) ans=no
44967 esac
44969 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
44970 if test "${enable_ntpdate_step+set}" = set; then
44971 enableval="$enable_ntpdate_step"
44972 ans=$enableval
44976 echo "$as_me:$LINENO: result: $ans" >&5
44977 echo "${ECHO_T}$ans" >&6
44979 case "$ans" in
44980 yes)
44981 cat >>confdefs.h <<\_ACEOF
44982 #define FORCE_NTPDATE_STEP 1
44983 _ACEOF
44985 esac
44988 echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
44989 echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
44991 case "$host" in
44992 *-*-nextstep*)
44993 ans=yes
44995 *-*-openvms*) # HMS: won't be found
44996 ans=yes
44999 ans=no
45000 esac
45002 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
45003 if test "${enable_hourly_todr_sync+set}" = set; then
45004 enableval="$enable_hourly_todr_sync"
45005 ans=$enableval
45009 echo "$as_me:$LINENO: result: $ans" >&5
45010 echo "${ECHO_T}$ans" >&6
45012 case "$ac_cv_var_sync_todr" in
45013 yes)
45014 cat >>confdefs.h <<\_ACEOF
45015 #define DOSYNCTODR 1
45016 _ACEOF
45018 esac
45021 echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
45022 echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
45024 case "$host" in
45025 *-*-solaris2.6)
45026 unamev=`uname -v`
45027 case "$unamev" in
45028 Generic_105181-*)
45029 old_IFS="$IFS"
45030 IFS="-"
45031 set $unamev
45032 IFS="$old_IFS"
45033 if test "$2" -ge 17
45034 then
45035 # Generic_105181-17 and higher
45036 ans=no
45037 else
45038 ans=yes
45042 ans=yes
45043 esac
45045 *-*-solaris2.7)
45046 unamev=`uname -v`
45047 case "$unamev" in
45048 Generic_106541-*)
45049 old_IFS="$IFS"
45050 IFS="-"
45051 set $unamev
45052 IFS="$old_IFS"
45053 if test "$2" -ge 07
45054 then
45055 # Generic_106541-07 and higher
45056 ans=no
45057 else
45058 ans=yes
45062 ans=yes
45063 esac
45066 ans=no
45067 esac
45069 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
45070 if test "${enable_kernel_fll_bug+set}" = set; then
45071 enableval="$enable_kernel_fll_bug"
45072 ans=$enableval
45076 echo "$as_me:$LINENO: result: $ans" >&5
45077 echo "${ECHO_T}$ans" >&6
45079 case "$ans" in
45080 yes)
45081 cat >>confdefs.h <<\_ACEOF
45082 #define KERNEL_FLL_BUG 1
45083 _ACEOF
45085 esac
45088 echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5
45089 echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6
45091 case "$host" in
45092 *-*-solaris2.[89])
45093 ans=yes
45095 *-*-solaris2.1[0-9]*)
45096 ans=yes
45098 *) ans=no
45099 esac
45101 # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given.
45102 if test "${enable_irig_sawtooth+set}" = set; then
45103 enableval="$enable_irig_sawtooth"
45104 ans=$enableval
45108 echo "$as_me:$LINENO: result: $ans" >&5
45109 echo "${ECHO_T}$ans" >&6
45111 case "$ans" in
45112 yes)
45113 cat >>confdefs.h <<\_ACEOF
45114 #define IRIG_SUCKS 1
45115 _ACEOF
45117 esac
45120 echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5
45121 echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6
45123 # Check whether --enable-nist or --disable-nist was given.
45124 if test "${enable_nist+set}" = set; then
45125 enableval="$enable_nist"
45126 ans=$enableval
45127 else
45128 ans=no
45132 echo "$as_me:$LINENO: result: $ans" >&5
45133 echo "${ECHO_T}$ans" >&6
45135 case "$ans" in
45136 yes)
45137 cat >>confdefs.h <<\_ACEOF
45138 #define LOCKCLOCK 1
45139 _ACEOF
45141 esac
45144 echo "$as_me:$LINENO: checking if we want support for Samba's signing daemon" >&5
45145 echo $ECHO_N "checking if we want support for Samba's signing daemon... $ECHO_C" >&6
45147 # Check whether --enable-ntp-signd or --disable-ntp-signd was given.
45148 if test "${enable_ntp_signd+set}" = set; then
45149 enableval="$enable_ntp_signd"
45150 ans=$enableval
45151 else
45152 ans=no
45156 echo "$as_me:$LINENO: result: $ans" >&5
45157 echo "${ECHO_T}$ans" >&6
45159 case "$ans" in
45161 ntp_signd_path=
45163 yes)
45164 ntp_signd_path=/var/run/ntp_signd
45167 ntp_signd_path="$ans"
45168 esac
45170 case "$ntp_signd_path" in
45172 wintime_default=no
45175 wintime_default=yes
45177 cat >>confdefs.h <<\_ACEOF
45178 #define HAVE_NTP_SIGND
45179 _ACEOF
45182 cat >>confdefs.h <<_ACEOF
45183 #define NTP_SIGND_PATH "$ntp_signd_path"
45184 _ACEOF
45186 esac
45189 echo "$as_me:$LINENO: checking if we want the windows symmetric client hack" >&5
45190 echo $ECHO_N "checking if we want the windows symmetric client hack... $ECHO_C" >&6
45192 # default is no, unless --enable-ntp-signd was given
45193 ans=$wintime_default
45194 unset wintime_default
45196 # Check whether --enable-wintime or --disable-wintime was given.
45197 if test "${enable_wintime+set}" = set; then
45198 enableval="$enable_wintime"
45199 ans=$enableval
45202 echo "$as_me:$LINENO: result: $ans" >&5
45203 echo "${ECHO_T}$ans" >&6
45205 case "$ans" in
45206 yes)
45208 cat >>confdefs.h <<\_ACEOF
45209 #define WINTIME
45210 _ACEOF
45212 esac
45216 for ac_header in sys/clockctl.h
45218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45220 echo "$as_me:$LINENO: checking for $ac_header" >&5
45221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45223 echo $ECHO_N "(cached) $ECHO_C" >&6
45225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45227 else
45228 # Is the header compilable?
45229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45231 cat >conftest.$ac_ext <<_ACEOF
45232 /* confdefs.h. */
45233 _ACEOF
45234 cat confdefs.h >>conftest.$ac_ext
45235 cat >>conftest.$ac_ext <<_ACEOF
45236 /* end confdefs.h. */
45237 $ac_includes_default
45238 #include <$ac_header>
45239 _ACEOF
45240 rm -f conftest.$ac_objext
45241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45242 (eval $ac_compile) 2>conftest.er1
45243 ac_status=$?
45244 grep -v '^ *+' conftest.er1 >conftest.err
45245 rm -f conftest.er1
45246 cat conftest.err >&5
45247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248 (exit $ac_status); } &&
45249 { ac_try='test -z "$ac_c_werror_flag"
45250 || test ! -s conftest.err'
45251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45252 (eval $ac_try) 2>&5
45253 ac_status=$?
45254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45255 (exit $ac_status); }; } &&
45256 { ac_try='test -s conftest.$ac_objext'
45257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45258 (eval $ac_try) 2>&5
45259 ac_status=$?
45260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261 (exit $ac_status); }; }; then
45262 ac_header_compiler=yes
45263 else
45264 echo "$as_me: failed program was:" >&5
45265 sed 's/^/| /' conftest.$ac_ext >&5
45267 ac_header_compiler=no
45269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45271 echo "${ECHO_T}$ac_header_compiler" >&6
45273 # Is the header present?
45274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45276 cat >conftest.$ac_ext <<_ACEOF
45277 /* confdefs.h. */
45278 _ACEOF
45279 cat confdefs.h >>conftest.$ac_ext
45280 cat >>conftest.$ac_ext <<_ACEOF
45281 /* end confdefs.h. */
45282 #include <$ac_header>
45283 _ACEOF
45284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45286 ac_status=$?
45287 grep -v '^ *+' conftest.er1 >conftest.err
45288 rm -f conftest.er1
45289 cat conftest.err >&5
45290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45291 (exit $ac_status); } >/dev/null; then
45292 if test -s conftest.err; then
45293 ac_cpp_err=$ac_c_preproc_warn_flag
45294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45295 else
45296 ac_cpp_err=
45298 else
45299 ac_cpp_err=yes
45301 if test -z "$ac_cpp_err"; then
45302 ac_header_preproc=yes
45303 else
45304 echo "$as_me: failed program was:" >&5
45305 sed 's/^/| /' conftest.$ac_ext >&5
45307 ac_header_preproc=no
45309 rm -f conftest.err conftest.$ac_ext
45310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45311 echo "${ECHO_T}$ac_header_preproc" >&6
45313 # So? What about this header?
45314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45315 yes:no: )
45316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45320 ac_header_preproc=yes
45322 no:yes:* )
45323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45336 cat <<\_ASBOX
45337 ## ------------------------------ ##
45338 ## Report this to the ntp lists. ##
45339 ## ------------------------------ ##
45340 _ASBOX
45342 sed "s/^/$as_me: WARNING: /" >&2
45344 esac
45345 echo "$as_me:$LINENO: checking for $ac_header" >&5
45346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45348 echo $ECHO_N "(cached) $ECHO_C" >&6
45349 else
45350 eval "$as_ac_Header=\$ac_header_preproc"
45352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45357 cat >>confdefs.h <<_ACEOF
45358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45359 _ACEOF
45363 done
45366 case "$host" in
45367 *-*-netbsd*)
45368 ans=yes
45370 *) ans=no
45372 esac
45374 # Check whether --enable-clockctl or --disable-clockctl was given.
45375 if test "${enable_clockctl+set}" = set; then
45376 enableval="$enable_clockctl"
45377 ntp_use_dev_clockctl=$enableval
45378 else
45379 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
45383 echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
45384 echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6
45385 echo "$as_me:$LINENO: result: $ntp_use_dev_clockctl" >&5
45386 echo "${ECHO_T}$ntp_use_dev_clockctl" >&6
45390 for ac_header in sys/capability.h
45392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45394 echo "$as_me:$LINENO: checking for $ac_header" >&5
45395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45397 echo $ECHO_N "(cached) $ECHO_C" >&6
45399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45401 else
45402 # Is the header compilable?
45403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45405 cat >conftest.$ac_ext <<_ACEOF
45406 /* confdefs.h. */
45407 _ACEOF
45408 cat confdefs.h >>conftest.$ac_ext
45409 cat >>conftest.$ac_ext <<_ACEOF
45410 /* end confdefs.h. */
45411 $ac_includes_default
45412 #include <$ac_header>
45413 _ACEOF
45414 rm -f conftest.$ac_objext
45415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45416 (eval $ac_compile) 2>conftest.er1
45417 ac_status=$?
45418 grep -v '^ *+' conftest.er1 >conftest.err
45419 rm -f conftest.er1
45420 cat conftest.err >&5
45421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45422 (exit $ac_status); } &&
45423 { ac_try='test -z "$ac_c_werror_flag"
45424 || test ! -s conftest.err'
45425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45426 (eval $ac_try) 2>&5
45427 ac_status=$?
45428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45429 (exit $ac_status); }; } &&
45430 { ac_try='test -s conftest.$ac_objext'
45431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45432 (eval $ac_try) 2>&5
45433 ac_status=$?
45434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45435 (exit $ac_status); }; }; then
45436 ac_header_compiler=yes
45437 else
45438 echo "$as_me: failed program was:" >&5
45439 sed 's/^/| /' conftest.$ac_ext >&5
45441 ac_header_compiler=no
45443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45445 echo "${ECHO_T}$ac_header_compiler" >&6
45447 # Is the header present?
45448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45450 cat >conftest.$ac_ext <<_ACEOF
45451 /* confdefs.h. */
45452 _ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h. */
45456 #include <$ac_header>
45457 _ACEOF
45458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45460 ac_status=$?
45461 grep -v '^ *+' conftest.er1 >conftest.err
45462 rm -f conftest.er1
45463 cat conftest.err >&5
45464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45465 (exit $ac_status); } >/dev/null; then
45466 if test -s conftest.err; then
45467 ac_cpp_err=$ac_c_preproc_warn_flag
45468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45469 else
45470 ac_cpp_err=
45472 else
45473 ac_cpp_err=yes
45475 if test -z "$ac_cpp_err"; then
45476 ac_header_preproc=yes
45477 else
45478 echo "$as_me: failed program was:" >&5
45479 sed 's/^/| /' conftest.$ac_ext >&5
45481 ac_header_preproc=no
45483 rm -f conftest.err conftest.$ac_ext
45484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45485 echo "${ECHO_T}$ac_header_preproc" >&6
45487 # So? What about this header?
45488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45489 yes:no: )
45490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45494 ac_header_preproc=yes
45496 no:yes:* )
45497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45510 cat <<\_ASBOX
45511 ## ------------------------------ ##
45512 ## Report this to the ntp lists. ##
45513 ## ------------------------------ ##
45514 _ASBOX
45516 sed "s/^/$as_me: WARNING: /" >&2
45518 esac
45519 echo "$as_me:$LINENO: checking for $ac_header" >&5
45520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45522 echo $ECHO_N "(cached) $ECHO_C" >&6
45523 else
45524 eval "$as_ac_Header=\$ac_header_preproc"
45526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45531 cat >>confdefs.h <<_ACEOF
45532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45533 _ACEOF
45537 done
45540 for ac_header in sys/prctl.h
45542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45544 echo "$as_me:$LINENO: checking for $ac_header" >&5
45545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45547 echo $ECHO_N "(cached) $ECHO_C" >&6
45549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45551 else
45552 # Is the header compilable?
45553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45555 cat >conftest.$ac_ext <<_ACEOF
45556 /* confdefs.h. */
45557 _ACEOF
45558 cat confdefs.h >>conftest.$ac_ext
45559 cat >>conftest.$ac_ext <<_ACEOF
45560 /* end confdefs.h. */
45561 $ac_includes_default
45562 #include <$ac_header>
45563 _ACEOF
45564 rm -f conftest.$ac_objext
45565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45566 (eval $ac_compile) 2>conftest.er1
45567 ac_status=$?
45568 grep -v '^ *+' conftest.er1 >conftest.err
45569 rm -f conftest.er1
45570 cat conftest.err >&5
45571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45572 (exit $ac_status); } &&
45573 { ac_try='test -z "$ac_c_werror_flag"
45574 || test ! -s conftest.err'
45575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45576 (eval $ac_try) 2>&5
45577 ac_status=$?
45578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45579 (exit $ac_status); }; } &&
45580 { ac_try='test -s conftest.$ac_objext'
45581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45582 (eval $ac_try) 2>&5
45583 ac_status=$?
45584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45585 (exit $ac_status); }; }; then
45586 ac_header_compiler=yes
45587 else
45588 echo "$as_me: failed program was:" >&5
45589 sed 's/^/| /' conftest.$ac_ext >&5
45591 ac_header_compiler=no
45593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45595 echo "${ECHO_T}$ac_header_compiler" >&6
45597 # Is the header present?
45598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45600 cat >conftest.$ac_ext <<_ACEOF
45601 /* confdefs.h. */
45602 _ACEOF
45603 cat confdefs.h >>conftest.$ac_ext
45604 cat >>conftest.$ac_ext <<_ACEOF
45605 /* end confdefs.h. */
45606 #include <$ac_header>
45607 _ACEOF
45608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45610 ac_status=$?
45611 grep -v '^ *+' conftest.er1 >conftest.err
45612 rm -f conftest.er1
45613 cat conftest.err >&5
45614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45615 (exit $ac_status); } >/dev/null; then
45616 if test -s conftest.err; then
45617 ac_cpp_err=$ac_c_preproc_warn_flag
45618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45619 else
45620 ac_cpp_err=
45622 else
45623 ac_cpp_err=yes
45625 if test -z "$ac_cpp_err"; then
45626 ac_header_preproc=yes
45627 else
45628 echo "$as_me: failed program was:" >&5
45629 sed 's/^/| /' conftest.$ac_ext >&5
45631 ac_header_preproc=no
45633 rm -f conftest.err conftest.$ac_ext
45634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45635 echo "${ECHO_T}$ac_header_preproc" >&6
45637 # So? What about this header?
45638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45639 yes:no: )
45640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45644 ac_header_preproc=yes
45646 no:yes:* )
45647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45660 cat <<\_ASBOX
45661 ## ------------------------------ ##
45662 ## Report this to the ntp lists. ##
45663 ## ------------------------------ ##
45664 _ASBOX
45666 sed "s/^/$as_me: WARNING: /" >&2
45668 esac
45669 echo "$as_me:$LINENO: checking for $ac_header" >&5
45670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45672 echo $ECHO_N "(cached) $ECHO_C" >&6
45673 else
45674 eval "$as_ac_Header=\$ac_header_preproc"
45676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45681 cat >>confdefs.h <<_ACEOF
45682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45683 _ACEOF
45687 done
45690 echo "$as_me:$LINENO: checking if we have linux capabilities (libcap)" >&5
45691 echo $ECHO_N "checking if we have linux capabilities (libcap)... $ECHO_C" >&6
45693 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
45694 yesyes)
45695 ntp_have_linuxcaps=yes
45698 ntp_have_linuxcaps=no
45699 esac
45701 echo "$as_me:$LINENO: result: $ntp_have_linuxcaps" >&5
45702 echo "${ECHO_T}$ntp_have_linuxcaps" >&6
45705 # Check whether --enable-linuxcaps or --disable-linuxcaps was given.
45706 if test "${enable_linuxcaps+set}" = set; then
45707 enableval="$enable_linuxcaps"
45708 ntp_have_linuxcaps=$enableval
45713 case "$ntp_have_linuxcaps" in
45714 yes)
45716 cat >>confdefs.h <<\_ACEOF
45717 #define HAVE_LINUX_CAPABILITIES
45718 _ACEOF
45720 LIBS="$LIBS -lcap"
45721 esac
45724 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
45725 *yes*)
45727 cat >>confdefs.h <<\_ACEOF
45728 #define HAVE_DROPROOT
45729 _ACEOF
45731 esac
45735 for ac_header in libscf.h
45737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45739 echo "$as_me:$LINENO: checking for $ac_header" >&5
45740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45742 echo $ECHO_N "(cached) $ECHO_C" >&6
45744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45746 else
45747 # Is the header compilable?
45748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45750 cat >conftest.$ac_ext <<_ACEOF
45751 /* confdefs.h. */
45752 _ACEOF
45753 cat confdefs.h >>conftest.$ac_ext
45754 cat >>conftest.$ac_ext <<_ACEOF
45755 /* end confdefs.h. */
45756 $ac_includes_default
45757 #include <$ac_header>
45758 _ACEOF
45759 rm -f conftest.$ac_objext
45760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45761 (eval $ac_compile) 2>conftest.er1
45762 ac_status=$?
45763 grep -v '^ *+' conftest.er1 >conftest.err
45764 rm -f conftest.er1
45765 cat conftest.err >&5
45766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45767 (exit $ac_status); } &&
45768 { ac_try='test -z "$ac_c_werror_flag"
45769 || test ! -s conftest.err'
45770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45771 (eval $ac_try) 2>&5
45772 ac_status=$?
45773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45774 (exit $ac_status); }; } &&
45775 { ac_try='test -s conftest.$ac_objext'
45776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45777 (eval $ac_try) 2>&5
45778 ac_status=$?
45779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780 (exit $ac_status); }; }; then
45781 ac_header_compiler=yes
45782 else
45783 echo "$as_me: failed program was:" >&5
45784 sed 's/^/| /' conftest.$ac_ext >&5
45786 ac_header_compiler=no
45788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45790 echo "${ECHO_T}$ac_header_compiler" >&6
45792 # Is the header present?
45793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45795 cat >conftest.$ac_ext <<_ACEOF
45796 /* confdefs.h. */
45797 _ACEOF
45798 cat confdefs.h >>conftest.$ac_ext
45799 cat >>conftest.$ac_ext <<_ACEOF
45800 /* end confdefs.h. */
45801 #include <$ac_header>
45802 _ACEOF
45803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45805 ac_status=$?
45806 grep -v '^ *+' conftest.er1 >conftest.err
45807 rm -f conftest.er1
45808 cat conftest.err >&5
45809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45810 (exit $ac_status); } >/dev/null; then
45811 if test -s conftest.err; then
45812 ac_cpp_err=$ac_c_preproc_warn_flag
45813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45814 else
45815 ac_cpp_err=
45817 else
45818 ac_cpp_err=yes
45820 if test -z "$ac_cpp_err"; then
45821 ac_header_preproc=yes
45822 else
45823 echo "$as_me: failed program was:" >&5
45824 sed 's/^/| /' conftest.$ac_ext >&5
45826 ac_header_preproc=no
45828 rm -f conftest.err conftest.$ac_ext
45829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45830 echo "${ECHO_T}$ac_header_preproc" >&6
45832 # So? What about this header?
45833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45834 yes:no: )
45835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45839 ac_header_preproc=yes
45841 no:yes:* )
45842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45855 cat <<\_ASBOX
45856 ## ------------------------------ ##
45857 ## Report this to the ntp lists. ##
45858 ## ------------------------------ ##
45859 _ASBOX
45861 sed "s/^/$as_me: WARNING: /" >&2
45863 esac
45864 echo "$as_me:$LINENO: checking for $ac_header" >&5
45865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45867 echo $ECHO_N "(cached) $ECHO_C" >&6
45868 else
45869 eval "$as_ac_Header=\$ac_header_preproc"
45871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45876 cat >>confdefs.h <<_ACEOF
45877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45878 _ACEOF
45882 done
45885 case "$ac_cv_header_libscf_h" in
45886 yes)
45887 LSCF=-lscf
45889 esac
45891 echo "$as_me:$LINENO: checking for setppriv" >&5
45892 echo $ECHO_N "checking for setppriv... $ECHO_C" >&6
45893 if test "${ac_cv_func_setppriv+set}" = set; then
45894 echo $ECHO_N "(cached) $ECHO_C" >&6
45895 else
45896 cat >conftest.$ac_ext <<_ACEOF
45897 /* confdefs.h. */
45898 _ACEOF
45899 cat confdefs.h >>conftest.$ac_ext
45900 cat >>conftest.$ac_ext <<_ACEOF
45901 /* end confdefs.h. */
45902 /* Define setppriv to an innocuous variant, in case <limits.h> declares setppriv.
45903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45904 #define setppriv innocuous_setppriv
45906 /* System header to define __stub macros and hopefully few prototypes,
45907 which can conflict with char setppriv (); below.
45908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45909 <limits.h> exists even on freestanding compilers. */
45911 #ifdef __STDC__
45912 # include <limits.h>
45913 #else
45914 # include <assert.h>
45915 #endif
45917 #undef setppriv
45919 /* Override any gcc2 internal prototype to avoid an error. */
45920 #ifdef __cplusplus
45921 extern "C"
45923 #endif
45924 /* We use char because int might match the return type of a gcc2
45925 builtin and then its argument prototype would still apply. */
45926 char setppriv ();
45927 /* The GNU C library defines this for functions which it implements
45928 to always fail with ENOSYS. Some functions are actually named
45929 something starting with __ and the normal name is an alias. */
45930 #if defined (__stub_setppriv) || defined (__stub___setppriv)
45931 choke me
45932 #else
45933 char (*f) () = setppriv;
45934 #endif
45935 #ifdef __cplusplus
45937 #endif
45940 main ()
45942 return f != setppriv;
45944 return 0;
45946 _ACEOF
45947 rm -f conftest.$ac_objext conftest$ac_exeext
45948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45949 (eval $ac_link) 2>conftest.er1
45950 ac_status=$?
45951 grep -v '^ *+' conftest.er1 >conftest.err
45952 rm -f conftest.er1
45953 cat conftest.err >&5
45954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45955 (exit $ac_status); } &&
45956 { ac_try='test -z "$ac_c_werror_flag"
45957 || test ! -s conftest.err'
45958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45959 (eval $ac_try) 2>&5
45960 ac_status=$?
45961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45962 (exit $ac_status); }; } &&
45963 { ac_try='test -s conftest$ac_exeext'
45964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45965 (eval $ac_try) 2>&5
45966 ac_status=$?
45967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45968 (exit $ac_status); }; }; then
45969 ac_cv_func_setppriv=yes
45970 else
45971 echo "$as_me: failed program was:" >&5
45972 sed 's/^/| /' conftest.$ac_ext >&5
45974 ac_cv_func_setppriv=no
45976 rm -f conftest.err conftest.$ac_objext \
45977 conftest$ac_exeext conftest.$ac_ext
45979 echo "$as_me:$LINENO: result: $ac_cv_func_setppriv" >&5
45980 echo "${ECHO_T}$ac_cv_func_setppriv" >&6
45981 if test $ac_cv_func_setppriv = yes; then
45983 cat >>confdefs.h <<\_ACEOF
45984 #define HAVE_SOLARIS_PRIVS
45985 _ACEOF
45993 # ISC stuff
45996 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
45998 cat >>confdefs.h <<\_ACEOF
45999 #define ISC_PLATFORM_HAVESALEN
46000 _ACEOF
46004 # Check whether --enable-ipv6 or --disable-ipv6 was given.
46005 if test "${enable_ipv6+set}" = set; then
46006 enableval="$enable_ipv6"
46010 case "$enable_ipv6" in
46011 yes|''|autodetect)
46012 case "$host" in
46013 powerpc-ibm-aix4*) ;;
46016 cat >>confdefs.h <<\_ACEOF
46017 #define WANT_IPV6
46018 _ACEOF
46021 esac
46025 esac
46028 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
46029 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
46030 if test "${ac_cv_isc_found_ipv6+set}" = set; then
46031 echo $ECHO_N "(cached) $ECHO_C" >&6
46032 else
46034 cat >conftest.$ac_ext <<_ACEOF
46036 /* confdefs.h. */
46037 _ACEOF
46038 cat confdefs.h >>conftest.$ac_ext
46039 cat >>conftest.$ac_ext <<_ACEOF
46040 /* end confdefs.h. */
46042 #include <sys/types.h>
46043 #include <sys/socket.h>
46044 #include <netinet/in.h>
46047 main ()
46050 struct sockaddr_in6 sin6;
46054 return 0;
46057 _ACEOF
46058 rm -f conftest.$ac_objext
46059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46060 (eval $ac_compile) 2>conftest.er1
46061 ac_status=$?
46062 grep -v '^ *+' conftest.er1 >conftest.err
46063 rm -f conftest.er1
46064 cat conftest.err >&5
46065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46066 (exit $ac_status); } &&
46067 { ac_try='test -z "$ac_c_werror_flag"
46068 || test ! -s conftest.err'
46069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46070 (eval $ac_try) 2>&5
46071 ac_status=$?
46072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46073 (exit $ac_status); }; } &&
46074 { ac_try='test -s conftest.$ac_objext'
46075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46076 (eval $ac_try) 2>&5
46077 ac_status=$?
46078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46079 (exit $ac_status); }; }; then
46080 ac_cv_isc_found_ipv6=yes
46081 else
46082 echo "$as_me: failed program was:" >&5
46083 sed 's/^/| /' conftest.$ac_ext >&5
46085 ac_cv_isc_found_ipv6=no
46088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46092 echo "$as_me:$LINENO: result: $ac_cv_isc_found_ipv6" >&5
46093 echo "${ECHO_T}$ac_cv_isc_found_ipv6" >&6
46096 # See whether IPv6 support is provided via a Kame add-on.
46097 # This is done before other IPv6 linking tests so LIBS is properly set.
46099 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
46100 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
46102 # Check whether --with-kame or --without-kame was given.
46103 if test "${with_kame+set}" = set; then
46104 withval="$with_kame"
46105 use_kame="$withval"
46106 else
46107 use_kame="no"
46110 case "$use_kame" in
46113 yes)
46114 kame_path=/usr/local/v6
46117 kame_path="$use_kame"
46119 esac
46121 case "$use_kame" in
46123 echo "$as_me:$LINENO: result: no" >&5
46124 echo "${ECHO_T}no" >&6
46127 if test -f $kame_path/lib/libinet6.a; then
46128 echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
46129 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
46130 LIBS="-L$kame_path/lib -linet6 $LIBS"
46131 else
46132 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
46134 Please choose the proper path with the following command:
46136 configure --with-kame=PATH
46137 " >&5
46138 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
46140 Please choose the proper path with the following command:
46142 configure --with-kame=PATH
46143 " >&2;}
46144 { (exit 1); exit 1; }; }
46147 esac
46150 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
46151 # Including it on Kame-using platforms is very bad, though, because
46152 # Kame uses #error against direct inclusion. So include it on only
46153 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
46154 # This is done before the in6_pktinfo check because that's what
46155 # netinet6/in6.h is needed for.
46157 case "$host" in
46158 *-bsdi4.[01]*)
46160 cat >>confdefs.h <<\_ACEOF
46161 #define ISC_PLATFORM_NEEDNETINET6IN6H 1
46162 _ACEOF
46164 isc_netinet6in6_hack="#include <netinet6/in6.h>"
46167 isc_netinet6in6_hack=""
46168 esac
46171 # This is similar to the netinet6/in6.h issue.
46173 case "$host" in
46174 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
46176 cat >>confdefs.h <<\_ACEOF
46177 #define ISC_PLATFORM_FIXIN6ISADDR 1
46178 _ACEOF
46180 isc_netinetin6_hack="#include <netinet/in6.h>"
46183 isc_netinetin6_hack=""
46184 esac
46187 case "$ac_cv_isc_found_ipv6" in
46188 yes)
46190 cat >>confdefs.h <<\_ACEOF
46191 #define ISC_PLATFORM_HAVEIPV6
46192 _ACEOF
46195 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
46196 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
46197 if test "${ac_cv_have_in6_pktinfo+set}" = set; then
46198 echo $ECHO_N "(cached) $ECHO_C" >&6
46199 else
46201 cat >conftest.$ac_ext <<_ACEOF
46203 /* confdefs.h. */
46204 _ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h. */
46209 #include <sys/types.h>
46210 #include <sys/socket.h>
46211 #include <netinet/in.h>
46212 $isc_netinetin6_hack
46213 $isc_netinet6in6_hack
46216 main ()
46219 struct in6_pktinfo xyzzy;
46223 return 0;
46226 _ACEOF
46227 rm -f conftest.$ac_objext
46228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46229 (eval $ac_compile) 2>conftest.er1
46230 ac_status=$?
46231 grep -v '^ *+' conftest.er1 >conftest.err
46232 rm -f conftest.er1
46233 cat conftest.err >&5
46234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46235 (exit $ac_status); } &&
46236 { ac_try='test -z "$ac_c_werror_flag"
46237 || test ! -s conftest.err'
46238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46239 (eval $ac_try) 2>&5
46240 ac_status=$?
46241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46242 (exit $ac_status); }; } &&
46243 { ac_try='test -s conftest.$ac_objext'
46244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46245 (eval $ac_try) 2>&5
46246 ac_status=$?
46247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46248 (exit $ac_status); }; }; then
46249 ac_cv_have_in6_pktinfo=yes
46250 else
46251 echo "$as_me: failed program was:" >&5
46252 sed 's/^/| /' conftest.$ac_ext >&5
46254 ac_cv_have_in6_pktinfo=no
46257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46261 echo "$as_me:$LINENO: result: $ac_cv_have_in6_pktinfo" >&5
46262 echo "${ECHO_T}$ac_cv_have_in6_pktinfo" >&6
46264 case "$ac_cv_have_in6_pktinfo" in
46265 yes)
46267 cat >>confdefs.h <<\_ACEOF
46268 #define ISC_PLATFORM_HAVEIN6PKTINFO
46269 _ACEOF
46271 esac
46274 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
46275 echo "$as_me:$LINENO: checking for sockaddr_in6.sin6_scope_id" >&5
46276 echo $ECHO_N "checking for sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
46277 if test "${ac_cv_have_sin6_scope_id+set}" = set; then
46278 echo $ECHO_N "(cached) $ECHO_C" >&6
46279 else
46281 cat >conftest.$ac_ext <<_ACEOF
46283 /* confdefs.h. */
46284 _ACEOF
46285 cat confdefs.h >>conftest.$ac_ext
46286 cat >>conftest.$ac_ext <<_ACEOF
46287 /* end confdefs.h. */
46289 #include <sys/types.h>
46290 #include <sys/socket.h>
46291 #include <netinet/in.h>
46292 $isc_netinetin6_hack
46293 $isc_netinet6in6_hack
46296 main ()
46299 struct sockaddr_in6 xyzzy;
46300 xyzzy.sin6_scope_id = 0;
46304 return 0;
46307 _ACEOF
46308 rm -f conftest.$ac_objext
46309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46310 (eval $ac_compile) 2>conftest.er1
46311 ac_status=$?
46312 grep -v '^ *+' conftest.er1 >conftest.err
46313 rm -f conftest.er1
46314 cat conftest.err >&5
46315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46316 (exit $ac_status); } &&
46317 { ac_try='test -z "$ac_c_werror_flag"
46318 || test ! -s conftest.err'
46319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46320 (eval $ac_try) 2>&5
46321 ac_status=$?
46322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46323 (exit $ac_status); }; } &&
46324 { ac_try='test -s conftest.$ac_objext'
46325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46326 (eval $ac_try) 2>&5
46327 ac_status=$?
46328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46329 (exit $ac_status); }; }; then
46330 ac_cv_have_sin6_scope_id=yes
46331 else
46332 echo "$as_me: failed program was:" >&5
46333 sed 's/^/| /' conftest.$ac_ext >&5
46335 ac_cv_have_sin6_scope_id=no
46338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46342 echo "$as_me:$LINENO: result: $ac_cv_have_sin6_scope_id" >&5
46343 echo "${ECHO_T}$ac_cv_have_sin6_scope_id" >&6
46345 case "$ac_cv_have_sin6_scope_id" in
46346 yes)
46348 cat >>confdefs.h <<\_ACEOF
46349 #define ISC_PLATFORM_HAVESCOPEID
46350 _ACEOF
46352 esac
46353 esac
46356 # We need this check run even without ac_cv_isc_found_ipv6=yes
46358 echo "$as_me:$LINENO: checking for in6addr_any" >&5
46359 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
46360 if test "${ac_cv_have_in6addr_any+set}" = set; then
46361 echo $ECHO_N "(cached) $ECHO_C" >&6
46362 else
46364 cat >conftest.$ac_ext <<_ACEOF
46366 /* confdefs.h. */
46367 _ACEOF
46368 cat confdefs.h >>conftest.$ac_ext
46369 cat >>conftest.$ac_ext <<_ACEOF
46370 /* end confdefs.h. */
46372 #include <sys/types.h>
46373 #include <sys/socket.h>
46374 #include <netinet/in.h>
46375 $isc_netinetin6_hack
46376 $isc_netinet6in6_hack
46379 main ()
46382 struct in6_addr in6;
46383 in6 = in6addr_any;
46387 return 0;
46390 _ACEOF
46391 rm -f conftest.$ac_objext
46392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46393 (eval $ac_compile) 2>conftest.er1
46394 ac_status=$?
46395 grep -v '^ *+' conftest.er1 >conftest.err
46396 rm -f conftest.er1
46397 cat conftest.err >&5
46398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399 (exit $ac_status); } &&
46400 { ac_try='test -z "$ac_c_werror_flag"
46401 || test ! -s conftest.err'
46402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46403 (eval $ac_try) 2>&5
46404 ac_status=$?
46405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46406 (exit $ac_status); }; } &&
46407 { ac_try='test -s conftest.$ac_objext'
46408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46409 (eval $ac_try) 2>&5
46410 ac_status=$?
46411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46412 (exit $ac_status); }; }; then
46413 ac_cv_have_in6addr_any=yes
46414 else
46415 echo "$as_me: failed program was:" >&5
46416 sed 's/^/| /' conftest.$ac_ext >&5
46418 ac_cv_have_in6addr_any=no
46421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46425 echo "$as_me:$LINENO: result: $ac_cv_have_in6addr_any" >&5
46426 echo "${ECHO_T}$ac_cv_have_in6addr_any" >&6
46428 case "$ac_cv_have_in6addr_any" in
46431 cat >>confdefs.h <<\_ACEOF
46432 #define ISC_PLATFORM_NEEDIN6ADDRANY
46433 _ACEOF
46435 esac
46438 echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
46439 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
46440 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then
46441 echo $ECHO_N "(cached) $ECHO_C" >&6
46442 else
46444 cat >conftest.$ac_ext <<_ACEOF
46446 /* confdefs.h. */
46447 _ACEOF
46448 cat confdefs.h >>conftest.$ac_ext
46449 cat >>conftest.$ac_ext <<_ACEOF
46450 /* end confdefs.h. */
46452 #include <sys/types.h>
46453 #include <net/if6.h>
46456 main ()
46459 struct if_laddrconf a;
46463 return 0;
46466 _ACEOF
46467 rm -f conftest.$ac_objext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46469 (eval $ac_compile) 2>conftest.er1
46470 ac_status=$?
46471 grep -v '^ *+' conftest.er1 >conftest.err
46472 rm -f conftest.er1
46473 cat conftest.err >&5
46474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475 (exit $ac_status); } &&
46476 { ac_try='test -z "$ac_c_werror_flag"
46477 || test ! -s conftest.err'
46478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46479 (eval $ac_try) 2>&5
46480 ac_status=$?
46481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482 (exit $ac_status); }; } &&
46483 { ac_try='test -s conftest.$ac_objext'
46484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485 (eval $ac_try) 2>&5
46486 ac_status=$?
46487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488 (exit $ac_status); }; }; then
46489 ac_cv_isc_struct_if_laddrconf=yes
46490 else
46491 echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46494 ac_cv_isc_struct_if_laddrconf=no
46497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46501 echo "$as_me:$LINENO: result: $ac_cv_isc_struct_if_laddrconf" >&5
46502 echo "${ECHO_T}$ac_cv_isc_struct_if_laddrconf" >&6
46504 case "$ac_cv_isc_struct_if_laddrconf" in
46505 yes)
46507 cat >>confdefs.h <<\_ACEOF
46508 #define ISC_PLATFORM_HAVEIF_LADDRCONF
46509 _ACEOF
46511 esac
46513 echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
46514 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6
46515 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then
46516 echo $ECHO_N "(cached) $ECHO_C" >&6
46517 else
46519 cat >conftest.$ac_ext <<_ACEOF
46521 /* confdefs.h. */
46522 _ACEOF
46523 cat confdefs.h >>conftest.$ac_ext
46524 cat >>conftest.$ac_ext <<_ACEOF
46525 /* end confdefs.h. */
46527 #include <sys/types.h>
46528 #include <net/if6.h>
46531 main ()
46534 struct if_laddrreq a;
46538 return 0;
46541 _ACEOF
46542 rm -f conftest.$ac_objext
46543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46544 (eval $ac_compile) 2>conftest.er1
46545 ac_status=$?
46546 grep -v '^ *+' conftest.er1 >conftest.err
46547 rm -f conftest.er1
46548 cat conftest.err >&5
46549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46550 (exit $ac_status); } &&
46551 { ac_try='test -z "$ac_c_werror_flag"
46552 || test ! -s conftest.err'
46553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46554 (eval $ac_try) 2>&5
46555 ac_status=$?
46556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46557 (exit $ac_status); }; } &&
46558 { ac_try='test -s conftest.$ac_objext'
46559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46560 (eval $ac_try) 2>&5
46561 ac_status=$?
46562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46563 (exit $ac_status); }; }; then
46564 ac_cv_isc_struct_if_laddrreq=yes
46565 else
46566 echo "$as_me: failed program was:" >&5
46567 sed 's/^/| /' conftest.$ac_ext >&5
46569 ac_cv_isc_struct_if_laddrreq=no
46572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46576 echo "$as_me:$LINENO: result: $ac_cv_isc_struct_if_laddrreq" >&5
46577 echo "${ECHO_T}$ac_cv_isc_struct_if_laddrreq" >&6
46579 case "$ac_cv_isc_struct_if_laddrreq" in
46580 yes)
46582 cat >>confdefs.h <<\_ACEOF
46583 #define ISC_PLATFORM_HAVEIF_LADDRREQ
46584 _ACEOF
46586 esac
46589 # Look for a sysctl call to get the list of network interfaces.
46591 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
46592 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
46593 if test "${ac_cv_iflist_sysctl+set}" = set; then
46594 echo $ECHO_N "(cached) $ECHO_C" >&6
46595 else
46596 cat >conftest.$ac_ext <<_ACEOF
46597 /* confdefs.h. */
46598 _ACEOF
46599 cat confdefs.h >>conftest.$ac_ext
46600 cat >>conftest.$ac_ext <<_ACEOF
46601 /* end confdefs.h. */
46603 #include <sys/param.h>
46604 #include <sys/sysctl.h>
46605 #include <sys/socket.h>
46606 #ifdef NET_RT_IFLIST
46607 found_rt_iflist
46608 #endif
46610 _ACEOF
46611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46612 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
46613 ac_cv_iflist_sysctl=yes
46614 else
46615 ac_cv_iflist_sysctl=no
46618 rm -f conftest*
46622 echo "$as_me:$LINENO: result: $ac_cv_iflist_sysctl" >&5
46623 echo "${ECHO_T}$ac_cv_iflist_sysctl" >&6
46625 case "$ac_cv_iflist_sysctl" in
46626 yes)
46628 cat >>confdefs.h <<\_ACEOF
46629 #define HAVE_IFLIST_SYSCTL 1
46630 _ACEOF
46632 esac
46638 ac_expanded=`(
46639 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
46640 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
46641 eval echo \""$sysconfdir"\"
46644 cat >>confdefs.h <<_ACEOF
46645 #define NTP_KEYSDIR "$ac_expanded"
46646 _ACEOF
46650 ac_config_files="$ac_config_files Makefile"
46652 ac_config_files="$ac_config_files ElectricFence/Makefile"
46654 ac_config_files="$ac_config_files adjtimed/Makefile"
46656 ac_config_files="$ac_config_files clockstuff/Makefile"
46658 ac_config_files="$ac_config_files include/Makefile"
46660 ac_config_files="$ac_config_files include/isc/Makefile"
46662 ac_config_files="$ac_config_files kernel/Makefile"
46664 ac_config_files="$ac_config_files kernel/sys/Makefile"
46666 ac_config_files="$ac_config_files libntp/Makefile"
46668 ac_config_files="$ac_config_files libparse/Makefile"
46670 ac_config_files="$ac_config_files ntpd/Makefile"
46672 ac_config_files="$ac_config_files ntpdate/Makefile"
46674 ac_config_files="$ac_config_files ntpdc/Makefile"
46676 ac_config_files="$ac_config_files ntpdc/nl.pl"
46678 ac_config_files="$ac_config_files ntpq/Makefile"
46680 ac_config_files="$ac_config_files parseutil/Makefile"
46682 ac_config_files="$ac_config_files scripts/Makefile"
46684 ac_config_files="$ac_config_files scripts/calc_tickadj"
46686 ac_config_files="$ac_config_files scripts/checktime"
46688 ac_config_files="$ac_config_files scripts/freq_adj"
46690 ac_config_files="$ac_config_files scripts/html2man"
46692 ac_config_files="$ac_config_files scripts/mkver"
46694 ac_config_files="$ac_config_files scripts/ntp-wait"
46696 ac_config_files="$ac_config_files scripts/ntpsweep"
46698 ac_config_files="$ac_config_files scripts/ntptrace"
46700 ac_config_files="$ac_config_files scripts/ntpver"
46702 ac_config_files="$ac_config_files scripts/plot_summary"
46704 ac_config_files="$ac_config_files scripts/summary"
46706 ac_config_files="$ac_config_files util/Makefile"
46711 subdirs="$subdirs sntp"
46714 cat >confcache <<\_ACEOF
46715 # This file is a shell script that caches the results of configure
46716 # tests run on this system so they can be shared between configure
46717 # scripts and configure runs, see configure's option --config-cache.
46718 # It is not useful on other systems. If it contains results you don't
46719 # want to keep, you may remove or edit it.
46721 # config.status only pays attention to the cache file if you give it
46722 # the --recheck option to rerun configure.
46724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46726 # following values.
46728 _ACEOF
46730 # The following way of writing the cache mishandles newlines in values,
46731 # but we know of no workaround that is simple, portable, and efficient.
46732 # So, don't put newlines in cache variables' values.
46733 # Ultrix sh set writes to stderr and can't be redirected directly,
46734 # and sets the high bit in the cache file unless we assign to the vars.
46736 (set) 2>&1 |
46737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46738 *ac_space=\ *)
46739 # `set' does not quote correctly, so add quotes (double-quote
46740 # substitution turns \\\\ into \\, and sed turns \\ into \).
46741 sed -n \
46742 "s/'/'\\\\''/g;
46743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46746 # `set' quotes correctly as required by POSIX, so do not add quotes.
46747 sed -n \
46748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
46750 esac;
46752 sed '
46753 t clear
46754 : clear
46755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46756 t end
46757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46758 : end' >>confcache
46759 if diff $cache_file confcache >/dev/null 2>&1; then :; else
46760 if test -w $cache_file; then
46761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46762 cat confcache >$cache_file
46763 else
46764 echo "not updating unwritable cache $cache_file"
46767 rm -f confcache
46769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46770 # Let make expand exec_prefix.
46771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46775 # trailing colons and then remove the whole line if VPATH becomes empty
46776 # (actually we leave an empty line to preserve line numbers).
46777 if test "x$srcdir" = x.; then
46778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46779 s/:*\$(srcdir):*/:/;
46780 s/:*\${srcdir}:*/:/;
46781 s/:*@srcdir@:*/:/;
46782 s/^\([^=]*=[ ]*\):*/\1/;
46783 s/:*$//;
46784 s/^[^=]*=[ ]*$//;
46788 DEFS=-DHAVE_CONFIG_H
46790 ac_libobjs=
46791 ac_ltlibobjs=
46792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46793 # 1. Remove the extension, and $U if already installed.
46794 ac_i=`echo "$ac_i" |
46795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
46796 # 2. Add them.
46797 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46798 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46799 done
46800 LIBOBJS=$ac_libobjs
46802 LTLIBOBJS=$ac_ltlibobjs
46805 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46806 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46807 Usually this means the macro was only invoked conditionally." >&5
46808 echo "$as_me: error: conditional \"AMDEP\" was never defined.
46809 Usually this means the macro was only invoked conditionally." >&2;}
46810 { (exit 1); exit 1; }; }
46812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46813 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46814 Usually this means the macro was only invoked conditionally." >&5
46815 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46816 Usually this means the macro was only invoked conditionally." >&2;}
46817 { (exit 1); exit 1; }; }
46819 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46820 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46821 Usually this means the macro was only invoked conditionally." >&5
46822 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46823 Usually this means the macro was only invoked conditionally." >&2;}
46824 { (exit 1); exit 1; }; }
46826 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
46827 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
46828 Usually this means the macro was only invoked conditionally." >&5
46829 echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
46830 Usually this means the macro was only invoked conditionally." >&2;}
46831 { (exit 1); exit 1; }; }
46833 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
46834 { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
46835 Usually this means the macro was only invoked conditionally." >&5
46836 echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
46837 Usually this means the macro was only invoked conditionally." >&2;}
46838 { (exit 1); exit 1; }; }
46841 : ${CONFIG_STATUS=./config.status}
46842 ac_clean_files_save=$ac_clean_files
46843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46844 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46845 echo "$as_me: creating $CONFIG_STATUS" >&6;}
46846 cat >$CONFIG_STATUS <<_ACEOF
46847 #! $SHELL
46848 # Generated by $as_me.
46849 # Run this file to recreate the current configuration.
46850 # Compiler output produced by configure, useful for debugging
46851 # configure, is in config.log if it exists.
46853 debug=false
46854 ac_cs_recheck=false
46855 ac_cs_silent=false
46856 SHELL=\${CONFIG_SHELL-$SHELL}
46857 _ACEOF
46859 cat >>$CONFIG_STATUS <<\_ACEOF
46860 ## --------------------- ##
46861 ## M4sh Initialization. ##
46862 ## --------------------- ##
46864 # Be Bourne compatible
46865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46866 emulate sh
46867 NULLCMD=:
46868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46869 # is contrary to our usage. Disable this feature.
46870 alias -g '${1+"$@"}'='"$@"'
46871 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46872 set -o posix
46874 DUALCASE=1; export DUALCASE # for MKS sh
46876 # Support unset when possible.
46877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46878 as_unset=unset
46879 else
46880 as_unset=false
46884 # Work around bugs in pre-3.0 UWIN ksh.
46885 $as_unset ENV MAIL MAILPATH
46886 PS1='$ '
46887 PS2='> '
46888 PS4='+ '
46890 # NLS nuisances.
46891 for as_var in \
46892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46894 LC_TELEPHONE LC_TIME
46896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46897 eval $as_var=C; export $as_var
46898 else
46899 $as_unset $as_var
46901 done
46903 # Required to use basename.
46904 if expr a : '\(a\)' >/dev/null 2>&1; then
46905 as_expr=expr
46906 else
46907 as_expr=false
46910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46911 as_basename=basename
46912 else
46913 as_basename=false
46917 # Name of the executable.
46918 as_me=`$as_basename "$0" ||
46919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46920 X"$0" : 'X\(//\)$' \| \
46921 X"$0" : 'X\(/\)$' \| \
46922 . : '\(.\)' 2>/dev/null ||
46923 echo X/"$0" |
46924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46925 /^X\/\(\/\/\)$/{ s//\1/; q; }
46926 /^X\/\(\/\).*/{ s//\1/; q; }
46927 s/.*/./; q'`
46930 # PATH needs CR, and LINENO needs CR and PATH.
46931 # Avoid depending upon Character Ranges.
46932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46935 as_cr_digits='0123456789'
46936 as_cr_alnum=$as_cr_Letters$as_cr_digits
46938 # The user is always right.
46939 if test "${PATH_SEPARATOR+set}" != set; then
46940 echo "#! /bin/sh" >conf$$.sh
46941 echo "exit 0" >>conf$$.sh
46942 chmod +x conf$$.sh
46943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46944 PATH_SEPARATOR=';'
46945 else
46946 PATH_SEPARATOR=:
46948 rm -f conf$$.sh
46952 as_lineno_1=$LINENO
46953 as_lineno_2=$LINENO
46954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46955 test "x$as_lineno_1" != "x$as_lineno_2" &&
46956 test "x$as_lineno_3" = "x$as_lineno_2" || {
46957 # Find who we are. Look in the path if we contain no path at all
46958 # relative or not.
46959 case $0 in
46960 *[\\/]* ) as_myself=$0 ;;
46961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46962 for as_dir in $PATH
46964 IFS=$as_save_IFS
46965 test -z "$as_dir" && as_dir=.
46966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46967 done
46970 esac
46971 # We did not find ourselves, most probably we were run as `sh COMMAND'
46972 # in which case we are not to be found in the path.
46973 if test "x$as_myself" = x; then
46974 as_myself=$0
46976 if test ! -f "$as_myself"; then
46977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46979 { (exit 1); exit 1; }; }
46981 case $CONFIG_SHELL in
46983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46986 IFS=$as_save_IFS
46987 test -z "$as_dir" && as_dir=.
46988 for as_base in sh bash ksh sh5; do
46989 case $as_dir in
46991 if ("$as_dir/$as_base" -c '
46992 as_lineno_1=$LINENO
46993 as_lineno_2=$LINENO
46994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46995 test "x$as_lineno_1" != "x$as_lineno_2" &&
46996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46999 CONFIG_SHELL=$as_dir/$as_base
47000 export CONFIG_SHELL
47001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
47002 fi;;
47003 esac
47004 done
47005 done
47007 esac
47009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47010 # uniformly replaced by the line number. The first 'sed' inserts a
47011 # line-number line before each line; the second 'sed' does the real
47012 # work. The second script uses 'N' to pair each line-number line
47013 # with the numbered line, and appends trailing '-' during
47014 # substitution so that $LINENO is not a special case at line end.
47015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
47017 sed '=' <$as_myself |
47018 sed '
47020 s,$,-,
47021 : loop
47022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
47023 t loop
47024 s,-$,,
47025 s,^['$as_cr_digits']*\n,,
47026 ' >$as_me.lineno &&
47027 chmod +x $as_me.lineno ||
47028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
47029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
47030 { (exit 1); exit 1; }; }
47032 # Don't try to exec as it changes $[0], causing all sort of problems
47033 # (the dirname of $[0] is not the place where we might find the
47034 # original and so on. Autoconf is especially sensible to this).
47035 . ./$as_me.lineno
47036 # Exit status is that of the last command.
47037 exit
47041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
47042 *c*,-n*) ECHO_N= ECHO_C='
47043 ' ECHO_T=' ' ;;
47044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
47045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
47046 esac
47048 if expr a : '\(a\)' >/dev/null 2>&1; then
47049 as_expr=expr
47050 else
47051 as_expr=false
47054 rm -f conf$$ conf$$.exe conf$$.file
47055 echo >conf$$.file
47056 if ln -s conf$$.file conf$$ 2>/dev/null; then
47057 # We could just check for DJGPP; but this test a) works b) is more generic
47058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47059 if test -f conf$$.exe; then
47060 # Don't use ln at all; we don't have any links
47061 as_ln_s='cp -p'
47062 else
47063 as_ln_s='ln -s'
47065 elif ln conf$$.file conf$$ 2>/dev/null; then
47066 as_ln_s=ln
47067 else
47068 as_ln_s='cp -p'
47070 rm -f conf$$ conf$$.exe conf$$.file
47072 if mkdir -p . 2>/dev/null; then
47073 as_mkdir_p=:
47074 else
47075 test -d ./-p && rmdir ./-p
47076 as_mkdir_p=false
47079 as_executable_p="test -f"
47081 # Sed expression to map a string onto a valid CPP name.
47082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47084 # Sed expression to map a string onto a valid variable name.
47085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47088 # IFS
47089 # We need space, tab and new line, in precisely that order.
47090 as_nl='
47092 IFS=" $as_nl"
47094 # CDPATH.
47095 $as_unset CDPATH
47097 exec 6>&1
47099 # Open the log real soon, to keep \$[0] and so on meaningful, and to
47100 # report actual input values of CONFIG_FILES etc. instead of their
47101 # values after options handling. Logging --version etc. is OK.
47102 exec 5>>config.log
47104 echo
47105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47106 ## Running $as_me. ##
47107 _ASBOX
47108 } >&5
47109 cat >&5 <<_CSEOF
47111 This file was extended by ntp $as_me 4.2.4p7, which was
47112 generated by GNU Autoconf 2.59. Invocation command line was
47114 CONFIG_FILES = $CONFIG_FILES
47115 CONFIG_HEADERS = $CONFIG_HEADERS
47116 CONFIG_LINKS = $CONFIG_LINKS
47117 CONFIG_COMMANDS = $CONFIG_COMMANDS
47118 $ $0 $@
47120 _CSEOF
47121 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47122 echo >&5
47123 _ACEOF
47125 # Files that config.status was made for.
47126 if test -n "$ac_config_files"; then
47127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47130 if test -n "$ac_config_headers"; then
47131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47134 if test -n "$ac_config_links"; then
47135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47138 if test -n "$ac_config_commands"; then
47139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47142 cat >>$CONFIG_STATUS <<\_ACEOF
47144 ac_cs_usage="\
47145 \`$as_me' instantiates files from templates according to the
47146 current configuration.
47148 Usage: $0 [OPTIONS] [FILE]...
47150 -h, --help print this help, then exit
47151 -V, --version print version number, then exit
47152 -q, --quiet do not print progress messages
47153 -d, --debug don't remove temporary files
47154 --recheck update $as_me by reconfiguring in the same conditions
47155 --file=FILE[:TEMPLATE]
47156 instantiate the configuration file FILE
47157 --header=FILE[:TEMPLATE]
47158 instantiate the configuration header FILE
47160 Configuration files:
47161 $config_files
47163 Configuration headers:
47164 $config_headers
47166 Configuration commands:
47167 $config_commands
47169 Report bugs to <bug-autoconf@gnu.org>."
47170 _ACEOF
47172 cat >>$CONFIG_STATUS <<_ACEOF
47173 ac_cs_version="\\
47174 ntp config.status 4.2.4p7
47175 configured by $0, generated by GNU Autoconf 2.59,
47176 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47178 Copyright (C) 2003 Free Software Foundation, Inc.
47179 This config.status script is free software; the Free Software Foundation
47180 gives unlimited permission to copy, distribute and modify it."
47181 srcdir=$srcdir
47182 INSTALL="$INSTALL"
47183 _ACEOF
47185 cat >>$CONFIG_STATUS <<\_ACEOF
47186 # If no file are specified by the user, then we need to provide default
47187 # value. By we need to know if files were specified by the user.
47188 ac_need_defaults=:
47189 while test $# != 0
47191 case $1 in
47192 --*=*)
47193 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47194 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47195 ac_shift=:
47198 ac_option=$1
47199 ac_optarg=$2
47200 ac_shift=shift
47202 *) # This is not an option, so the user has probably given explicit
47203 # arguments.
47204 ac_option=$1
47205 ac_need_defaults=false;;
47206 esac
47208 case $ac_option in
47209 # Handling of the options.
47210 _ACEOF
47211 cat >>$CONFIG_STATUS <<\_ACEOF
47212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47213 ac_cs_recheck=: ;;
47214 --version | --vers* | -V )
47215 echo "$ac_cs_version"; exit 0 ;;
47216 --he | --h)
47217 # Conflict between --help and --header
47218 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47219 Try \`$0 --help' for more information." >&5
47220 echo "$as_me: error: ambiguous option: $1
47221 Try \`$0 --help' for more information." >&2;}
47222 { (exit 1); exit 1; }; };;
47223 --help | --hel | -h )
47224 echo "$ac_cs_usage"; exit 0 ;;
47225 --debug | --d* | -d )
47226 debug=: ;;
47227 --file | --fil | --fi | --f )
47228 $ac_shift
47229 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47230 ac_need_defaults=false;;
47231 --header | --heade | --head | --hea )
47232 $ac_shift
47233 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47234 ac_need_defaults=false;;
47235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47237 ac_cs_silent=: ;;
47239 # This is an error.
47240 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47241 Try \`$0 --help' for more information." >&5
47242 echo "$as_me: error: unrecognized option: $1
47243 Try \`$0 --help' for more information." >&2;}
47244 { (exit 1); exit 1; }; } ;;
47246 *) ac_config_targets="$ac_config_targets $1" ;;
47248 esac
47249 shift
47250 done
47252 ac_configure_extra_args=
47254 if $ac_cs_silent; then
47255 exec 6>/dev/null
47256 ac_configure_extra_args="$ac_configure_extra_args --silent"
47259 _ACEOF
47260 cat >>$CONFIG_STATUS <<_ACEOF
47261 if \$ac_cs_recheck; then
47262 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47263 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47266 _ACEOF
47268 cat >>$CONFIG_STATUS <<_ACEOF
47270 # INIT-COMMANDS section.
47273 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47275 _ACEOF
47279 cat >>$CONFIG_STATUS <<\_ACEOF
47280 for ac_config_target in $ac_config_targets
47282 case "$ac_config_target" in
47283 # Handling of arguments.
47284 "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
47285 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47286 "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
47287 "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
47288 "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
47289 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47290 "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
47291 "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
47292 "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
47293 "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
47294 "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
47295 "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
47296 "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
47297 "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
47298 "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
47299 "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
47300 "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
47301 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47302 "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
47303 "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
47304 "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
47305 "scripts/html2man" ) CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
47306 "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
47307 "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
47308 "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
47309 "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
47310 "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
47311 "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
47312 "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
47313 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
47314 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47315 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
47316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47317 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47318 { (exit 1); exit 1; }; };;
47319 esac
47320 done
47322 # If the user did not use the arguments to specify the items to instantiate,
47323 # then the envvar interface is used. Set only those that are not.
47324 # We use the long form for the default assignment because of an extremely
47325 # bizarre bug on SunOS 4.1.3.
47326 if $ac_need_defaults; then
47327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47332 # Have a temporary directory for convenience. Make it in the build tree
47333 # simply because there is no reason to put it here, and in addition,
47334 # creating and moving files from /tmp can sometimes cause problems.
47335 # Create a temporary directory, and hook for its removal unless debugging.
47336 $debug ||
47338 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47339 trap '{ (exit 1); exit 1; }' 1 2 13 15
47342 # Create a (secure) tmp directory for tmp files.
47345 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47346 test -n "$tmp" && test -d "$tmp"
47347 } ||
47349 tmp=./confstat$$-$RANDOM
47350 (umask 077 && mkdir $tmp)
47351 } ||
47353 echo "$me: cannot create a temporary directory in ." >&2
47354 { (exit 1); exit 1; }
47357 _ACEOF
47359 cat >>$CONFIG_STATUS <<_ACEOF
47362 # CONFIG_FILES section.
47365 # No need to generate the scripts if there are no CONFIG_FILES.
47366 # This happens for instance when ./config.status config.h
47367 if test -n "\$CONFIG_FILES"; then
47368 # Protect against being on the right side of a sed subst in config.status.
47369 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47370 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47371 s,@SHELL@,$SHELL,;t t
47372 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47373 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47374 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47375 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47376 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47377 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47378 s,@exec_prefix@,$exec_prefix,;t t
47379 s,@prefix@,$prefix,;t t
47380 s,@program_transform_name@,$program_transform_name,;t t
47381 s,@bindir@,$bindir,;t t
47382 s,@sbindir@,$sbindir,;t t
47383 s,@libexecdir@,$libexecdir,;t t
47384 s,@datadir@,$datadir,;t t
47385 s,@sysconfdir@,$sysconfdir,;t t
47386 s,@sharedstatedir@,$sharedstatedir,;t t
47387 s,@localstatedir@,$localstatedir,;t t
47388 s,@libdir@,$libdir,;t t
47389 s,@includedir@,$includedir,;t t
47390 s,@oldincludedir@,$oldincludedir,;t t
47391 s,@infodir@,$infodir,;t t
47392 s,@mandir@,$mandir,;t t
47393 s,@build_alias@,$build_alias,;t t
47394 s,@host_alias@,$host_alias,;t t
47395 s,@target_alias@,$target_alias,;t t
47396 s,@DEFS@,$DEFS,;t t
47397 s,@ECHO_C@,$ECHO_C,;t t
47398 s,@ECHO_N@,$ECHO_N,;t t
47399 s,@ECHO_T@,$ECHO_T,;t t
47400 s,@LIBS@,$LIBS,;t t
47401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47404 s,@CYGPATH_W@,$CYGPATH_W,;t t
47405 s,@PACKAGE@,$PACKAGE,;t t
47406 s,@VERSION@,$VERSION,;t t
47407 s,@ACLOCAL@,$ACLOCAL,;t t
47408 s,@AUTOCONF@,$AUTOCONF,;t t
47409 s,@AUTOMAKE@,$AUTOMAKE,;t t
47410 s,@AUTOHEADER@,$AUTOHEADER,;t t
47411 s,@MAKEINFO@,$MAKEINFO,;t t
47412 s,@install_sh@,$install_sh,;t t
47413 s,@STRIP@,$STRIP,;t t
47414 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47415 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
47416 s,@mkdir_p@,$mkdir_p,;t t
47417 s,@AWK@,$AWK,;t t
47418 s,@SET_MAKE@,$SET_MAKE,;t t
47419 s,@am__leading_dot@,$am__leading_dot,;t t
47420 s,@AMTAR@,$AMTAR,;t t
47421 s,@am__tar@,$am__tar,;t t
47422 s,@am__untar@,$am__untar,;t t
47423 s,@build@,$build,;t t
47424 s,@build_cpu@,$build_cpu,;t t
47425 s,@build_vendor@,$build_vendor,;t t
47426 s,@build_os@,$build_os,;t t
47427 s,@host@,$host,;t t
47428 s,@host_cpu@,$host_cpu,;t t
47429 s,@host_vendor@,$host_vendor,;t t
47430 s,@host_os@,$host_os,;t t
47431 s,@CC@,$CC,;t t
47432 s,@CFLAGS@,$CFLAGS,;t t
47433 s,@LDFLAGS@,$LDFLAGS,;t t
47434 s,@CPPFLAGS@,$CPPFLAGS,;t t
47435 s,@ac_ct_CC@,$ac_ct_CC,;t t
47436 s,@EXEEXT@,$EXEEXT,;t t
47437 s,@OBJEXT@,$OBJEXT,;t t
47438 s,@DEPDIR@,$DEPDIR,;t t
47439 s,@am__include@,$am__include,;t t
47440 s,@am__quote@,$am__quote,;t t
47441 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
47442 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
47443 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
47444 s,@CCDEPMODE@,$CCDEPMODE,;t t
47445 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
47446 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
47447 s,@CPP@,$CPP,;t t
47448 s,@EGREP@,$EGREP,;t t
47449 s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
47450 s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
47451 s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
47452 s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
47453 s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
47454 s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
47455 s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
47456 s,@BINSUBDIR@,$BINSUBDIR,;t t
47457 s,@subdirs@,$subdirs,;t t
47458 s,@ARLIB_DIR@,$ARLIB_DIR,;t t
47459 s,@LN_S@,$LN_S,;t t
47460 s,@ECHO@,$ECHO,;t t
47461 s,@AR@,$AR,;t t
47462 s,@ac_ct_AR@,$ac_ct_AR,;t t
47463 s,@RANLIB@,$RANLIB,;t t
47464 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47465 s,@LIBTOOL@,$LIBTOOL,;t t
47466 s,@PATH_SH@,$PATH_SH,;t t
47467 s,@PATH_PERL@,$PATH_PERL,;t t
47468 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
47469 s,@U@,$U,;t t
47470 s,@ANSI2KNR@,$ANSI2KNR,;t t
47471 s,@HAVE_INLINE@,$HAVE_INLINE,;t t
47472 s,@LIBPARSE@,$LIBPARSE,;t t
47473 s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
47474 s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
47475 s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
47476 s,@OPENSSL@,$OPENSSL,;t t
47477 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
47478 s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
47479 s,@LCRYPTO@,$LCRYPTO,;t t
47480 s,@EF_PROGS@,$EF_PROGS,;t t
47481 s,@EF_LIBS@,$EF_LIBS,;t t
47482 s,@MAKE_CHECK_LAYOUT@,$MAKE_CHECK_LAYOUT,;t t
47483 s,@TESTDCF@,$TESTDCF,;t t
47484 s,@DCFD@,$DCFD,;t t
47485 s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
47486 s,@PROPDELAY@,$PROPDELAY,;t t
47487 s,@CHUTEST@,$CHUTEST,;t t
47488 s,@CLKTEST@,$CLKTEST,;t t
47489 s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
47490 s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
47491 s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
47492 s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
47493 s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
47494 s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
47495 s,@LSCF@,$LSCF,;t t
47496 s,@LIBOBJS@,$LIBOBJS,;t t
47497 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47498 CEOF
47500 _ACEOF
47502 cat >>$CONFIG_STATUS <<\_ACEOF
47503 # Split the substitutions into bite-sized pieces for seds with
47504 # small command number limits, like on Digital OSF/1 and HP-UX.
47505 ac_max_sed_lines=48
47506 ac_sed_frag=1 # Number of current file.
47507 ac_beg=1 # First line for current file.
47508 ac_end=$ac_max_sed_lines # Line after last line for current file.
47509 ac_more_lines=:
47510 ac_sed_cmds=
47511 while $ac_more_lines; do
47512 if test $ac_beg -gt 1; then
47513 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47514 else
47515 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47517 if test ! -s $tmp/subs.frag; then
47518 ac_more_lines=false
47519 else
47520 # The purpose of the label and of the branching condition is to
47521 # speed up the sed processing (if there are no `@' at all, there
47522 # is no need to browse any of the substitutions).
47523 # These are the two extra sed commands mentioned above.
47524 (echo ':t
47525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47526 if test -z "$ac_sed_cmds"; then
47527 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47528 else
47529 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47531 ac_sed_frag=`expr $ac_sed_frag + 1`
47532 ac_beg=$ac_end
47533 ac_end=`expr $ac_end + $ac_max_sed_lines`
47535 done
47536 if test -z "$ac_sed_cmds"; then
47537 ac_sed_cmds=cat
47539 fi # test -n "$CONFIG_FILES"
47541 _ACEOF
47542 cat >>$CONFIG_STATUS <<\_ACEOF
47543 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47545 case $ac_file in
47546 - | *:- | *:-:* ) # input from stdin
47547 cat >$tmp/stdin
47548 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47550 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47552 * ) ac_file_in=$ac_file.in ;;
47553 esac
47555 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47558 X"$ac_file" : 'X\(//\)[^/]' \| \
47559 X"$ac_file" : 'X\(//\)$' \| \
47560 X"$ac_file" : 'X\(/\)' \| \
47561 . : '\(.\)' 2>/dev/null ||
47562 echo X"$ac_file" |
47563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47565 /^X\(\/\/\)$/{ s//\1/; q; }
47566 /^X\(\/\).*/{ s//\1/; q; }
47567 s/.*/./; q'`
47568 { if $as_mkdir_p; then
47569 mkdir -p "$ac_dir"
47570 else
47571 as_dir="$ac_dir"
47572 as_dirs=
47573 while test ! -d "$as_dir"; do
47574 as_dirs="$as_dir $as_dirs"
47575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47577 X"$as_dir" : 'X\(//\)[^/]' \| \
47578 X"$as_dir" : 'X\(//\)$' \| \
47579 X"$as_dir" : 'X\(/\)' \| \
47580 . : '\(.\)' 2>/dev/null ||
47581 echo X"$as_dir" |
47582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47584 /^X\(\/\/\)$/{ s//\1/; q; }
47585 /^X\(\/\).*/{ s//\1/; q; }
47586 s/.*/./; q'`
47587 done
47588 test ! -n "$as_dirs" || mkdir $as_dirs
47589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47591 { (exit 1); exit 1; }; }; }
47593 ac_builddir=.
47595 if test "$ac_dir" != .; then
47596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47597 # A "../" for each directory in $ac_dir_suffix.
47598 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47599 else
47600 ac_dir_suffix= ac_top_builddir=
47603 case $srcdir in
47604 .) # No --srcdir option. We are building in place.
47605 ac_srcdir=.
47606 if test -z "$ac_top_builddir"; then
47607 ac_top_srcdir=.
47608 else
47609 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47610 fi ;;
47611 [\\/]* | ?:[\\/]* ) # Absolute path.
47612 ac_srcdir=$srcdir$ac_dir_suffix;
47613 ac_top_srcdir=$srcdir ;;
47614 *) # Relative path.
47615 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47616 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47617 esac
47619 # Do not use `cd foo && pwd` to compute absolute paths, because
47620 # the directories may not exist.
47621 case `pwd` in
47622 .) ac_abs_builddir="$ac_dir";;
47624 case "$ac_dir" in
47625 .) ac_abs_builddir=`pwd`;;
47626 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47627 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47628 esac;;
47629 esac
47630 case $ac_abs_builddir in
47631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
47633 case ${ac_top_builddir}. in
47634 .) ac_abs_top_builddir=$ac_abs_builddir;;
47635 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47636 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47637 esac;;
47638 esac
47639 case $ac_abs_builddir in
47640 .) ac_abs_srcdir=$ac_srcdir;;
47642 case $ac_srcdir in
47643 .) ac_abs_srcdir=$ac_abs_builddir;;
47644 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47645 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47646 esac;;
47647 esac
47648 case $ac_abs_builddir in
47649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
47651 case $ac_top_srcdir in
47652 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47653 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47654 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47655 esac;;
47656 esac
47659 case $INSTALL in
47660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47661 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47662 esac
47664 if test x"$ac_file" != x-; then
47665 { echo "$as_me:$LINENO: creating $ac_file" >&5
47666 echo "$as_me: creating $ac_file" >&6;}
47667 rm -f "$ac_file"
47669 # Let's still pretend it is `configure' which instantiates (i.e., don't
47670 # use $as_me), people would be surprised to read:
47671 # /* config.h. Generated by config.status. */
47672 if test x"$ac_file" = x-; then
47673 configure_input=
47674 else
47675 configure_input="$ac_file. "
47677 configure_input=$configure_input"Generated from `echo $ac_file_in |
47678 sed 's,.*/,,'` by configure."
47680 # First look for the input files in the build tree, otherwise in the
47681 # src tree.
47682 ac_file_inputs=`IFS=:
47683 for f in $ac_file_in; do
47684 case $f in
47685 -) echo $tmp/stdin ;;
47686 [\\/$]*)
47687 # Absolute (can't be DOS-style, as IFS=:)
47688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47689 echo "$as_me: error: cannot find input file: $f" >&2;}
47690 { (exit 1); exit 1; }; }
47691 echo "$f";;
47692 *) # Relative
47693 if test -f "$f"; then
47694 # Build tree
47695 echo "$f"
47696 elif test -f "$srcdir/$f"; then
47697 # Source tree
47698 echo "$srcdir/$f"
47699 else
47700 # /dev/null tree
47701 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47702 echo "$as_me: error: cannot find input file: $f" >&2;}
47703 { (exit 1); exit 1; }; }
47704 fi;;
47705 esac
47706 done` || { (exit 1); exit 1; }
47707 _ACEOF
47708 cat >>$CONFIG_STATUS <<_ACEOF
47709 sed "$ac_vpsub
47710 $extrasub
47711 _ACEOF
47712 cat >>$CONFIG_STATUS <<\_ACEOF
47714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47715 s,@configure_input@,$configure_input,;t t
47716 s,@srcdir@,$ac_srcdir,;t t
47717 s,@abs_srcdir@,$ac_abs_srcdir,;t t
47718 s,@top_srcdir@,$ac_top_srcdir,;t t
47719 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47720 s,@builddir@,$ac_builddir,;t t
47721 s,@abs_builddir@,$ac_abs_builddir,;t t
47722 s,@top_builddir@,$ac_top_builddir,;t t
47723 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47724 s,@INSTALL@,$ac_INSTALL,;t t
47725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47726 rm -f $tmp/stdin
47727 if test x"$ac_file" != x-; then
47728 mv $tmp/out $ac_file
47729 else
47730 cat $tmp/out
47731 rm -f $tmp/out
47734 # Run the commands associated with the file.
47735 case $ac_file in
47736 ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;;
47737 scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
47738 scripts/checktime ) chmod +x scripts/checktime ;;
47739 scripts/freq_adj ) chmod +x scripts/freq_adj ;;
47740 scripts/html2man ) chmod +x scripts/html2man ;;
47741 scripts/mkver ) chmod +x scripts/mkver ;;
47742 scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
47743 scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
47744 scripts/ntptrace ) chmod +x scripts/ntptrace ;;
47745 scripts/ntpver ) chmod +x scripts/ntpver ;;
47746 scripts/plot_summary ) chmod +x scripts/plot_summary ;;
47747 scripts/summary ) chmod +x scripts/summary ;;
47748 esac
47749 done
47750 _ACEOF
47751 cat >>$CONFIG_STATUS <<\_ACEOF
47754 # CONFIG_HEADER section.
47757 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47758 # NAME is the cpp macro being defined and VALUE is the value it is being given.
47760 # ac_d sets the value in "#define NAME VALUE" lines.
47761 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47762 ac_dB='[ ].*$,\1#\2'
47763 ac_dC=' '
47764 ac_dD=',;t'
47765 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
47766 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
47767 ac_uB='$,\1#\2define\3'
47768 ac_uC=' '
47769 ac_uD=',;t'
47771 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47773 case $ac_file in
47774 - | *:- | *:-:* ) # input from stdin
47775 cat >$tmp/stdin
47776 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47778 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47780 * ) ac_file_in=$ac_file.in ;;
47781 esac
47783 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47784 echo "$as_me: creating $ac_file" >&6;}
47786 # First look for the input files in the build tree, otherwise in the
47787 # src tree.
47788 ac_file_inputs=`IFS=:
47789 for f in $ac_file_in; do
47790 case $f in
47791 -) echo $tmp/stdin ;;
47792 [\\/$]*)
47793 # Absolute (can't be DOS-style, as IFS=:)
47794 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47795 echo "$as_me: error: cannot find input file: $f" >&2;}
47796 { (exit 1); exit 1; }; }
47797 # Do quote $f, to prevent DOS paths from being IFS'd.
47798 echo "$f";;
47799 *) # Relative
47800 if test -f "$f"; then
47801 # Build tree
47802 echo "$f"
47803 elif test -f "$srcdir/$f"; then
47804 # Source tree
47805 echo "$srcdir/$f"
47806 else
47807 # /dev/null tree
47808 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47809 echo "$as_me: error: cannot find input file: $f" >&2;}
47810 { (exit 1); exit 1; }; }
47811 fi;;
47812 esac
47813 done` || { (exit 1); exit 1; }
47814 # Remove the trailing spaces.
47815 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
47817 _ACEOF
47819 # Transform confdefs.h into two sed scripts, `conftest.defines' and
47820 # `conftest.undefs', that substitutes the proper values into
47821 # config.h.in to produce config.h. The first handles `#define'
47822 # templates, and the second `#undef' templates.
47823 # And first: Protect against being on the right side of a sed subst in
47824 # config.status. Protect against being in an unquoted here document
47825 # in config.status.
47826 rm -f conftest.defines conftest.undefs
47827 # Using a here document instead of a string reduces the quoting nightmare.
47828 # Putting comments in sed scripts is not portable.
47830 # `end' is used to avoid that the second main sed command (meant for
47831 # 0-ary CPP macros) applies to n-ary macro definitions.
47832 # See the Autoconf documentation for `clear'.
47833 cat >confdef2sed.sed <<\_ACEOF
47834 s/[\\&,]/\\&/g
47835 s,[\\$`],\\&,g
47836 t clear
47837 : clear
47838 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47839 t end
47840 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47841 : end
47842 _ACEOF
47843 # If some macros were called several times there might be several times
47844 # the same #defines, which is useless. Nevertheless, we may not want to
47845 # sort them, since we want the *last* AC-DEFINE to be honored.
47846 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47847 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47848 rm -f confdef2sed.sed
47850 # This sed command replaces #undef with comments. This is necessary, for
47851 # example, in the case of _POSIX_SOURCE, which is predefined and required
47852 # on some systems where configure will not decide to define it.
47853 cat >>conftest.undefs <<\_ACEOF
47854 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47855 _ACEOF
47857 # Break up conftest.defines because some shells have a limit on the size
47858 # of here documents, and old seds have small limits too (100 cmds).
47859 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47860 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47861 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47862 echo ' :' >>$CONFIG_STATUS
47863 rm -f conftest.tail
47864 while grep . conftest.defines >/dev/null
47866 # Write a limited-size here document to $tmp/defines.sed.
47867 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47868 # Speed up: don't consider the non `#define' lines.
47869 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
47870 # Work around the forget-to-reset-the-flag bug.
47871 echo 't clr' >>$CONFIG_STATUS
47872 echo ': clr' >>$CONFIG_STATUS
47873 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47874 echo 'CEOF
47875 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47876 rm -f $tmp/in
47877 mv $tmp/out $tmp/in
47878 ' >>$CONFIG_STATUS
47879 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47880 rm -f conftest.defines
47881 mv conftest.tail conftest.defines
47882 done
47883 rm -f conftest.defines
47884 echo ' fi # grep' >>$CONFIG_STATUS
47885 echo >>$CONFIG_STATUS
47887 # Break up conftest.undefs because some shells have a limit on the size
47888 # of here documents, and old seds have small limits too (100 cmds).
47889 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47890 rm -f conftest.tail
47891 while grep . conftest.undefs >/dev/null
47893 # Write a limited-size here document to $tmp/undefs.sed.
47894 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47895 # Speed up: don't consider the non `#undef'
47896 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
47897 # Work around the forget-to-reset-the-flag bug.
47898 echo 't clr' >>$CONFIG_STATUS
47899 echo ': clr' >>$CONFIG_STATUS
47900 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47901 echo 'CEOF
47902 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47903 rm -f $tmp/in
47904 mv $tmp/out $tmp/in
47905 ' >>$CONFIG_STATUS
47906 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47907 rm -f conftest.undefs
47908 mv conftest.tail conftest.undefs
47909 done
47910 rm -f conftest.undefs
47912 cat >>$CONFIG_STATUS <<\_ACEOF
47913 # Let's still pretend it is `configure' which instantiates (i.e., don't
47914 # use $as_me), people would be surprised to read:
47915 # /* config.h. Generated by config.status. */
47916 if test x"$ac_file" = x-; then
47917 echo "/* Generated by configure. */" >$tmp/config.h
47918 else
47919 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47921 cat $tmp/in >>$tmp/config.h
47922 rm -f $tmp/in
47923 if test x"$ac_file" != x-; then
47924 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47925 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47926 echo "$as_me: $ac_file is unchanged" >&6;}
47927 else
47928 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47930 X"$ac_file" : 'X\(//\)[^/]' \| \
47931 X"$ac_file" : 'X\(//\)$' \| \
47932 X"$ac_file" : 'X\(/\)' \| \
47933 . : '\(.\)' 2>/dev/null ||
47934 echo X"$ac_file" |
47935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47937 /^X\(\/\/\)$/{ s//\1/; q; }
47938 /^X\(\/\).*/{ s//\1/; q; }
47939 s/.*/./; q'`
47940 { if $as_mkdir_p; then
47941 mkdir -p "$ac_dir"
47942 else
47943 as_dir="$ac_dir"
47944 as_dirs=
47945 while test ! -d "$as_dir"; do
47946 as_dirs="$as_dir $as_dirs"
47947 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47949 X"$as_dir" : 'X\(//\)[^/]' \| \
47950 X"$as_dir" : 'X\(//\)$' \| \
47951 X"$as_dir" : 'X\(/\)' \| \
47952 . : '\(.\)' 2>/dev/null ||
47953 echo X"$as_dir" |
47954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47956 /^X\(\/\/\)$/{ s//\1/; q; }
47957 /^X\(\/\).*/{ s//\1/; q; }
47958 s/.*/./; q'`
47959 done
47960 test ! -n "$as_dirs" || mkdir $as_dirs
47961 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47962 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47963 { (exit 1); exit 1; }; }; }
47965 rm -f $ac_file
47966 mv $tmp/config.h $ac_file
47968 else
47969 cat $tmp/config.h
47970 rm -f $tmp/config.h
47972 # Compute $ac_file's index in $config_headers.
47973 _am_stamp_count=1
47974 for _am_header in $config_headers :; do
47975 case $_am_header in
47976 $ac_file | $ac_file:* )
47977 break ;;
47979 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47980 esac
47981 done
47982 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
47983 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47984 X$ac_file : 'X\(//\)[^/]' \| \
47985 X$ac_file : 'X\(//\)$' \| \
47986 X$ac_file : 'X\(/\)' \| \
47987 . : '\(.\)' 2>/dev/null ||
47988 echo X$ac_file |
47989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47991 /^X\(\/\/\)$/{ s//\1/; q; }
47992 /^X\(\/\).*/{ s//\1/; q; }
47993 s/.*/./; q'`/stamp-h$_am_stamp_count
47994 done
47995 _ACEOF
47996 cat >>$CONFIG_STATUS <<\_ACEOF
47999 # CONFIG_COMMANDS section.
48001 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48002 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48003 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48004 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48005 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48006 X"$ac_dest" : 'X\(//\)[^/]' \| \
48007 X"$ac_dest" : 'X\(//\)$' \| \
48008 X"$ac_dest" : 'X\(/\)' \| \
48009 . : '\(.\)' 2>/dev/null ||
48010 echo X"$ac_dest" |
48011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48013 /^X\(\/\/\)$/{ s//\1/; q; }
48014 /^X\(\/\).*/{ s//\1/; q; }
48015 s/.*/./; q'`
48016 { if $as_mkdir_p; then
48017 mkdir -p "$ac_dir"
48018 else
48019 as_dir="$ac_dir"
48020 as_dirs=
48021 while test ! -d "$as_dir"; do
48022 as_dirs="$as_dir $as_dirs"
48023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48025 X"$as_dir" : 'X\(//\)[^/]' \| \
48026 X"$as_dir" : 'X\(//\)$' \| \
48027 X"$as_dir" : 'X\(/\)' \| \
48028 . : '\(.\)' 2>/dev/null ||
48029 echo X"$as_dir" |
48030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48032 /^X\(\/\/\)$/{ s//\1/; q; }
48033 /^X\(\/\).*/{ s//\1/; q; }
48034 s/.*/./; q'`
48035 done
48036 test ! -n "$as_dirs" || mkdir $as_dirs
48037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48039 { (exit 1); exit 1; }; }; }
48041 ac_builddir=.
48043 if test "$ac_dir" != .; then
48044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48045 # A "../" for each directory in $ac_dir_suffix.
48046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48047 else
48048 ac_dir_suffix= ac_top_builddir=
48051 case $srcdir in
48052 .) # No --srcdir option. We are building in place.
48053 ac_srcdir=.
48054 if test -z "$ac_top_builddir"; then
48055 ac_top_srcdir=.
48056 else
48057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48058 fi ;;
48059 [\\/]* | ?:[\\/]* ) # Absolute path.
48060 ac_srcdir=$srcdir$ac_dir_suffix;
48061 ac_top_srcdir=$srcdir ;;
48062 *) # Relative path.
48063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48065 esac
48067 # Do not use `cd foo && pwd` to compute absolute paths, because
48068 # the directories may not exist.
48069 case `pwd` in
48070 .) ac_abs_builddir="$ac_dir";;
48072 case "$ac_dir" in
48073 .) ac_abs_builddir=`pwd`;;
48074 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48075 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48076 esac;;
48077 esac
48078 case $ac_abs_builddir in
48079 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48081 case ${ac_top_builddir}. in
48082 .) ac_abs_top_builddir=$ac_abs_builddir;;
48083 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48084 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48085 esac;;
48086 esac
48087 case $ac_abs_builddir in
48088 .) ac_abs_srcdir=$ac_srcdir;;
48090 case $ac_srcdir in
48091 .) ac_abs_srcdir=$ac_abs_builddir;;
48092 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48093 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48094 esac;;
48095 esac
48096 case $ac_abs_builddir in
48097 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48099 case $ac_top_srcdir in
48100 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48101 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48102 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48103 esac;;
48104 esac
48107 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48108 echo "$as_me: executing $ac_dest commands" >&6;}
48109 case $ac_dest in
48110 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
48111 # Strip MF so we end up with the name of the file.
48112 mf=`echo "$mf" | sed -e 's/:.*$//'`
48113 # Check whether this is an Automake generated Makefile or not.
48114 # We used to match only the files named `Makefile.in', but
48115 # some people rename them; so instead we look at the file content.
48116 # Grep'ing the first line is not enough: some people post-process
48117 # each Makefile.in and add a new line on top of each file to say so.
48118 # So let's grep whole file.
48119 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
48120 dirpart=`(dirname "$mf") 2>/dev/null ||
48121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48122 X"$mf" : 'X\(//\)[^/]' \| \
48123 X"$mf" : 'X\(//\)$' \| \
48124 X"$mf" : 'X\(/\)' \| \
48125 . : '\(.\)' 2>/dev/null ||
48126 echo X"$mf" |
48127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48129 /^X\(\/\/\)$/{ s//\1/; q; }
48130 /^X\(\/\).*/{ s//\1/; q; }
48131 s/.*/./; q'`
48132 else
48133 continue
48135 # Extract the definition of DEPDIR, am__include, and am__quote
48136 # from the Makefile without running `make'.
48137 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48138 test -z "$DEPDIR" && continue
48139 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48140 test -z "am__include" && continue
48141 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48142 # When using ansi2knr, U may be empty or an underscore; expand it
48143 U=`sed -n 's/^U = //p' < "$mf"`
48144 # Find all dependency output files, they are included files with
48145 # $(DEPDIR) in their names. We invoke sed twice because it is the
48146 # simplest approach to changing $(DEPDIR) to its actual value in the
48147 # expansion.
48148 for file in `sed -n "
48149 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48150 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48151 # Make sure the directory exists.
48152 test -f "$dirpart/$file" && continue
48153 fdir=`(dirname "$file") 2>/dev/null ||
48154 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48155 X"$file" : 'X\(//\)[^/]' \| \
48156 X"$file" : 'X\(//\)$' \| \
48157 X"$file" : 'X\(/\)' \| \
48158 . : '\(.\)' 2>/dev/null ||
48159 echo X"$file" |
48160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48162 /^X\(\/\/\)$/{ s//\1/; q; }
48163 /^X\(\/\).*/{ s//\1/; q; }
48164 s/.*/./; q'`
48165 { if $as_mkdir_p; then
48166 mkdir -p $dirpart/$fdir
48167 else
48168 as_dir=$dirpart/$fdir
48169 as_dirs=
48170 while test ! -d "$as_dir"; do
48171 as_dirs="$as_dir $as_dirs"
48172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48174 X"$as_dir" : 'X\(//\)[^/]' \| \
48175 X"$as_dir" : 'X\(//\)$' \| \
48176 X"$as_dir" : 'X\(/\)' \| \
48177 . : '\(.\)' 2>/dev/null ||
48178 echo X"$as_dir" |
48179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48181 /^X\(\/\/\)$/{ s//\1/; q; }
48182 /^X\(\/\).*/{ s//\1/; q; }
48183 s/.*/./; q'`
48184 done
48185 test ! -n "$as_dirs" || mkdir $as_dirs
48186 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
48187 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
48188 { (exit 1); exit 1; }; }; }
48190 # echo "creating $dirpart/$file"
48191 echo '# dummy' > "$dirpart/$file"
48192 done
48193 done
48195 esac
48196 done
48197 _ACEOF
48199 cat >>$CONFIG_STATUS <<\_ACEOF
48201 { (exit 0); exit 0; }
48202 _ACEOF
48203 chmod +x $CONFIG_STATUS
48204 ac_clean_files=$ac_clean_files_save
48207 # configure is writing to config.log, and then calls config.status.
48208 # config.status does its own redirection, appending to config.log.
48209 # Unfortunately, on DOS this fails, as config.log is still kept open
48210 # by configure, so config.status won't be able to write to it; its
48211 # output is simply discarded. So we exec the FD to /dev/null,
48212 # effectively closing config.log, so it can be properly (re)opened and
48213 # appended to by config.status. When coming back to configure, we
48214 # need to make the FD available again.
48215 if test "$no_create" != yes; then
48216 ac_cs_success=:
48217 ac_config_status_args=
48218 test "$silent" = yes &&
48219 ac_config_status_args="$ac_config_status_args --quiet"
48220 exec 5>/dev/null
48221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48222 exec 5>>config.log
48223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48224 # would make configure fail if this is the last instruction.
48225 $ac_cs_success || { (exit 1); exit 1; }
48229 # CONFIG_SUBDIRS section.
48231 if test "$no_recursion" != yes; then
48233 # Remove --cache-file and --srcdir arguments so they do not pile up.
48234 ac_sub_configure_args=
48235 ac_prev=
48236 for ac_arg in $ac_configure_args; do
48237 if test -n "$ac_prev"; then
48238 ac_prev=
48239 continue
48241 case $ac_arg in
48242 -cache-file | --cache-file | --cache-fil | --cache-fi \
48243 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48244 ac_prev=cache_file ;;
48245 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48246 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48247 | --c=*)
48249 --config-cache | -C)
48251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48252 ac_prev=srcdir ;;
48253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48256 ac_prev=prefix ;;
48257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48259 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48260 esac
48261 done
48263 # Always prepend --prefix to ensure using the same prefix
48264 # in subdir configurations.
48265 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48267 ac_popdir=`pwd`
48268 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48270 # Do not complain, so a configure script can configure whichever
48271 # parts of a large source tree are present.
48272 test -d $srcdir/$ac_dir || continue
48274 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48275 echo "$as_me: configuring in $ac_dir" >&6;}
48276 { if $as_mkdir_p; then
48277 mkdir -p "$ac_dir"
48278 else
48279 as_dir="$ac_dir"
48280 as_dirs=
48281 while test ! -d "$as_dir"; do
48282 as_dirs="$as_dir $as_dirs"
48283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48285 X"$as_dir" : 'X\(//\)[^/]' \| \
48286 X"$as_dir" : 'X\(//\)$' \| \
48287 X"$as_dir" : 'X\(/\)' \| \
48288 . : '\(.\)' 2>/dev/null ||
48289 echo X"$as_dir" |
48290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48292 /^X\(\/\/\)$/{ s//\1/; q; }
48293 /^X\(\/\).*/{ s//\1/; q; }
48294 s/.*/./; q'`
48295 done
48296 test ! -n "$as_dirs" || mkdir $as_dirs
48297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48299 { (exit 1); exit 1; }; }; }
48301 ac_builddir=.
48303 if test "$ac_dir" != .; then
48304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48305 # A "../" for each directory in $ac_dir_suffix.
48306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48307 else
48308 ac_dir_suffix= ac_top_builddir=
48311 case $srcdir in
48312 .) # No --srcdir option. We are building in place.
48313 ac_srcdir=.
48314 if test -z "$ac_top_builddir"; then
48315 ac_top_srcdir=.
48316 else
48317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48318 fi ;;
48319 [\\/]* | ?:[\\/]* ) # Absolute path.
48320 ac_srcdir=$srcdir$ac_dir_suffix;
48321 ac_top_srcdir=$srcdir ;;
48322 *) # Relative path.
48323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48325 esac
48327 # Do not use `cd foo && pwd` to compute absolute paths, because
48328 # the directories may not exist.
48329 case `pwd` in
48330 .) ac_abs_builddir="$ac_dir";;
48332 case "$ac_dir" in
48333 .) ac_abs_builddir=`pwd`;;
48334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48336 esac;;
48337 esac
48338 case $ac_abs_builddir in
48339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48341 case ${ac_top_builddir}. in
48342 .) ac_abs_top_builddir=$ac_abs_builddir;;
48343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48345 esac;;
48346 esac
48347 case $ac_abs_builddir in
48348 .) ac_abs_srcdir=$ac_srcdir;;
48350 case $ac_srcdir in
48351 .) ac_abs_srcdir=$ac_abs_builddir;;
48352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48354 esac;;
48355 esac
48356 case $ac_abs_builddir in
48357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48359 case $ac_top_srcdir in
48360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48363 esac;;
48364 esac
48367 cd $ac_dir
48369 # Check for guested configure; otherwise get Cygnus style configure.
48370 if test -f $ac_srcdir/configure.gnu; then
48371 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48372 elif test -f $ac_srcdir/configure; then
48373 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48374 elif test -f $ac_srcdir/configure.in; then
48375 ac_sub_configure=$ac_configure
48376 else
48377 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48379 ac_sub_configure=
48382 # The recursion is here.
48383 if test -n "$ac_sub_configure"; then
48384 # Make the cache file name correct relative to the subdirectory.
48385 case $cache_file in
48386 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48387 *) # Relative path.
48388 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
48389 esac
48391 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48392 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48393 # The eval makes quoting arguments work.
48394 eval $ac_sub_configure $ac_sub_configure_args \
48395 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48396 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
48397 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48398 { (exit 1); exit 1; }; }
48401 cd $ac_popdir
48402 done