2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p11.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='ntp'
593 PACKAGE_VERSION='4.2.8p11'
594 PACKAGE_STRING='ntp 4.2.8p11'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
642 BUILD_TEST_NTP_SIGND_FALSE
643 BUILD_TEST_NTP_SIGND_TRUE
644 BUILD_TEST_NTP_SCANNER_FALSE
645 BUILD_TEST_NTP_SCANNER_TRUE
646 BUILD_TEST_NTP_RESTRICT_FALSE
647 BUILD_TEST_NTP_RESTRICT_TRUE
648 GTEST_AVAILABLE_FALSE
655 UNITYBUILD_AVAILABLE_FALSE
656 UNITYBUILD_AVAILABLE_TRUE
658 HAVE_LEAPSMEARINTERVAL
659 SAVECONFIG_ENABLED_FALSE
660 SAVECONFIG_ENABLED_TRUE
696 LIBISC_PTHREADS_NOTHREADS
706 NTP_CROSSCOMPILE_FALSE
707 NTP_CROSSCOMPILE_TRUE
719 INSTALL_LIBOPTS_FALSE
722 GL_GENERATE_STDNORETURN_H_FALSE
723 GL_GENERATE_STDNORETURN_H_TRUE
746 INSTALL_UPDATE_LEAP_FALSE
747 INSTALL_UPDATE_LEAP_TRUE
788 INSTALL_NTPSWEEP_FALSE
789 INSTALL_NTPSWEEP_TRUE
831 WANT_CALC_TICKADJ_MS_FALSE
832 WANT_CALC_TICKADJ_MS_TRUE
884 INSTALL_STRIP_PROGRAM
926 program_transform_name
937 ac_subst_files='calc_tickadj_opts
944 enable_option_checking
946 enable_dependency_tracking
959 enable_libopts_install
961 enable_local_libevent
964 enable_thread_support
978 enable_ignore_dns_errors
1037 enable_openssl_random
1040 enable_accurate_adjtime
1049 enable_hourly_todr_sync
1050 enable_kernel_fll_bug
1053 enable_irig_sawtooth
1061 enable_dynamic_interleave
1063 enable_problem_tests
1065 ac_precious_vars='build_alias
1076 LT_SYS_LIBRARY_PATH'
1077 ac_subdirs_all='sntp'
1079 # Initialize some variables set by options.
1081 ac_init_version=false
1082 ac_unrecognized_opts=
1083 ac_unrecognized_sep=
1084 # The variables have the same names as the options, with
1085 # dashes changed to underlines.
1086 cache_file=/dev/null
1093 program_transform_name=s,x,x,
1101 # Installation directory options.
1102 # These are left unexpanded so users can "make install exec_prefix=/foo"
1103 # and all the variables that are supposed to be based on exec_prefix
1104 # by default will actually change.
1105 # Use braces instead of parens because sh, perl, etc. also accept them.
1106 # (The list follows the same order as the GNU Coding Standards.)
1107 bindir='${exec_prefix}/bin'
1108 sbindir='${exec_prefix}/sbin'
1109 libexecdir='${exec_prefix}/libexec'
1110 datarootdir='${prefix}/share'
1111 datadir='${datarootdir}'
1112 sysconfdir='${prefix}/etc'
1113 sharedstatedir='${prefix}/com'
1114 localstatedir='${prefix}/var'
1115 includedir='${prefix}/include'
1116 oldincludedir='/usr/include'
1117 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1118 infodir='${datarootdir}/info'
1123 libdir='${exec_prefix}/lib'
1124 localedir='${datarootdir}/locale'
1125 mandir='${datarootdir}/man'
1131 # If the previous option needs an argument, assign it.
1132 if test -n "$ac_prev"; then
1133 eval $ac_prev=\$ac_option
1139 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 # Accept the important Cygnus configure options, so we can diagnose typos.
1146 case $ac_dashdash$ac_option in
1150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153 bindir=$ac_optarg ;;
1155 -build | --build | --buil | --bui | --bu)
1156 ac_prev=build_alias ;;
1157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158 build_alias=$ac_optarg ;;
1160 -cache-file | --cache-file | --cache-fil | --cache-fi \
1161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162 ac_prev=cache_file ;;
1163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165 cache_file=$ac_optarg ;;
1167 --config-cache | -C)
1168 cache_file=config.cache ;;
1170 -datadir | --datadir | --datadi | --datad)
1172 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173 datadir=$ac_optarg ;;
1175 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176 | --dataroo | --dataro | --datar)
1177 ac_prev=datarootdir ;;
1178 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180 datarootdir=$ac_optarg ;;
1182 -disable-* | --disable-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid feature name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "enable_$ac_useropt"
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval enable_$ac_useropt=no ;;
1198 -docdir | --docdir | --docdi | --doc | --do)
1200 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1201 docdir=$ac_optarg ;;
1203 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1205 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1206 dvidir=$ac_optarg ;;
1208 -enable-* | --enable-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid feature name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "enable_$ac_useropt"
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval enable_$ac_useropt=\$ac_optarg ;;
1224 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1225 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1226 | --exec | --exe | --ex)
1227 ac_prev=exec_prefix ;;
1228 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1229 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1230 | --exec=* | --exe=* | --ex=*)
1231 exec_prefix=$ac_optarg ;;
1233 -gas | --gas | --ga | --g)
1234 # Obsolete; use --with-gas.
1237 -help | --help | --hel | --he | -h)
1238 ac_init_help=long ;;
1239 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1240 ac_init_help=recursive ;;
1241 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1242 ac_init_help=short ;;
1244 -host | --host | --hos | --ho)
1245 ac_prev=host_alias ;;
1246 -host=* | --host=* | --hos=* | --ho=*)
1247 host_alias=$ac_optarg ;;
1249 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1251 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1253 htmldir=$ac_optarg ;;
1255 -includedir | --includedir | --includedi | --included | --include \
1256 | --includ | --inclu | --incl | --inc)
1257 ac_prev=includedir ;;
1258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1259 | --includ=* | --inclu=* | --incl=* | --inc=*)
1260 includedir=$ac_optarg ;;
1262 -infodir | --infodir | --infodi | --infod | --info | --inf)
1264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1265 infodir=$ac_optarg ;;
1267 -libdir | --libdir | --libdi | --libd)
1269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1270 libdir=$ac_optarg ;;
1272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1273 | --libexe | --libex | --libe)
1274 ac_prev=libexecdir ;;
1275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1276 | --libexe=* | --libex=* | --libe=*)
1277 libexecdir=$ac_optarg ;;
1279 -localedir | --localedir | --localedi | --localed | --locale)
1280 ac_prev=localedir ;;
1281 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1282 localedir=$ac_optarg ;;
1284 -localstatedir | --localstatedir | --localstatedi | --localstated \
1285 | --localstate | --localstat | --localsta | --localst | --locals)
1286 ac_prev=localstatedir ;;
1287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1288 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1289 localstatedir=$ac_optarg ;;
1291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1294 mandir=$ac_optarg ;;
1296 -nfp | --nfp | --nf)
1297 # Obsolete; use --without-fp.
1300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1301 | --no-cr | --no-c | -n)
1304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1310 | --oldin | --oldi | --old | --ol | --o)
1311 ac_prev=oldincludedir ;;
1312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1315 oldincludedir=$ac_optarg ;;
1317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1320 prefix=$ac_optarg ;;
1322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1323 | --program-pre | --program-pr | --program-p)
1324 ac_prev=program_prefix ;;
1325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1327 program_prefix=$ac_optarg ;;
1329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1330 | --program-suf | --program-su | --program-s)
1331 ac_prev=program_suffix ;;
1332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1334 program_suffix=$ac_optarg ;;
1336 -program-transform-name | --program-transform-name \
1337 | --program-transform-nam | --program-transform-na \
1338 | --program-transform-n | --program-transform- \
1339 | --program-transform | --program-transfor \
1340 | --program-transfo | --program-transf \
1341 | --program-trans | --program-tran \
1342 | --progr-tra | --program-tr | --program-t)
1343 ac_prev=program_transform_name ;;
1344 -program-transform-name=* | --program-transform-name=* \
1345 | --program-transform-nam=* | --program-transform-na=* \
1346 | --program-transform-n=* | --program-transform-=* \
1347 | --program-transform=* | --program-transfor=* \
1348 | --program-transfo=* | --program-transf=* \
1349 | --program-trans=* | --program-tran=* \
1350 | --progr-tra=* | --program-tr=* | --program-t=*)
1351 program_transform_name=$ac_optarg ;;
1353 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1355 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1356 pdfdir=$ac_optarg ;;
1358 -psdir | --psdir | --psdi | --psd | --ps)
1360 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1364 | -silent | --silent | --silen | --sile | --sil)
1367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1371 sbindir=$ac_optarg ;;
1373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1375 | --sharedst | --shareds | --shared | --share | --shar \
1377 ac_prev=sharedstatedir ;;
1378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1382 sharedstatedir=$ac_optarg ;;
1384 -site | --site | --sit)
1386 -site=* | --site=* | --sit=*)
1389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1392 srcdir=$ac_optarg ;;
1394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1395 | --syscon | --sysco | --sysc | --sys | --sy)
1396 ac_prev=sysconfdir ;;
1397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1399 sysconfdir=$ac_optarg ;;
1401 -target | --target | --targe | --targ | --tar | --ta | --t)
1402 ac_prev=target_alias ;;
1403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1404 target_alias=$ac_optarg ;;
1406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1409 -version | --version | --versio | --versi | --vers | -V)
1410 ac_init_version=: ;;
1413 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1416 as_fn_error $? "invalid package name: $ac_useropt"
1417 ac_useropt_orig=$ac_useropt
1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1424 ac_unrecognized_sep=', ';;
1426 eval with_$ac_useropt=\$ac_optarg ;;
1428 -without-* | --without-*)
1429 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1430 # Reject names that are not valid shell variable names.
1431 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1432 as_fn_error $? "invalid package name: $ac_useropt"
1433 ac_useropt_orig=$ac_useropt
1434 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1435 case $ac_user_opts in
1439 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1440 ac_unrecognized_sep=', ';;
1442 eval with_$ac_useropt=no ;;
1445 # Obsolete; use --with-x.
1448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1449 | --x-incl | --x-inc | --x-in | --x-i)
1450 ac_prev=x_includes ;;
1451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1453 x_includes=$ac_optarg ;;
1455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1457 ac_prev=x_libraries ;;
1458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1460 x_libraries=$ac_optarg ;;
1462 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1463 Try \`$0 --help' for more information"
1467 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1468 # Reject names that are not valid shell variable names.
1469 case $ac_envvar in #(
1470 '' | [0-9]* | *[!_$as_cr_alnum]* )
1471 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1473 eval $ac_envvar=\$ac_optarg
1474 export $ac_envvar ;;
1477 # FIXME: should be removed in autoconf 3.0.
1478 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1479 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1480 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1481 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1487 if test -n "$ac_prev"; then
1488 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1489 as_fn_error $? "missing argument to $ac_option"
1492 if test -n "$ac_unrecognized_opts"; then
1493 case $enable_option_checking in
1495 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1496 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1500 # Check all directory arguments for consistency.
1501 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1502 datadir sysconfdir sharedstatedir localstatedir includedir \
1503 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1504 libdir localedir mandir
1506 eval ac_val=\$$ac_var
1507 # Remove trailing slashes.
1510 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1511 eval $ac_var=\$ac_val;;
1513 # Be sure to have absolute directory names.
1515 [\\/$]* | ?:[\\/]* ) continue;;
1516 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1518 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1521 # There might be people who depend on the old broken behavior: `$host'
1522 # used to hold the argument of --host etc.
1523 # FIXME: To remove some day.
1526 target=$target_alias
1528 # FIXME: To remove some day.
1529 if test "x$host_alias" != x; then
1530 if test "x$build_alias" = x; then
1531 cross_compiling=maybe
1532 elif test "x$build_alias" != "x$host_alias"; then
1538 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1540 test "$silent" = yes && exec 6>/dev/null
1543 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544 ac_ls_di=`ls -di .` &&
1545 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1546 as_fn_error $? "working directory cannot be determined"
1547 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1548 as_fn_error $? "pwd does not report name of working directory"
1551 # Find the source files, if location was not specified.
1552 if test -z "$srcdir"; then
1553 ac_srcdir_defaulted=yes
1554 # Try the directory containing this script, then the parent directory.
1555 ac_confdir=`$as_dirname -- "$as_myself" ||
1556 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1557 X"$as_myself" : 'X\(//\)[^/]' \| \
1558 X"$as_myself" : 'X\(//\)$' \| \
1559 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1560 $as_echo X"$as_myself" |
1561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1579 if test ! -r "$srcdir/$ac_unique_file"; then
1583 ac_srcdir_defaulted=no
1585 if test ! -r "$srcdir/$ac_unique_file"; then
1586 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1587 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1589 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1591 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1593 # When building in place, set srcdir=.
1594 if test "$ac_abs_confdir" = "$ac_pwd"; then
1597 # Remove unnecessary trailing slashes from srcdir.
1598 # Double slashes in file names in object file debugging info
1599 # mess up M-x gdb in Emacs.
1601 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1603 for ac_var in $ac_precious_vars; do
1604 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1605 eval ac_env_${ac_var}_value=\$${ac_var}
1606 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1607 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611 # Report the --help message.
1613 if test "$ac_init_help" = "long"; then
1614 # Omit some internal or obsolete options to make the list less imposing.
1615 # This message is too long to be a string in the A/UX 3.1 sh.
1617 \`configure' configures ntp 4.2.8p11 to adapt to many kinds of systems.
1619 Usage: $0 [OPTION]... [VAR=VALUE]...
1621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1622 VAR=VALUE. See below for descriptions of some of the useful variables.
1624 Defaults for the options are specified in brackets.
1627 -h, --help display this help and exit
1628 --help=short display options specific to this package
1629 --help=recursive display the short help of all the included packages
1630 -V, --version display version information and exit
1631 -q, --quiet, --silent do not print \`checking ...' messages
1632 --cache-file=FILE cache test results in FILE [disabled]
1633 -C, --config-cache alias for \`--cache-file=config.cache'
1634 -n, --no-create do not create output files
1635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1637 Installation directories:
1638 --prefix=PREFIX install architecture-independent files in PREFIX
1639 [$ac_default_prefix]
1640 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1643 By default, \`make install' will install all the files in
1644 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1645 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1646 for instance \`--prefix=\$HOME'.
1648 For better control, use the options below.
1650 Fine tuning of the installation directories:
1651 --bindir=DIR user executables [EPREFIX/bin]
1652 --sbindir=DIR system admin executables [EPREFIX/sbin]
1653 --libexecdir=DIR program executables [EPREFIX/libexec]
1654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1657 --libdir=DIR object code libraries [EPREFIX/lib]
1658 --includedir=DIR C header files [PREFIX/include]
1659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1660 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1661 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1662 --infodir=DIR info documentation [DATAROOTDIR/info]
1663 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1664 --mandir=DIR man documentation [DATAROOTDIR/man]
1665 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1666 --htmldir=DIR html documentation [DOCDIR]
1667 --dvidir=DIR dvi documentation [DOCDIR]
1668 --pdfdir=DIR pdf documentation [DOCDIR]
1669 --psdir=DIR ps documentation [DOCDIR]
1675 --program-prefix=PREFIX prepend PREFIX to installed program names
1676 --program-suffix=SUFFIX append SUFFIX to installed program names
1677 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1680 --build=BUILD configure for building on BUILD [guessed]
1681 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1685 if test -n "$ac_init_help"; then
1686 case $ac_init_help in
1687 short | recursive ) echo "Configuration of ntp 4.2.8p11:";;
1691 Optional Features and Packages:
1692 --disable-option-checking ignore unrecognized --enable/--with options
1693 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1694 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --enable-silent-rules less verbose build output (undo: "make V=1")
1698 --disable-silent-rules verbose build output (undo: "make V=0")
1699 --enable-dependency-tracking
1700 do not reject slow dependency extractors
1701 --disable-dependency-tracking
1702 speeds up one-time build
1703 --with-hardenfile=XXX os-specific or "/dev/null"
1704 --with-locfile=XXX os-specific or "legacy"
1705 --enable-shared[=PKGS] build shared libraries [default=no]
1706 --enable-static[=PKGS] build static libraries [default=yes]
1707 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1709 --enable-fast-install[=PKGS]
1710 optimize for fast installation [default=yes]
1711 --with-aix-soname=aix|svr4|both
1712 shared library versioning (aka "SONAME") variant to
1713 provide on AIX, [default=aix].
1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1715 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1716 compiler's sysroot if not specified).
1717 --disable-libtool-lock avoid locking (might break parallel builds)
1718 --disable-nls disable nls support in libopts
1719 --enable-local-libopts Use the supplied libopts tearoff code
1720 --enable-libopts-install
1721 Install libopts with client installation
1722 --with-autoopts-config specify the config-info script
1723 --enable-local-libevent Force using the supplied libevent tearoff code
1724 --with-lineeditlibs edit,editline (readline may be specified if desired)
1725 defaults: + yes, - no, s system-specific
1726 --enable-debugging + include ntpd debugging code
1727 --enable-thread-support s use threads (+ if available)
1728 --with-threads with threads [auto]
1729 --with-yielding-select with yielding select [auto]
1730 --enable-c99-snprintf s force replacement
1731 --enable-clockctl s Use /dev/clockctl for non-root clock control
1732 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1733 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1734 --with-arlib - deprecated, arlib not distributed
1735 --with-net-snmp-config + =net-snmp-config
1736 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1737 sandboxing (default is no)
1738 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1739 --with-memlock ? =32 (-1 on linux) megabytes
1740 --enable-debug-timing - include processing time debugging code (costs
1742 --enable-dst-minutes =60 minutes per DST adjustment
1743 --enable-ignore-dns-errors
1744 - retry DNS queries on any error
1745 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1746 --enable-GPSVME - TrueTime GPS receiver/VME interface
1747 --enable-all-clocks + include all suitable non-PARSE clocks:
1748 --enable-ACTS s ACTS modem service
1749 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1750 --enable-ARCRON-MSF + Arcron MSF receiver
1751 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1752 --enable-ATOM s ATOM PPS interface
1753 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1754 --enable-CHU + CHU modem/decoder
1755 --enable-AUDIO-CHU s CHU audio/decoder
1756 --enable-DATUM s Datum Programmable Time System
1757 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1758 --enable-FG + Forum Graphic GPS
1759 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1760 --enable-HOPFSERIAL + hopf serial clock device
1761 --enable-HOPFPCI + hopf 6039 PCI board
1762 --enable-HPGPS + HP 58503A GPS receiver
1763 --enable-IRIG s IRIG audio decoder
1764 --enable-JJY + JJY receiver
1765 --enable-JUPITER s Rockwell Jupiter GPS receiver
1766 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1767 --enable-LOCAL-CLOCK + local clock reference
1768 --enable-MX4200 s Magnavox MX4200 GPS receiver
1769 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1770 --enable-NMEA + NMEA GPS receiver
1771 --enable-GPSD + GPSD JSON receiver
1772 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1773 --enable-PALISADE s Palisade clock
1774 --enable-PCF + Conrad parallel port radio clock
1775 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1776 --enable-RIPENCC - RIPENCC specific Trimble driver
1777 --enable-SHM s SHM clock attached thru shared memory
1778 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1779 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1780 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1781 --enable-TT560 - TrueTime 560 IRIG-B decoder
1782 --enable-ULINK + Ultralink WWVB receiver
1783 --enable-TSYNCPCI s Spectracom TSYNC timing board
1784 --enable-WWV s WWV Audio receiver
1785 --enable-ZYFER + Zyfer GPStarplus receiver
1786 --enable-parse-clocks - include all suitable PARSE clocks:
1787 --enable-COMPUTIME s Diem Computime Radio Clock
1788 --enable-DCF7000 s ELV/DCF7000 clock
1789 --enable-HOPF6021 s HOPF 6021 clock
1790 --enable-MEINBERG s Meinberg clocks
1791 --enable-RAWDCF s DCF77 raw time code
1792 --enable-RCC8000 s RCC 8000 clock
1793 --enable-SCHMID s Schmid DCF77 clock
1794 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1795 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1796 --enable-WHARTON s WHARTON 400A Series clock
1797 --enable-VARITEXT s VARITEXT clock
1798 --enable-SEL240X s SEL240X clock
1799 --with-crypto + =openssl,libcrypto
1801 --with-openssl-libdir + =/something/reasonable
1803 --with-openssl-incdir + =/something/reasonable
1805 --without-rpath s Disable auto-added -R linker paths
1807 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1808 available (default is yes)
1809 --enable-autokey + support NTP Autokey protocol
1810 --enable-kmem s read /dev/kmem for tick and/or tickadj
1811 --enable-accurate-adjtime
1812 s the adjtime() call is accurate
1813 --enable-tick=VALUE s force a value for 'tick'
1814 --enable-tickadj=VALUE s force a value for 'tickadj'
1815 --enable-simulator - build/install the NTPD simulator?
1816 --without-sntp - disable building sntp and sntp/tests
1817 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1818 --enable-slew-always s always slew the time
1819 --enable-step-slew s step and slew the time
1820 --enable-ntpdate-step s if ntpdate should step the time
1821 --enable-hourly-todr-sync
1822 s if we should sync TODR hourly
1823 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1824 --enable-bug1243-fix + use unmodified autokey session keys
1825 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter
1826 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1827 --enable-nist - if we should enable the NIST lockclock scheme
1828 --enable-ntp-signd - Provide support for Samba's signing daemon,
1830 --enable-ipv6 s use IPv6?
1832 --with-kame - =/usr/local/v6
1833 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1834 --enable-saveconfig + saveconfig mechanism
1835 --enable-leap-smear - experimental leap smear code
1836 --enable-dynamic-interleave
1837 - dynamic interleave support
1838 --with-gtest Use the gtest framework (Default: if it's available)
1839 --enable-problem-tests + enable tests with undiagnosed problems
1841 Some influential environment variables:
1842 CC C compiler command
1843 CFLAGS C compiler flags
1844 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1845 nonstandard directory <lib dir>
1846 LIBS libraries to pass to the linker, e.g. -l<library>
1847 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1848 you have headers in a nonstandard directory <include dir>
1850 YACC The `Yet Another Compiler Compiler' implementation to use.
1851 Defaults to the first program found out of: `bison -y', `byacc',
1853 YFLAGS The list of arguments that will be passed by default to $YACC.
1854 This script will default YFLAGS to the empty string to avoid a
1855 default value of `-d' given by some make applications.
1857 User-defined run-time library search path.
1859 Use these variables to override the choices made by `configure' or to help
1860 it to find libraries and programs with nonstandard names/locations.
1862 Report bugs to <http://bugs.ntp.org./>.
1863 ntp home page: <http://www.ntp.org./>.
1868 if test "$ac_init_help" = "recursive"; then
1869 # If there are subdirs, report their specific --help.
1870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1871 test -d "$ac_dir" ||
1872 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1880 # A ".." for each directory in $ac_dir_suffix.
1881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1882 case $ac_top_builddir_sub in
1883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1887 ac_abs_top_builddir=$ac_pwd
1888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1889 # for backward compatibility:
1890 ac_top_builddir=$ac_top_build_prefix
1893 .) # We are building in place.
1895 ac_top_srcdir=$ac_top_builddir_sub
1896 ac_abs_top_srcdir=$ac_pwd ;;
1897 [\\/]* | ?:[\\/]* ) # Absolute name.
1898 ac_srcdir=$srcdir$ac_dir_suffix;
1899 ac_top_srcdir=$srcdir
1900 ac_abs_top_srcdir=$srcdir ;;
1902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1903 ac_top_srcdir=$ac_top_build_prefix$srcdir
1904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1908 cd "$ac_dir" || { ac_status=$?; continue; }
1909 # Check for guested configure.
1910 if test -f "$ac_srcdir/configure.gnu"; then
1912 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1913 elif test -f "$ac_srcdir/configure"; then
1915 $SHELL "$ac_srcdir/configure" --help=recursive
1917 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1919 cd "$ac_pwd" || { ac_status=$?; break; }
1923 test -n "$ac_init_help" && exit $ac_status
1924 if $ac_init_version; then
1926 ntp configure 4.2.8p11
1927 generated by GNU Autoconf 2.69
1929 Copyright (C) 2012 Free Software Foundation, Inc.
1930 This configure script is free software; the Free Software Foundation
1931 gives unlimited permission to copy, distribute and modify it.
1936 ## ------------------------ ##
1937 ## Autoconf initialization. ##
1938 ## ------------------------ ##
1940 # ac_fn_c_try_compile LINENO
1941 # --------------------------
1942 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext
1947 if { { ac_try="$ac_compile"
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_compile") 2>conftest.err
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest.$ac_objext; then :
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1976 } # ac_fn_c_try_compile
1978 # ac_fn_c_try_cpp LINENO
1979 # ----------------------
1980 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } > conftest.i && {
2000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 as_fn_set_status $ac_retval
2015 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2018 # the include files in INCLUDES and setting the cache variable VAR
2020 ac_fn_c_check_header_mongrel ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if eval \${$3+:} false; then :
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2033 # Is the header compilable?
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2035 $as_echo_n "checking $2 usability... " >&6; }
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_header_compiler=yes
2044 ac_header_compiler=no
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2048 $as_echo "$ac_header_compiler" >&6; }
2050 # Is the header present?
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2052 $as_echo_n "checking $2 presence... " >&6; }
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 if ac_fn_c_try_cpp "$LINENO"; then :
2058 ac_header_preproc=yes
2060 ac_header_preproc=no
2062 rm -f conftest.err conftest.i conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2064 $as_echo "$ac_header_preproc" >&6; }
2066 # So? What about this header?
2067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2070 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2076 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2078 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2080 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2082 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085 ( $as_echo "## ------------------------------------ ##
2086 ## Report this to http://bugs.ntp.org./ ##
2087 ## ------------------------------------ ##"
2088 ) | sed "s/^/$as_me: WARNING: /" >&2
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2096 eval "$3=\$ac_header_compiler"
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_header_mongrel
2106 # ac_fn_c_try_run LINENO
2107 # ----------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2109 # that executables *can* be run.
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if { { ac_try="$ac_link"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>&5
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2124 { { case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_try") 2>&5
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; }; }; then :
2136 $as_echo "$as_me: program exited with status $ac_status" >&5
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 ac_retval=$ac_status
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 as_fn_set_status $ac_retval
2148 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2149 # -------------------------------------------------------
2150 # Tests whether HEADER exists and can be compiled using the include files in
2151 # INCLUDES, setting the cache variable VAR accordingly.
2152 ac_fn_c_check_header_compile ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2165 if ac_fn_c_try_compile "$LINENO"; then :
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_header_compile
2179 # ac_fn_c_try_link LINENO
2180 # -----------------------
2181 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext conftest$ac_exeext
2186 if { { ac_try="$ac_link"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_link") 2>conftest.err
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_c_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest$ac_exeext && {
2205 test "$cross_compiling" = yes ||
2206 test -x conftest$ac_exeext
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217 # interfere with the next link command; also delete a directory that is
2218 # left behind by Apple's compiler. We do this before executing the actions.
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2223 } # ac_fn_c_try_link
2225 # ac_fn_c_check_func LINENO FUNC VAR
2226 # ----------------------------------
2227 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2228 ac_fn_c_check_func ()
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2240 #define $2 innocuous_$2
2242 /* System header to define __stub macros and hopefully few prototypes,
2243 which can conflict with char $2 (); below.
2244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2245 <limits.h> exists even on freestanding compilers. */
2248 # include <limits.h>
2250 # include <assert.h>
2255 /* Override any GCC internal prototype to avoid an error.
2256 Use char because int might match the return type of a GCC
2257 builtin and then its argument prototype would still apply. */
2262 /* The GNU C library defines this for functions which it implements
2263 to always fail with ENOSYS. Some functions are actually named
2264 something starting with __ and the normal name is an alias. */
2265 #if defined __stub_$2 || defined __stub___$2
2277 if ac_fn_c_try_link "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext \
2283 conftest$ac_exeext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 } # ac_fn_c_check_func
2292 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2293 # -------------------------------------------
2294 # Tests whether TYPE exists after having included INCLUDES, setting cache
2295 # variable VAR accordingly.
2296 ac_fn_c_check_type ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341 $as_echo "$ac_res" >&6; }
2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2344 } # ac_fn_c_check_type
2346 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2347 # --------------------------------------------
2348 # Tries to find the compile-time value of EXPR in a program that includes
2349 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2351 ac_fn_c_compute_int ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 if test "$cross_compiling" = yes; then
2355 # Depending upon the size, compute the lo and hi bounds.
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) >= 0)];
2364 return test_array [0];
2370 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2379 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2381 return test_array [0];
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388 ac_hi=$ac_mid; break
2390 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2391 if test $ac_lo -le $ac_mid; then
2395 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2406 static int test_array [1 - 2 * !(($2) < 0)];
2408 return test_array [0];
2414 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2423 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2425 return test_array [0];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=$ac_mid; break
2434 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435 if test $ac_mid -le $ac_hi; then
2439 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 # Binary search between lo and hi bounds.
2450 while test "x$ac_lo" != "x$ac_hi"; do
2451 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2460 return test_array [0];
2466 if ac_fn_c_try_compile "$LINENO"; then :
2469 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2481 static long int longval () { return $2; }
2482 static unsigned long int ulongval () { return $2; }
2489 FILE *f = fopen ("conftest.val", "w");
2494 long int i = longval ();
2497 fprintf (f, "%ld", i);
2501 unsigned long int i = ulongval ();
2504 fprintf (f, "%lu", i);
2506 /* Do not output a trailing newline, as this causes \r\n confusion
2507 on some platforms. */
2508 return ferror (f) || fclose (f) != 0;
2514 if ac_fn_c_try_run "$LINENO"; then :
2515 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2520 conftest.$ac_objext conftest.beam conftest.$ac_ext
2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 as_fn_set_status $ac_retval
2527 } # ac_fn_c_compute_int
2529 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2530 # ---------------------------------------------
2531 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2533 ac_fn_c_check_decl ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 as_decl_name=`echo $2|sed 's/ *(.*//'`
2537 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2539 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2549 #ifndef $as_decl_name
2551 (void) $as_decl_use;
2553 (void) $as_decl_name;
2561 if ac_fn_c_try_compile "$LINENO"; then :
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573 } # ac_fn_c_check_decl
2575 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2576 # ----------------------------------------------------
2577 # Tries to find if the field MEMBER exists in type AGGR, after including
2578 # INCLUDES, setting cache variable VAR accordingly.
2579 ac_fn_c_check_member ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2583 $as_echo_n "checking for $2.$3... " >&6; }
2584 if eval \${$4+:} false; then :
2585 $as_echo_n "(cached) " >&6
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2600 if ac_fn_c_try_compile "$LINENO"; then :
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2610 if (sizeof ac_aggr.$3)
2616 if ac_fn_c_try_compile "$LINENO"; then :
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627 $as_echo "$ac_res" >&6; }
2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 } # ac_fn_c_check_member
2631 cat >config.log <<_ACEOF
2632 This file contains any messages produced by compilers while
2633 running configure, to aid debugging if configure makes a mistake.
2635 It was created by ntp $as_me 4.2.8p11, which was
2636 generated by GNU Autoconf 2.69. Invocation command line was
2648 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2649 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2650 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2651 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2652 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2654 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2655 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2657 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2658 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2659 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2660 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2661 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2662 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2663 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 $as_echo "PATH: $as_dir"
2688 # Keep a trace of the command line.
2689 # Strip out --no-create and --no-recursion so they do not pile up.
2690 # Strip out --silent because we don't want to record it for future runs.
2691 # Also quote any args containing shell meta-characters.
2692 # Make two passes to allow for proper duplicate-argument suppression.
2696 ac_must_keep_next=false
2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704 | -silent | --silent | --silen | --sile | --sil)
2707 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2712 as_fn_append ac_configure_args1 " '$ac_arg'"
2713 if test $ac_must_keep_next = true; then
2714 ac_must_keep_next=false # Got value, back to normal.
2717 *=* | --config-cache | -C | -disable-* | --disable-* \
2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720 | -with-* | --with-* | -without-* | --without-* | --x)
2721 case "$ac_configure_args0 " in
2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2725 -* ) ac_must_keep_next=true ;;
2728 as_fn_append ac_configure_args " '$ac_arg'"
2733 { ac_configure_args0=; unset ac_configure_args0;}
2734 { ac_configure_args1=; unset ac_configure_args1;}
2736 # When interrupted or exit'd, cleanup temporary files, and complete
2737 # config.log. We remove comments because anyway the quotes in there
2738 # would cause problems or look ugly.
2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741 trap 'exit_status=$?
2742 # Save into config.log some information that might help in debugging.
2746 $as_echo "## ---------------- ##
2747 ## Cache variables. ##
2748 ## ---------------- ##"
2750 # The following way of writing the cache mishandles newlines in values,
2752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2753 eval ac_val=\$$ac_var
2757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 _ | IFS | as_nl) ;; #(
2762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2763 *) { eval $ac_var=; unset $ac_var;} ;;
2768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2769 *${as_nl}ac_space=\ *)
2771 "s/'\''/'\''\\\\'\'''\''/g;
2772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 $as_echo "## ----------------- ##
2783 ## Output variables. ##
2784 ## ----------------- ##"
2786 for ac_var in $ac_subst_vars
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2796 if test -n "$ac_subst_files"; then
2797 $as_echo "## ------------------- ##
2798 ## File substitutions. ##
2799 ## ------------------- ##"
2801 for ac_var in $ac_subst_files
2803 eval ac_val=\$$ac_var
2805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -s confdefs.h; then
2813 $as_echo "## ----------- ##
2820 test "$ac_signal" != 0 &&
2821 $as_echo "$as_me: caught signal $ac_signal"
2822 $as_echo "$as_me: exit $exit_status"
2824 rm -f core *.core core.conftest.* &&
2825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 for ac_signal in 1 2 13 15; do
2829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2834 rm -f -r conftest* confdefs.h
2836 $as_echo "/* confdefs.h */" > confdefs.h
2838 # Predefined preprocessor variables.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_NAME "$PACKAGE_NAME"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_STRING "$PACKAGE_STRING"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_URL "$PACKAGE_URL"
2865 # Let the site file select an alternate cache file if it wants to.
2866 # Prefer an explicitly selected file to automatically selected ones.
2869 if test -n "$CONFIG_SITE"; then
2870 # We do not want a PATH search for config.site.
2871 case $CONFIG_SITE in #((
2872 -*) ac_site_file1=./$CONFIG_SITE;;
2873 */*) ac_site_file1=$CONFIG_SITE;;
2874 *) ac_site_file1=./$CONFIG_SITE;;
2876 elif test "x$prefix" != xNONE; then
2877 ac_site_file1=$prefix/share/config.site
2878 ac_site_file2=$prefix/etc/config.site
2880 ac_site_file1=$ac_default_prefix/share/config.site
2881 ac_site_file2=$ac_default_prefix/etc/config.site
2883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2885 test "x$ac_site_file" = xNONE && continue
2886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889 sed 's/^/| /' "$ac_site_file" >&5
2891 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error $? "failed to load site script $ac_site_file
2894 See \`config.log' for more details" "$LINENO" 5; }
2898 if test -r "$cache_file"; then
2899 # Some versions of bash will fail to source /dev/null (special files
2900 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2901 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2903 $as_echo "$as_me: loading cache $cache_file" >&6;}
2905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2906 *) . "./$cache_file";;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2911 $as_echo "$as_me: creating cache $cache_file" >&6;}
2915 as_fn_append ac_header_list " stdarg.h"
2916 # Check that the precious variables saved in the cache have kept the same
2918 ac_cache_corrupted=false
2919 for ac_var in $ac_precious_vars; do
2920 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2921 eval ac_new_set=\$ac_env_${ac_var}_set
2922 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2923 eval ac_new_val=\$ac_env_${ac_var}_value
2924 case $ac_old_set,$ac_new_set in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2927 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2928 ac_cache_corrupted=: ;;
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2931 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2932 ac_cache_corrupted=: ;;
2935 if test "x$ac_old_val" != "x$ac_new_val"; then
2936 # differences in whitespace do not lead to failure.
2937 ac_old_val_w=`echo x $ac_old_val`
2938 ac_new_val_w=`echo x $ac_new_val`
2939 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2942 ac_cache_corrupted=:
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2945 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2946 eval $ac_var=\$ac_old_val
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2949 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2951 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2954 # Pass precious variables to config.status.
2955 if test "$ac_new_set" = set; then
2957 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2958 *) ac_arg=$ac_var=$ac_new_val ;;
2960 case " $ac_configure_args " in
2961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2962 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2966 if $ac_cache_corrupted; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2971 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2973 ## -------------------- ##
2974 ## Main body of script. ##
2975 ## -------------------- ##
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
2987 if test -f "$ac_dir/install-sh"; then
2989 ac_install_sh="$ac_aux_dir/install-sh -c"
2991 elif test -f "$ac_dir/install.sh"; then
2993 ac_install_sh="$ac_aux_dir/install.sh -c"
2995 elif test -f "$ac_dir/shtool"; then
2997 ac_install_sh="$ac_aux_dir/shtool install -c"
3001 if test -z "$ac_aux_dir"; then
3002 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3005 # These three variables are undocumented and unsupported,
3006 # and are intended to be withdrawn in a future Autoconf release.
3007 # They can cause serious problems if a builder's source tree is in a directory
3008 # whose full name contains unusual characters.
3009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 # Bump ntp_configure_cache_version for each change to configure.ac or
3026 # .m4 files which invalidates cached values from previous configure
3029 # If the change affects cache variables used only by the main NTP
3030 # configure.ac, then only its version number should be bumped, while
3031 # the subdir configure.ac version numbers should be unchanged. The
3032 # same is true for a test/variable that is used only by one subdir
3033 # being changed incompatibly; only that subdir's cache version needs
3036 # If a change affects variables shared by all NTP configure scripts,
3037 # please bump the version numbers of each. If you are not sure, the
3038 # safe choice is to bump all on any cache-invalidating change.
3040 # In order to avoid the risk of version stamp collision between -stable
3041 # and -dev branches, do not simply increment the version, instead use
3042 # the date YYYYMMDD optionally with -HHMM if there is more than one
3045 ntp_configure_cache_version=20120806
3047 # When the cache version of config.cache and configure do not
3048 # match, NTP_CACHEVERSION will flush the cache.
3054 case "$ntp_cv_main_cache_version" in
3055 $ntp_configure_cache_version)
3056 # same version, good
3060 # No cache, predates ntp_cv_main_cache_version, or is empty.
3061 case "$cache_file" in
3066 case "$NTP_CACHEVERSION_PARENT" in
3068 # Do not clear the cache immediately after it is created
3069 # empty as it is noisy. Differentiate a newly-created
3070 # config.cache from one predating the cache version
3071 # mechanism by looking for the first cached variable set
3073 case "$ac_cv_path_install" in
3075 # empty config.cache file
3080 # Parent configure just created cache from empty,
3081 # flushing would be counterproductive.
3088 # configure cache version mismatches config.cache version
3092 case "$ntp_cache_flush" in
3094 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3096 # Do we flush all variables or exclude others' version stamps?
3098 case "$NTP_CACHEVERSION_PARENT" in
3100 # Clear all *_cv_* variables including our child subdirs'
3101 # ntp_cv_*_cache_version variables. This prevents subdir
3102 # configure scripts from noticing a version mismatch just
3103 # after the top configure in the invocation cleared and
3104 # recreated the cache.
3106 c_varname_list=`set |
3107 sed -n -e 's/=.*$//' \
3112 # This is not the top configure this particular invocation.
3113 # Clear all *_cv_* variables sparing the version stamps
3114 # of other configure scripts, so we don't trigger
3115 # useless repeated clearings.
3117 c_varname_list=`set |
3118 sed -n -e 's/=.*$//' \
3119 -e '/ntp_cv_.*_cache_version/d' \
3124 for c_varname in $c_varname_list
3126 { eval $c_varname=; unset $c_varname; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3130 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3132 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3134 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3135 { c_varname=; unset c_varname;}
3136 { c_varname_list=; unset c_varname_list;}
3137 { c_version=; unset c_version;}
3140 { ntp_cache_flush=; unset ntp_cache_flush;}
3142 # save configure version in config.cache for next time
3143 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3145 # let any subdir configure.ac NTP_CACHEVERSION invocations
3146 # know they are not the top level.
3147 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3150 am__api_version='1.15'
3152 # Find a good install program. We prefer a C program (faster),
3153 # so one script is as good as another. But avoid the broken or
3154 # incompatible versions:
3155 # SysV /etc/install, /usr/sbin/install
3156 # SunOS /usr/etc/install
3157 # IRIX /sbin/install
3159 # AmigaOS /C/install, which installs bootblocks on floppy discs
3160 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3163 # OS/2's system install, which has a completely different semantic
3164 # ./install, which can be erroneously created by make from ./install.sh.
3165 # Reject install programs that cannot install multiple files.
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3167 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3168 if test -z "$INSTALL"; then
3169 if ${ac_cv_path_install+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 # Account for people who put trailing slashes in PATH elements.
3178 case $as_dir/ in #((
3179 ./ | .// | /[cC]/* | \
3180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3181 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3184 # OSF1 and SCO ODT 3.0 have their own names for install.
3185 # Don't use installbsd from OSF since it installs stuff as root
3187 for ac_prog in ginstall scoinst install; do
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3190 if test $ac_prog = install &&
3191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192 # AIX install. It has an incompatible calling convention.
3194 elif test $ac_prog = install &&
3195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196 # program-specific install script used by HP pwplus--don't use.
3199 rm -rf conftest.one conftest.two conftest.dir
3200 echo one > conftest.one
3201 echo two > conftest.two
3203 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3204 test -s conftest.one && test -s conftest.two &&
3205 test -s conftest.dir/conftest.one &&
3206 test -s conftest.dir/conftest.two
3208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3221 rm -rf conftest.one conftest.two conftest.dir
3224 if test "${ac_cv_path_install+set}" = set; then
3225 INSTALL=$ac_cv_path_install
3227 # As a last resort, use the slow shell script. Don't cache a
3228 # value for INSTALL within a source directory, because that will
3229 # break other packages using the cache if that directory is
3230 # removed, or if the value is a relative name.
3231 INSTALL=$ac_install_sh
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3235 $as_echo "$INSTALL" >&6; }
3237 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3238 # It thinks the first close brace ends the variable substitution.
3239 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3241 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3243 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3246 $as_echo_n "checking whether build environment is sane... " >&6; }
3247 # Reject unsafe characters in $srcdir or the absolute working directory
3248 # name. Accept space and tab only in the latter.
3252 *[\\\"\#\$\&\'\`$am_lf]*)
3253 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3256 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3257 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3260 # Do 'set' in a subshell so we don't clobber the current shell's
3261 # arguments. Must try -L first in case configure is actually a
3262 # symlink; some systems play weird games with the mod time of symlinks
3263 # (eg FreeBSD returns the mod time of the symlink's containing
3267 for am_try in 1 2; do
3268 echo "timestamp, slept: $am_has_slept" > conftest.file
3269 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3270 if test "$*" = "X"; then
3272 set X `ls -t "$srcdir/configure" conftest.file`
3274 if test "$*" != "X $srcdir/configure conftest.file" \
3275 && test "$*" != "X conftest.file $srcdir/configure"; then
3277 # If neither matched, then we have a broken ls. This can happen
3278 # if, for instance, CONFIG_SHELL is bash and it inherits a
3279 # broken ls alias from the environment. This has actually
3280 # happened. Such a system could not be considered "sane".
3281 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3282 alias in your environment" "$LINENO" 5
3284 if test "$2" = conftest.file || test $am_try -eq 2; then
3291 test "$2" = conftest.file
3297 as_fn_error $? "newly created file is older than distributed files!
3298 Check your system clock" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302 # If we didn't sleep, we still need to ensure time stamps of config.status and
3303 # generated files are strictly newer.
3305 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3312 test "$program_prefix" != NONE &&
3313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3314 # Use a double $ so make ignores it.
3315 test "$program_suffix" != NONE &&
3316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3317 # Double any \ or $.
3318 # By default was `s,x,x', remove it if useless.
3319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3322 # Expand $ac_aux_dir to an absolute path.
3323 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3325 if test x"${MISSING+set}" != xset; then
3328 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3330 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3333 # Use eval to expand $SHELL
3334 if eval "$MISSING --is-lightweight"; then
3335 am_missing_run="$MISSING "
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3339 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3342 if test x"${install_sh+set}" != xset; then
3345 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3347 install_sh="\${SHELL} $am_aux_dir/install-sh"
3351 # Installed binaries are usually stripped using 'strip' when the user
3352 # run "make install-strip". However 'strip' might not be the right
3353 # tool to use in cross-compilation environments, therefore Automake
3354 # will honor the 'STRIP' environment variable to overrule this program.
3355 if test "$cross_compiling" != no; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}strip; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_STRIP+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$STRIP"; then
3365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 STRIP=$ac_cv_prog_STRIP
3385 if test -n "$STRIP"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3387 $as_echo "$STRIP" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3395 if test -z "$ac_cv_prog_STRIP"; then
3397 # Extract the first word of "strip", so it can be a program name with args.
3398 set dummy strip; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$ac_ct_STRIP"; then
3405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_STRIP="strip"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3425 if test -n "$ac_ct_STRIP"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3427 $as_echo "$ac_ct_STRIP" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3433 if test "x$ac_ct_STRIP" = x; then
3436 case $cross_compiling:$ac_tool_warned in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3445 STRIP="$ac_cv_prog_STRIP"
3449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3452 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3453 if test -z "$MKDIR_P"; then
3454 if ${ac_cv_path_mkdir+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3461 test -z "$as_dir" && as_dir=.
3462 for ac_prog in mkdir gmkdir; do
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3465 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3466 'mkdir (GNU coreutils) '* | \
3467 'mkdir (coreutils) '* | \
3468 'mkdir (fileutils) '4.1*)
3469 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3479 test -d ./--version && rmdir ./--version
3480 if test "${ac_cv_path_mkdir+set}" = set; then
3481 MKDIR_P="$ac_cv_path_mkdir -p"
3483 # As a last resort, use the slow shell script. Don't cache a
3484 # value for MKDIR_P within a source directory, because that will
3485 # break other packages using the cache if that directory is
3486 # removed, or if the value is a relative name.
3487 MKDIR_P="$ac_install_sh -d"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3491 $as_echo "$MKDIR_P" >&6; }
3493 for ac_prog in gawk mawk nawk awk
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_AWK+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$AWK"; then
3503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_AWK="$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$AWK"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3525 $as_echo "$AWK" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$AWK" && break
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3536 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3538 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3539 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 cat >conftest.make <<\_ACEOF
3545 @echo '@@@%%%=$(MAKE)=@@@%%%'
3547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3548 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3550 eval ac_cv_prog_make_${ac_make}_set=yes;;
3552 eval ac_cv_prog_make_${ac_make}_set=no;;
3556 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 SET_MAKE="MAKE=${MAKE-make}"
3566 rm -rf .tst 2>/dev/null
3567 mkdir .tst 2>/dev/null
3568 if test -d .tst; then
3573 rmdir .tst 2>/dev/null
3575 # Check whether --enable-silent-rules was given.
3576 if test "${enable_silent_rules+set}" = set; then :
3577 enableval=$enable_silent_rules;
3580 case $enable_silent_rules in # (((
3581 yes) AM_DEFAULT_VERBOSITY=0;;
3582 no) AM_DEFAULT_VERBOSITY=1;;
3583 *) AM_DEFAULT_VERBOSITY=1;;
3585 am_make=${MAKE-make}
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3587 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3588 if ${am_cv_make_support_nested_variables+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 if $as_echo 'TRUE=$(BAR$(V))
3597 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3598 am_cv_make_support_nested_variables=yes
3600 am_cv_make_support_nested_variables=no
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3604 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3605 if test $am_cv_make_support_nested_variables = yes; then
3607 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3609 AM_V=$AM_DEFAULT_VERBOSITY
3610 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3614 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3615 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3616 # is not polluted with repeated "-I."
3617 am__isrc=' -I$(srcdir)'
3618 # test to see if srcdir already configured
3619 if test -f $srcdir/config.status; then
3620 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3624 # test whether we have cygpath
3625 if test -z "$CYGPATH_W"; then
3626 if (cygpath --version) >/dev/null 2>/dev/null; then
3627 CYGPATH_W='cygpath -w'
3634 # Define the identity of the package.
3639 cat >>confdefs.h <<_ACEOF
3640 #define PACKAGE "$PACKAGE"
3644 cat >>confdefs.h <<_ACEOF
3645 #define VERSION "$VERSION"
3648 # Some tools Automake needs.
3650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3664 # For better backward compatibility. To be removed once Automake 1.9.x
3665 # dies out for good. For more background, see:
3666 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3667 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3668 mkdir_p='$(MKDIR_P)'
3670 # We need awk for the "check" target (and possibly the TAP driver). The
3671 # system "awk" is bad on some platforms.
3672 # Always define AMTAR for backward compatibility. Yes, it's still used
3673 # in the wild :-( We should find a proper way to deprecate it ...
3677 # We'll loop over all known methods to create a tar archive until one works.
3678 _am_tools='gnutar pax cpio none'
3680 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3687 # POSIX will say in a future version that running "rm -f" with no argument
3688 # is OK; and we want to be able to make that assumption in our Makefile
3689 # recipes. So use an aggressive probe to check that the usage we want is
3690 # actually supported "in the wild" to an acceptable degree.
3691 # See automake bug#10828.
3692 # To make any issue more visible, cause the running configure to be aborted
3693 # by default if the 'rm' program in use doesn't match our expectations; the
3694 # user can still override this though.
3695 if rm -f && rm -fr && rm -rf; then : OK; else
3699 Your 'rm' program seems unable to run without file operands specified
3700 on the command line, even when the '-f' option is present. This is contrary
3701 to the behaviour of most rm programs out there, and not conforming with
3702 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3704 Please tell bug-automake@gnu.org about your system, including the value
3705 of your $PATH and any error possibly output before this message. This
3706 can help us improve future automake versions.
3709 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3710 echo 'Configuration will proceed anyway, since you have set the' >&2
3711 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3715 Aborting the configuration process, to ensure you take notice of the issue.
3717 You can download and install GNU coreutils to get an 'rm' implementation
3718 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3720 If you want to complete the configuration process using your problematic
3721 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3722 to "yes", and re-run configure.
3725 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3730 # Check whether --enable-silent-rules was given.
3731 if test "${enable_silent_rules+set}" = set; then :
3732 enableval=$enable_silent_rules;
3735 case $enable_silent_rules in # (((
3736 yes) AM_DEFAULT_VERBOSITY=0;;
3737 no) AM_DEFAULT_VERBOSITY=1;;
3738 *) AM_DEFAULT_VERBOSITY=0;;
3740 am_make=${MAKE-make}
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3742 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3743 if ${am_cv_make_support_nested_variables+:} false; then :
3744 $as_echo_n "(cached) " >&6
3746 if $as_echo 'TRUE=$(BAR$(V))
3752 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3753 am_cv_make_support_nested_variables=yes
3755 am_cv_make_support_nested_variables=no
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3759 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3760 if test $am_cv_make_support_nested_variables = yes; then
3762 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3764 AM_V=$AM_DEFAULT_VERBOSITY
3765 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3770 # Make sure we can run config.sub.
3771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3772 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3775 $as_echo_n "checking build system type... " >&6; }
3776 if ${ac_cv_build+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 ac_build_alias=$build_alias
3780 test "x$ac_build_alias" = x &&
3781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3782 test "x$ac_build_alias" = x &&
3783 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3789 $as_echo "$ac_cv_build" >&6; }
3790 case $ac_cv_build in
3792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3795 ac_save_IFS=$IFS; IFS='-'
3801 # Remember, the first character of IFS is used to create $*,
3802 # except with old shells:
3805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3809 $as_echo_n "checking host system type... " >&6; }
3810 if ${ac_cv_host+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 if test "x$host_alias" = x; then
3814 ac_cv_host=$ac_cv_build
3816 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3822 $as_echo "$ac_cv_host" >&6; }
3825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3828 ac_save_IFS=$IFS; IFS='-'
3834 # Remember, the first character of IFS is used to create $*,
3835 # except with old shells:
3838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3842 cat >>confdefs.h <<_ACEOF
3843 #define STR_SYSTEM "$host"
3846 ac_config_headers="$ac_config_headers config.h"
3849 ntp_atom_ok=${ntp_atom_ok=no}
3850 ntp_oncore_ok=${ntp_oncore_ok=no}
3851 ntp_parse_ok=${ntp_parse_ok=no}
3852 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3853 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3855 DEPDIR="${am__leading_dot}deps"
3857 ac_config_commands="$ac_config_commands depfiles"
3860 am_make=${MAKE-make}
3861 cat > confinc << 'END'
3863 @echo this is the am__doit target
3866 # If we don't find an include directive, just comment out the code.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3868 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3872 # First try GNU make style include.
3873 echo "include confinc" > confmf
3874 # Ignore all kinds of additional output from 'make'.
3875 case `$am_make -s -f confmf 2> /dev/null` in #(
3876 *the\ am__doit\ target*)
3882 # Now try BSD make style include.
3883 if test "$am__include" = "#"; then
3884 echo '.include "confinc"' > confmf
3885 case `$am_make -s -f confmf 2> /dev/null` in #(
3886 *the\ am__doit\ target*)
3887 am__include=.include
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3896 $as_echo "$_am_result" >&6; }
3897 rm -f confinc confmf
3899 # Check whether --enable-dependency-tracking was given.
3900 if test "${enable_dependency_tracking+set}" = set; then :
3901 enableval=$enable_dependency_tracking;
3904 if test "x$enable_dependency_tracking" != xno; then
3905 am_depcomp="$ac_aux_dir/depcomp"
3909 if test "x$enable_dependency_tracking" != xno; then
3929 #AC_USE_SYSTEM_EXTENSIONS
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in $cclist
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_CC+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$CC" && break
3979 if test -z "$CC"; then
3981 for ac_prog in $cclist
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$ac_ct_CC" && break
4023 if test "x$ac_ct_CC" = x; then
4026 case $cross_compiling:$ac_tool_warned in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "no acceptable C compiler found in \$PATH
4040 See \`config.log' for more details" "$LINENO" 5; }
4042 # Provide some information about the compiler.
4043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 for ac_option in --version -v -V -qversion; do
4047 { { ac_try="$ac_compiler $ac_option >&5"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4056 if test -s conftest.err; then
4058 ... rest of stderr output deleted ...
4059 10q' conftest.err >conftest.er1
4060 cat conftest.er1 >&5
4062 rm -f conftest.er1 conftest.err
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 ac_clean_files_save=$ac_clean_files
4079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080 # Try to create an executable without -o first, disregard a.out.
4081 # It will help us diagnose broken compilers, and finding out an intuition
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084 $as_echo_n "checking whether the C compiler works... " >&6; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091 for ac_file in $ac_files
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4100 if { { ac_try="$ac_link_default"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link_default") 2>&5
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4114 # so that the user can short-circuit this test for compilers unknown to
4116 for ac_file in $ac_files ''
4118 test -f "$ac_file" || continue
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 # We found the default executable, but exeext='' is most
4127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4131 # We set ac_cv_exeext here because the later test for it is not
4132 # safe: cross compilers may not add the suffix if given an `-o'
4133 # argument, so we may need to know it at that point already.
4134 # Even if this section looks crufty: it has the advantage of
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146 if test -z "$ac_file"; then :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161 $as_echo_n "checking for C compiler default output file name... " >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163 $as_echo "$ac_file" >&6; }
4164 ac_exeext=$ac_cv_exeext
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169 $as_echo_n "checking for suffix of executables... " >&6; }
4170 if { { ac_try="$ac_link"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_link") 2>&5
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }; then :
4181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4185 for ac_file in conftest.exe conftest conftest.*; do
4186 test -f "$ac_file" || continue
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4200 rm -f conftest conftest$ac_cv_exeext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202 $as_echo "$ac_cv_exeext" >&6; }
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4213 FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4220 ac_clean_files="$ac_clean_files conftest.out"
4221 # Check that the compiler produces executables we can run. If not, either
4222 # the compiler is broken, or we cross compile.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224 $as_echo_n "checking whether we are cross compiling... " >&6; }
4225 if test "$cross_compiling" != yes; then
4226 { { ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 if { ac_try='./conftest$ac_cv_exeext'
4238 { { case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_try") 2>&5
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; }; then
4250 if test "$cross_compiling" = maybe; then
4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_clean_files=$ac_clean_files_save
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if ${ac_cv_objext+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details" "$LINENO" 5; }
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if ${ac_cv_c_compiler_gnu+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if ${ac_cv_prog_cc_g+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4405 if ac_fn_c_try_compile "$LINENO"; then :
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4426 if test "$GCC" = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if ${ac_cv_prog_cc_c89+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_prog_cc_c89=no
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4445 struct buf { int x; };
4446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447 static char *e (p, i)
4453 static char *f (char * (*g) (char **, int), char **p, ...)
4458 s = g (p, va_arg (v,int));
4463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4464 function prototypes and stuff, but not '\xHH' hex character constants.
4465 These don't provoke an error unfortunately, instead are silently treated
4466 as 'x'. The following induces an error, until -std is added to get
4467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4468 array size at least. It's necessary to write '\x00'==0 to get something
4469 that's true only with -std. */
4470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473 inside strings and character constants. */
4475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477 int test (int i, double x);
4478 struct s1 {int (*f) (int a);};
4479 struct s2 {int (*f) (double a);};
4480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 CC="$ac_save_CC $ac_arg"
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_prog_cc_c89=$ac_arg
4498 rm -f core conftest.err conftest.$ac_objext
4499 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 rm -f conftest.$ac_ext
4506 case "x$ac_cv_prog_cc_c89" in
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509 $as_echo "none needed" >&6; } ;;
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 $as_echo "unsupported" >&6; } ;;
4514 CC="$CC $ac_cv_prog_cc_c89"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 if test "x$ac_cv_prog_cc_c89" != xno; then :
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535 if ${am_cv_prog_cc_c_o+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4549 # Make sure it works both with $CC and with simple cc.
4550 # Following AC_PROG_CC_C_O, we do the test twice because some
4551 # compilers refuse to overwrite an existing .o file with -o,
4552 # though they will create one.
4553 am_cv_prog_cc_c_o=yes
4555 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } \
4560 && test -f conftest2.$ac_objext; then
4563 am_cv_prog_cc_c_o=no
4567 rm -f core conftest*
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4572 if test "$am_cv_prog_cc_c_o" != yes; then
4573 # Losing compiler, so override with the script.
4574 # FIXME: It is wrong to rewrite CC.
4575 # But if we don't then we get into trouble of one sort or another.
4576 # A longer-term fix would be to have automake use am__CC in this case,
4577 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578 CC="$am_aux_dir/compile $CC"
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 depcc="$CC" am_compiler_list=
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590 $as_echo_n "checking dependency style of $depcc... " >&6; }
4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595 # We make a subdir and do the tests there. Otherwise we can end up
4596 # making bogus files that we don't know about and never remove. For
4597 # instance it was reported that on HP-UX the gcc test will end up
4598 # making a dummy file named 'D' -- because '-MD' means "put the output
4602 # Copy depcomp to subdir because otherwise we won't find it if we're
4603 # using a relative directory.
4604 cp "$am_depcomp" conftest.dir
4606 # We will build objects and dependencies in a subdirectory because
4607 # it helps to detect inapplicable dependency modes. For instance
4608 # both Tru64's cc and ICC support -MD to output dependencies as a
4609 # side effect of compilation, but ICC will put the dependencies in
4610 # the current directory while Tru64 will put them in the object
4614 am_cv_CC_dependencies_compiler_type=none
4615 if test "$am_compiler_list" = ""; then
4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4619 case " $depcc " in #(
4620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4623 for depmode in $am_compiler_list; do
4624 # Setup a source with many dependencies, because some compilers
4625 # like to wrap large dependency lists on column 80 (with \), and
4626 # we should not choose a depcomp mode which is confused by this.
4628 # We need to recreate these files for each test, as the compiler may
4629 # overwrite some of them when testing with obscure command lines.
4630 # This happens at least with the AIX C compiler.
4632 for i in 1 2 3 4 5 6; do
4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635 # Solaris 10 /bin/sh.
4636 echo '/* dummy */' > sub/conftst$i.h
4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4640 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641 # mode. It turns out that the SunPro C++ compiler does not properly
4642 # handle '-M -o', and we need to detect this. Also, some Intel
4643 # versions had trouble with output in subdirs.
4644 am__obj=sub/conftest.${OBJEXT-o}
4645 am__minus_obj="-o $am__obj"
4648 # This depmode causes a compiler race in universal mode.
4649 test "$am__universal" = false || continue
4652 # After this tag, mechanisms are not by side-effect, so they'll
4653 # only be used when explicitly requested.
4654 if test "x$enable_dependency_tracking" = xyes; then
4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661 # This compiler won't grok '-c -o', but also, the minuso test has
4662 # not run yet. These depmodes are late enough in the game, and
4663 # so weak that their functioning should not be impacted.
4664 am__obj=conftest.${OBJEXT-o}
4669 if depmode=$depmode \
4670 source=sub/conftest.c object=$am__obj \
4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673 >/dev/null 2>conftest.err &&
4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678 # icc doesn't choke on unknown options, it will just issue warnings
4679 # or remarks (even with -Werror). So we grep stderr for any message
4680 # that says an option was ignored or not supported.
4681 # When given -MP, icc 7.0 and 7.1 complain thusly:
4682 # icc: Command line warning: ignoring option '-M'; no argument required
4683 # The diagnosis changed in icc 8.0:
4684 # icc: Command line remark: option '-MP' not supported
4685 if (grep 'ignoring option' conftest.err ||
4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687 am_cv_CC_dependencies_compiler_type=$depmode
4696 am_cv_CC_dependencies_compiler_type=none
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4705 test "x$enable_dependency_tracking" != xno \
4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4708 am__fastdepCC_FALSE='#'
4710 am__fastdepCC_TRUE='#'
4711 am__fastdepCC_FALSE=
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4724 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4725 # On Suns, sometimes $CPP names a directory.
4726 if test -n "$CPP" && test -d "$CPP"; then
4729 if test -z "$CPP"; then
4730 if ${ac_cv_prog_CPP+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 # Double quotes because CPP needs to be expanded
4734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4737 for ac_c_preproc_warn_flag in '' yes
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4748 # include <limits.h>
4750 # include <assert.h>
4754 if ac_fn_c_try_cpp "$LINENO"; then :
4757 # Broken: fails on valid input.
4760 rm -f conftest.err conftest.i conftest.$ac_ext
4762 # OK, works on sane cases. Now check whether nonexistent headers
4763 # can be detected and how.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <ac_nonexistent.h>
4768 if ac_fn_c_try_cpp "$LINENO"; then :
4769 # Broken: success on invalid input.
4772 # Passes both tests.
4776 rm -f conftest.err conftest.i conftest.$ac_ext
4779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780 rm -f conftest.i conftest.err conftest.$ac_ext
4781 if $ac_preproc_ok; then :
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4794 $as_echo "$CPP" >&6; }
4796 for ac_c_preproc_warn_flag in '' yes
4798 # Use a header file that comes with gcc, so configuring glibc
4799 # with a fresh cross-compiler works.
4800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801 # <limits.h> exists even on freestanding compilers.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4807 # include <limits.h>
4809 # include <assert.h>
4813 if ac_fn_c_try_cpp "$LINENO"; then :
4816 # Broken: fails on valid input.
4819 rm -f conftest.err conftest.i conftest.$ac_ext
4821 # OK, works on sane cases. Now check whether nonexistent headers
4822 # can be detected and how.
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 #include <ac_nonexistent.h>
4827 if ac_fn_c_try_cpp "$LINENO"; then :
4828 # Broken: success on invalid input.
4831 # Passes both tests.
4835 rm -f conftest.err conftest.i conftest.$ac_ext
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.i conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then :
4843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4845 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4846 See \`config.log' for more details" "$LINENO" 5; }
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4858 if ${ac_cv_path_GREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -z "$GREP"; then
4862 ac_path_GREP_found=false
4863 # Loop through the user's path and test for each of PROGNAME-LIST
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868 test -z "$as_dir" && as_dir=.
4869 for ac_prog in grep ggrep; do
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4872 as_fn_executable_p "$ac_path_GREP" || continue
4873 # Check for GNU ac_path_GREP and select it if it is found.
4874 # Check for GNU $ac_path_GREP
4875 case `"$ac_path_GREP" --version 2>&1` in
4877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4880 $as_echo_n 0123456789 >"conftest.in"
4883 cat "conftest.in" "conftest.in" >"conftest.tmp"
4884 mv "conftest.tmp" "conftest.in"
4885 cp "conftest.in" "conftest.nl"
4886 $as_echo 'GREP' >> "conftest.nl"
4887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889 as_fn_arith $ac_count + 1 && ac_count=$as_val
4890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4891 # Best one so far, save it but keep looking for a better one
4892 ac_cv_path_GREP="$ac_path_GREP"
4893 ac_path_GREP_max=$ac_count
4895 # 10*(2^10) chars as input seems more than enough
4896 test $ac_count -gt 10 && break
4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901 $ac_path_GREP_found && break 3
4906 if test -z "$ac_cv_path_GREP"; then
4907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 ac_cv_path_GREP=$GREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4915 $as_echo "$ac_cv_path_GREP" >&6; }
4916 GREP="$ac_cv_path_GREP"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4920 $as_echo_n "checking for egrep... " >&6; }
4921 if ${ac_cv_path_EGREP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4925 then ac_cv_path_EGREP="$GREP -E"
4927 if test -z "$EGREP"; then
4928 ac_path_EGREP_found=false
4929 # Loop through the user's path and test for each of PROGNAME-LIST
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 test -z "$as_dir" && as_dir=.
4935 for ac_prog in egrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4946 $as_echo_n 0123456789 >"conftest.in"
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 $as_echo 'EGREP' >> "conftest.nl"
4953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_EGREP="$ac_path_EGREP"
4959 ac_path_EGREP_max=$ac_count
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 $ac_path_EGREP_found && break 3
4972 if test -z "$ac_cv_path_EGREP"; then
4973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976 ac_cv_path_EGREP=$EGREP
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982 $as_echo "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4987 $as_echo_n "checking for ANSI C header files... " >&6; }
4988 if ${ac_cv_header_stdc+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 ac_cv_header_stdc=yes
5009 ac_cv_header_stdc=no
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 if test $ac_cv_header_stdc = yes; then
5014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021 $EGREP "memchr" >/dev/null 2>&1; then :
5024 ac_cv_header_stdc=no
5030 if test $ac_cv_header_stdc = yes; then
5031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5038 $EGREP "free" >/dev/null 2>&1; then :
5041 ac_cv_header_stdc=no
5047 if test $ac_cv_header_stdc = yes; then
5048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5049 if test "$cross_compiling" = yes; then :
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5056 #if ((' ' & 0x0FF) == 0x020)
5057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5060 # define ISLOWER(c) \
5061 (('a' <= (c) && (c) <= 'i') \
5062 || ('j' <= (c) && (c) <= 'r') \
5063 || ('s' <= (c) && (c) <= 'z'))
5064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5072 for (i = 0; i < 256; i++)
5073 if (XOR (islower (i), ISLOWER (i))
5074 || toupper (i) != TOUPPER (i))
5079 if ac_fn_c_try_run "$LINENO"; then :
5082 ac_cv_header_stdc=no
5084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5085 conftest.$ac_objext conftest.beam conftest.$ac_ext
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5091 $as_echo "$ac_cv_header_stdc" >&6; }
5092 if test $ac_cv_header_stdc = yes; then
5094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5099 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5100 inttypes.h stdint.h unistd.h
5102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5106 cat >>confdefs.h <<_ACEOF
5107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5118 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5119 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5126 if test "$MINIX" = yes; then
5128 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5131 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5134 $as_echo "#define _MINIX 1" >>confdefs.h
5141 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5148 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5149 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5150 $as_echo_n "(cached) " >&6
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5155 # define __EXTENSIONS__ 1
5156 $ac_includes_default
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_safe_to_define___extensions__=yes
5168 ac_cv_safe_to_define___extensions__=no
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5173 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5174 test $ac_cv_safe_to_define___extensions__ = yes &&
5175 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5177 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5179 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5181 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5183 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5187 case $ac_cv_prog_cc_stdc in #(
5189 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5192 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5193 if ${ac_cv_prog_cc_c99+:} false; then :
5194 $as_echo_n "(cached) " >&6
5196 ac_cv_prog_cc_c99=no
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 #include <stdbool.h>
5206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5207 #define debug(...) fprintf (stderr, __VA_ARGS__)
5208 #define showlist(...) puts (#__VA_ARGS__)
5209 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5211 test_varargs_macros (void)
5216 debug ("X = %d\n", x);
5217 showlist (The first, second, and third items.);
5218 report (x>y, "x is %d but y is %d", x, y);
5221 // Check long long types.
5222 #define BIG64 18446744073709551615ull
5223 #define BIG32 4294967295ul
5224 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5226 your preprocessor is broken;
5230 your preprocessor is broken;
5232 static long long int bignum = -9223372036854775807LL;
5233 static unsigned long long int ubignum = BIG64;
5235 struct incomplete_array
5243 const wchar_t *name;
5247 typedef const char *ccp;
5250 test_restrict (ccp restrict text)
5252 // See if C++-style comments work.
5253 // Iterate through items via the restricted pointer.
5254 // Also check for declarations in for loops.
5255 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5260 // Check varargs and va_copy.
5262 test_varargs (const char *format, ...)
5265 va_start (args, format);
5267 va_copy (args_copy, args);
5278 str = va_arg (args_copy, const char *);
5281 number = va_arg (args_copy, int);
5284 fnumber = va_arg (args_copy, double);
5299 _Bool success = false;
5302 if (test_restrict ("String literal") == 0)
5304 char *restrict newvar = "Another string";
5307 test_varargs ("s, d' f .", "string", 65, 34.234);
5308 test_varargs_macros ();
5310 // Check flexible array members.
5311 struct incomplete_array *ia =
5312 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5314 for (int i = 0; i < ia->datasize; ++i)
5315 ia->data[i] = i * 1.234;
5317 // Check named initializers.
5318 struct named_init ni = {
5320 .name = L"Test wide string",
5321 .average = 543.34343,
5326 int dynamic_array[ni.number];
5327 dynamic_array[ni.number - 1] = 543;
5329 // work around unused variable warnings
5330 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5331 || dynamic_array[ni.number - 1] != 543);
5337 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5339 CC="$ac_save_CC $ac_arg"
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_prog_cc_c99=$ac_arg
5343 rm -f core conftest.err conftest.$ac_objext
5344 test "x$ac_cv_prog_cc_c99" != "xno" && break
5346 rm -f conftest.$ac_ext
5351 case "x$ac_cv_prog_cc_c99" in
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5354 $as_echo "none needed" >&6; } ;;
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5357 $as_echo "unsupported" >&6; } ;;
5359 CC="$CC $ac_cv_prog_cc_c99"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5361 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5363 if test "x$ac_cv_prog_cc_c99" != xno; then :
5364 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5368 if ${ac_cv_prog_cc_c89+:} false; then :
5369 $as_echo_n "(cached) " >&6
5371 ac_cv_prog_cc_c89=no
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5378 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5379 struct buf { int x; };
5380 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5381 static char *e (p, i)
5387 static char *f (char * (*g) (char **, int), char **p, ...)
5392 s = g (p, va_arg (v,int));
5397 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5398 function prototypes and stuff, but not '\xHH' hex character constants.
5399 These don't provoke an error unfortunately, instead are silently treated
5400 as 'x'. The following induces an error, until -std is added to get
5401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5402 array size at least. It's necessary to write '\x00'==0 to get something
5403 that's true only with -std. */
5404 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5406 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5407 inside strings and character constants. */
5409 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5411 int test (int i, double x);
5412 struct s1 {int (*f) (int a);};
5413 struct s2 {int (*f) (double a);};
5414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5425 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5426 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5428 CC="$ac_save_CC $ac_arg"
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_prog_cc_c89=$ac_arg
5432 rm -f core conftest.err conftest.$ac_objext
5433 test "x$ac_cv_prog_cc_c89" != "xno" && break
5435 rm -f conftest.$ac_ext
5440 case "x$ac_cv_prog_cc_c89" in
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5443 $as_echo "none needed" >&6; } ;;
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5446 $as_echo "unsupported" >&6; } ;;
5448 CC="$CC $ac_cv_prog_cc_c89"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5450 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5452 if test "x$ac_cv_prog_cc_c89" != xno; then :
5453 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5455 ac_cv_prog_cc_stdc=no
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5462 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5463 if ${ac_cv_prog_cc_stdc+:} false; then :
5464 $as_echo_n "(cached) " >&6
5467 case $ac_cv_prog_cc_stdc in #(
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470 $as_echo "unsupported" >&6; } ;; #(
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5473 $as_echo "none needed" >&6; } ;; #(
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5476 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5483 # Ralf Wildenhues: With per-target flags we need CC_C_O
5484 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5486 if test $ac_cv_c_compiler_gnu = yes; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5488 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5489 if ${ac_cv_prog_gcc_traditional+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 ac_pattern="Autoconf.*'x'"
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5500 ac_cv_prog_gcc_traditional=yes
5502 ac_cv_prog_gcc_traditional=no
5507 if test $ac_cv_prog_gcc_traditional = no; then
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5515 ac_cv_prog_gcc_traditional=yes
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5522 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5523 if test $ac_cv_prog_gcc_traditional = yes; then
5524 CC="$CC -traditional"
5539 case "$ac_cv_prog_cc_c89" in
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5542 version 4.2.5 and higher." >&5
5543 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5544 version 4.2.5 and higher." >&2;}
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5549 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5550 if ${ntp_cv_cpp_warning+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ntp_cv_cpp_warning=yes
5567 ntp_cv_cpp_warning=no
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5574 $as_echo "$ntp_cv_cpp_warning" >&6; }
5575 case "$ntp_cv_cpp_warning" in
5578 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5583 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5584 if ${ntp_cv_cc_attribute+:} false; then :
5585 $as_echo_n "(cached) " >&6
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5593 void foo(void) __attribute__((__noreturn__));
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 ntp_cv_cc_attribute=yes
5602 ntp_cv_cc_attribute=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5609 $as_echo "$ntp_cv_cc_attribute" >&6; }
5610 case "$ntp_cv_cc_attribute" in
5613 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5620 SAVED_CFLAGS="$CFLAGS"
5621 CFLAGS="$CFLAGS -Wstrict-overflow"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5623 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5624 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ntp_cv_gcc_Wstrict_overflow=yes
5641 ntp_cv_gcc_Wstrict_overflow=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5648 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5650 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5653 CFLAGS="$SAVED_CFLAGS -Winit-self"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5655 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5656 if ${ntp_cv_gcc_Winit_self+:} false; then :
5657 $as_echo_n "(cached) " >&6
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ntp_cv_gcc_Winit_self=yes
5674 ntp_cv_gcc_Winit_self=no
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5682 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5683 CFLAGS="$SAVED_CFLAGS"
5684 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5686 # $ntp_cv_gcc_Winit_self is tested later to add the
5687 # flag to CFLAGS_NTP.
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5690 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5691 if ${ntp_cv_gc_sections_runs+:} false; then :
5692 $as_echo_n "(cached) " >&6
5695 origCFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS -Wl,--gc-sections"
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5710 int read_success_once;
5712 fpC = fopen("conftest.c", "r");
5716 cch = fread(buf, sizeof(buf), 1, fpC);
5717 read_success_once |= (0 != cch);
5719 if (!read_success_once)
5723 if (0 != fclose(fpC))
5733 if ac_fn_c_try_link "$LINENO"; then :
5735 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5736 ntp_cv_gc_sections_runs=no
5738 ntp_cv_gc_sections_runs=no
5739 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5743 ntp_cv_gc_sections_runs=no
5746 rm -f core conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 CFLAGS="$origCFLAGS"
5749 { origCFLAGS=; unset origCFLAGS;}
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5754 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5755 case "$ntp_cv_gc_sections_runs" in
5757 LDADD_LIBNTP="-Wl,--gc-sections"
5758 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5764 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5765 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5766 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5767 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5768 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5769 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5770 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5771 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5772 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5773 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5774 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5775 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5776 case "$ntp_cv_gcc_Winit_self" in
5778 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5780 case "$ntp_cv_gcc_Wstrict_overflow" in
5782 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5784 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5789 $as_echo_n "checking additional compiler flags... " >&6; }
5790 # allow ntp_os_cflags to be preset to skip this stuff
5791 case "${ntp_os_cflags+set}" in
5800 # turn on additional headers
5801 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5804 # avoid circular dependencies in yp headers, and more
5805 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5806 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5809 # XXX Only verified thru AIX6.
5810 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5811 # avoid circular dependencies in yp headers
5812 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5813 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5814 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5815 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5816 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5819 ntp_os_cflags="-DSYS_AMIGA"
5821 darwin*|macosx*|rhapsody*)
5822 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5824 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5829 # use Ansi compiler on HPUX, and some -Wp magic
5830 ntp_os_cflags="-Ae -Wp,-H18816"
5833 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5840 # use Ansi compiler on HPUX
5843 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5848 # do not use 64-bit compiler
5849 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5853 ntp_os_cflags="-posix"
5855 solaris1*|solaris2.[0-5]|solaris2.5.*)
5857 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5860 # turn on 64-bit file offset interface
5861 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5868 # Quick and dirty sanity check
5869 case "$VX_KERNEL" in
5871 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5873 ntp_os_cflags="-DSYS_VXWORKS"
5878 case "$ntp_os_cflags" in
5880 ntp_os_cflags_msg="none needed"
5883 ntp_os_cflags_msg="$ntp_os_cflags"
5885 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5887 $as_echo "$ntp_os_cflags_msg" >&6; }
5888 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5891 $as_echo_n "checking additional linker flags... " >&6; }
5892 # HMS: The following might still need tweaking
5893 # allow ntp_os_ldflags to be preset to skip this stuff
5894 case "${ntp_os_ldflags+set}" in
5903 ntp_os_ldflags="-Wl,+allowdups"
5910 case "$ntp_os_ldflags" in
5912 ntp_os_ldflags_msg="none needed"
5915 ntp_os_ldflags_msg="$ntp_os_ldflags"
5917 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5919 $as_echo "$ntp_os_ldflags_msg" >&6; }
5920 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5924 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5925 if ${ac_cv_c_bigendian+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 ac_cv_c_bigendian=unknown
5929 # See if we're dealing with a universal compiler.
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 #ifndef __APPLE_CC__
5933 not a universal capable compiler
5938 if ac_fn_c_try_compile "$LINENO"; then :
5940 # Check for potential -arch flags. It is not universal unless
5941 # there are at least two -arch flags with different values.
5944 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5945 if test -n "$ac_prev"; then
5947 i?86 | x86_64 | ppc | ppc64)
5948 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5951 ac_cv_c_bigendian=universal
5957 elif test "x$ac_word" = "x-arch"; then
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 if test $ac_cv_c_bigendian = unknown; then
5964 # See if sys/param.h defines the BYTE_ORDER macro.
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5968 #include <sys/param.h>
5973 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5974 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5983 if ac_fn_c_try_compile "$LINENO"; then :
5984 # It does; now see whether it defined to BIG_ENDIAN or not.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <sys/types.h>
5988 #include <sys/param.h>
5993 #if BYTE_ORDER != BIG_ENDIAN
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 ac_cv_c_bigendian=yes
6004 ac_cv_c_bigendian=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test $ac_cv_c_bigendian = unknown; then
6011 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6019 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 # It does; now see whether it defined to _BIG_ENDIAN or not.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6044 if ac_fn_c_try_compile "$LINENO"; then :
6045 ac_cv_c_bigendian=yes
6047 ac_cv_c_bigendian=no
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 if test $ac_cv_c_bigendian = unknown; then
6054 # Compile a test program.
6055 if test "$cross_compiling" = yes; then :
6056 # Try to guess by grepping values from an object file.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 short int ascii_mm[] =
6060 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6061 short int ascii_ii[] =
6062 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6063 int use_ascii (int i) {
6064 return ascii_mm[i] + ascii_ii[i];
6066 short int ebcdic_ii[] =
6067 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6068 short int ebcdic_mm[] =
6069 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6070 int use_ebcdic (int i) {
6071 return ebcdic_mm[i] + ebcdic_ii[i];
6078 return use_ascii (foo) == use_ebcdic (foo);
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6085 ac_cv_c_bigendian=yes
6087 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6088 if test "$ac_cv_c_bigendian" = unknown; then
6089 ac_cv_c_bigendian=no
6091 # finding both strings is unlikely to happen, but who knows?
6092 ac_cv_c_bigendian=unknown
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 $ac_includes_default
6105 /* Are we little or big endian? From Harbison&Steele. */
6109 char c[sizeof (long int)];
6112 return u.c[sizeof (long int) - 1] == 1;
6118 if ac_fn_c_try_run "$LINENO"; then :
6119 ac_cv_c_bigendian=no
6121 ac_cv_c_bigendian=yes
6123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6124 conftest.$ac_objext conftest.beam conftest.$ac_ext
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6130 $as_echo "$ac_cv_c_bigendian" >&6; }
6131 case $ac_cv_c_bigendian in #(
6133 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6139 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6143 as_fn_error $? "unknown endianness
6144 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6148 $as_echo_n "checking for working volatile... " >&6; }
6149 if ${ac_cv_c_volatile+:} false; then :
6150 $as_echo_n "(cached) " >&6
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6160 int * volatile y = (int *) 0;
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 ac_cv_c_volatile=yes
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6174 $as_echo "$ac_cv_c_volatile" >&6; }
6175 if test $ac_cv_c_volatile = no; then
6177 $as_echo "#define volatile /**/" >>confdefs.h
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6187 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6188 # On Suns, sometimes $CPP names a directory.
6189 if test -n "$CPP" && test -d "$CPP"; then
6192 if test -z "$CPP"; then
6193 if ${ac_cv_prog_CPP+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 # Double quotes because CPP needs to be expanded
6197 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6200 for ac_c_preproc_warn_flag in '' yes
6202 # Use a header file that comes with gcc, so configuring glibc
6203 # with a fresh cross-compiler works.
6204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6205 # <limits.h> exists even on freestanding compilers.
6206 # On the NeXT, cc -E runs the code through the compiler's parser,
6207 # not just through cpp. "Syntax error" is here to catch this case.
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6211 # include <limits.h>
6213 # include <assert.h>
6217 if ac_fn_c_try_cpp "$LINENO"; then :
6220 # Broken: fails on valid input.
6223 rm -f conftest.err conftest.i conftest.$ac_ext
6225 # OK, works on sane cases. Now check whether nonexistent headers
6226 # can be detected and how.
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #include <ac_nonexistent.h>
6231 if ac_fn_c_try_cpp "$LINENO"; then :
6232 # Broken: success on invalid input.
6235 # Passes both tests.
6239 rm -f conftest.err conftest.i conftest.$ac_ext
6242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243 rm -f conftest.i conftest.err conftest.$ac_ext
6244 if $ac_preproc_ok; then :
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6257 $as_echo "$CPP" >&6; }
6259 for ac_c_preproc_warn_flag in '' yes
6261 # Use a header file that comes with gcc, so configuring glibc
6262 # with a fresh cross-compiler works.
6263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 # <limits.h> exists even on freestanding compilers.
6265 # On the NeXT, cc -E runs the code through the compiler's parser,
6266 # not just through cpp. "Syntax error" is here to catch this case.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6270 # include <limits.h>
6272 # include <assert.h>
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6279 # Broken: fails on valid input.
6282 rm -f conftest.err conftest.i conftest.$ac_ext
6284 # OK, works on sane cases. Now check whether nonexistent headers
6285 # can be detected and how.
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6290 if ac_fn_c_try_cpp "$LINENO"; then :
6291 # Broken: success on invalid input.
6294 # Passes both tests.
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6302 rm -f conftest.i conftest.err conftest.$ac_ext
6303 if $ac_preproc_ok; then :
6306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6308 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6309 See \`config.log' for more details" "$LINENO" 5; }
6313 ac_cpp='$CPP $CPPFLAGS'
6314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321 for ac_prog in 'bison -y' byacc
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_YACC+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 if test -n "$YACC"; then
6331 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_YACC="$ac_prog"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 YACC=$ac_cv_prog_YACC
6351 if test -n "$YACC"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6353 $as_echo "$YACC" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6360 test -n "$YACC" && break
6362 test -n "$YACC" || YACC="yacc"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6365 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6366 if ${ac_cv_prog_cc_c99+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 ac_cv_prog_cc_c99=no
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6374 #include <stdbool.h>
6379 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6380 #define debug(...) fprintf (stderr, __VA_ARGS__)
6381 #define showlist(...) puts (#__VA_ARGS__)
6382 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6384 test_varargs_macros (void)
6389 debug ("X = %d\n", x);
6390 showlist (The first, second, and third items.);
6391 report (x>y, "x is %d but y is %d", x, y);
6394 // Check long long types.
6395 #define BIG64 18446744073709551615ull
6396 #define BIG32 4294967295ul
6397 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6399 your preprocessor is broken;
6403 your preprocessor is broken;
6405 static long long int bignum = -9223372036854775807LL;
6406 static unsigned long long int ubignum = BIG64;
6408 struct incomplete_array
6416 const wchar_t *name;
6420 typedef const char *ccp;
6423 test_restrict (ccp restrict text)
6425 // See if C++-style comments work.
6426 // Iterate through items via the restricted pointer.
6427 // Also check for declarations in for loops.
6428 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6433 // Check varargs and va_copy.
6435 test_varargs (const char *format, ...)
6438 va_start (args, format);
6440 va_copy (args_copy, args);
6451 str = va_arg (args_copy, const char *);
6454 number = va_arg (args_copy, int);
6457 fnumber = va_arg (args_copy, double);
6472 _Bool success = false;
6475 if (test_restrict ("String literal") == 0)
6477 char *restrict newvar = "Another string";
6480 test_varargs ("s, d' f .", "string", 65, 34.234);
6481 test_varargs_macros ();
6483 // Check flexible array members.
6484 struct incomplete_array *ia =
6485 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6487 for (int i = 0; i < ia->datasize; ++i)
6488 ia->data[i] = i * 1.234;
6490 // Check named initializers.
6491 struct named_init ni = {
6493 .name = L"Test wide string",
6494 .average = 543.34343,
6499 int dynamic_array[ni.number];
6500 dynamic_array[ni.number - 1] = 543;
6502 // work around unused variable warnings
6503 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6504 || dynamic_array[ni.number - 1] != 543);
6510 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6512 CC="$ac_save_CC $ac_arg"
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 ac_cv_prog_cc_c99=$ac_arg
6516 rm -f core conftest.err conftest.$ac_objext
6517 test "x$ac_cv_prog_cc_c99" != "xno" && break
6519 rm -f conftest.$ac_ext
6524 case "x$ac_cv_prog_cc_c99" in
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6527 $as_echo "none needed" >&6; } ;;
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6530 $as_echo "unsupported" >&6; } ;;
6532 CC="$CC $ac_cv_prog_cc_c99"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6534 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6536 if test "x$ac_cv_prog_cc_c99" != xno; then :
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6543 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
6547 ac_cpp='$CPP $CPPFLAGS'
6548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 struct foo_s {int i1; int i2;};
6557 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6562 $as_echo "yes" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6567 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6583 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6586 # Check whether --with-hardenfile was given.
6587 if test "${with_hardenfile+set}" = set; then :
6588 withval=$with_hardenfile;
6596 SENTINEL_DIR="$PWD" && \
6597 cd $srcdir/sntp && \
6598 case "$with_hardenfile" in \
6600 scripts/genHardFlags -d "$SENTINEL_DIR" \
6603 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6606 ) > genHardFlags.i 2> genHardFlags.err
6609 case "$GENHARDFLAG" in
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6612 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6613 rm genHardFlags.err genHardFlags.i
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6617 $as_echo "failed." >&6; }
6618 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6630 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
6632 case "$srcdir::${force_ntp_vpath_hack-no}" in
6634 ;; # VPATH_HACK path is for VPATH builds only.
6636 ntp_vpath_hack="yes"
6639 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6641 ntp_vpath_hack="yes"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6645 $as_echo "$ntp_vpath_hack" >&6; }
6646 if test x$ntp_vpath_hack = xyes; then
6648 VPATH_HACK_FALSE='#'
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6658 $as_echo_n "checking for install dir and man conventions... " >&6; }
6661 # Check whether --with-locfile was given.
6662 if test "${with_locfile+set}" = set; then :
6663 withval=$with_locfile;
6671 SENTINEL_DIR="$PWD" && \
6672 cd $srcdir/sntp && \
6673 case "$with_locfile" in \
6675 scripts/genLocInfo -d "$SENTINEL_DIR" \
6678 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6681 ) > genLocInfo.i 2> genLocInfo.err
6684 case "$GENLOCINFO" in
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6687 $as_echo "in file $GENLOCINFOFILE" >&6; }
6688 rm genLocInfo.err genLocInfo.i
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6692 $as_echo "failed." >&6; }
6693 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6697 if test "$CALC_TICKADJ_MS" ; then
6698 WANT_CALC_TICKADJ_MS_TRUE=
6699 WANT_CALC_TICKADJ_MS_FALSE='#'
6701 WANT_CALC_TICKADJ_MS_TRUE='#'
6702 WANT_CALC_TICKADJ_MS_FALSE=
6747 if test -z "$NTPSWEEP_NI" ; then
6748 INSTALL_NTPSWEEP_TRUE=
6749 INSTALL_NTPSWEEP_FALSE='#'
6751 INSTALL_NTPSWEEP_TRUE='#'
6752 INSTALL_NTPSWEEP_FALSE=
6795 if test -z "$UPDATE_LEAP_NI" ; then
6796 INSTALL_UPDATE_LEAP_TRUE=
6797 INSTALL_UPDATE_LEAP_FALSE='#'
6799 INSTALL_UPDATE_LEAP_TRUE='#'
6800 INSTALL_UPDATE_LEAP_FALSE=
6805 if test -n "$ac_tool_prefix"; then
6806 for ac_prog in ar lib "link -lib"
6808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_AR+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$AR"; then
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 if test -n "$AR"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6838 $as_echo "$AR" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6845 test -n "$AR" && break
6848 if test -z "$AR"; then
6850 for ac_prog in ar lib "link -lib"
6852 # Extract the first word of "$ac_prog", so it can be a program name with args.
6853 set dummy $ac_prog; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 if test -n "$ac_ct_AR"; then
6860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_AR="$ac_prog"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6880 if test -n "$ac_ct_AR"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6882 $as_echo "$ac_ct_AR" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6889 test -n "$ac_ct_AR" && break
6892 if test "x$ac_ct_AR" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6908 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6909 if ${am_cv_ar_interface+:} false; then :
6910 $as_echo_n "(cached) " >&6
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918 am_cv_ar_interface=ar
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int some_variable = 0;
6923 if ac_fn_c_try_compile "$LINENO"; then :
6924 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6926 (eval $am_ar_try) 2>&5
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929 test $ac_status = 0; }
6930 if test "$ac_status" -eq 0; then
6931 am_cv_ar_interface=ar
6933 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6935 (eval $am_ar_try) 2>&5
6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938 test $ac_status = 0; }
6939 if test "$ac_status" -eq 0; then
6940 am_cv_ar_interface=lib
6942 am_cv_ar_interface=unknown
6945 rm -f conftest.lib libconftest.a
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 ac_cpp='$CPP $CPPFLAGS'
6951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6957 $as_echo "$am_cv_ar_interface" >&6; }
6959 case $am_cv_ar_interface in
6963 # Microsoft lib, so override with the ar-lib wrapper script.
6964 # FIXME: It is wrong to rewrite AR.
6965 # But if we don't then we get into trouble of one sort or another.
6966 # A longer-term fix would be to have automake use am__AR in this case,
6967 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6969 AR="$am_aux_dir/ar-lib $AR"
6972 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6978 # So far, the only shared library we might use is libopts.
6979 # It's a small library - we might as well use a static version of it.
6980 # Check whether --enable-shared was given.
6981 if test "${enable_shared+set}" = set; then :
6982 enableval=$enable_shared; p=${PACKAGE-default}
6984 yes) enable_shared=yes ;;
6985 no) enable_shared=no ;;
6988 # Look at the argument we got. We use all the common list separators.
6989 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6990 for pkg in $enableval; do
6992 if test "X$pkg" = "X$p"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7014 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7019 macro_version='2.4.6'
7020 macro_revision='2.4.6'
7034 ltmain=$ac_aux_dir/ltmain.sh
7036 # Backslashify metacharacters that are still active within
7037 # double-quoted strings.
7038 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7040 # Same as above, but do not quote variable references.
7041 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7043 # Sed substitution to delay expansion of an escaped shell variable in a
7044 # double_quote_subst'ed string.
7045 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7047 # Sed substitution to delay expansion of an escaped single quote.
7048 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7050 # Sed substitution to avoid accidental globbing in evaled expressions
7051 no_glob_subst='s/\*/\\\*/g'
7053 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7054 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7055 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7058 $as_echo_n "checking how to print strings... " >&6; }
7059 # Test print first, because it will be a builtin if present.
7060 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7061 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7063 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7066 # Use this function as a fallback that always works.
7067 func_fallback_echo ()
7069 eval 'cat <<_LTECHO_EOF
7073 ECHO='func_fallback_echo'
7076 # func_echo_all arg...
7077 # Invoke $ECHO with all args, space-separated.
7084 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7085 $as_echo "printf" >&6; } ;;
7086 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7087 $as_echo "print -r" >&6; } ;;
7088 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7089 $as_echo "cat" >&6; } ;;
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7106 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7107 if ${ac_cv_path_SED+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7111 for ac_i in 1 2 3 4 5 6 7; do
7112 ac_script="$ac_script$as_nl$ac_script"
7114 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7115 { ac_script=; unset ac_script;}
7116 if test -z "$SED"; then
7117 ac_path_SED_found=false
7118 # Loop through the user's path and test for each of PROGNAME-LIST
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_prog in sed gsed; do
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7127 as_fn_executable_p "$ac_path_SED" || continue
7128 # Check for GNU ac_path_SED and select it if it is found.
7129 # Check for GNU $ac_path_SED
7130 case `"$ac_path_SED" --version 2>&1` in
7132 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7135 $as_echo_n 0123456789 >"conftest.in"
7138 cat "conftest.in" "conftest.in" >"conftest.tmp"
7139 mv "conftest.tmp" "conftest.in"
7140 cp "conftest.in" "conftest.nl"
7141 $as_echo '' >> "conftest.nl"
7142 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144 as_fn_arith $ac_count + 1 && ac_count=$as_val
7145 if test $ac_count -gt ${ac_path_SED_max-0}; then
7146 # Best one so far, save it but keep looking for a better one
7147 ac_cv_path_SED="$ac_path_SED"
7148 ac_path_SED_max=$ac_count
7150 # 10*(2^10) chars as input seems more than enough
7151 test $ac_count -gt 10 && break
7153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7156 $ac_path_SED_found && break 3
7161 if test -z "$ac_cv_path_SED"; then
7162 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7170 $as_echo "$ac_cv_path_SED" >&6; }
7171 SED="$ac_cv_path_SED"
7174 test -z "$SED" && SED=sed
7175 Xsed="$SED -e 1s/^X//"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7188 $as_echo_n "checking for fgrep... " >&6; }
7189 if ${ac_cv_path_FGREP+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7193 then ac_cv_path_FGREP="$GREP -F"
7195 if test -z "$FGREP"; then
7196 ac_path_FGREP_found=false
7197 # Loop through the user's path and test for each of PROGNAME-LIST
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7202 test -z "$as_dir" && as_dir=.
7203 for ac_prog in fgrep; do
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7206 as_fn_executable_p "$ac_path_FGREP" || continue
7207 # Check for GNU ac_path_FGREP and select it if it is found.
7208 # Check for GNU $ac_path_FGREP
7209 case `"$ac_path_FGREP" --version 2>&1` in
7211 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7214 $as_echo_n 0123456789 >"conftest.in"
7217 cat "conftest.in" "conftest.in" >"conftest.tmp"
7218 mv "conftest.tmp" "conftest.in"
7219 cp "conftest.in" "conftest.nl"
7220 $as_echo 'FGREP' >> "conftest.nl"
7221 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7223 as_fn_arith $ac_count + 1 && ac_count=$as_val
7224 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7225 # Best one so far, save it but keep looking for a better one
7226 ac_cv_path_FGREP="$ac_path_FGREP"
7227 ac_path_FGREP_max=$ac_count
7229 # 10*(2^10) chars as input seems more than enough
7230 test $ac_count -gt 10 && break
7232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7235 $ac_path_FGREP_found && break 3
7240 if test -z "$ac_cv_path_FGREP"; then
7241 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7244 ac_cv_path_FGREP=$FGREP
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7250 $as_echo "$ac_cv_path_FGREP" >&6; }
7251 FGREP="$ac_cv_path_FGREP"
7254 test -z "$GREP" && GREP=grep
7274 # Check whether --with-gnu-ld was given.
7275 if test "${with_gnu_ld+set}" = set; then :
7276 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7282 if test yes = "$GCC"; then
7283 # Check if gcc -print-prog-name=ld gives a path.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285 $as_echo_n "checking for ld used by $CC... " >&6; }
7288 # gcc leaves a trailing carriage return, which upsets mingw
7289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7294 # Accept absolute paths.
7296 re_direlt='/[^/][^/]*/\.\./'
7297 # Canonicalize the pathname of ld
7298 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7299 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7300 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7302 test -z "$LD" && LD=$ac_prog
7305 # If it fails, then pretend we aren't using GCC.
7309 # If it is relative, then search for the first ld in PATH.
7313 elif test yes = "$with_gnu_ld"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315 $as_echo_n "checking for GNU ld... " >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318 $as_echo_n "checking for non-GNU ld... " >&6; }
7320 if ${lt_cv_path_LD+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -z "$LD"; then
7324 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7325 for ac_dir in $PATH; do
7327 test -z "$ac_dir" && ac_dir=.
7328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7329 lt_cv_path_LD=$ac_dir/$ac_prog
7330 # Check to see if the program is GNU ld. I'd rather use --version,
7331 # but apparently some variants of GNU ld only accept -v.
7332 # Break only if it was the GNU/non-GNU ld that we prefer.
7333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7334 *GNU* | *'with BFD'*)
7335 test no != "$with_gnu_ld" && break
7338 test yes != "$with_gnu_ld" && break
7345 lt_cv_path_LD=$LD # Let the user override the test with a path.
7350 if test -n "$LD"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352 $as_echo "$LD" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360 if ${lt_cv_prog_gnu_ld+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364 case `$LD -v 2>&1 </dev/null` in
7365 *GNU* | *'with BFD'*)
7366 lt_cv_prog_gnu_ld=yes
7369 lt_cv_prog_gnu_ld=no
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7375 with_gnu_ld=$lt_cv_prog_gnu_ld
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7387 if ${lt_cv_path_NM+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 if test -n "$NM"; then
7391 # Let the user override the test.
7394 lt_nm_to_check=${ac_tool_prefix}nm
7395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7396 lt_nm_to_check="$lt_nm_to_check nm"
7398 for lt_tmp_nm in $lt_nm_to_check; do
7399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7402 test -z "$ac_dir" && ac_dir=.
7403 tmp_nm=$ac_dir/$lt_tmp_nm
7404 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7405 # Check to see if the nm accepts a BSD-compat flag.
7406 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7407 # nm: unknown option "B" ignored
7408 # Tru64's nm complains that /dev/null is an invalid object file
7409 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7411 mingw*) lt_bad_file=conftest.nm/nofile ;;
7412 *) lt_bad_file=/dev/null ;;
7414 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7415 *$lt_bad_file* | *'Invalid file or object type'*)
7416 lt_cv_path_NM="$tmp_nm -B"
7420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7422 lt_cv_path_NM="$tmp_nm -p"
7426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7427 continue # so that we can try to find one that supports BSD flags
7436 : ${lt_cv_path_NM=no}
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7440 $as_echo "$lt_cv_path_NM" >&6; }
7441 if test no != "$lt_cv_path_NM"; then
7444 # Didn't find any BSD compatible name lister, look for dumpbin.
7445 if test -n "$DUMPBIN"; then :
7446 # Let the user override the test.
7448 if test -n "$ac_tool_prefix"; then
7449 for ac_prog in dumpbin "link -dump"
7451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_DUMPBIN+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$DUMPBIN"; then
7459 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 DUMPBIN=$ac_cv_prog_DUMPBIN
7479 if test -n "$DUMPBIN"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7481 $as_echo "$DUMPBIN" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7488 test -n "$DUMPBIN" && break
7491 if test -z "$DUMPBIN"; then
7492 ac_ct_DUMPBIN=$DUMPBIN
7493 for ac_prog in dumpbin "link -dump"
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 if test -n "$ac_ct_DUMPBIN"; then
7503 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7523 if test -n "$ac_ct_DUMPBIN"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7525 $as_echo "$ac_ct_DUMPBIN" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7532 test -n "$ac_ct_DUMPBIN" && break
7535 if test "x$ac_ct_DUMPBIN" = x; then
7538 case $cross_compiling:$ac_tool_warned in
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7544 DUMPBIN=$ac_ct_DUMPBIN
7548 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7550 DUMPBIN="$DUMPBIN -symbols -headers"
7558 if test : != "$DUMPBIN"; then
7562 test -z "$NM" && NM=nm
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7570 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7571 if ${lt_cv_nm_interface+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 lt_cv_nm_interface="BSD nm"
7575 echo "int some_variable = 0;" > conftest.$ac_ext
7576 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7577 (eval "$ac_compile" 2>conftest.err)
7578 cat conftest.err >&5
7579 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7580 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7581 cat conftest.err >&5
7582 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7583 cat conftest.out >&5
7584 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7585 lt_cv_nm_interface="MS dumpbin"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7590 $as_echo "$lt_cv_nm_interface" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7593 $as_echo_n "checking whether ln -s works... " >&6; }
7595 if test "$LN_S" = "ln -s"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7597 $as_echo "yes" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7600 $as_echo "no, using $LN_S" >&6; }
7603 # find the maximum length of command line arguments
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7605 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7606 if ${lt_cv_sys_max_cmd_len+:} false; then :
7607 $as_echo_n "(cached) " >&6
7614 # On DJGPP, this test can blow up pretty badly due to problems in libc
7615 # (any single argument exceeding 2000 bytes causes a buffer overrun
7616 # during glob expansion). Even if it were fixed, the result of this
7617 # check would be larger than it should be.
7618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7622 # Under GNU Hurd, this test is not required because there is
7623 # no limit to the length of command line arguments.
7624 # Libtool will interpret -1 as no limit whatsoever
7625 lt_cv_sys_max_cmd_len=-1;
7628 cygwin* | mingw* | cegcc*)
7629 # On Win9x/ME, this test blows up -- it succeeds, but takes
7630 # about 5 minutes as the teststring grows exponentially.
7631 # Worse, since 9x/ME are not pre-emptively multitasking,
7632 # you end up with a "frozen" computer, even though with patience
7633 # the test eventually succeeds (with a max line length of 256k).
7634 # Instead, let's just punt: use the minimum linelength reported by
7635 # all of the supported platforms: 8192 (on NT/2K/XP).
7636 lt_cv_sys_max_cmd_len=8192;
7640 # On MiNT this can take a long time and run out of memory.
7641 lt_cv_sys_max_cmd_len=8192;
7645 # On AmigaOS with pdksh, this test takes hours, literally.
7646 # So we just punt and use a minimum line length of 8192.
7647 lt_cv_sys_max_cmd_len=8192;
7650 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7651 # This has been around since 386BSD, at least. Likely further.
7652 if test -x /sbin/sysctl; then
7653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654 elif test -x /usr/sbin/sysctl; then
7655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7659 # And add a safety zone
7660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7666 lt_cv_sys_max_cmd_len=196608
7670 # The test takes a long time on OS/2.
7671 lt_cv_sys_max_cmd_len=8192
7675 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7676 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7677 # nice to cause kernel panics so lets avoid the loop below.
7678 # First set a reasonable default.
7679 lt_cv_sys_max_cmd_len=16384
7681 if test -x /sbin/sysconfig; then
7682 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7683 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7688 lt_cv_sys_max_cmd_len=102400
7690 sysv5* | sco5v6* | sysv4.2uw2*)
7691 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7692 if test -n "$kargmax"; then
7693 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7695 lt_cv_sys_max_cmd_len=32768
7699 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7700 if test -n "$lt_cv_sys_max_cmd_len" && \
7701 test undefined != "$lt_cv_sys_max_cmd_len"; then
7702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7705 # Make teststring a little bigger before we do anything with it.
7706 # a 1K string should be a reasonable start.
7707 for i in 1 2 3 4 5 6 7 8; do
7708 teststring=$teststring$teststring
7710 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7711 # If test is not a shell built-in, we'll probably end up computing a
7712 # maximum length that is only half of the actual maximum length, but
7714 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7715 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7716 test 17 != "$i" # 1/2 MB should be enough
7719 teststring=$teststring$teststring
7721 # Only check the string length outside the loop.
7722 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7724 # Add a significant safety factor because C++ compilers can tack on
7725 # massive amounts of additional arguments before passing them to the
7726 # linker. It appears as though 1/2 is a usable value.
7727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7734 if test -n "$lt_cv_sys_max_cmd_len"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7739 $as_echo "none" >&6; }
7741 max_cmd_len=$lt_cv_sys_max_cmd_len
7752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7762 # test EBCDIC or ASCII
7763 case `echo X|tr X '\101'` in
7764 A) # ASCII based system
7765 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7766 lt_SP2NL='tr \040 \012'
7767 lt_NL2SP='tr \015\012 \040\040'
7769 *) # EBCDIC based system
7770 lt_SP2NL='tr \100 \n'
7771 lt_NL2SP='tr \r\n \100\100'
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7784 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7785 if ${lt_cv_to_host_file_cmd+:} false; then :
7786 $as_echo_n "(cached) " >&6
7791 *-*-mingw* ) # actually msys
7792 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7795 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7797 * ) # otherwise, assume *nix
7798 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7804 *-*-mingw* ) # actually msys
7805 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7808 lt_cv_to_host_file_cmd=func_convert_file_noop
7810 * ) # otherwise, assume *nix
7811 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7815 * ) # unhandled hosts (and "normal" native builds)
7816 lt_cv_to_host_file_cmd=func_convert_file_noop
7822 to_host_file_cmd=$lt_cv_to_host_file_cmd
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7824 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7831 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7832 if ${lt_cv_to_tool_file_cmd+:} false; then :
7833 $as_echo_n "(cached) " >&6
7835 #assume ordinary cross tools, or native build.
7836 lt_cv_to_tool_file_cmd=func_convert_file_noop
7840 *-*-mingw* ) # actually msys
7841 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7849 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7851 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7858 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7859 if ${lt_cv_ld_reload_flag+:} false; then :
7860 $as_echo_n "(cached) " >&6
7862 lt_cv_ld_reload_flag='-r'
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7865 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7866 reload_flag=$lt_cv_ld_reload_flag
7867 case $reload_flag in
7869 *) reload_flag=" $reload_flag" ;;
7871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7873 cygwin* | mingw* | pw32* | cegcc*)
7874 if test yes != "$GCC"; then
7879 if test yes = "$GCC"; then
7880 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7895 if test -n "$ac_tool_prefix"; then
7896 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_OBJDUMP+:} false; then :
7901 $as_echo_n "(cached) " >&6
7903 if test -n "$OBJDUMP"; then
7904 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 OBJDUMP=$ac_cv_prog_OBJDUMP
7924 if test -n "$OBJDUMP"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7926 $as_echo "$OBJDUMP" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7934 if test -z "$ac_cv_prog_OBJDUMP"; then
7935 ac_ct_OBJDUMP=$OBJDUMP
7936 # Extract the first word of "objdump", so it can be a program name with args.
7937 set dummy objdump; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 if test -n "$ac_ct_OBJDUMP"; then
7944 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7964 if test -n "$ac_ct_OBJDUMP"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7966 $as_echo "$ac_ct_OBJDUMP" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7972 if test "x$ac_ct_OBJDUMP" = x; then
7975 case $cross_compiling:$ac_tool_warned in
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979 ac_tool_warned=yes ;;
7981 OBJDUMP=$ac_ct_OBJDUMP
7984 OBJDUMP="$ac_cv_prog_OBJDUMP"
7987 test -z "$OBJDUMP" && OBJDUMP=objdump
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7998 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7999 if ${lt_cv_deplibs_check_method+:} false; then :
8000 $as_echo_n "(cached) " >&6
8002 lt_cv_file_magic_cmd='$MAGIC_CMD'
8003 lt_cv_file_magic_test_file=
8004 lt_cv_deplibs_check_method='unknown'
8005 # Need to set the preceding variable on all platforms that support
8006 # interlibrary dependencies.
8007 # 'none' -- dependencies not supported.
8008 # 'unknown' -- same as none, but documents that we really don't know.
8009 # 'pass_all' -- all dependencies passed with no checks.
8010 # 'test_compile' -- check by making test program.
8011 # 'file_magic [[regex]]' -- check by looking for files in library path
8012 # that responds to the $file_magic_cmd with a given extended regex.
8013 # If you have 'file' or equivalent on your system and you're not sure
8014 # whether 'pass_all' will *always* work, you probably want this one.
8018 lt_cv_deplibs_check_method=pass_all
8022 lt_cv_deplibs_check_method=pass_all
8026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8027 lt_cv_file_magic_cmd='/usr/bin/file -L'
8028 lt_cv_file_magic_test_file=/shlib/libc.so
8032 # func_win32_libid is a shell function defined in ltmain.sh
8033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8034 lt_cv_file_magic_cmd='func_win32_libid'
8038 # Base MSYS/MinGW do not provide the 'file' command needed by
8039 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8040 # unless we find 'file', for example because we are cross-compiling.
8041 if ( file / ) >/dev/null 2>&1; then
8042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8043 lt_cv_file_magic_cmd='func_win32_libid'
8045 # Keep this pattern in sync with the one in func_win32_libid.
8046 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8047 lt_cv_file_magic_cmd='$OBJDUMP -f'
8052 # use the weaker test based on 'objdump'. See mingw*.
8053 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8054 lt_cv_file_magic_cmd='$OBJDUMP -f'
8057 darwin* | rhapsody*)
8058 lt_cv_deplibs_check_method=pass_all
8061 freebsd* | dragonfly*)
8062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8065 # Not sure whether the presence of OpenBSD here was a mistake.
8066 # Let's accept both of them until this is cleared up.
8067 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8068 lt_cv_file_magic_cmd=/usr/bin/file
8069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8073 lt_cv_deplibs_check_method=pass_all
8078 lt_cv_deplibs_check_method=pass_all
8081 hpux10.20* | hpux11*)
8082 lt_cv_file_magic_cmd=/usr/bin/file
8085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8086 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8090 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8094 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8100 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8104 irix5* | irix6* | nonstopux*)
8106 *-32|*"-32 ") libmagic=32-bit;;
8107 *-n32|*"-n32 ") libmagic=N32;;
8108 *-64|*"-64 ") libmagic=64-bit;;
8109 *) libmagic=never-match;;
8111 lt_cv_deplibs_check_method=pass_all
8114 # This must be glibc/ELF.
8115 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8116 lt_cv_deplibs_check_method=pass_all
8120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8129 lt_cv_file_magic_cmd=/usr/bin/file
8130 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8134 lt_cv_deplibs_check_method=pass_all
8138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8145 osf3* | osf4* | osf5*)
8146 lt_cv_deplibs_check_method=pass_all
8150 lt_cv_deplibs_check_method=pass_all
8154 lt_cv_deplibs_check_method=pass_all
8157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8158 lt_cv_deplibs_check_method=pass_all
8162 case $host_vendor in
8164 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]'
8165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8168 lt_cv_deplibs_check_method=pass_all
8171 lt_cv_file_magic_cmd='/bin/file'
8172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8175 lt_cv_file_magic_cmd='/bin/file'
8176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8177 lt_cv_file_magic_test_file=/lib/libc.so
8180 lt_cv_deplibs_check_method=pass_all
8183 lt_cv_deplibs_check_method=pass_all
8189 lt_cv_deplibs_check_method=pass_all
8192 lt_cv_deplibs_check_method=pass_all
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8198 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8202 if test "$build" = "$host"; then
8205 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8208 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8214 file_magic_cmd=$lt_cv_file_magic_cmd
8215 deplibs_check_method=$lt_cv_deplibs_check_method
8216 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8239 if test -n "$ac_tool_prefix"; then
8240 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_prog_DLLTOOL+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$DLLTOOL"; then
8248 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 DLLTOOL=$ac_cv_prog_DLLTOOL
8268 if test -n "$DLLTOOL"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8270 $as_echo "$DLLTOOL" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test -z "$ac_cv_prog_DLLTOOL"; then
8279 ac_ct_DLLTOOL=$DLLTOOL
8280 # Extract the first word of "dlltool", so it can be a program name with args.
8281 set dummy dlltool; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8285 $as_echo_n "(cached) " >&6
8287 if test -n "$ac_ct_DLLTOOL"; then
8288 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8308 if test -n "$ac_ct_DLLTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8310 $as_echo "$ac_ct_DLLTOOL" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8316 if test "x$ac_ct_DLLTOOL" = x; then
8319 case $cross_compiling:$ac_tool_warned in
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8325 DLLTOOL=$ac_ct_DLLTOOL
8328 DLLTOOL="$ac_cv_prog_DLLTOOL"
8331 test -z "$DLLTOOL" && DLLTOOL=dlltool
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8343 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8344 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8345 $as_echo_n "(cached) " >&6
8347 lt_cv_sharedlib_from_linklib_cmd='unknown'
8350 cygwin* | mingw* | pw32* | cegcc*)
8351 # two different shell functions defined in ltmain.sh;
8352 # decide which one to use based on capabilities of $DLLTOOL
8353 case `$DLLTOOL --help 2>&1` in
8354 *--identify-strict*)
8355 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8358 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8363 # fallback: assume linklib IS sharedlib
8364 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8370 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8371 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8372 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8380 if test -n "$ac_tool_prefix"; then
8383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_prog_AR+:} false; then :
8388 $as_echo_n "(cached) " >&6
8390 if test -n "$AR"; then
8391 ac_cv_prog_AR="$AR" # Let the user override the test.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 if test -n "$AR"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8413 $as_echo "$AR" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8420 test -n "$AR" && break
8423 if test -z "$AR"; then
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428 set dummy $ac_prog; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$ac_ct_AR"; then
8435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_ac_ct_AR="$ac_prog"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8455 if test -n "$ac_ct_AR"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8457 $as_echo "$ac_ct_AR" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8464 test -n "$ac_ct_AR" && break
8467 if test "x$ac_ct_AR" = x; then
8470 case $cross_compiling:$ac_tool_warned in
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8494 $as_echo_n "checking for archiver @FILE support... " >&6; }
8495 if ${lt_cv_ar_at_file+:} false; then :
8496 $as_echo_n "(cached) " >&6
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 echo conftest.$ac_objext > conftest.lst
8512 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8514 (eval $lt_ar_try) 2>&5
8516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8517 test $ac_status = 0; }
8518 if test 0 -eq "$ac_status"; then
8519 # Ensure the archiver fails upon bogus file names.
8520 rm -f conftest.$ac_objext libconftest.a
8521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8522 (eval $lt_ar_try) 2>&5
8524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8525 test $ac_status = 0; }
8526 if test 0 -ne "$ac_status"; then
8530 rm -f conftest.* libconftest.a
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8537 $as_echo "$lt_cv_ar_at_file" >&6; }
8539 if test no = "$lt_cv_ar_at_file"; then
8542 archiver_list_spec=$lt_cv_ar_at_file
8551 if test -n "$ac_tool_prefix"; then
8552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}strip; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_STRIP+:} false; then :
8557 $as_echo_n "(cached) " >&6
8559 if test -n "$STRIP"; then
8560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 STRIP=$ac_cv_prog_STRIP
8580 if test -n "$STRIP"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8582 $as_echo "$STRIP" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8590 if test -z "$ac_cv_prog_STRIP"; then
8592 # Extract the first word of "strip", so it can be a program name with args.
8593 set dummy strip; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 if test -n "$ac_ct_STRIP"; then
8600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_STRIP="strip"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8620 if test -n "$ac_ct_STRIP"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8622 $as_echo "$ac_ct_STRIP" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8628 if test "x$ac_ct_STRIP" = x; then
8631 case $cross_compiling:$ac_tool_warned in
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635 ac_tool_warned=yes ;;
8640 STRIP="$ac_cv_prog_STRIP"
8643 test -z "$STRIP" && STRIP=:
8650 if test -n "$ac_tool_prefix"; then
8651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if ${ac_cv_prog_RANLIB+:} false; then :
8656 $as_echo_n "(cached) " >&6
8658 if test -n "$RANLIB"; then
8659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 RANLIB=$ac_cv_prog_RANLIB
8679 if test -n "$RANLIB"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8681 $as_echo "$RANLIB" >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8689 if test -z "$ac_cv_prog_RANLIB"; then
8690 ac_ct_RANLIB=$RANLIB
8691 # Extract the first word of "ranlib", so it can be a program name with args.
8692 set dummy ranlib; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8696 $as_echo_n "(cached) " >&6
8698 if test -n "$ac_ct_RANLIB"; then
8699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_prog_ac_ct_RANLIB="ranlib"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8719 if test -n "$ac_ct_RANLIB"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8721 $as_echo "$ac_ct_RANLIB" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8727 if test "x$ac_ct_RANLIB" = x; then
8730 case $cross_compiling:$ac_tool_warned in
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8734 ac_tool_warned=yes ;;
8736 RANLIB=$ac_ct_RANLIB
8739 RANLIB="$ac_cv_prog_RANLIB"
8742 test -z "$RANLIB" && RANLIB=:
8749 # Determine commands to create old-style static archives.
8750 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8751 old_postinstall_cmds='chmod 644 $oldlib'
8752 old_postuninstall_cmds=
8754 if test -n "$RANLIB"; then
8757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8768 lock_old_archive_extraction=yes ;;
8770 lock_old_archive_extraction=no ;;
8811 # If no C compiler was specified, use CC.
8814 # If no C compiler flags were specified, use CFLAGS.
8815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8817 # Allow CC to be a program name with arguments.
8821 # Check for command to grab the raw symbol name followed by C symbol from nm.
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8823 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8824 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8825 $as_echo_n "(cached) " >&6
8828 # These are sane defaults that work on at least a few old systems.
8829 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8831 # Character class describing NM global symbol codes.
8832 symcode='[BCDEGRST]'
8834 # Regexp to match symbols that can be accessed directly from C.
8835 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8837 # Define system-specific variables.
8842 cygwin* | mingw* | pw32* | cegcc*)
8843 symcode='[ABCDGISTW]'
8846 if test ia64 = "$host_cpu"; then
8847 symcode='[ABCDEGRST]'
8851 symcode='[BCDEGRST]'
8854 symcode='[BCDEGQRST]'
8865 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8873 # If we're using GNU nm, then use its standard symbol codes.
8874 case `$NM -V 2>&1` in
8875 *GNU* | *'with BFD'*)
8876 symcode='[ABCDGIRSTW]' ;;
8879 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8880 # Gets list of data symbols to import.
8881 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8882 # Adjust the below global symbol transforms to fixup imported variables.
8883 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8884 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8885 lt_c_name_lib_hook="\
8886 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8887 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8889 # Disable hooks by default.
8890 lt_cv_sys_global_symbol_to_import=
8896 # Transform an extracted symbol line into a proper C declaration.
8897 # Some systems (esp. on ia64) link data and code symbols differently,
8898 # so use this general approach.
8899 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8901 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8902 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8904 # Transform an extracted symbol line into symbol name and symbol address
8905 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8907 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8908 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8910 # Transform an extracted symbol line into symbol name with lib prefix and
8912 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8913 $lt_c_name_lib_hook\
8914 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8915 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8916 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8918 # Handle CRLF in mingw tool chain
8922 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8926 # Try without a prefix underscore, then with it.
8927 for ac_symprfx in "" "_"; do
8929 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8930 symxfrm="\\1 $ac_symprfx\\2 \\2"
8932 # Write the raw and C identifiers.
8933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8934 # Fake it for dumpbin and say T for any non-static function,
8935 # D for any global variable and I for any imported variable.
8936 # Also find C++ and __fastcall symbols from MSVC++,
8937 # which start with @ or ?.
8938 lt_cv_sys_global_symbol_pipe="$AWK '"\
8939 " {last_section=section; section=\$ 3};"\
8940 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8941 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8942 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8943 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8944 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8945 " \$ 0!~/External *\|/{next};"\
8946 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8947 " {if(hide[section]) next};"\
8948 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8949 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8950 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8951 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8952 " ' prfx=^$ac_symprfx"
8954 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8956 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8958 # Check to see that the pipe works correctly.
8962 cat > conftest.$ac_ext <<_LT_EOF
8967 void nm_test_func(void);
8968 void nm_test_func(void){}
8972 int main(){nm_test_var='a';nm_test_func();return(0);}
8975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8976 (eval $ac_compile) 2>&5
8978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979 test $ac_status = 0; }; then
8980 # Now try to grab the symbols.
8982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8983 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8986 test $ac_status = 0; } && test -s "$nlist"; then
8987 # Try sorting and uniquifying the output.
8988 if sort "$nlist" | uniq > "$nlist"T; then
8989 mv -f "$nlist"T "$nlist"
8994 # Make sure that we snagged all the symbols we need.
8995 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8996 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8997 cat <<_LT_EOF > conftest.$ac_ext
8998 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8999 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9000 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9001 relocations are performed -- see ld's documentation on pseudo-relocs. */
9002 # define LT_DLSYM_CONST
9003 #elif defined __osf__
9004 /* This system does not cope well with relocations in const data. */
9005 # define LT_DLSYM_CONST
9007 # define LT_DLSYM_CONST const
9015 # Now generate the symbol file.
9016 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9018 cat <<_LT_EOF >> conftest.$ac_ext
9020 /* The mapping between symbol names and symbols. */
9021 LT_DLSYM_CONST struct {
9025 lt__PROGRAM__LTX_preloaded_symbols[] =
9027 { "@PROGRAM@", (void *) 0 },
9029 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9030 cat <<\_LT_EOF >> conftest.$ac_ext
9034 /* This works around a problem in FreeBSD linker */
9035 #ifdef FREEBSD_WORKAROUND
9036 static const void *lt_preloaded_setup() {
9037 return lt__PROGRAM__LTX_preloaded_symbols;
9045 # Now try linking the two files.
9046 mv conftest.$ac_objext conftstm.$ac_objext
9047 lt_globsym_save_LIBS=$LIBS
9048 lt_globsym_save_CFLAGS=$CFLAGS
9049 LIBS=conftstm.$ac_objext
9050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9052 (eval $ac_link) 2>&5
9054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9058 LIBS=$lt_globsym_save_LIBS
9059 CFLAGS=$lt_globsym_save_CFLAGS
9061 echo "cannot find nm_test_func in $nlist" >&5
9064 echo "cannot find nm_test_var in $nlist" >&5
9067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9070 echo "$progname: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 rm -rf conftest* conftst*
9075 # Do not use the global_symbol_pipe unless it works.
9076 if test yes = "$pipe_works"; then
9079 lt_cv_sys_global_symbol_pipe=
9085 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9086 lt_cv_sys_global_symbol_to_cdecl=
9088 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9090 $as_echo "failed" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9093 $as_echo "ok" >&6; }
9096 # Response file support.
9097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9098 nm_file_list_spec='@'
9099 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9100 nm_file_list_spec='@'
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9140 $as_echo_n "checking for sysroot... " >&6; }
9142 # Check whether --with-sysroot was given.
9143 if test "${with_sysroot+set}" = set; then :
9144 withval=$with_sysroot;
9151 case $with_sysroot in #(
9153 if test yes = "$GCC"; then
9154 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9158 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9164 $as_echo "$with_sysroot" >&6; }
9165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9170 $as_echo "${lt_sysroot:-no}" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9177 $as_echo_n "checking for a working dd... " >&6; }
9178 if ${ac_cv_path_lt_DD+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 printf 0123456789abcdef0123456789abcdef >conftest.i
9182 cat conftest.i conftest.i >conftest2.i
9184 if test -z "$lt_DD"; then
9185 ac_path_lt_DD_found=false
9186 # Loop through the user's path and test for each of PROGNAME-LIST
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 test -z "$as_dir" && as_dir=.
9192 for ac_prog in dd; do
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9195 as_fn_executable_p "$ac_path_lt_DD" || continue
9196 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9197 cmp -s conftest.i conftest.out \
9198 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9200 $ac_path_lt_DD_found && break 3
9205 if test -z "$ac_cv_path_lt_DD"; then
9209 ac_cv_path_lt_DD=$lt_DD
9212 rm -f conftest.i conftest2.i conftest.out
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9215 $as_echo "$ac_cv_path_lt_DD" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9219 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9220 if ${lt_cv_truncate_bin+:} false; then :
9221 $as_echo_n "(cached) " >&6
9223 printf 0123456789abcdef0123456789abcdef >conftest.i
9224 cat conftest.i conftest.i >conftest2.i
9226 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9227 cmp -s conftest.i conftest.out \
9228 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9230 rm -f conftest.i conftest2.i conftest.out
9231 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9234 $as_echo "$lt_cv_truncate_bin" >&6; }
9242 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9245 for cc_temp in $*""; do
9247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9253 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9256 # Check whether --enable-libtool-lock was given.
9257 if test "${enable_libtool_lock+set}" = set; then :
9258 enableval=$enable_libtool_lock;
9261 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9263 # Some flags need to be propagated to the compiler or linker for good
9267 # Find out what ABI is being produced by ac_compile, and set mode
9268 # options accordingly.
9269 echo 'int i;' > conftest.$ac_ext
9270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9271 (eval $ac_compile) 2>&5
9273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9274 test $ac_status = 0; }; then
9275 case `/usr/bin/file conftest.$ac_objext` in
9287 # Find out what ABI is being produced by ac_compile, and set linker
9288 # options accordingly.
9289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9291 (eval $ac_compile) 2>&5
9293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294 test $ac_status = 0; }; then
9295 if test yes = "$lt_cv_prog_gnu_ld"; then
9296 case `/usr/bin/file conftest.$ac_objext` in
9298 LD="${LD-ld} -melf32bsmip"
9301 LD="${LD-ld} -melf32bmipn32"
9304 LD="${LD-ld} -melf64bmip"
9308 case `/usr/bin/file conftest.$ac_objext` in
9325 # Find out what ABI is being produced by ac_compile, and set linker
9326 # options accordingly.
9327 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9329 (eval $ac_compile) 2>&5
9331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9332 test $ac_status = 0; }; then
9334 case `/usr/bin/file conftest.$ac_objext` in
9342 case `/usr/bin/file conftest.$ac_objext` in
9344 emul="${emul}btsmip"
9347 emul="${emul}ltsmip"
9350 case `/usr/bin/file conftest.$ac_objext` in
9355 LD="${LD-ld} -m $emul"
9360 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9361 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9362 # Find out what ABI is being produced by ac_compile, and set linker
9363 # options accordingly. Note that the listed cases only cover the
9364 # situations where additional linker options are needed (such as when
9365 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9366 # vice versa); the common cases where no linker options are needed do
9367 # not appear in the list.
9368 echo 'int i;' > conftest.$ac_ext
9369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9370 (eval $ac_compile) 2>&5
9372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9373 test $ac_status = 0; }; then
9374 case `/usr/bin/file conftest.o` in
9377 x86_64-*kfreebsd*-gnu)
9378 LD="${LD-ld} -m elf_i386_fbsd"
9381 case `/usr/bin/file conftest.o` in
9383 LD="${LD-ld} -m elf32_x86_64"
9386 LD="${LD-ld} -m elf_i386"
9390 powerpc64le-*linux*)
9391 LD="${LD-ld} -m elf32lppclinux"
9394 LD="${LD-ld} -m elf32ppclinux"
9397 LD="${LD-ld} -m elf_s390"
9400 LD="${LD-ld} -m elf32_sparc"
9406 x86_64-*kfreebsd*-gnu)
9407 LD="${LD-ld} -m elf_x86_64_fbsd"
9410 LD="${LD-ld} -m elf_x86_64"
9413 LD="${LD-ld} -m elf64lppc"
9416 LD="${LD-ld} -m elf64ppc"
9418 s390*-*linux*|s390*-*tpf*)
9419 LD="${LD-ld} -m elf64_s390"
9422 LD="${LD-ld} -m elf64_sparc"
9432 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9434 CFLAGS="$CFLAGS -belf"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9436 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9437 if ${lt_cv_cc_needs_belf+:} false; then :
9438 $as_echo_n "(cached) " >&6
9441 ac_cpp='$CPP $CPPFLAGS'
9442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9457 if ac_fn_c_try_link "$LINENO"; then :
9458 lt_cv_cc_needs_belf=yes
9460 lt_cv_cc_needs_belf=no
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9465 ac_cpp='$CPP $CPPFLAGS'
9466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9472 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9473 if test yes != "$lt_cv_cc_needs_belf"; then
9474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9479 # Find out what ABI is being produced by ac_compile, and set linker
9480 # options accordingly.
9481 echo 'int i;' > conftest.$ac_ext
9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9483 (eval $ac_compile) 2>&5
9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; }; then
9487 case `/usr/bin/file conftest.o` in
9489 case $lt_cv_prog_gnu_ld in
9492 i?86-*-solaris*|x86_64-*-solaris*)
9493 LD="${LD-ld} -m elf_x86_64"
9496 LD="${LD-ld} -m elf64_sparc"
9499 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9500 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9505 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9517 need_locks=$enable_libtool_lock
9519 if test -n "$ac_tool_prefix"; then
9520 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9521 set dummy ${ac_tool_prefix}mt; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -n "$MANIFEST_TOOL"; then
9528 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9548 if test -n "$MANIFEST_TOOL"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9550 $as_echo "$MANIFEST_TOOL" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9558 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9559 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9560 # Extract the first word of "mt", so it can be a program name with args.
9561 set dummy mt; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9565 $as_echo_n "(cached) " >&6
9567 if test -n "$ac_ct_MANIFEST_TOOL"; then
9568 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9577 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9588 if test -n "$ac_ct_MANIFEST_TOOL"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9590 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9596 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9599 case $cross_compiling:$ac_tool_warned in
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9603 ac_tool_warned=yes ;;
9605 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9608 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9611 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9613 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9614 if ${lt_cv_path_mainfest_tool+:} false; then :
9615 $as_echo_n "(cached) " >&6
9617 lt_cv_path_mainfest_tool=no
9618 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9619 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9620 cat conftest.err >&5
9621 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9622 lt_cv_path_mainfest_tool=yes
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9627 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9628 if test yes != "$lt_cv_path_mainfest_tool"; then
9638 rhapsody* | darwin*)
9639 if test -n "$ac_tool_prefix"; then
9640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9641 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9645 $as_echo_n "(cached) " >&6
9647 if test -n "$DSYMUTIL"; then
9648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9668 if test -n "$DSYMUTIL"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9670 $as_echo "$DSYMUTIL" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9678 if test -z "$ac_cv_prog_DSYMUTIL"; then
9679 ac_ct_DSYMUTIL=$DSYMUTIL
9680 # Extract the first word of "dsymutil", so it can be a program name with args.
9681 set dummy dsymutil; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9685 $as_echo_n "(cached) " >&6
9687 if test -n "$ac_ct_DSYMUTIL"; then
9688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9708 if test -n "$ac_ct_DSYMUTIL"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9710 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9716 if test "x$ac_ct_DSYMUTIL" = x; then
9719 case $cross_compiling:$ac_tool_warned in
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9723 ac_tool_warned=yes ;;
9725 DSYMUTIL=$ac_ct_DSYMUTIL
9728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9731 if test -n "$ac_tool_prefix"; then
9732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9733 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_prog_NMEDIT+:} false; then :
9737 $as_echo_n "(cached) " >&6
9739 if test -n "$NMEDIT"; then
9740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 NMEDIT=$ac_cv_prog_NMEDIT
9760 if test -n "$NMEDIT"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9762 $as_echo "$NMEDIT" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9770 if test -z "$ac_cv_prog_NMEDIT"; then
9771 ac_ct_NMEDIT=$NMEDIT
9772 # Extract the first word of "nmedit", so it can be a program name with args.
9773 set dummy nmedit; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 if test -n "$ac_ct_NMEDIT"; then
9780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9800 if test -n "$ac_ct_NMEDIT"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9802 $as_echo "$ac_ct_NMEDIT" >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9808 if test "x$ac_ct_NMEDIT" = x; then
9811 case $cross_compiling:$ac_tool_warned in
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815 ac_tool_warned=yes ;;
9817 NMEDIT=$ac_ct_NMEDIT
9820 NMEDIT="$ac_cv_prog_NMEDIT"
9823 if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9825 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if ${ac_cv_prog_LIPO+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 if test -n "$LIPO"; then
9832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 LIPO=$ac_cv_prog_LIPO
9852 if test -n "$LIPO"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9854 $as_echo "$LIPO" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9862 if test -z "$ac_cv_prog_LIPO"; then
9864 # Extract the first word of "lipo", so it can be a program name with args.
9865 set dummy lipo; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9869 $as_echo_n "(cached) " >&6
9871 if test -n "$ac_ct_LIPO"; then
9872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_ac_ct_LIPO="lipo"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9892 if test -n "$ac_ct_LIPO"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9894 $as_echo "$ac_ct_LIPO" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9900 if test "x$ac_ct_LIPO" = x; then
9903 case $cross_compiling:$ac_tool_warned in
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907 ac_tool_warned=yes ;;
9912 LIPO="$ac_cv_prog_LIPO"
9915 if test -n "$ac_tool_prefix"; then
9916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9917 set dummy ${ac_tool_prefix}otool; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if ${ac_cv_prog_OTOOL+:} false; then :
9921 $as_echo_n "(cached) " >&6
9923 if test -n "$OTOOL"; then
9924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 OTOOL=$ac_cv_prog_OTOOL
9944 if test -n "$OTOOL"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9946 $as_echo "$OTOOL" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test -z "$ac_cv_prog_OTOOL"; then
9956 # Extract the first word of "otool", so it can be a program name with args.
9957 set dummy otool; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9961 $as_echo_n "(cached) " >&6
9963 if test -n "$ac_ct_OTOOL"; then
9964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_ac_ct_OTOOL="otool"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9984 if test -n "$ac_ct_OTOOL"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9986 $as_echo "$ac_ct_OTOOL" >&6; }
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9992 if test "x$ac_ct_OTOOL" = x; then
9995 case $cross_compiling:$ac_tool_warned in
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999 ac_tool_warned=yes ;;
10004 OTOOL="$ac_cv_prog_OTOOL"
10007 if test -n "$ac_tool_prefix"; then
10008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10009 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_prog_OTOOL64+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 if test -n "$OTOOL64"; then
10016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 OTOOL64=$ac_cv_prog_OTOOL64
10036 if test -n "$OTOOL64"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10038 $as_echo "$OTOOL64" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10046 if test -z "$ac_cv_prog_OTOOL64"; then
10047 ac_ct_OTOOL64=$OTOOL64
10048 # Extract the first word of "otool64", so it can be a program name with args.
10049 set dummy otool64; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10053 $as_echo_n "(cached) " >&6
10055 if test -n "$ac_ct_OTOOL64"; then
10056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_ac_ct_OTOOL64="otool64"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10076 if test -n "$ac_ct_OTOOL64"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10078 $as_echo "$ac_ct_OTOOL64" >&6; }
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10084 if test "x$ac_ct_OTOOL64" = x; then
10087 case $cross_compiling:$ac_tool_warned in
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091 ac_tool_warned=yes ;;
10093 OTOOL64=$ac_ct_OTOOL64
10096 OTOOL64="$ac_cv_prog_OTOOL64"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10126 $as_echo_n "checking for -single_module linker flag... " >&6; }
10127 if ${lt_cv_apple_cc_single_mod+:} false; then :
10128 $as_echo_n "(cached) " >&6
10130 lt_cv_apple_cc_single_mod=no
10131 if test -z "$LT_MULTI_MODULE"; then
10132 # By default we will add the -single_module flag. You can override
10133 # by either setting the environment variable LT_MULTI_MODULE
10134 # non-empty at configure time, or by adding -multi_module to the
10136 rm -rf libconftest.dylib*
10137 echo "int foo(void){return 1;}" > conftest.c
10138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10139 -dynamiclib -Wl,-single_module conftest.c" >&5
10140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10143 # If there is a non-empty error log, and "single_module"
10144 # appears in it, assume the flag caused a linker warning
10145 if test -s conftest.err && $GREP single_module conftest.err; then
10146 cat conftest.err >&5
10147 # Otherwise, if the output was created with a 0 exit code from
10148 # the compiler, it worked.
10149 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10150 lt_cv_apple_cc_single_mod=yes
10152 cat conftest.err >&5
10154 rm -rf libconftest.dylib*
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10159 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10162 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10163 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10164 $as_echo_n "(cached) " >&6
10166 lt_cv_ld_exported_symbols_list=no
10167 save_LDFLAGS=$LDFLAGS
10168 echo "_main" > conftest.sym
10169 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10181 if ac_fn_c_try_link "$LINENO"; then :
10182 lt_cv_ld_exported_symbols_list=yes
10184 lt_cv_ld_exported_symbols_list=no
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LDFLAGS=$save_LDFLAGS
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10192 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10195 $as_echo_n "checking for -force_load linker flag... " >&6; }
10196 if ${lt_cv_ld_force_load+:} false; then :
10197 $as_echo_n "(cached) " >&6
10199 lt_cv_ld_force_load=no
10200 cat > conftest.c << _LT_EOF
10201 int forced_loaded() { return 2;}
10203 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10205 echo "$AR cru libconftest.a conftest.o" >&5
10206 $AR cru libconftest.a conftest.o 2>&5
10207 echo "$RANLIB libconftest.a" >&5
10208 $RANLIB libconftest.a 2>&5
10209 cat > conftest.c << _LT_EOF
10210 int main() { return 0;}
10212 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10213 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10215 if test -s conftest.err && $GREP force_load conftest.err; then
10216 cat conftest.err >&5
10217 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10218 lt_cv_ld_force_load=yes
10220 cat conftest.err >&5
10222 rm -f conftest.err libconftest.a conftest conftest.c
10223 rm -rf conftest.dSYM
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10227 $as_echo "$lt_cv_ld_force_load" >&6; }
10229 rhapsody* | darwin1.[012])
10230 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10232 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10233 darwin*) # darwin 5.x on
10234 # if running on 10.5 or later, the deployment target defaults
10235 # to the OS version, if on x86, and 10.4, the deployment
10236 # target defaults to 10.4. Don't you love it?
10237 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10238 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10241 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10243 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10247 if test yes = "$lt_cv_apple_cc_single_mod"; then
10248 _lt_dar_single_mod='$single_module'
10250 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10251 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10253 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10255 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10256 _lt_dsymutil='~$DSYMUTIL $lib || :'
10263 # func_munge_path_list VARIABLE PATH
10264 # -----------------------------------
10265 # VARIABLE is name of variable containing _space_ separated list of
10266 # directories to be munged by the contents of PATH, which is string
10269 # string "DIR[ DIR]" will be prepended to VARIABLE
10271 # string "DIR[ DIR]" will be appended to VARIABLE
10272 # "DIRP[:DIRP]::[DIRA:]DIRA"
10273 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10274 # "DIRA[ DIRA]" will be appended to VARIABLE
10276 # VARIABLE will be replaced by "DIR[ DIR]"
10277 func_munge_path_list ()
10283 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10286 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10289 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10290 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10293 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10298 for ac_header in dlfcn.h
10300 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10302 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_DLFCN_H 1
10322 enable_win32_dll=no
10326 # Check whether --enable-static was given.
10327 if test "${enable_static+set}" = set; then :
10328 enableval=$enable_static; p=${PACKAGE-default}
10330 yes) enable_static=yes ;;
10331 no) enable_static=no ;;
10334 # Look at the argument we got. We use all the common list separators.
10335 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10336 for pkg in $enableval; do
10338 if test "X$pkg" = "X$p"; then
10358 # Check whether --with-pic was given.
10359 if test "${with_pic+set}" = set; then :
10360 withval=$with_pic; lt_p=${PACKAGE-default}
10362 yes|no) pic_mode=$withval ;;
10365 # Look at the argument we got. We use all the common list separators.
10366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10367 for lt_pkg in $withval; do
10369 if test "X$lt_pkg" = "X$lt_p"; then
10387 # Check whether --enable-fast-install was given.
10388 if test "${enable_fast_install+set}" = set; then :
10389 enableval=$enable_fast_install; p=${PACKAGE-default}
10391 yes) enable_fast_install=yes ;;
10392 no) enable_fast_install=no ;;
10394 enable_fast_install=no
10395 # Look at the argument we got. We use all the common list separators.
10396 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10397 for pkg in $enableval; do
10399 if test "X$pkg" = "X$p"; then
10400 enable_fast_install=yes
10407 enable_fast_install=yes
10417 shared_archive_member_spec=
10418 case $host,$enable_shared in
10419 power*-*-aix[5-9]*,yes)
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10421 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10423 # Check whether --with-aix-soname was given.
10424 if test "${with_aix_soname+set}" = set; then :
10425 withval=$with_aix_soname; case $withval in
10429 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10432 lt_cv_with_aix_soname=$with_aix_soname
10434 if ${lt_cv_with_aix_soname+:} false; then :
10435 $as_echo_n "(cached) " >&6
10437 lt_cv_with_aix_soname=aix
10440 with_aix_soname=$lt_cv_with_aix_soname
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10444 $as_echo "$with_aix_soname" >&6; }
10445 if test aix != "$with_aix_soname"; then
10446 # For the AIX way of multilib, we name the shared archive member
10447 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10448 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10449 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10450 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10451 if test 64 = "${OBJECT_MODE-32}"; then
10452 shared_archive_member_spec=shr_64
10454 shared_archive_member_spec=shr
10459 with_aix_soname=aix
10472 # This can be used to rebuild libtool when needed
10473 LIBTOOL_DEPS=$ltmain
10475 # Always use our own libtool.
10476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10507 test -z "$LN_S" && LN_S="ln -s"
10522 if test -n "${ZSH_VERSION+set}"; then
10523 setopt NO_GLOB_SUBST
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10527 $as_echo_n "checking for objdir... " >&6; }
10528 if ${lt_cv_objdir+:} false; then :
10529 $as_echo_n "(cached) " >&6
10531 rm -f .libs 2>/dev/null
10532 mkdir .libs 2>/dev/null
10533 if test -d .libs; then
10536 # MS-DOS does not allow filenames that begin with a dot.
10539 rmdir .libs 2>/dev/null
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10542 $as_echo "$lt_cv_objdir" >&6; }
10543 objdir=$lt_cv_objdir
10549 cat >>confdefs.h <<_ACEOF
10550 #define LT_OBJDIR "$lt_cv_objdir/"
10558 # AIX sometimes has problems with the GCC collect2 program. For some
10559 # reason, if we set the COLLECT_NAMES environment variable, the problems
10560 # vanish in a puff of smoke.
10561 if test set != "${COLLECT_NAMES+set}"; then
10563 export COLLECT_NAMES
10568 # Global variables:
10570 can_build_shared=yes
10572 # All known linkers require a '.a' archive for static linking (except MSVC,
10573 # which needs '.lib').
10576 with_gnu_ld=$lt_cv_prog_gnu_ld
10581 # Set sane defaults for various variables
10582 test -z "$CC" && CC=cc
10583 test -z "$LTCC" && LTCC=$CC
10584 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10585 test -z "$LD" && LD=ld
10586 test -z "$ac_objext" && ac_objext=o
10588 func_cc_basename $compiler
10589 cc_basename=$func_cc_basename_result
10592 # Only perform the check for file, if the check method requires it
10593 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10594 case $deplibs_check_method in
10596 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10598 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10599 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10600 $as_echo_n "(cached) " >&6
10604 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10607 lt_save_MAGIC_CMD=$MAGIC_CMD
10608 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10609 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10610 for ac_dir in $ac_dummy; do
10612 test -z "$ac_dir" && ac_dir=.
10613 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10614 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10615 if test -n "$file_magic_test_file"; then
10616 case $deplibs_check_method in
10618 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10620 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10621 $EGREP "$file_magic_regex" > /dev/null; then
10626 *** Warning: the command libtool uses to detect shared libraries,
10627 *** $file_magic_cmd, produces output that libtool cannot recognize.
10628 *** The result is that libtool may fail to recognize shared libraries
10629 *** as such. This will affect the creation of libtool libraries that
10630 *** depend on shared libraries, but programs linked with such libtool
10631 *** libraries will work regardless of this problem. Nevertheless, you
10632 *** may want to report the problem to your system manager and/or to
10633 *** bug-libtool@gnu.org
10643 MAGIC_CMD=$lt_save_MAGIC_CMD
10648 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10649 if test -n "$MAGIC_CMD"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10651 $as_echo "$MAGIC_CMD" >&6; }
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10661 if test -z "$lt_cv_path_MAGIC_CMD"; then
10662 if test -n "$ac_tool_prefix"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10664 $as_echo_n "checking for file... " >&6; }
10665 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10666 $as_echo_n "(cached) " >&6
10670 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10673 lt_save_MAGIC_CMD=$MAGIC_CMD
10674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10676 for ac_dir in $ac_dummy; do
10678 test -z "$ac_dir" && ac_dir=.
10679 if test -f "$ac_dir/file"; then
10680 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10681 if test -n "$file_magic_test_file"; then
10682 case $deplibs_check_method in
10684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10685 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10687 $EGREP "$file_magic_regex" > /dev/null; then
10692 *** Warning: the command libtool uses to detect shared libraries,
10693 *** $file_magic_cmd, produces output that libtool cannot recognize.
10694 *** The result is that libtool may fail to recognize shared libraries
10695 *** as such. This will affect the creation of libtool libraries that
10696 *** depend on shared libraries, but programs linked with such libtool
10697 *** libraries will work regardless of this problem. Nevertheless, you
10698 *** may want to report the problem to your system manager and/or to
10699 *** bug-libtool@gnu.org
10709 MAGIC_CMD=$lt_save_MAGIC_CMD
10714 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10715 if test -n "$MAGIC_CMD"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10717 $as_echo "$MAGIC_CMD" >&6; }
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10733 # Use C for the default configuration in the libtool script
10737 ac_cpp='$CPP $CPPFLAGS'
10738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10743 # Source file extension for C test sources.
10746 # Object file extension for compiled C test sources.
10750 # Code to be used in simple compile tests
10751 lt_simple_compile_test_code="int some_variable = 0;"
10753 # Code to be used in simple link tests
10754 lt_simple_link_test_code='int main(){return(0);}'
10762 # If no C compiler was specified, use CC.
10765 # If no C compiler flags were specified, use CFLAGS.
10766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10768 # Allow CC to be a program name with arguments.
10771 # Save the default compiler, since it gets overwritten when the other
10772 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10773 compiler_DEFAULT=$CC
10775 # save warnings/boilerplate of simple test code
10776 ac_outfile=conftest.$ac_objext
10777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10779 _lt_compiler_boilerplate=`cat conftest.err`
10782 ac_outfile=conftest.$ac_objext
10783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10785 _lt_linker_boilerplate=`cat conftest.err`
10790 ## There is no encapsulation within the following macros, do not change
10791 ## the running order or otherwise move them around unless you know exactly
10792 ## what you are doing...
10793 if test -n "$compiler"; then
10795 lt_prog_compiler_no_builtin_flag=
10797 if test yes = "$GCC"; then
10798 case $cc_basename in
10800 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10802 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10806 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10807 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 lt_cv_prog_compiler_rtti_exceptions=no
10811 ac_outfile=conftest.$ac_objext
10812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10813 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10814 # Insert the option either (1) after the last *FLAGS variable, or
10815 # (2) before a word containing "conftest.", or (3) at the end.
10816 # Note that $ac_compile itself does not contain backslashes and begins
10817 # with a dollar sign (not a hyphen), so the echo should work correctly.
10818 # The option is referenced via a variable to avoid confusing sed.
10819 lt_compile=`echo "$ac_compile" | $SED \
10820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10822 -e 's:$: $lt_compiler_flag:'`
10823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10824 (eval "$lt_compile" 2>conftest.err)
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 if (exit $ac_status) && test -s "$ac_outfile"; then
10829 # The compiler can only warn and ignore the option if not recognized
10830 # So say no if there are warnings other than the usual output.
10831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10834 lt_cv_prog_compiler_rtti_exceptions=yes
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10841 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10843 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10844 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10856 lt_prog_compiler_wl=
10857 lt_prog_compiler_pic=
10858 lt_prog_compiler_static=
10861 if test yes = "$GCC"; then
10862 lt_prog_compiler_wl='-Wl,'
10863 lt_prog_compiler_static='-static'
10867 # All AIX code is PIC.
10868 if test ia64 = "$host_cpu"; then
10869 # AIX 5 now supports IA64 processor
10870 lt_prog_compiler_static='-Bstatic'
10872 lt_prog_compiler_pic='-fPIC'
10878 # see comment about AmigaOS4 .so support
10879 lt_prog_compiler_pic='-fPIC'
10882 # FIXME: we need at least 68020 code to build shared libraries, but
10883 # adding the '-m68020' flag to GCC prevents building anything better,
10885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10891 # PIC is the default for these OSes.
10894 mingw* | cygwin* | pw32* | os2* | cegcc*)
10895 # This hack is so that the source file can tell whether it is being
10896 # built for inclusion in a dll (and should export symbols for example).
10897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10898 # (--disable-auto-import) libraries
10899 lt_prog_compiler_pic='-DDLL_EXPORT'
10902 lt_prog_compiler_static='$wl-static'
10907 darwin* | rhapsody*)
10908 # PIC is the default on this platform
10909 # Common symbols not allowed in MH_DYLIB files
10910 lt_prog_compiler_pic='-fno-common'
10914 # PIC is the default for Haiku.
10915 # The "-static" flag exists, but is broken.
10916 lt_prog_compiler_static=
10920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10922 # sets the default TLS model and affects inlining.
10928 lt_prog_compiler_pic='-fPIC'
10934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10935 # Instead, we relocate shared libraries at runtime.
10939 # Just because we use GCC doesn't mean we suddenly get shared libraries
10940 # on systems that don't support them.
10941 lt_prog_compiler_can_build_shared=no
10946 # QNX uses GNU C++, but need to define -shared option too, otherwise
10947 # it will coredump.
10948 lt_prog_compiler_pic='-fPIC -shared'
10952 if test -d /usr/nec; then
10953 lt_prog_compiler_pic=-Kconform_pic
10958 lt_prog_compiler_pic='-fPIC'
10962 case $cc_basename in
10963 nvcc*) # Cuda Compiler Driver 2.2
10964 lt_prog_compiler_wl='-Xlinker '
10965 if test -n "$lt_prog_compiler_pic"; then
10966 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10971 # PORTME Check for flag to pass linker flags through the system compiler.
10974 lt_prog_compiler_wl='-Wl,'
10975 if test ia64 = "$host_cpu"; then
10976 # AIX 5 now supports IA64 processor
10977 lt_prog_compiler_static='-Bstatic'
10979 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10983 darwin* | rhapsody*)
10984 # PIC is the default on this platform
10985 # Common symbols not allowed in MH_DYLIB files
10986 lt_prog_compiler_pic='-fno-common'
10987 case $cc_basename in
10989 # NAG Fortran compiler
10990 lt_prog_compiler_wl='-Wl,-Wl,,'
10991 lt_prog_compiler_pic='-PIC'
10992 lt_prog_compiler_static='-Bstatic'
10997 mingw* | cygwin* | pw32* | os2* | cegcc*)
10998 # This hack is so that the source file can tell whether it is being
10999 # built for inclusion in a dll (and should export symbols for example).
11000 lt_prog_compiler_pic='-DDLL_EXPORT'
11003 lt_prog_compiler_static='$wl-static'
11008 hpux9* | hpux10* | hpux11*)
11009 lt_prog_compiler_wl='-Wl,'
11010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11011 # not for PA HP-UX.
11017 lt_prog_compiler_pic='+Z'
11020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11021 lt_prog_compiler_static='$wl-a ${wl}archive'
11024 irix5* | irix6* | nonstopux*)
11025 lt_prog_compiler_wl='-Wl,'
11026 # PIC (with -KPIC) is the default.
11027 lt_prog_compiler_static='-non_shared'
11030 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11031 case $cc_basename in
11032 # old Intel for x86_64, which still supported -KPIC.
11034 lt_prog_compiler_wl='-Wl,'
11035 lt_prog_compiler_pic='-KPIC'
11036 lt_prog_compiler_static='-static'
11038 # icc used to be incompatible with GCC.
11039 # ICC 10 doesn't accept -KPIC any more.
11041 lt_prog_compiler_wl='-Wl,'
11042 lt_prog_compiler_pic='-fPIC'
11043 lt_prog_compiler_static='-static'
11045 # Lahey Fortran 8.1.
11047 lt_prog_compiler_wl='-Wl,'
11048 lt_prog_compiler_pic='--shared'
11049 lt_prog_compiler_static='--static'
11052 # NAG Fortran compiler
11053 lt_prog_compiler_wl='-Wl,-Wl,,'
11054 lt_prog_compiler_pic='-PIC'
11055 lt_prog_compiler_static='-Bstatic'
11058 # Fabrice Bellard et al's Tiny C Compiler
11059 lt_prog_compiler_wl='-Wl,'
11060 lt_prog_compiler_pic='-fPIC'
11061 lt_prog_compiler_static='-static'
11063 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11064 # Portland Group compilers (*not* the Pentium gcc compiler,
11065 # which looks to be a dead project)
11066 lt_prog_compiler_wl='-Wl,'
11067 lt_prog_compiler_pic='-fpic'
11068 lt_prog_compiler_static='-Bstatic'
11071 lt_prog_compiler_wl='-Wl,'
11072 # All Alpha code is PIC.
11073 lt_prog_compiler_static='-non_shared'
11075 xl* | bgxl* | bgf* | mpixl*)
11076 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11077 lt_prog_compiler_wl='-Wl,'
11078 lt_prog_compiler_pic='-qpic'
11079 lt_prog_compiler_static='-qstaticlink'
11082 case `$CC -V 2>&1 | sed 5q` in
11083 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11084 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11085 lt_prog_compiler_pic='-KPIC'
11086 lt_prog_compiler_static='-Bstatic'
11087 lt_prog_compiler_wl=''
11089 *Sun\ F* | *Sun*Fortran*)
11090 lt_prog_compiler_pic='-KPIC'
11091 lt_prog_compiler_static='-Bstatic'
11092 lt_prog_compiler_wl='-Qoption ld '
11096 lt_prog_compiler_pic='-KPIC'
11097 lt_prog_compiler_static='-Bstatic'
11098 lt_prog_compiler_wl='-Wl,'
11100 *Intel*\ [CF]*Compiler*)
11101 lt_prog_compiler_wl='-Wl,'
11102 lt_prog_compiler_pic='-fPIC'
11103 lt_prog_compiler_static='-static'
11106 lt_prog_compiler_wl='-Wl,'
11107 lt_prog_compiler_pic='-fpic'
11108 lt_prog_compiler_static='-Bstatic'
11116 lt_prog_compiler_pic='-KPIC'
11117 lt_prog_compiler_static='-Bstatic'
11121 # QNX uses GNU C++, but need to define -shared option too, otherwise
11122 # it will coredump.
11123 lt_prog_compiler_pic='-fPIC -shared'
11126 osf3* | osf4* | osf5*)
11127 lt_prog_compiler_wl='-Wl,'
11128 # All OSF/1 code is PIC.
11129 lt_prog_compiler_static='-non_shared'
11133 lt_prog_compiler_static='-non_shared'
11137 lt_prog_compiler_pic='-KPIC'
11138 lt_prog_compiler_static='-Bstatic'
11139 case $cc_basename in
11140 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11141 lt_prog_compiler_wl='-Qoption ld ';;
11143 lt_prog_compiler_wl='-Wl,';;
11148 lt_prog_compiler_wl='-Qoption ld '
11149 lt_prog_compiler_pic='-PIC'
11150 lt_prog_compiler_static='-Bstatic'
11153 sysv4 | sysv4.2uw2* | sysv4.3*)
11154 lt_prog_compiler_wl='-Wl,'
11155 lt_prog_compiler_pic='-KPIC'
11156 lt_prog_compiler_static='-Bstatic'
11160 if test -d /usr/nec; then
11161 lt_prog_compiler_pic='-Kconform_pic'
11162 lt_prog_compiler_static='-Bstatic'
11166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11167 lt_prog_compiler_wl='-Wl,'
11168 lt_prog_compiler_pic='-KPIC'
11169 lt_prog_compiler_static='-Bstatic'
11173 lt_prog_compiler_wl='-Wl,'
11174 lt_prog_compiler_can_build_shared=no
11178 lt_prog_compiler_pic='-pic'
11179 lt_prog_compiler_static='-Bstatic'
11183 lt_prog_compiler_can_build_shared=no
11189 # For platforms that do not support PIC, -DPIC is meaningless:
11191 lt_prog_compiler_pic=
11194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11199 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11200 if ${lt_cv_prog_compiler_pic+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11206 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11207 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11210 # Check to make sure the PIC flag actually works.
11212 if test -n "$lt_prog_compiler_pic"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11214 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11215 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11216 $as_echo_n "(cached) " >&6
11218 lt_cv_prog_compiler_pic_works=no
11219 ac_outfile=conftest.$ac_objext
11220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11221 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11222 # Insert the option either (1) after the last *FLAGS variable, or
11223 # (2) before a word containing "conftest.", or (3) at the end.
11224 # Note that $ac_compile itself does not contain backslashes and begins
11225 # with a dollar sign (not a hyphen), so the echo should work correctly.
11226 # The option is referenced via a variable to avoid confusing sed.
11227 lt_compile=`echo "$ac_compile" | $SED \
11228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11230 -e 's:$: $lt_compiler_flag:'`
11231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11232 (eval "$lt_compile" 2>conftest.err)
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 if (exit $ac_status) && test -s "$ac_outfile"; then
11237 # The compiler can only warn and ignore the option if not recognized
11238 # So say no if there are warnings other than the usual output.
11239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11242 lt_cv_prog_compiler_pic_works=yes
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11249 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11251 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11252 case $lt_prog_compiler_pic in
11254 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11257 lt_prog_compiler_pic=
11258 lt_prog_compiler_can_build_shared=no
11274 # Check to make sure the static flag actually works.
11276 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11279 if ${lt_cv_prog_compiler_static_works+:} false; then :
11280 $as_echo_n "(cached) " >&6
11282 lt_cv_prog_compiler_static_works=no
11283 save_LDFLAGS=$LDFLAGS
11284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11287 # The linker can only warn and ignore the option if not recognized
11288 # So say no if there are warnings
11289 if test -s conftest.err; then
11290 # Append any errors to the config.log.
11291 cat conftest.err 1>&5
11292 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11294 if diff conftest.exp conftest.er2 >/dev/null; then
11295 lt_cv_prog_compiler_static_works=yes
11298 lt_cv_prog_compiler_static_works=yes
11302 LDFLAGS=$save_LDFLAGS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11308 if test yes = "$lt_cv_prog_compiler_static_works"; then
11311 lt_prog_compiler_static=
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11322 if ${lt_cv_prog_compiler_c_o+:} false; then :
11323 $as_echo_n "(cached) " >&6
11325 lt_cv_prog_compiler_c_o=no
11326 $RM -r conftest 2>/dev/null
11330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11332 lt_compiler_flag="-o out/conftest2.$ac_objext"
11333 # Insert the option either (1) after the last *FLAGS variable, or
11334 # (2) before a word containing "conftest.", or (3) at the end.
11335 # Note that $ac_compile itself does not contain backslashes and begins
11336 # with a dollar sign (not a hyphen), so the echo should work correctly.
11337 lt_compile=`echo "$ac_compile" | $SED \
11338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340 -e 's:$: $lt_compiler_flag:'`
11341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11342 (eval "$lt_compile" 2>out/conftest.err)
11344 cat out/conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11348 # The compiler can only warn and ignore the option if not recognized
11349 # So say no if there are warnings
11350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11353 lt_cv_prog_compiler_c_o=yes
11358 # SGI C++ compiler will create directory out/ii_files/ for
11359 # template instantiation
11360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11361 $RM out/* && rmdir out
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11377 if ${lt_cv_prog_compiler_c_o+:} false; then :
11378 $as_echo_n "(cached) " >&6
11380 lt_cv_prog_compiler_c_o=no
11381 $RM -r conftest 2>/dev/null
11385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11387 lt_compiler_flag="-o out/conftest2.$ac_objext"
11388 # Insert the option either (1) after the last *FLAGS variable, or
11389 # (2) before a word containing "conftest.", or (3) at the end.
11390 # Note that $ac_compile itself does not contain backslashes and begins
11391 # with a dollar sign (not a hyphen), so the echo should work correctly.
11392 lt_compile=`echo "$ac_compile" | $SED \
11393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11395 -e 's:$: $lt_compiler_flag:'`
11396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11397 (eval "$lt_compile" 2>out/conftest.err)
11399 cat out/conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11403 # The compiler can only warn and ignore the option if not recognized
11404 # So say no if there are warnings
11405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11408 lt_cv_prog_compiler_c_o=yes
11413 # SGI C++ compiler will create directory out/ii_files/ for
11414 # template instantiation
11415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11416 $RM out/* && rmdir out
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11428 hard_links=nottested
11429 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11430 # do not overwrite the value of need_locks provided by the user
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11432 $as_echo_n "checking if we can lock with hard links... " >&6; }
11435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11437 ln conftest.a conftest.b 2>&5 || hard_links=no
11438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11440 $as_echo "$hard_links" >&6; }
11441 if test no = "$hard_links"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11443 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11459 allow_undefined_flag=
11460 always_export_symbols=no
11462 archive_expsym_cmds=
11463 compiler_needs_object=no
11464 enable_shared_with_static_runtimes=no
11465 export_dynamic_flag_spec=
11466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11467 hardcode_automatic=no
11469 hardcode_direct_absolute=no
11470 hardcode_libdir_flag_spec=
11471 hardcode_libdir_separator=
11472 hardcode_minus_L=no
11473 hardcode_shlibpath_var=unsupported
11475 link_all_deplibs=unknown
11477 module_expsym_cmds=
11478 old_archive_from_new_cmds=
11479 old_archive_from_expsyms_cmds=
11480 thread_safe_flag_spec=
11481 whole_archive_flag_spec=
11482 # include_expsyms should be a list of space-separated symbols to be *always*
11483 # included in the symbol list
11485 # exclude_expsyms can be an extended regexp of symbols to exclude
11486 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11487 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11488 # as well as any symbol that contains 'd'.
11489 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11490 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11491 # platforms (ab)use it in PIC code, but their linkers get confused if
11492 # the symbol is explicitly referenced. Since portable code cannot
11493 # rely on this symbol name, it's probably fine to never include it in
11494 # preloaded symbol tables.
11495 # Exclude shared library initialization/finalization symbols.
11496 extract_expsyms_cmds=
11499 cygwin* | mingw* | pw32* | cegcc*)
11500 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11501 # When not using gcc, we currently assume that we are using
11502 # Microsoft Visual C++.
11503 if test yes != "$GCC"; then
11508 # we just hope/assume this is gcc and not c89 (= MSVC++)
11511 openbsd* | bitrig*)
11518 # On some targets, GNU ld is compatible enough with the native linker
11519 # that we're better off using the native interface for both.
11520 lt_use_gnu_ld_interface=no
11521 if test yes = "$with_gnu_ld"; then
11524 # The AIX port of GNU ld has always aspired to compatibility
11525 # with the native linker. However, as the warning in the GNU ld
11526 # block says, versions before 2.19.5* couldn't really create working
11527 # shared libraries, regardless of the interface used.
11528 case `$LD -v 2>&1` in
11529 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11530 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11531 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11533 lt_use_gnu_ld_interface=yes
11538 lt_use_gnu_ld_interface=yes
11543 if test yes = "$lt_use_gnu_ld_interface"; then
11544 # If archive_cmds runs LD, not CC, wlarc should be empty
11547 # Set some defaults for GNU ld with shared library support. These
11548 # are reset later if shared libraries are not supported. Putting them
11549 # here allows them to be overridden if necessary.
11550 runpath_var=LD_RUN_PATH
11551 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11552 export_dynamic_flag_spec='$wl--export-dynamic'
11553 # ancient GNU ld didn't support --whole-archive et. al.
11554 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11555 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11557 whole_archive_flag_spec=
11559 supports_anon_versioning=no
11560 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11561 *GNU\ gold*) supports_anon_versioning=yes ;;
11562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11565 *\ 2.11.*) ;; # other 2.11 versions
11566 *) supports_anon_versioning=yes ;;
11569 # See if GNU ld supports shared libraries.
11572 # On AIX/PPC, the GNU linker is very broken
11573 if test ia64 != "$host_cpu"; then
11577 *** Warning: the GNU linker, at least up to release 2.19, is reported
11578 *** to be unable to reliably create shared libraries on AIX.
11579 *** Therefore, libtool is disabling shared libraries support. If you
11580 *** really care for shared libraries, you may want to install binutils
11581 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11582 *** You will then need to restart the configuration process.
11591 # see comment about AmigaOS4 .so support
11592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11593 archive_expsym_cmds=''
11596 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)'
11597 hardcode_libdir_flag_spec='-L$libdir'
11598 hardcode_minus_L=yes
11604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11605 allow_undefined_flag=unsupported
11606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11607 # support --undefined. This deserves some investigation. FIXME
11608 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11614 cygwin* | mingw* | pw32* | cegcc*)
11615 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11616 # as there is no search path for DLLs.
11617 hardcode_libdir_flag_spec='-L$libdir'
11618 export_dynamic_flag_spec='$wl--export-all-symbols'
11619 allow_undefined_flag=unsupported
11620 always_export_symbols=no
11621 enable_shared_with_static_runtimes=yes
11622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11623 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11627 # If the export-symbols file already is a .def file, use it as
11628 # is; otherwise, prepend EXPORTS...
11629 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11630 cp $export_symbols $output_objdir/$soname.def;
11632 echo EXPORTS > $output_objdir/$soname.def;
11633 cat $export_symbols >> $output_objdir/$soname.def;
11635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11643 link_all_deplibs=yes
11647 hardcode_libdir_flag_spec='-L$libdir'
11648 hardcode_minus_L=yes
11649 allow_undefined_flag=unsupported
11651 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11654 $ECHO EXPORTS >> $output_objdir/$libname.def~
11655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11657 emximp -o $lib $output_objdir/$libname.def'
11658 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11661 $ECHO EXPORTS >> $output_objdir/$libname.def~
11662 prefix_cmds="$SED"~
11663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11664 prefix_cmds="$prefix_cmds -e 1d";
11666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11669 emximp -o $lib $output_objdir/$libname.def'
11670 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11671 enable_shared_with_static_runtimes=yes
11676 hardcode_shlibpath_var=no
11677 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11678 export_dynamic_flag_spec='$wl-E'
11679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11680 # Instead, shared libraries are loaded at an image base (0x10000000 by
11681 # default) and relocated if they conflict, which is a slow very memory
11682 # consuming and fragmenting process. To avoid this, we pick a random,
11683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11686 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11689 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11691 if test linux-dietlibc = "$host_os"; then
11692 case $cc_basename in
11693 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11696 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11697 && test no = "$tmp_diet"
11699 tmp_addflag=' $pic_flag'
11700 tmp_sharedflag='-shared'
11701 case $cc_basename,$host_cpu in
11702 pgcc*) # Portland Group C compiler
11703 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11704 tmp_addflag=' $pic_flag'
11706 pgf77* | pgf90* | pgf95* | pgfortran*)
11707 # Portland Group f77 and f90 compilers
11708 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11709 tmp_addflag=' $pic_flag -Mnomain' ;;
11710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11711 tmp_addflag=' -i_dynamic' ;;
11712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11713 tmp_addflag=' -i_dynamic -nofor_main' ;;
11714 ifc* | ifort*) # Intel Fortran compiler
11715 tmp_addflag=' -nofor_main' ;;
11716 lf95*) # Lahey Fortran 8.1
11717 whole_archive_flag_spec=
11718 tmp_sharedflag='--shared' ;;
11719 nagfor*) # NAGFOR 5.3
11720 tmp_sharedflag='-Wl,-shared' ;;
11721 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11722 tmp_sharedflag='-qmkshrobj'
11724 nvcc*) # Cuda Compiler Driver 2.2
11725 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11726 compiler_needs_object=yes
11729 case `$CC -V 2>&1 | sed 5q` in
11730 *Sun\ C*) # Sun C 5.9
11731 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11732 compiler_needs_object=yes
11733 tmp_sharedflag='-G' ;;
11734 *Sun\ F*) # Sun Fortran 8.3
11735 tmp_sharedflag='-G' ;;
11737 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11739 if test yes = "$supports_anon_versioning"; then
11740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11742 echo "local: *; };" >> $output_objdir/$libname.ver~
11743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11746 case $cc_basename in
11748 export_dynamic_flag_spec='-rdynamic'
11750 xlf* | bgf* | bgxlf* | mpixlf*)
11751 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11752 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11753 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11754 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11755 if test yes = "$supports_anon_versioning"; then
11756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11758 echo "local: *; };" >> $output_objdir/$libname.ver~
11759 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11770 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11774 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11784 *** create shared libraries on Solaris systems. Therefore, libtool
11785 *** is disabling shared libraries support. We urge you to upgrade GNU
11786 *** binutils to release 2.9.1 or newer. Another option is to modify
11787 *** your PATH or compiler configuration so that the native linker is
11788 *** used, and then restart.
11791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11800 case `$LD -v 2>&1` in
11801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11806 *** reliably create shared libraries on SCO systems. Therefore, libtool
11807 *** is disabling shared libraries support. We urge you to upgrade GNU
11808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11809 *** your PATH or compiler configuration so that the native linker is
11810 *** used, and then restart.
11815 # For security reasons, it is highly recommended that you always
11816 # use absolute paths for naming shared libraries, and exclude the
11817 # DT_RUNPATH tag from executables and libraries. But doing so
11818 # requires that you compile everything twice, which is a pain.
11819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11820 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11831 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11833 hardcode_direct=yes
11834 hardcode_shlibpath_var=no
11838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11847 if test no = "$ld_shlibs"; then
11849 hardcode_libdir_flag_spec=
11850 export_dynamic_flag_spec=
11851 whole_archive_flag_spec=
11854 # PORTME fill in a description of your system's linker (not GNU ld)
11857 allow_undefined_flag=unsupported
11858 always_export_symbols=yes
11859 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'
11860 # Note: this linker hardcodes the directories in LIBPATH if there
11861 # are no directories specified by -L.
11862 hardcode_minus_L=yes
11863 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11864 # Neither direct hardcoding nor static linking is supported with a
11866 hardcode_direct=unsupported
11871 if test ia64 = "$host_cpu"; then
11872 # On IA64, the linker does run time linking by default, so we don't
11873 # have to do anything special.
11874 aix_use_runtimelinking=no
11875 exp_sym_flag='-Bexport'
11878 # If we're using GNU nm, then we don't want the "-C" option.
11879 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11880 # Without the "-l" option, or with the "-B" option, AIX nm treats
11881 # weak defined symbols like other global defined symbols, whereas
11882 # GNU nm marks them as "W".
11883 # While the 'weak' keyword is ignored in the Export File, we need
11884 # it in the Import File for the 'aix-soname' feature, so we have
11885 # to replace the "-B" option with "-P" for AIX nm.
11886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11887 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11889 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11891 aix_use_runtimelinking=no
11893 # Test if we are trying to use run time linking or normal
11894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11895 # have runtime linking enabled, and use it for executables.
11896 # For shared libraries, we enable/disable runtime linking
11897 # depending on the kind of the shared library created -
11898 # when "with_aix_soname,aix_use_runtimelinking" is:
11899 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11900 # "aix,yes" lib.so shared, rtl:yes, for executables
11901 # lib.a static archive
11902 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11903 # lib.a(lib.so.V) shared, rtl:no, for executables
11904 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11905 # lib.a(lib.so.V) shared, rtl:no
11906 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11907 # lib.a static archive
11908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11909 for ld_flag in $LDFLAGS; do
11910 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11911 aix_use_runtimelinking=yes
11915 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11916 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11917 # so we don't have lib.a shared libs to link our executables.
11918 # We have to force runtime linking in this case.
11919 aix_use_runtimelinking=yes
11920 LDFLAGS="$LDFLAGS -Wl,-brtl"
11925 exp_sym_flag='-bexport'
11926 no_entry_flag='-bnoentry'
11929 # When large executables or shared objects are built, AIX ld can
11930 # have problems creating the table of contents. If linking a library
11931 # or program results in "error TOC overflow" add -mminimal-toc to
11932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11936 hardcode_direct=yes
11937 hardcode_direct_absolute=yes
11938 hardcode_libdir_separator=':'
11939 link_all_deplibs=yes
11940 file_list_spec='$wl-f,'
11941 case $with_aix_soname,$aix_use_runtimelinking in
11942 aix,*) ;; # traditional, no import file
11943 svr4,* | *,yes) # use import file
11944 # The Import File defines what to hardcode.
11946 hardcode_direct_absolute=no
11950 if test yes = "$GCC"; then
11951 case $host_os in aix4.[012]|aix4.[012].*)
11952 # We only want to do this on AIX 4.2 and lower, the check
11953 # below for broken collect2 doesn't work under 4.3+
11954 collect2name=`$CC -print-prog-name=collect2`
11955 if test -f "$collect2name" &&
11956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11958 # We have reworked collect2
11961 # We have old collect2
11962 hardcode_direct=unsupported
11963 # It fails to find uninstalled libraries when the uninstalled
11964 # path is not listed in the libpath. Setting hardcode_minus_L
11965 # to unsupported forces relinking
11966 hardcode_minus_L=yes
11967 hardcode_libdir_flag_spec='-L$libdir'
11968 hardcode_libdir_separator=
11972 shared_flag='-shared'
11973 if test yes = "$aix_use_runtimelinking"; then
11974 shared_flag="$shared_flag "'$wl-G'
11976 # Need to ensure runtime linking is disabled for the traditional
11977 # shared library, or the linker may eventually find shared libraries
11978 # /with/ Import File - we do not want to mix them.
11979 shared_flag_aix='-shared'
11980 shared_flag_svr4='-shared $wl-G'
11983 if test ia64 = "$host_cpu"; then
11984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11985 # chokes on -Wl,-G. The following line is correct:
11988 if test yes = "$aix_use_runtimelinking"; then
11989 shared_flag='$wl-G'
11991 shared_flag='$wl-bM:SRE'
11993 shared_flag_aix='$wl-bM:SRE'
11994 shared_flag_svr4='$wl-G'
11998 export_dynamic_flag_spec='$wl-bexpall'
11999 # It seems that -bexpall does not export symbols beginning with
12000 # underscore (_), so it is better to generate a list of symbols to export.
12001 always_export_symbols=yes
12002 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12003 # Warning - without using the other runtime loading flags (-brtl),
12004 # -berok will link without error, but may produce a broken library.
12005 allow_undefined_flag='-berok'
12006 # Determine the default libpath from the value encoded in an
12007 # empty executable.
12008 if test set = "${lt_cv_aix_libpath+set}"; then
12009 aix_libpath=$lt_cv_aix_libpath
12011 if ${lt_cv_aix_libpath_+:} false; then :
12012 $as_echo_n "(cached) " >&6
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12025 if ac_fn_c_try_link "$LINENO"; then :
12027 lt_aix_libpath_sed='
12028 /Import File Strings/,/^$/ {
12030 s/^0 *\([^ ]*\) *$/\1/
12034 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12035 # Check for a 64-bit object if we didn't find anything.
12036 if test -z "$lt_cv_aix_libpath_"; then
12037 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042 if test -z "$lt_cv_aix_libpath_"; then
12043 lt_cv_aix_libpath_=/usr/lib:/lib
12048 aix_libpath=$lt_cv_aix_libpath_
12051 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12052 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12054 if test ia64 = "$host_cpu"; then
12055 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12056 allow_undefined_flag="-z nodefs"
12057 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12059 # Determine the default libpath from the value encoded in an
12060 # empty executable.
12061 if test set = "${lt_cv_aix_libpath+set}"; then
12062 aix_libpath=$lt_cv_aix_libpath
12064 if ${lt_cv_aix_libpath_+:} false; then :
12065 $as_echo_n "(cached) " >&6
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12078 if ac_fn_c_try_link "$LINENO"; then :
12080 lt_aix_libpath_sed='
12081 /Import File Strings/,/^$/ {
12083 s/^0 *\([^ ]*\) *$/\1/
12087 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12088 # Check for a 64-bit object if we didn't find anything.
12089 if test -z "$lt_cv_aix_libpath_"; then
12090 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 if test -z "$lt_cv_aix_libpath_"; then
12096 lt_cv_aix_libpath_=/usr/lib:/lib
12101 aix_libpath=$lt_cv_aix_libpath_
12104 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12105 # Warning - without using the other run time loading flags,
12106 # -berok will link without error, but may produce a broken library.
12107 no_undefined_flag=' $wl-bernotok'
12108 allow_undefined_flag=' $wl-berok'
12109 if test yes = "$with_gnu_ld"; then
12110 # We only use this code for GNU lds that support --whole-archive.
12111 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12113 # Exported symbols can be pulled into shared objects from archives
12114 whole_archive_flag_spec='$convenience'
12116 archive_cmds_need_lc=yes
12117 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12118 # -brtl affects multiple linker settings, -berok does not and is overridden later
12119 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12120 if test svr4 != "$with_aix_soname"; then
12121 # This is similar to how AIX traditionally builds its shared libraries.
12122 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12124 if test aix != "$with_aix_soname"; then
12125 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12127 # used by -dlpreopen to get the symbols
12128 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12130 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12138 # see comment about AmigaOS4 .so support
12139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12140 archive_expsym_cmds=''
12143 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)'
12144 hardcode_libdir_flag_spec='-L$libdir'
12145 hardcode_minus_L=yes
12151 export_dynamic_flag_spec=-rdynamic
12154 cygwin* | mingw* | pw32* | cegcc*)
12155 # When not using gcc, we currently assume that we are using
12156 # Microsoft Visual C++.
12157 # hardcode_libdir_flag_spec is actually meaningless, as there is
12158 # no search path for DLLs.
12159 case $cc_basename in
12162 hardcode_libdir_flag_spec=' '
12163 allow_undefined_flag=unsupported
12164 always_export_symbols=yes
12166 # Tell ltmain to make .lib files, not .a files.
12168 # Tell ltmain to make .dll files, not .so files.
12170 # FIXME: Setting linknames here is a bad hack.
12171 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12172 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12173 cp "$export_symbols" "$output_objdir/$soname.def";
12174 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12176 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12178 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12180 # The linker will not automatically build a static lib if we build a DLL.
12181 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12182 enable_shared_with_static_runtimes=yes
12183 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12186 old_postinstall_cmds='chmod 644 $oldlib'
12187 postlink_cmds='lt_outputfile="@OUTPUT@"~
12188 lt_tool_outputfile="@TOOL_OUTPUT@"~
12189 case $lt_outputfile in
12192 lt_outputfile=$lt_outputfile.exe
12193 lt_tool_outputfile=$lt_tool_outputfile.exe
12196 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12197 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12198 $RM "$lt_outputfile.manifest";
12202 # Assume MSVC wrapper
12203 hardcode_libdir_flag_spec=' '
12204 allow_undefined_flag=unsupported
12205 # Tell ltmain to make .lib files, not .a files.
12207 # Tell ltmain to make .dll files, not .so files.
12209 # FIXME: Setting linknames here is a bad hack.
12210 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12211 # The linker will automatically build a .lib file if we build a DLL.
12212 old_archive_from_new_cmds='true'
12213 # FIXME: Should let the user specify the lib program.
12214 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12215 enable_shared_with_static_runtimes=yes
12220 darwin* | rhapsody*)
12223 archive_cmds_need_lc=no
12225 hardcode_automatic=yes
12226 hardcode_shlibpath_var=unsupported
12227 if test yes = "$lt_cv_ld_force_load"; then
12228 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12231 whole_archive_flag_spec=''
12233 link_all_deplibs=yes
12234 allow_undefined_flag=$_lt_dar_allow_undefined
12235 case $cc_basename in
12236 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12237 *) _lt_dar_can_shared=$GCC ;;
12239 if test yes = "$_lt_dar_can_shared"; then
12240 output_verbose_link_cmd=func_echo_all
12241 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12242 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12243 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12244 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254 hardcode_libdir_flag_spec='-L$libdir'
12255 hardcode_shlibpath_var=no
12258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12259 # support. Future versions do this automatically, but an explicit c++rt0.o
12260 # does not break anything, and helps significantly (at the cost of a little
12263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12264 hardcode_libdir_flag_spec='-R$libdir'
12265 hardcode_direct=yes
12266 hardcode_shlibpath_var=no
12269 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12272 hardcode_direct=yes
12273 hardcode_minus_L=yes
12274 hardcode_shlibpath_var=no
12277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12278 freebsd* | dragonfly*)
12279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12280 hardcode_libdir_flag_spec='-R$libdir'
12281 hardcode_direct=yes
12282 hardcode_shlibpath_var=no
12286 if test yes = "$GCC"; then
12287 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12289 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12291 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12292 hardcode_libdir_separator=:
12293 hardcode_direct=yes
12295 # hardcode_minus_L: Not really in the search PATH,
12296 # but as the default location of the library.
12297 hardcode_minus_L=yes
12298 export_dynamic_flag_spec='$wl-E'
12302 if test yes,no = "$GCC,$with_gnu_ld"; then
12303 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12307 if test no = "$with_gnu_ld"; then
12308 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12309 hardcode_libdir_separator=:
12310 hardcode_direct=yes
12311 hardcode_direct_absolute=yes
12312 export_dynamic_flag_spec='$wl-E'
12313 # hardcode_minus_L: Not really in the search PATH,
12314 # but as the default location of the library.
12315 hardcode_minus_L=yes
12320 if test yes,no = "$GCC,$with_gnu_ld"; then
12323 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12342 # Older versions of the 11.00 compiler do not understand -b yet
12343 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12345 $as_echo_n "checking if $CC understands -b... " >&6; }
12346 if ${lt_cv_prog_compiler__b+:} false; then :
12347 $as_echo_n "(cached) " >&6
12349 lt_cv_prog_compiler__b=no
12350 save_LDFLAGS=$LDFLAGS
12351 LDFLAGS="$LDFLAGS -b"
12352 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12354 # The linker can only warn and ignore the option if not recognized
12355 # So say no if there are warnings
12356 if test -s conftest.err; then
12357 # Append any errors to the config.log.
12358 cat conftest.err 1>&5
12359 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12361 if diff conftest.exp conftest.er2 >/dev/null; then
12362 lt_cv_prog_compiler__b=yes
12365 lt_cv_prog_compiler__b=yes
12369 LDFLAGS=$save_LDFLAGS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12373 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12375 if test yes = "$lt_cv_prog_compiler__b"; then
12376 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12384 if test no = "$with_gnu_ld"; then
12385 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12386 hardcode_libdir_separator=:
12391 hardcode_shlibpath_var=no
12394 hardcode_direct=yes
12395 hardcode_direct_absolute=yes
12396 export_dynamic_flag_spec='$wl-E'
12398 # hardcode_minus_L: Not really in the search PATH,
12399 # but as the default location of the library.
12400 hardcode_minus_L=yes
12406 irix5* | irix6* | nonstopux*)
12407 if test yes = "$GCC"; then
12408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12409 # Try to use the -exported_symbol ld option, if it does not
12410 # work, assume that -exports_file does not work either and
12411 # implicitly export all symbols.
12412 # This should be the same for all languages, so no per-tag cache variable.
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12414 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12415 if ${lt_cv_irix_exported_symbol+:} false; then :
12416 $as_echo_n "(cached) " >&6
12418 save_LDFLAGS=$LDFLAGS
12419 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 int foo (void) { return 0; }
12424 if ac_fn_c_try_link "$LINENO"; then :
12425 lt_cv_irix_exported_symbol=yes
12427 lt_cv_irix_exported_symbol=no
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LDFLAGS=$save_LDFLAGS
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12434 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12435 if test yes = "$lt_cv_irix_exported_symbol"; then
12436 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12442 archive_cmds_need_lc='no'
12443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12444 hardcode_libdir_separator=:
12446 link_all_deplibs=yes
12450 case $cc_basename in
12452 # Fabrice Bellard et al's Tiny C Compiler
12454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12465 hardcode_libdir_flag_spec='-R$libdir'
12466 hardcode_direct=yes
12467 hardcode_shlibpath_var=no
12471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12472 hardcode_direct=yes
12473 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12474 hardcode_libdir_separator=:
12475 hardcode_shlibpath_var=no
12481 openbsd* | bitrig*)
12482 if test -f /usr/libexec/ld.so; then
12483 hardcode_direct=yes
12484 hardcode_shlibpath_var=no
12485 hardcode_direct_absolute=yes
12486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12488 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12489 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12490 export_dynamic_flag_spec='$wl-E'
12492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12493 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12501 hardcode_libdir_flag_spec='-L$libdir'
12502 hardcode_minus_L=yes
12503 allow_undefined_flag=unsupported
12505 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12506 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12507 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12508 $ECHO EXPORTS >> $output_objdir/$libname.def~
12509 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12510 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12511 emximp -o $lib $output_objdir/$libname.def'
12512 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12513 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12514 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12515 $ECHO EXPORTS >> $output_objdir/$libname.def~
12516 prefix_cmds="$SED"~
12517 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12518 prefix_cmds="$prefix_cmds -e 1d";
12520 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12521 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12522 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12523 emximp -o $lib $output_objdir/$libname.def'
12524 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12525 enable_shared_with_static_runtimes=yes
12529 if test yes = "$GCC"; then
12530 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12531 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12533 allow_undefined_flag=' -expect_unresolved \*'
12534 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12536 archive_cmds_need_lc='no'
12537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12538 hardcode_libdir_separator=:
12541 osf4* | osf5*) # as osf3* with the addition of -msym flag
12542 if test yes = "$GCC"; then
12543 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12544 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12547 allow_undefined_flag=' -expect_unresolved \*'
12548 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12549 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12550 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12552 # Both c and cxx compiler support -rpath directly
12553 hardcode_libdir_flag_spec='-rpath $libdir'
12555 archive_cmds_need_lc='no'
12556 hardcode_libdir_separator=:
12560 no_undefined_flag=' -z defs'
12561 if test yes = "$GCC"; then
12563 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12565 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12567 case `$CC -V 2>&1` in
12570 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12572 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12576 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12578 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12582 hardcode_libdir_flag_spec='-R$libdir'
12583 hardcode_shlibpath_var=no
12585 solaris2.[0-5] | solaris2.[0-5].*) ;;
12587 # The compiler driver will combine and reorder linker options,
12588 # but understands '-z linker_flag'. GCC discards it without '$wl',
12589 # but is careful enough not to reorder.
12590 # Supported since Solaris 2.6 (maybe 2.5.1?)
12591 if test yes = "$GCC"; then
12592 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12594 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12598 link_all_deplibs=yes
12602 if test sequent = "$host_vendor"; then
12603 # Use $CC to link under sequent, because it throws in some extra .o
12604 # files that make .init and .fini sections work.
12605 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12609 hardcode_libdir_flag_spec='-L$libdir'
12610 hardcode_direct=yes
12611 hardcode_minus_L=yes
12612 hardcode_shlibpath_var=no
12616 case $host_vendor in
12618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619 hardcode_direct=yes # is this really true???
12622 ## LD is ld it makes a PLAMLIB
12623 ## CC just makes a GrossModule.
12624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12625 reload_cmds='$CC -r -o $output$reload_objs'
12629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12633 runpath_var='LD_RUN_PATH'
12634 hardcode_shlibpath_var=no
12638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639 hardcode_shlibpath_var=no
12640 export_dynamic_flag_spec='-Bexport'
12644 if test -d /usr/nec; then
12645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646 hardcode_shlibpath_var=no
12647 runpath_var=LD_RUN_PATH
12648 hardcode_runpath_var=yes
12653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12654 no_undefined_flag='$wl-z,text'
12655 archive_cmds_need_lc=no
12656 hardcode_shlibpath_var=no
12657 runpath_var='LD_RUN_PATH'
12659 if test yes = "$GCC"; then
12660 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12668 sysv5* | sco3.2v5* | sco5v6*)
12669 # Note: We CANNOT use -z defs as we might desire, because we do not
12670 # link with -lc, and that would cause any symbols used from libc to
12671 # always be unresolved, which means just about no library would
12672 # ever link correctly. If we're not using GNU ld we use -z text
12673 # though, which does catch some bad symbols but isn't as heavy-handed
12675 no_undefined_flag='$wl-z,text'
12676 allow_undefined_flag='$wl-z,nodefs'
12677 archive_cmds_need_lc=no
12678 hardcode_shlibpath_var=no
12679 hardcode_libdir_flag_spec='$wl-R,$libdir'
12680 hardcode_libdir_separator=':'
12681 link_all_deplibs=yes
12682 export_dynamic_flag_spec='$wl-Bexport'
12683 runpath_var='LD_RUN_PATH'
12685 if test yes = "$GCC"; then
12686 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12689 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12690 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696 hardcode_libdir_flag_spec='-L$libdir'
12697 hardcode_shlibpath_var=no
12705 if test sni = "$host_vendor"; then
12707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12708 export_dynamic_flag_spec='$wl-Blargedynsym'
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12715 $as_echo "$ld_shlibs" >&6; }
12716 test no = "$ld_shlibs" && can_build_shared=no
12718 with_gnu_ld=$with_gnu_ld
12735 # Do we need to explicitly link libc?
12737 case "x$archive_cmds_need_lc" in
12739 # Assume -lc should be added
12740 archive_cmds_need_lc=yes
12742 if test yes,yes = "$GCC,$enable_shared"; then
12743 case $archive_cmds in
12745 # FIXME: we may have to deal with multi-command sequences.
12748 # Test whether the compiler implicitly links with -lc since on some
12749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12750 # to ld, don't add -lc before -lgcc.
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12752 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12753 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12754 $as_echo_n "(cached) " >&6
12757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12760 (eval $ac_compile) 2>&5
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; } 2>conftest.err; then
12766 libobjs=conftest.$ac_objext
12768 wl=$lt_prog_compiler_wl
12769 pic_flag=$lt_prog_compiler_pic
12775 lt_save_allow_undefined_flag=$allow_undefined_flag
12776 allow_undefined_flag=
12777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12778 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; }
12783 lt_cv_archive_cmds_need_lc=no
12785 lt_cv_archive_cmds_need_lc=yes
12787 allow_undefined_flag=$lt_save_allow_undefined_flag
12789 cat conftest.err 1>&5
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12795 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12796 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12955 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12957 if test yes = "$GCC"; then
12959 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12960 *) lt_awk_arg='/^libraries:/' ;;
12963 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12964 *) lt_sed_strip_eq='s|=/|/|g' ;;
12966 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12967 case $lt_search_path_spec in
12969 # if the path contains ";" then we assume it to be the separator
12970 # otherwise default to the standard path separator (i.e. ":") - it is
12971 # assumed that no part of a normal pathname contains ";" but that should
12972 # okay in the real world where ";" in dirpaths is itself problematic.
12973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12979 # Ok, now we have the path, separated by spaces, we can step through it
12980 # and add multilib dir if necessary...
12981 lt_tmp_lt_search_path_spec=
12982 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12983 # ...but if some path component already ends with the multilib dir we assume
12984 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12985 case "$lt_multi_os_dir; $lt_search_path_spec " in
12986 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12990 for lt_sys_path in $lt_search_path_spec; do
12991 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12993 elif test -n "$lt_multi_os_dir"; then
12994 test -d "$lt_sys_path" && \
12995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12999 BEGIN {RS = " "; FS = "/|\n";} {
13002 for (lt_i = NF; lt_i > 0; lt_i--) {
13003 if ($lt_i != "" && $lt_i != ".") {
13004 if ($lt_i == "..") {
13007 if (lt_count == 0) {
13008 lt_foo = "/" $lt_i lt_foo;
13015 if (lt_foo != "") { lt_freq[lt_foo]++; }
13016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13018 # AWK program above erroneously prepends '/' to C:/dos/paths
13021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13022 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13028 library_names_spec=
13029 libname_spec='lib$name'
13033 postuninstall_cmds=
13037 shlibpath_overrides_runpath=unknown
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041 need_lib_prefix=unknown
13042 hardcode_into_libs=no
13044 # when you set need_version to no, make sure it does not cause -set_version
13045 # flags to be left without arguments
13046 need_version=unknown
13052 version_type=linux # correct to gnu/linux during the next big refactor
13053 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13054 shlibpath_var=LIBPATH
13056 # AIX 3 has no versioning support, so we append a major version to the name.
13057 soname_spec='$libname$release$shared_ext$major'
13061 version_type=linux # correct to gnu/linux during the next big refactor
13064 hardcode_into_libs=yes
13065 if test ia64 = "$host_cpu"; then
13066 # AIX 5 supports IA64
13067 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13068 shlibpath_var=LD_LIBRARY_PATH
13070 # With GCC up to 2.95.x, collect2 would create an import file
13071 # for dependence libraries. The import file would start with
13072 # the line '#! .'. This would cause the generated library to
13073 # depend on '.', always an invalid library. This was fixed in
13074 # development snapshots of GCC prior to 3.0.
13076 aix4 | aix4.[01] | aix4.[01].*)
13077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13079 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13082 can_build_shared=no
13086 # Using Import Files as archive members, it is possible to support
13087 # filename-based versioning of shared library archives on AIX. While
13088 # this would work for both with and without runtime linking, it will
13089 # prevent static linking of such archives. So we do filename-based
13090 # shared library versioning with .so extension only, which is used
13091 # when both runtime linking and shared linking is enabled.
13092 # Unfortunately, runtime linking may impact performance, so we do
13093 # not want this to be the default eventually. Also, we use the
13094 # versioned .so libs for executables only if there is the -brtl
13095 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13096 # To allow for filename-based versioning support, we need to create
13097 # libNAME.so.V as an archive file, containing:
13098 # *) an Import File, referring to the versioned filename of the
13099 # archive as well as the shared archive member, telling the
13100 # bitwidth (32 or 64) of that shared object, and providing the
13101 # list of exported symbols of that shared object, eventually
13102 # decorated with the 'weak' keyword
13103 # *) the shared object with the F_LOADONLY flag set, to really avoid
13104 # it being seen by the linker.
13105 # At run time we better use the real file rather than another symlink,
13106 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13108 case $with_aix_soname,$aix_use_runtimelinking in
13109 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13110 # soname into executable. Probably we can add versioning support to
13111 # collect2, so additional links can be useful in future.
13112 aix,yes) # traditional libtool
13113 dynamic_linker='AIX unversionable lib.so'
13114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13115 # instead of lib<name>.a to let people know that these are not
13116 # typical AIX shared libraries.
13117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13119 aix,no) # traditional AIX only
13120 dynamic_linker='AIX lib.a(lib.so.V)'
13121 # We preserve .a as extension for shared libraries through AIX4.2
13122 # and later when we are not doing run time linking.
13123 library_names_spec='$libname$release.a $libname.a'
13124 soname_spec='$libname$release$shared_ext$major'
13126 svr4,*) # full svr4 only
13127 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13128 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13129 # We do not specify a path in Import Files, so LIBPATH fires.
13130 shlibpath_overrides_runpath=yes
13132 *,yes) # both, prefer svr4
13133 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13134 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13135 # unpreferred sharedlib libNAME.a needs extra handling
13136 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13137 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13138 # We do not specify a path in Import Files, so LIBPATH fires.
13139 shlibpath_overrides_runpath=yes
13141 *,no) # both, prefer aix
13142 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13143 library_names_spec='$libname$release.a $libname.a'
13144 soname_spec='$libname$release$shared_ext$major'
13145 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13146 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13147 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13150 shlibpath_var=LIBPATH
13157 # Since July 2007 AmigaOS4 officially supports .so libraries.
13158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13162 library_names_spec='$libname.ixlibrary $libname.a'
13163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13164 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13170 library_names_spec='$libname$shared_ext'
13171 dynamic_linker="$host_os ld.so"
13172 shlibpath_var=LIBRARY_PATH
13176 version_type=linux # correct to gnu/linux during the next big refactor
13178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13179 soname_spec='$libname$release$shared_ext$major'
13180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13184 # the default ld.so.conf also contains /usr/contrib/lib and
13185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13186 # libtool to hard-code these into programs
13189 cygwin* | mingw* | pw32* | cegcc*)
13190 version_type=windows
13195 case $GCC,$cc_basename in
13198 library_names_spec='$libname.dll.a'
13199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13200 postinstall_cmds='base_file=`basename \$file`~
13201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13202 dldir=$destdir/`dirname \$dlpath`~
13203 test -d \$dldir || mkdir -p \$dldir~
13204 $install_prog $dir/$dlname \$dldir/$dlname~
13205 chmod a+x \$dldir/$dlname~
13206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13210 dlpath=$dir/\$dldll~
13212 shlibpath_overrides_runpath=yes
13216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13217 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13222 # MinGW DLLs use traditional 'lib' prefix
13223 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13226 # pw32 DLLs use 'pw' prefix rather than 'lib'
13227 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13230 dynamic_linker='Win32 ld.exe'
13235 libname_spec='$name'
13236 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13237 library_names_spec='$libname.dll.lib'
13241 sys_lib_search_path_spec=
13244 for lt_path in $LIB
13247 # Let DOS variable expansion print the short 8.3 style file name.
13248 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13249 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13252 # Convert to MSYS style.
13253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13256 # Convert to unix form, then to dos form, then back to unix form
13257 # but this time dos style (no spaces!) so that the unix form looks
13258 # like /cygdrive/c/PROGRA~1:/cygdr...
13259 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13260 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13261 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13264 sys_lib_search_path_spec=$LIB
13265 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13266 # It is most probably a Windows format PATH.
13267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13271 # FIXME: find the short name or the path components, as spaces are
13272 # common. (e.g. "Program Files" -> "PROGRA~1")
13276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13277 postinstall_cmds='base_file=`basename \$file`~
13278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13279 dldir=$destdir/`dirname \$dlpath`~
13280 test -d \$dldir || mkdir -p \$dldir~
13281 $install_prog $dir/$dlname \$dldir/$dlname'
13282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13283 dlpath=$dir/\$dldll~
13285 shlibpath_overrides_runpath=yes
13286 dynamic_linker='Win32 link.exe'
13290 # Assume MSVC wrapper
13291 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13292 dynamic_linker='Win32 ld.exe'
13295 # FIXME: first we should search . and the directory the executable is in
13299 darwin* | rhapsody*)
13300 dynamic_linker="$host_os dyld"
13301 version_type=darwin
13304 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13305 soname_spec='$libname$release$major$shared_ext'
13306 shlibpath_overrides_runpath=yes
13307 shlibpath_var=DYLD_LIBRARY_PATH
13308 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13310 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13311 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13315 version_type=linux # correct to gnu/linux during the next big refactor
13318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13319 soname_spec='$libname$release$shared_ext$major'
13320 shlibpath_var=LD_LIBRARY_PATH
13323 freebsd* | dragonfly*)
13324 # DragonFly does not have aout. When/if they implement a new
13325 # versioning mechanism, adjust this.
13326 if test -x /usr/bin/objformat; then
13327 objformat=`/usr/bin/objformat`
13330 freebsd[23].*) objformat=aout ;;
13331 *) objformat=elf ;;
13334 version_type=freebsd-$objformat
13335 case $version_type in
13337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338 soname_spec='$libname$release$shared_ext$major'
13343 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13347 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=yes
13352 freebsd3.[01]* | freebsdelf3.[01]*)
13353 shlibpath_overrides_runpath=yes
13354 hardcode_into_libs=yes
13356 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13357 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13358 shlibpath_overrides_runpath=no
13359 hardcode_into_libs=yes
13361 *) # from 4.6 on, and DragonFly
13362 shlibpath_overrides_runpath=yes
13363 hardcode_into_libs=yes
13369 version_type=linux # correct to gnu/linux during the next big refactor
13372 dynamic_linker="$host_os runtime_loader"
13373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13374 soname_spec='$libname$release$shared_ext$major'
13375 shlibpath_var=LIBRARY_PATH
13376 shlibpath_overrides_runpath=no
13377 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13378 hardcode_into_libs=yes
13381 hpux9* | hpux10* | hpux11*)
13382 # Give a soname corresponding to the major version so that dld.sl refuses to
13383 # link against other versions.
13390 hardcode_into_libs=yes
13391 dynamic_linker="$host_os dld.so"
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395 soname_spec='$libname$release$shared_ext$major'
13396 if test 32 = "$HPUX_IA64_MODE"; then
13397 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13398 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13400 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13401 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13406 hardcode_into_libs=yes
13407 dynamic_linker="$host_os dld.sl"
13408 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13411 soname_spec='$libname$release$shared_ext$major'
13412 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13417 dynamic_linker="$host_os dld.sl"
13418 shlibpath_var=SHLIB_PATH
13419 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13421 soname_spec='$libname$release$shared_ext$major'
13424 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13425 postinstall_cmds='chmod 555 $lib'
13426 # or fails outright, so override atomically:
13427 install_override_mode=555
13431 version_type=linux # correct to gnu/linux during the next big refactor
13434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13435 soname_spec='$libname$release$shared_ext$major'
13436 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=no
13439 hardcode_into_libs=yes
13442 irix5* | irix6* | nonstopux*)
13444 nonstopux*) version_type=nonstopux ;;
13446 if test yes = "$lt_cv_prog_gnu_ld"; then
13447 version_type=linux # correct to gnu/linux during the next big refactor
13454 soname_spec='$libname$release$shared_ext$major'
13455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13457 irix5* | nonstopux*)
13458 libsuff= shlibsuff=
13461 case $LD in # libtool.m4 will add one of these switches to LD
13462 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13463 libsuff= shlibsuff= libmagic=32-bit;;
13464 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13465 libsuff=32 shlibsuff=N32 libmagic=N32;;
13466 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13467 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13468 *) libsuff= shlibsuff= libmagic=never-match;;
13472 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13473 shlibpath_overrides_runpath=no
13474 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13475 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13476 hardcode_into_libs=yes
13479 # No shared lib support for Linux oldld, aout, or coff.
13480 linux*oldld* | linux*aout* | linux*coff*)
13485 version_type=none # Android doesn't support versioned libraries.
13488 library_names_spec='$libname$release$shared_ext'
13489 soname_spec='$libname$release$shared_ext'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13494 # This implies no fast_install, which is unacceptable.
13495 # Some rework will be needed to allow for fast_install
13496 # before this can be enabled.
13497 hardcode_into_libs=yes
13499 dynamic_linker='Android linker'
13500 # Don't embed -rpath directories since the linker doesn't support them.
13501 hardcode_libdir_flag_spec='-L$libdir'
13504 # This must be glibc/ELF.
13505 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13506 version_type=linux # correct to gnu/linux during the next big refactor
13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510 soname_spec='$libname$release$shared_ext$major'
13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 shlibpath_overrides_runpath=no
13515 # Some binutils ld are patched to set DT_RUNPATH
13516 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13517 $as_echo_n "(cached) " >&6
13519 lt_cv_shlibpath_overrides_runpath=no
13520 save_LDFLAGS=$LDFLAGS
13521 save_libdir=$libdir
13522 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13523 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13537 lt_cv_shlibpath_overrides_runpath=yes
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LDFLAGS=$save_LDFLAGS
13543 libdir=$save_libdir
13547 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13549 # This implies no fast_install, which is unacceptable.
13550 # Some rework will be needed to allow for fast_install
13551 # before this can be enabled.
13552 hardcode_into_libs=yes
13554 # Ideally, we could use ldconfig to report *all* directores which are
13555 # searched for libraries, however this is still not possible. Aside from not
13556 # being certain /sbin/ldconfig is available, command
13557 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13558 # even though it is searched at run-time. Try to do the best guess by
13559 # appending ld.so.conf contents (and includes) to the search path.
13560 if test -f /etc/ld.so.conf; then
13561 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13562 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13565 # We used to test for /lib/ld.so.1 and disable shared libraries on
13566 # powerpc, because MkLinux only supported shared libraries with the
13567 # GNU dynamic linker. Since this was broken with cross compilers,
13568 # most powerpc-linux boxes support dynamic linking these days and
13569 # people can always --disable-shared, the test was removed, and we
13570 # assume the GNU/Linux dynamic linker is in use.
13571 dynamic_linker='GNU/Linux ld.so'
13578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581 dynamic_linker='NetBSD (a.out) ld.so'
13583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13584 soname_spec='$libname$release$shared_ext$major'
13585 dynamic_linker='NetBSD ld.elf_so'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 shlibpath_overrides_runpath=yes
13589 hardcode_into_libs=yes
13593 version_type=linux # correct to gnu/linux during the next big refactor
13594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 shlibpath_overrides_runpath=yes
13603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13604 soname_spec='$libname$release$shared_ext$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=no
13607 hardcode_into_libs=yes
13608 dynamic_linker='ldqnx.so'
13611 openbsd* | bitrig*)
13613 sys_lib_dlsearch_path_spec=/usr/lib
13615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 shlibpath_overrides_runpath=yes
13627 libname_spec='$name'
13628 version_type=windows
13632 # OS/2 can only load a DLL with a base name of 8 characters or less.
13633 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13634 v=$($ECHO $release$versuffix | tr -d .-);
13635 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13636 $ECHO $n$v`$shared_ext'
13637 library_names_spec='${libname}_dll.$libext'
13638 dynamic_linker='OS/2 ld.exe'
13639 shlibpath_var=BEGINLIBPATH
13640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13642 postinstall_cmds='base_file=`basename \$file`~
13643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13644 dldir=$destdir/`dirname \$dlpath`~
13645 test -d \$dldir || mkdir -p \$dldir~
13646 $install_prog $dir/$dlname \$dldir/$dlname~
13647 chmod a+x \$dldir/$dlname~
13648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13652 dlpath=$dir/\$dldll~
13656 osf3* | osf4* | osf5*)
13660 soname_spec='$libname$release$shared_ext$major'
13661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13662 shlibpath_var=LD_LIBRARY_PATH
13663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13672 version_type=linux # correct to gnu/linux during the next big refactor
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13676 soname_spec='$libname$release$shared_ext$major'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 hardcode_into_libs=yes
13680 # ldd complains unless libraries are executable
13681 postinstall_cmds='chmod +x $lib'
13686 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 shlibpath_overrides_runpath=yes
13690 if test yes = "$with_gnu_ld"; then
13697 version_type=linux # correct to gnu/linux during the next big refactor
13698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13699 soname_spec='$libname$release$shared_ext$major'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 case $host_vendor in
13703 shlibpath_overrides_runpath=no
13705 runpath_var=LD_RUN_PATH
13713 shlibpath_overrides_runpath=no
13714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13720 if test -d /usr/nec; then
13721 version_type=linux # correct to gnu/linux during the next big refactor
13722 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13723 soname_spec='$libname$shared_ext.$major'
13724 shlibpath_var=LD_LIBRARY_PATH
13728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13733 soname_spec='$libname$release$shared_ext$major'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=yes
13736 hardcode_into_libs=yes
13737 if test yes = "$with_gnu_ld"; then
13738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13747 sys_lib_dlsearch_path_spec='/usr/lib'
13751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13752 version_type=linux # correct to gnu/linux during the next big refactor
13755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=no
13758 hardcode_into_libs=yes
13762 version_type=linux # correct to gnu/linux during the next big refactor
13763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13764 soname_spec='$libname$release$shared_ext$major'
13765 shlibpath_var=LD_LIBRARY_PATH
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13773 $as_echo "$dynamic_linker" >&6; }
13774 test no = "$dynamic_linker" && can_build_shared=no
13776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13777 if test yes = "$GCC"; then
13778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13781 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13782 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13785 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13786 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13789 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13790 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13792 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13793 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13795 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13796 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13897 if test -n "$hardcode_libdir_flag_spec" ||
13898 test -n "$runpath_var" ||
13899 test yes = "$hardcode_automatic"; then
13901 # We can hardcode non-existent directories.
13902 if test no != "$hardcode_direct" &&
13903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13904 # have to relink, otherwise we might link with an installed library
13905 # when we should be linking with a yet-to-be-installed one
13906 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13907 test no != "$hardcode_minus_L"; then
13908 # Linking always hardcodes the temporary library directory.
13909 hardcode_action=relink
13911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13912 hardcode_action=immediate
13915 # We cannot hardcode anything, or else we can only hardcode existing
13917 hardcode_action=unsupported
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13920 $as_echo "$hardcode_action" >&6; }
13922 if test relink = "$hardcode_action" ||
13923 test yes = "$inherit_rpath"; then
13924 # Fast installation is not supported
13925 enable_fast_install=no
13926 elif test yes = "$shlibpath_overrides_runpath" ||
13927 test no = "$enable_shared"; then
13928 # Fast installation is not necessary
13929 enable_fast_install=needless
13937 if test yes != "$enable_dlopen"; then
13938 enable_dlopen=unknown
13939 enable_dlopen_self=unknown
13940 enable_dlopen_self_static=unknown
13947 lt_cv_dlopen=load_add_on
13949 lt_cv_dlopen_self=yes
13952 mingw* | pw32* | cegcc*)
13953 lt_cv_dlopen=LoadLibrary
13958 lt_cv_dlopen=dlopen
13963 # if libdl is installed we need to link against it
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13966 if ${ac_cv_lib_dl_dlopen+:} false; then :
13967 $as_echo_n "(cached) " >&6
13969 ac_check_lib_save_LIBS=$LIBS
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13989 if ac_fn_c_try_link "$LINENO"; then :
13990 ac_cv_lib_dl_dlopen=yes
13992 ac_cv_lib_dl_dlopen=no
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14006 lt_cv_dlopen_self=yes
14013 # Don't try to run any link tests for TPF. We know it's impossible
14014 # because TPF is a cross-compiler, and we know how we open DSOs.
14015 lt_cv_dlopen=dlopen
14017 lt_cv_dlopen_self=no
14021 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14022 if test "x$ac_cv_func_shl_load" = xyes; then :
14023 lt_cv_dlopen=shl_load
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14026 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14027 if ${ac_cv_lib_dld_shl_load+:} false; then :
14028 $as_echo_n "(cached) " >&6
14030 ac_check_lib_save_LIBS=$LIBS
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14045 return shl_load ();
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_lib_dld_shl_load=yes
14053 ac_cv_lib_dld_shl_load=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14060 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14061 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14062 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14064 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14065 if test "x$ac_cv_func_dlopen" = xyes; then :
14066 lt_cv_dlopen=dlopen
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14069 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14070 if ${ac_cv_lib_dl_dlopen+:} false; then :
14071 $as_echo_n "(cached) " >&6
14073 ac_check_lib_save_LIBS=$LIBS
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_dl_dlopen=yes
14096 ac_cv_lib_dl_dlopen=no
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14103 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14104 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14105 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14108 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14109 if ${ac_cv_lib_svld_dlopen+:} false; then :
14110 $as_echo_n "(cached) " >&6
14112 ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-lsvld $LIBS"
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_svld_dlopen=yes
14135 ac_cv_lib_svld_dlopen=no
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14142 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14143 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14147 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14148 if ${ac_cv_lib_dld_dld_link+:} false; then :
14149 $as_echo_n "(cached) " >&6
14151 ac_check_lib_save_LIBS=$LIBS
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14166 return dld_link ();
14171 if ac_fn_c_try_link "$LINENO"; then :
14172 ac_cv_lib_dld_dld_link=yes
14174 ac_cv_lib_dld_dld_link=no
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 LIBS=$ac_check_lib_save_LIBS
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14181 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14182 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14183 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14204 if test no = "$lt_cv_dlopen"; then
14210 case $lt_cv_dlopen in
14212 save_CPPFLAGS=$CPPFLAGS
14213 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14215 save_LDFLAGS=$LDFLAGS
14216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14219 LIBS="$lt_cv_dlopen_libs $LIBS"
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14222 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14223 if ${lt_cv_dlopen_self+:} false; then :
14224 $as_echo_n "(cached) " >&6
14226 if test yes = "$cross_compiling"; then :
14227 lt_cv_dlopen_self=cross
14229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14230 lt_status=$lt_dlunknown
14231 cat > conftest.$ac_ext <<_LT_EOF
14232 #line $LINENO "configure"
14233 #include "confdefs.h"
14242 # define LT_DLGLOBAL RTLD_GLOBAL
14245 # define LT_DLGLOBAL DL_GLOBAL
14247 # define LT_DLGLOBAL 0
14251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14252 find out it does not work in some platform. */
14253 #ifndef LT_DLLAZY_OR_NOW
14255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14258 # define LT_DLLAZY_OR_NOW DL_LAZY
14261 # define LT_DLLAZY_OR_NOW RTLD_NOW
14264 # define LT_DLLAZY_OR_NOW DL_NOW
14266 # define LT_DLLAZY_OR_NOW 0
14273 /* When -fvisibility=hidden is used, assume the code has been annotated
14274 correspondingly for the symbols needed. */
14275 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14276 int fnord () __attribute__((visibility("default")));
14279 int fnord () { return 42; }
14282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14283 int status = $lt_dlunknown;
14287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14290 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14291 else puts (dlerror ());
14293 /* dlclose (self); */
14301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14302 (eval $ac_link) 2>&5
14304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14305 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14306 (./conftest; exit; ) >&5 2>/dev/null
14308 case x$lt_status in
14309 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14310 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14311 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14314 # compilation failed
14315 lt_cv_dlopen_self=no
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14323 $as_echo "$lt_cv_dlopen_self" >&6; }
14325 if test yes = "$lt_cv_dlopen_self"; then
14326 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14328 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14329 if ${lt_cv_dlopen_self_static+:} false; then :
14330 $as_echo_n "(cached) " >&6
14332 if test yes = "$cross_compiling"; then :
14333 lt_cv_dlopen_self_static=cross
14335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14336 lt_status=$lt_dlunknown
14337 cat > conftest.$ac_ext <<_LT_EOF
14338 #line $LINENO "configure"
14339 #include "confdefs.h"
14348 # define LT_DLGLOBAL RTLD_GLOBAL
14351 # define LT_DLGLOBAL DL_GLOBAL
14353 # define LT_DLGLOBAL 0
14357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14358 find out it does not work in some platform. */
14359 #ifndef LT_DLLAZY_OR_NOW
14361 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14364 # define LT_DLLAZY_OR_NOW DL_LAZY
14367 # define LT_DLLAZY_OR_NOW RTLD_NOW
14370 # define LT_DLLAZY_OR_NOW DL_NOW
14372 # define LT_DLLAZY_OR_NOW 0
14379 /* When -fvisibility=hidden is used, assume the code has been annotated
14380 correspondingly for the symbols needed. */
14381 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14382 int fnord () __attribute__((visibility("default")));
14385 int fnord () { return 42; }
14388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14389 int status = $lt_dlunknown;
14393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14396 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14397 else puts (dlerror ());
14399 /* dlclose (self); */
14407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14408 (eval $ac_link) 2>&5
14410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14411 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14412 (./conftest; exit; ) >&5 2>/dev/null
14414 case x$lt_status in
14415 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14416 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14417 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14420 # compilation failed
14421 lt_cv_dlopen_self_static=no
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14429 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14432 CPPFLAGS=$save_CPPFLAGS
14433 LDFLAGS=$save_LDFLAGS
14438 case $lt_cv_dlopen_self in
14439 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14440 *) enable_dlopen_self=unknown ;;
14443 case $lt_cv_dlopen_self_static in
14444 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14445 *) enable_dlopen_self_static=unknown ;;
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14468 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14469 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14470 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14471 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 $as_echo "yes" >&6; }
14475 # FIXME - insert some real tests, host_os isn't really good enough
14478 if test -n "$STRIP"; then
14479 striplib="$STRIP -x"
14480 old_striplib="$STRIP -S"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14482 $as_echo "yes" >&6; }
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14506 # Report what library types will actually be built
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14508 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14510 $as_echo "$can_build_shared" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14513 $as_echo_n "checking whether to build shared libraries... " >&6; }
14514 test no = "$can_build_shared" && enable_shared=no
14516 # On AIX, shared libraries and static libraries use the same namespace, and
14517 # are all built from PIC.
14520 test yes = "$enable_shared" && enable_static=no
14521 if test -n "$RANLIB"; then
14522 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14523 postinstall_cmds='$RANLIB $lib'
14528 if test ia64 != "$host_cpu"; then
14529 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14530 yes,aix,yes) ;; # shared object as lib.so file only
14531 yes,svr4,*) ;; # shared object as lib.so archive member only
14532 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14538 $as_echo "$enable_shared" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14541 $as_echo_n "checking whether to build static libraries... " >&6; }
14542 # Make sure either enable_shared or enable_static is yes.
14543 test yes = "$enable_shared" || enable_static=yes
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14545 $as_echo "$enable_static" >&6; }
14552 ac_cpp='$CPP $CPPFLAGS'
14553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14573 ac_config_commands="$ac_config_commands libtool"
14578 # Only expand once:
14583 # NTP has (so far) been relying on leading-edge autogen, which
14584 # means we need the appropriate corresponding libopts as well.
14585 # Therefore, by default:
14586 # - use the version of libopts we ship with
14587 # - do not install it
14588 # - build a static copy (AC_DISABLE_SHARED - done earlier)
14589 case "${enable_local_libopts+set}" in
14591 *) enable_local_libopts=yes ;;
14593 case "${enable_libopts_install+set}" in
14595 *) enable_libopts_install=no ;;
14598 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14599 if test "x$ac_cv_type_pid_t" = xyes; then :
14603 cat >>confdefs.h <<_ACEOF
14611 ac_header_dirent=no
14612 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14613 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14615 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14616 if eval \${$as_ac_Header+:} false; then :
14617 $as_echo_n "(cached) " >&6
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621 #include <sys/types.h>
14633 if ac_fn_c_try_compile "$LINENO"; then :
14634 eval "$as_ac_Header=yes"
14636 eval "$as_ac_Header=no"
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 eval ac_res=\$$as_ac_Header
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14642 $as_echo "$ac_res" >&6; }
14643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14648 ac_header_dirent=$ac_hdr; break
14652 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14653 if test $ac_header_dirent = dirent.h; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14655 $as_echo_n "checking for library containing opendir... " >&6; }
14656 if ${ac_cv_search_opendir+:} false; then :
14657 $as_echo_n "(cached) " >&6
14659 ac_func_search_save_LIBS=$LIBS
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14663 /* Override any GCC internal prototype to avoid an error.
14664 Use char because int might match the return type of a GCC
14665 builtin and then its argument prototype would still apply. */
14678 for ac_lib in '' dir; do
14679 if test -z "$ac_lib"; then
14680 ac_res="none required"
14683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 ac_cv_search_opendir=$ac_res
14688 rm -f core conftest.err conftest.$ac_objext \
14690 if ${ac_cv_search_opendir+:} false; then :
14694 if ${ac_cv_search_opendir+:} false; then :
14697 ac_cv_search_opendir=no
14699 rm conftest.$ac_ext
14700 LIBS=$ac_func_search_save_LIBS
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14703 $as_echo "$ac_cv_search_opendir" >&6; }
14704 ac_res=$ac_cv_search_opendir
14705 if test "$ac_res" != no; then :
14706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14712 $as_echo_n "checking for library containing opendir... " >&6; }
14713 if ${ac_cv_search_opendir+:} false; then :
14714 $as_echo_n "(cached) " >&6
14716 ac_func_search_save_LIBS=$LIBS
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14720 /* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14735 for ac_lib in '' x; do
14736 if test -z "$ac_lib"; then
14737 ac_res="none required"
14740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14742 if ac_fn_c_try_link "$LINENO"; then :
14743 ac_cv_search_opendir=$ac_res
14745 rm -f core conftest.err conftest.$ac_objext \
14747 if ${ac_cv_search_opendir+:} false; then :
14751 if ${ac_cv_search_opendir+:} false; then :
14754 ac_cv_search_opendir=no
14756 rm conftest.$ac_ext
14757 LIBS=$ac_func_search_save_LIBS
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14760 $as_echo "$ac_cv_search_opendir" >&6; }
14761 ac_res=$ac_cv_search_opendir
14762 if test "$ac_res" != no; then :
14763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770 # =================
14772 # =================
14774 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
14775 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
14776 sys/un.h sys/wait.h dlfcn.h errno.h \
14777 fcntl.h libgen.h libintl.h memory.h \
14778 netinet/in.h setjmp.h stdbool.h sysexits.h \
14781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14784 cat >>confdefs.h <<_ACEOF
14785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 for ac_header in stdarg.h varargs.h
14795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14797 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14798 cat >>confdefs.h <<_ACEOF
14799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14801 lo_have_arg_hdr=true;break
14803 lo_have_arg_hdr=false
14809 for ac_header in string.h strings.h
14811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14814 cat >>confdefs.h <<_ACEOF
14815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14817 lo_have_str_hdr=true;break
14819 lo_have_str_hdr=false
14825 for ac_header in limits.h sys/limits.h values.h
14827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14830 cat >>confdefs.h <<_ACEOF
14831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14833 lo_have_lim_hdr=true;break
14835 lo_have_lim_hdr=false
14841 for ac_header in inttypes.h stdint.h
14843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14846 cat >>confdefs.h <<_ACEOF
14847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14849 lo_have_typ_hdr=true;break
14851 lo_have_typ_hdr=false
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
14858 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
14859 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
14860 $as_echo_n "(cached) " >&6
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864 #include <stdlib.h>
14865 #include <stdnoreturn.h>
14866 /* Do not check for 'noreturn' after the return type.
14867 C11 allows it, but it's rarely done that way
14868 and circa-2012 bleeding-edge GCC rejects it when given
14869 -Werror=old-style-declaration. */
14870 noreturn void foo1 (void) { exit (0); }
14871 _Noreturn void foo2 (void) { exit (0); }
14872 int testit (int argc, char **argv) {
14875 (argv[0][0] ? foo1 : foo2) ();
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 gl_cv_header_working_stdnoreturn_h=yes
14889 gl_cv_header_working_stdnoreturn_h=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
14894 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
14896 if test $gl_cv_header_working_stdnoreturn_h = yes; then
14899 STDNORETURN_H='stdnoreturn.h'
14903 if test -n "$STDNORETURN_H"; then
14904 GL_GENERATE_STDNORETURN_H_TRUE=
14905 GL_GENERATE_STDNORETURN_H_FALSE='#'
14907 GL_GENERATE_STDNORETURN_H_TRUE='#'
14908 GL_GENERATE_STDNORETURN_H_FALSE=
14913 # ----------------------------------------------------------------------
14914 # check for various programs used during the build.
14915 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
14916 # ----------------------------------------------------------------------
14917 for ac_header in runetype.h wchar.h
14919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14920 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14921 $ac_includes_default
14922 #if HAVE_RUNETYPE_H
14923 # include <runetype.h>
14927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14928 cat >>confdefs.h <<_ACEOF
14929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14937 # Check whether --enable-nls was given.
14938 if test "${enable_nls+set}" = set; then :
14939 enableval=$enable_nls;
14942 if test "x$enable_nls" != "xno" && \
14943 test "X${ac_cv_header_libintl_h}" = Xyes; then :
14946 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14950 # --------------------------------------------
14951 # Verify certain entries from AC_CHECK_HEADERS
14952 # --------------------------------------------
14953 ${lo_have_arg_hdr} || \
14954 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
14956 ${lo_have_str_hdr} || \
14957 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
14959 ${lo_have_lim_hdr} || \
14960 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
14962 ${lo_have_typ_hdr} || \
14963 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
14965 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
14966 do eval as_ac_var=\${ac_cv_header_${f}_h}
14967 test "X${as_ac_var}" = Xyes || {
14968 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
14971 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
14972 echo '#include <stdint.h>' > inttypes.h
14974 # ----------------------------------------------------------------------
14975 # Checks for typedefs
14976 # ----------------------------------------------------------------------
14977 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
14978 if test "x$ac_cv_type_wchar_t" = xyes; then :
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_WCHAR_T 1
14987 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
14988 $ac_includes_default
14989 #if HAVE_RUNETYPE_H
14990 # include <runetype.h>
14993 # include <wchar.h>
14997 if test "x$ac_cv_type_wint_t" = xyes; then :
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_WINT_T 1
15006 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15007 if test "x$ac_cv_type_int8_t" = xyes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_INT8_T 1
15015 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15016 if test "x$ac_cv_type_uint8_t" = xyes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_UINT8_T 1
15024 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15025 if test "x$ac_cv_type_int16_t" = xyes; then :
15027 cat >>confdefs.h <<_ACEOF
15028 #define HAVE_INT16_T 1
15033 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15034 if test "x$ac_cv_type_uint16_t" = xyes; then :
15036 cat >>confdefs.h <<_ACEOF
15037 #define HAVE_UINT16_T 1
15042 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15043 if test "x$ac_cv_type_int32_t" = xyes; then :
15045 cat >>confdefs.h <<_ACEOF
15046 #define HAVE_INT32_T 1
15051 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15052 if test "x$ac_cv_type_uint32_t" = xyes; then :
15054 cat >>confdefs.h <<_ACEOF
15055 #define HAVE_UINT32_T 1
15060 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15061 if test "x$ac_cv_type_intptr_t" = xyes; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_INTPTR_T 1
15069 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15070 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15072 cat >>confdefs.h <<_ACEOF
15073 #define HAVE_UINTPTR_T 1
15078 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
15079 if test "x$ac_cv_type_uint_t" = xyes; then :
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_UINT_T 1
15087 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15088 if test "x$ac_cv_type_pid_t" = xyes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_PID_T 1
15096 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15097 if test "x$ac_cv_type_size_t" = xyes; then :
15099 cat >>confdefs.h <<_ACEOF
15100 #define HAVE_SIZE_T 1
15105 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15106 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_PTRDIFF_T 1
15115 # The cast to long int works around a bug in the HP C Compiler
15116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15118 # This bug is HP SR number 8606223364.
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
15120 $as_echo_n "checking size of char *... " >&6; }
15121 if ${ac_cv_sizeof_char_p+:} false; then :
15122 $as_echo_n "(cached) " >&6
15124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
15127 if test "$ac_cv_type_char_p" = yes; then
15128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15130 as_fn_error 77 "cannot compute sizeof (char *)
15131 See \`config.log' for more details" "$LINENO" 5; }
15133 ac_cv_sizeof_char_p=0
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
15139 $as_echo "$ac_cv_sizeof_char_p" >&6; }
15143 cat >>confdefs.h <<_ACEOF
15144 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15148 # The cast to long int works around a bug in the HP C Compiler
15149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15151 # This bug is HP SR number 8606223364.
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15153 $as_echo_n "checking size of int... " >&6; }
15154 if ${ac_cv_sizeof_int+:} false; then :
15155 $as_echo_n "(cached) " >&6
15157 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15160 if test "$ac_cv_type_int" = yes; then
15161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15163 as_fn_error 77 "cannot compute sizeof (int)
15164 See \`config.log' for more details" "$LINENO" 5; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15172 $as_echo "$ac_cv_sizeof_int" >&6; }
15176 cat >>confdefs.h <<_ACEOF
15177 #define SIZEOF_INT $ac_cv_sizeof_int
15181 # The cast to long int works around a bug in the HP C Compiler
15182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184 # This bug is HP SR number 8606223364.
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15186 $as_echo_n "checking size of long... " >&6; }
15187 if ${ac_cv_sizeof_long+:} false; then :
15188 $as_echo_n "(cached) " >&6
15190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15193 if test "$ac_cv_type_long" = yes; then
15194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196 as_fn_error 77 "cannot compute sizeof (long)
15197 See \`config.log' for more details" "$LINENO" 5; }
15199 ac_cv_sizeof_long=0
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15205 $as_echo "$ac_cv_sizeof_long" >&6; }
15209 cat >>confdefs.h <<_ACEOF
15210 #define SIZEOF_LONG $ac_cv_sizeof_long
15214 # The cast to long int works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15219 $as_echo_n "checking size of short... " >&6; }
15220 if ${ac_cv_sizeof_short+:} false; then :
15221 $as_echo_n "(cached) " >&6
15223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15226 if test "$ac_cv_type_short" = yes; then
15227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15229 as_fn_error 77 "cannot compute sizeof (short)
15230 See \`config.log' for more details" "$LINENO" 5; }
15232 ac_cv_sizeof_short=0
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15238 $as_echo "$ac_cv_sizeof_short" >&6; }
15242 cat >>confdefs.h <<_ACEOF
15243 #define SIZEOF_SHORT $ac_cv_sizeof_short
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
15252 $as_echo_n "checking for pathfind in -lgen... " >&6; }
15253 if ${ac_cv_lib_gen_pathfind+:} false; then :
15254 $as_echo_n "(cached) " >&6
15256 ac_check_lib_save_LIBS=$LIBS
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15261 /* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15271 return pathfind ();
15276 if ac_fn_c_try_link "$LINENO"; then :
15277 ac_cv_lib_gen_pathfind=yes
15279 ac_cv_lib_gen_pathfind=no
15281 rm -f core conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
15283 LIBS=$ac_check_lib_save_LIBS
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
15286 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
15287 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define HAVE_LIBGEN 1
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
15297 $as_echo_n "checking for gettext in -lintl... " >&6; }
15298 if ${ac_cv_lib_intl_gettext+:} false; then :
15299 $as_echo_n "(cached) " >&6
15301 ac_check_lib_save_LIBS=$LIBS
15302 LIBS="-lintl $LIBS"
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15306 /* Override any GCC internal prototype to avoid an error.
15307 Use char because int might match the return type of a GCC
15308 builtin and then its argument prototype would still apply. */
15321 if ac_fn_c_try_link "$LINENO"; then :
15322 ac_cv_lib_intl_gettext=yes
15324 ac_cv_lib_intl_gettext=no
15326 rm -f core conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
15331 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
15332 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
15333 cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBINTL 1
15337 LIBS="-lintl $LIBS"
15341 for ac_func in vprintf
15343 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15344 if test "x$ac_cv_func_vprintf" = xyes; then :
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_VPRINTF 1
15349 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15350 if test "x$ac_cv_func__doprnt" = xyes; then :
15352 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15360 for ac_header in vfork.h
15362 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15363 if test "x$ac_cv_header_vfork_h" = xyes; then :
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_VFORK_H 1
15372 for ac_func in fork vfork
15374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15375 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15377 cat >>confdefs.h <<_ACEOF
15378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15384 if test "x$ac_cv_func_fork" = xyes; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15386 $as_echo_n "checking for working fork... " >&6; }
15387 if ${ac_cv_func_fork_works+:} false; then :
15388 $as_echo_n "(cached) " >&6
15390 if test "$cross_compiling" = yes; then :
15391 ac_cv_func_fork_works=cross
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395 $ac_includes_default
15400 /* By Ruediger Kuhlmann. */
15401 return fork () < 0;
15407 if ac_fn_c_try_run "$LINENO"; then :
15408 ac_cv_func_fork_works=yes
15410 ac_cv_func_fork_works=no
15412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15413 conftest.$ac_objext conftest.beam conftest.$ac_ext
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15418 $as_echo "$ac_cv_func_fork_works" >&6; }
15421 ac_cv_func_fork_works=$ac_cv_func_fork
15423 if test "x$ac_cv_func_fork_works" = xcross; then
15425 *-*-amigaos* | *-*-msdosdjgpp*)
15426 # Override, as these systems have only a dummy fork() stub
15427 ac_cv_func_fork_works=no
15430 ac_cv_func_fork_works=yes
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15434 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15436 ac_cv_func_vfork_works=$ac_cv_func_vfork
15437 if test "x$ac_cv_func_vfork" = xyes; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15439 $as_echo_n "checking for working vfork... " >&6; }
15440 if ${ac_cv_func_vfork_works+:} false; then :
15441 $as_echo_n "(cached) " >&6
15443 if test "$cross_compiling" = yes; then :
15444 ac_cv_func_vfork_works=cross
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 /* Thanks to Paul Eggert for this test. */
15449 $ac_includes_default
15450 #include <sys/wait.h>
15451 #ifdef HAVE_VFORK_H
15452 # include <vfork.h>
15454 /* On some sparc systems, changes by the child to local and incoming
15455 argument registers are propagated back to the parent. The compiler
15456 is told about this with #include <vfork.h>, but some compilers
15457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15458 static variable whose address is put into a register that is
15459 clobbered by the vfork. */
15462 sparc_address_test (int arg)
15464 sparc_address_test (arg) int arg;
15467 static pid_t child;
15485 pid_t parent = getpid ();
15488 sparc_address_test (0);
15493 /* Here is another test for sparc vfork register problems. This
15494 test uses lots of local variables, at least as many local
15495 variables as main has allocated so far including compiler
15496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15498 reuse the register of parent for one of the local variables,
15499 since it will think that parent can't possibly be used any more
15500 in this routine. Assigning to the local variable will thus
15501 munge parent in the parent process. */
15503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15505 /* Convince the compiler that p..p7 are live; otherwise, it might
15506 use the same hardware register for all 8 local variables. */
15507 if (p != p1 || p != p2 || p != p3 || p != p4
15508 || p != p5 || p != p6 || p != p7)
15511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15512 from child file descriptors. If the child closes a descriptor
15513 before it execs or exits, this munges the parent's descriptor
15514 as well. Test for this by closing stdout in the child. */
15515 _exit(close(fileno(stdout)) != 0);
15520 while (wait(&status) != child)
15523 /* Was there some problem with vforking? */
15526 /* Did the child fail? (This shouldn't happen.) */
15529 /* Did the vfork/compiler bug occur? */
15530 || parent != getpid()
15532 /* Did the file descriptor bug occur? */
15533 || fstat(fileno(stdout), &st) != 0
15538 if ac_fn_c_try_run "$LINENO"; then :
15539 ac_cv_func_vfork_works=yes
15541 ac_cv_func_vfork_works=no
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15544 conftest.$ac_objext conftest.beam conftest.$ac_ext
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15549 $as_echo "$ac_cv_func_vfork_works" >&6; }
15552 if test "x$ac_cv_func_fork_works" = xcross; then
15553 ac_cv_func_vfork_works=$ac_cv_func_vfork
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15555 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15558 if test "x$ac_cv_func_vfork_works" = xyes; then
15560 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15564 $as_echo "#define vfork fork" >>confdefs.h
15567 if test "x$ac_cv_func_fork_works" = xyes; then
15569 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15573 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
15574 strrchr strsignal fchmod fstat chmod
15576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15578 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15579 cat >>confdefs.h <<_ACEOF
15580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15587 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15588 if ${ac_cv_path_SED+:} false; then :
15589 $as_echo_n "(cached) " >&6
15591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15592 for ac_i in 1 2 3 4 5 6 7; do
15593 ac_script="$ac_script$as_nl$ac_script"
15595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15596 { ac_script=; unset ac_script;}
15597 if test -z "$SED"; then
15598 ac_path_SED_found=false
15599 # Loop through the user's path and test for each of PROGNAME-LIST
15600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15601 for as_dir in $PATH
15604 test -z "$as_dir" && as_dir=.
15605 for ac_prog in sed gsed; do
15606 for ac_exec_ext in '' $ac_executable_extensions; do
15607 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15608 as_fn_executable_p "$ac_path_SED" || continue
15609 # Check for GNU ac_path_SED and select it if it is found.
15610 # Check for GNU $ac_path_SED
15611 case `"$ac_path_SED" --version 2>&1` in
15613 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15616 $as_echo_n 0123456789 >"conftest.in"
15619 cat "conftest.in" "conftest.in" >"conftest.tmp"
15620 mv "conftest.tmp" "conftest.in"
15621 cp "conftest.in" "conftest.nl"
15622 $as_echo '' >> "conftest.nl"
15623 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15625 as_fn_arith $ac_count + 1 && ac_count=$as_val
15626 if test $ac_count -gt ${ac_path_SED_max-0}; then
15627 # Best one so far, save it but keep looking for a better one
15628 ac_cv_path_SED="$ac_path_SED"
15629 ac_path_SED_max=$ac_count
15631 # 10*(2^10) chars as input seems more than enough
15632 test $ac_count -gt 10 && break
15634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15637 $ac_path_SED_found && break 3
15642 if test -z "$ac_cv_path_SED"; then
15643 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15646 ac_cv_path_SED=$SED
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15651 $as_echo "$ac_cv_path_SED" >&6; }
15652 SED="$ac_cv_path_SED"
15657 POSIX_SHELL=`which bash`
15658 test -x "$POSIX_SHELL" && break
15659 POSIX_SHELL=`which dash`
15660 test -x "$POSIX_SHELL" && break
15661 POSIX_SHELL=/usr/xpg4/bin/sh
15662 test -x "$POSIX_SHELL" && break
15663 POSIX_SHELL=`/bin/sh -c '
15665 if ! true ; then exit 1 ; fi
15667 test -x "$POSIX_SHELL" && break
15668 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
15671 cat >>confdefs.h <<_ACEOF
15672 #define POSIX_SHELL "${POSIX_SHELL}"
15679 LIBOPTS_BUILD_BLOCKED=true
15682 NEED_LIBOPTS_DIR=''
15684 # Check whether --enable-local-libopts was given.
15685 if test "${enable_local_libopts+set}" = set; then :
15686 enableval=$enable_local_libopts;
15687 if test x$enableval = xyes ; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
15689 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
15690 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15691 NEED_LIBOPTS_DIR=true
15692 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15697 # Check whether --enable-libopts-install was given.
15698 if test "${enable_libopts_install+set}" = set; then :
15699 enableval=$enable_libopts_install;
15702 if test "X${enable_libopts_install}" = Xyes; then
15703 INSTALL_LIBOPTS_TRUE=
15704 INSTALL_LIBOPTS_FALSE='#'
15706 INSTALL_LIBOPTS_TRUE='#'
15707 INSTALL_LIBOPTS_FALSE=
15711 if test -z "${NEED_LIBOPTS_DIR}" ; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
15713 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
15715 # Check whether --with-autoopts-config was given.
15716 if test "${with_autoopts_config+set}" = set; then :
15717 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
15720 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
15721 if ${lo_cv_with_autoopts_config+:} false; then :
15722 $as_echo_n "(cached) " >&6
15724 if autoopts-config --help 2>/dev/null 1>&2
15725 then lo_cv_with_autoopts_config=autoopts-config
15726 elif libopts-config --help 2>/dev/null 1>&2
15727 then lo_cv_with_autoopts_config=libopts-config
15728 else lo_cv_with_autoopts_config=no ; fi
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
15731 $as_echo "$lo_cv_with_autoopts_config" >&6; }
15734 # end of AC_ARG_WITH
15736 if ${lo_cv_test_autoopts+:} false; then :
15737 $as_echo_n "(cached) " >&6
15740 if test -z "${lo_cv_with_autoopts_config}" \
15741 -o X"${lo_cv_with_autoopts_config}" = Xno
15743 if autoopts-config --help 2>/dev/null 1>&2
15744 then lo_cv_with_autoopts_config=autoopts-config
15745 elif libopts-config --help 2>/dev/null 1>&2
15746 then lo_cv_with_autoopts_config=libopts-config
15747 else lo_cv_with_autoopts_config=false ; fi
15749 lo_cv_test_autoopts=`
15750 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
15751 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
15752 then lo_cv_test_autoopts=no ; fi
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
15757 $as_echo "${lo_cv_test_autoopts}" >&6; }
15759 if test "X${lo_cv_test_autoopts}" != Xno
15761 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
15762 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
15764 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15765 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15766 NEED_LIBOPTS_DIR=true
15768 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
15769 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
15770 NEED_LIBOPTS_DIR=''
15772 if test -n "${NEED_LIBOPTS_DIR}"; then
15774 NEED_LIBOPTS_FALSE='#'
15776 NEED_LIBOPTS_TRUE='#'
15777 NEED_LIBOPTS_FALSE=
15782 LIBOPTS_DIR=sntp/libopts
15785 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
15787 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
15792 ntp_pkgconfig_min_version='0.15.0'
15793 if test -n "$ac_tool_prefix"; then
15794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15797 $as_echo_n "checking for $ac_word... " >&6; }
15798 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15799 $as_echo_n "(cached) " >&6
15801 case $PKG_CONFIG in
15803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15825 if test -n "$PKG_CONFIG"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15827 $as_echo "$PKG_CONFIG" >&6; }
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830 $as_echo "no" >&6; }
15835 if test -z "$ac_cv_path_PKG_CONFIG"; then
15836 ac_pt_PKG_CONFIG=$PKG_CONFIG
15837 # Extract the first word of "pkg-config", so it can be a program name with args.
15838 set dummy pkg-config; ac_word=$2
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15840 $as_echo_n "checking for $ac_word... " >&6; }
15841 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15842 $as_echo_n "(cached) " >&6
15844 case $ac_pt_PKG_CONFIG in
15846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15867 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15868 if test -n "$ac_pt_PKG_CONFIG"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15870 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }
15876 if test "x$ac_pt_PKG_CONFIG" = x; then
15879 case $cross_compiling:$ac_tool_warned in
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15883 ac_tool_warned=yes ;;
15885 PKG_CONFIG=$ac_pt_PKG_CONFIG
15888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15891 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
15892 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
15894 case "$PKG_CONFIG" in
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
15897 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
15898 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900 $as_echo "yes" >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15912 # Check whether --enable-local-libevent was given.
15913 if test "${enable_local_libevent+set}" = set; then :
15914 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
15916 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
15924 ntp_libevent_min_version=2
15925 ntp_libevent_tearoff=sntp/libevent
15931 case "$ntp_use_local_libevent" in
15934 *) # If we have (a good enough) pkg-config, see if it can find libevent
15935 case "$PKG_CONFIG" in
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
15938 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
15939 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
15941 ntp_use_local_libevent=no
15942 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
15943 case "$ntp_libevent_version" in
15945 *) ntp_libevent_version='(unknown)' ;;
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
15948 $as_echo "yes, version $ntp_libevent_version" >&6; }
15949 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15950 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
15951 # HMS: I hope the following is accurate.
15952 # We don't need -levent, we only need -levent_core.
15953 # While we could grab only the -L stuff, there *might* be
15954 # other flags there we want. Originally we just removed -levent
15955 # but then somebody decided to install -levent-2.0
15956 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
15957 # So now we dance...
15959 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
15964 *) case "$LDADD_LIBEVENT" in
15965 '') LDADD_LIBEVENT="$i" ;;
15966 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
15971 case "$LIBISC_PTHREADS_NOTHREADS" in
15973 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
15975 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
15977 ntp_use_local_libevent=yes
15978 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
15980 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15986 ntp_use_local_libevent=yes
15992 case "$ntp_use_local_libevent" in
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
15995 $as_echo "$as_me: Using libevent tearoff" >&6;}
15996 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
15997 case "$LIBISC_PTHREADS_NOTHREADS" in
15999 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16002 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16007 if test "x$ntp_use_local_libevent" = "xyes"; then
16008 BUILD_LIBEVENT_TRUE=
16009 BUILD_LIBEVENT_FALSE='#'
16011 BUILD_LIBEVENT_TRUE='#'
16012 BUILD_LIBEVENT_FALSE=
16020 # Expose a cross-compilation indicator to makefiles
16021 if test $build != $host; then
16022 NTP_CROSSCOMPILE_TRUE=
16023 NTP_CROSSCOMPILE_FALSE='#'
16025 NTP_CROSSCOMPILE_TRUE='#'
16026 NTP_CROSSCOMPILE_FALSE=
16031 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16032 if test "x$ac_cv_type_size_t" = xyes; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define size_t unsigned int
16043 # Check whether --enable-c99-snprintf was given.
16044 if test "${enable_c99_snprintf+set}" = set; then :
16045 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
16047 force_c99_snprintf=no
16051 case "$force_c99_snprintf" in
16053 hw_force_rpl_snprintf=yes
16054 hw_force_rpl_vsnprintf=yes
16062 for ac_header in $ac_header_list
16064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16083 $as_echo_n "checking for unsigned long long int... " >&6; }
16084 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 ac_cv_type_unsigned_long_long_int=yes
16088 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16092 /* For now, do not test the preprocessor; as of 2007 there are too many
16093 implementations with broken preprocessors. Perhaps this can
16094 be revisited in 2012. In the meantime, code should not expect
16095 #if to work with literals wider than 32 bits. */
16096 /* Test literals. */
16097 long long int ll = 9223372036854775807ll;
16098 long long int nll = -9223372036854775807LL;
16099 unsigned long long int ull = 18446744073709551615ULL;
16100 /* Test constant expressions. */
16101 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16103 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16109 /* Test availability of runtime routines for shift and division. */
16110 long long int llmax = 9223372036854775807ll;
16111 unsigned long long int ullmax = 18446744073709551615ull;
16112 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16113 | (llmax / ll) | (llmax % ll)
16114 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16115 | (ullmax / ull) | (ullmax % ull));
16121 if ac_fn_c_try_link "$LINENO"; then :
16124 ac_cv_type_unsigned_long_long_int=no
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16131 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16132 if test $ac_cv_type_unsigned_long_long_int = yes; then
16134 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16139 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16140 if test "x$ac_cv_func_vsnprintf" = xyes; then :
16141 hw_cv_func_vsnprintf=yes
16143 hw_cv_func_vsnprintf=no
16146 if test "$hw_cv_func_vsnprintf" = yes; then :
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
16148 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
16149 if ${hw_cv_func_vsnprintf_c99+:} false; then :
16150 $as_echo_n "(cached) " >&6
16152 if test "$cross_compiling" = yes; then :
16153 hw_cv_func_vsnprintf_c99=no
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16158 #include <stdarg.h>
16161 static int testprintf(char *buf, size_t size, const char *format, ...)
16165 va_start(ap, format);
16166 result = vsnprintf(buf, size, format, ap);
16174 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16175 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16176 buf[0] != 'T' || buf[3] != '\0')
16182 if ac_fn_c_try_run "$LINENO"; then :
16183 hw_cv_func_vsnprintf_c99=yes
16185 hw_cv_func_vsnprintf_c99=no
16187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16188 conftest.$ac_objext conftest.beam conftest.$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
16193 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
16195 hw_cv_func_vsnprintf_c99=no
16198 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
16201 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
16202 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
16203 hw_use_rpl_vsnprintf=yes
16205 hw_use_rpl_vsnprintf=no
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
16208 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
16209 if test "$hw_use_rpl_vsnprintf" = yes; then :
16211 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
16213 if test ${hw_nodef_vsnprintf=no} = no; then :
16215 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
16218 for ac_header in inttypes.h locale.h stddef.h stdint.h
16220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16221 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16223 cat >>confdefs.h <<_ACEOF
16224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16231 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16233 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
16235 cat >>confdefs.h <<_ACEOF
16236 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
16241 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16243 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
16245 cat >>confdefs.h <<_ACEOF
16246 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16254 $as_echo_n "checking for long double... " >&6; }
16255 if ${ac_cv_type_long_double+:} false; then :
16256 $as_echo_n "(cached) " >&6
16258 if test "$GCC" = yes; then
16259 ac_cv_type_long_double=yes
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 /* The Stardent Vistra knows sizeof (long double), but does
16265 long double foo = 0.0L;
16269 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16270 sizeof (double) <= sizeof (long double))];
16271 test_array [0] = 0;
16272 return test_array [0];
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 ac_cv_type_long_double=yes
16281 ac_cv_type_long_double=no
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16287 $as_echo "$ac_cv_type_long_double" >&6; }
16288 if test $ac_cv_type_long_double = yes; then
16290 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16297 $as_echo_n "checking for long long int... " >&6; }
16298 if ${ac_cv_type_long_long_int+:} false; then :
16299 $as_echo_n "(cached) " >&6
16301 ac_cv_type_long_long_int=yes
16302 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16303 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16304 if test $ac_cv_type_long_long_int = yes; then
16305 if test "$cross_compiling" = yes; then :
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 #include <limits.h>
16313 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16314 # define LLONG_MAX (HALF - 1 + HALF)
16319 long long int n = 1;
16323 long long int m = n << i;
16326 if (LLONG_MAX / 2 < m)
16334 if ac_fn_c_try_run "$LINENO"; then :
16337 ac_cv_type_long_long_int=no
16339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16340 conftest.$ac_objext conftest.beam conftest.$ac_ext
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16347 $as_echo "$ac_cv_type_long_long_int" >&6; }
16348 if test $ac_cv_type_long_long_int = yes; then
16350 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16356 $as_echo_n "checking for unsigned long long int... " >&6; }
16357 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16358 $as_echo_n "(cached) " >&6
16360 ac_cv_type_unsigned_long_long_int=yes
16361 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16365 /* For now, do not test the preprocessor; as of 2007 there are too many
16366 implementations with broken preprocessors. Perhaps this can
16367 be revisited in 2012. In the meantime, code should not expect
16368 #if to work with literals wider than 32 bits. */
16369 /* Test literals. */
16370 long long int ll = 9223372036854775807ll;
16371 long long int nll = -9223372036854775807LL;
16372 unsigned long long int ull = 18446744073709551615ULL;
16373 /* Test constant expressions. */
16374 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16376 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16382 /* Test availability of runtime routines for shift and division. */
16383 long long int llmax = 9223372036854775807ll;
16384 unsigned long long int ullmax = 18446744073709551615ull;
16385 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16386 | (llmax / ll) | (llmax % ll)
16387 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16388 | (ullmax / ull) | (ullmax % ull));
16394 if ac_fn_c_try_link "$LINENO"; then :
16397 ac_cv_type_unsigned_long_long_int=no
16399 rm -f core conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16404 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16405 if test $ac_cv_type_unsigned_long_long_int = yes; then
16407 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16411 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16412 if test "x$ac_cv_type_size_t" = xyes; then :
16416 cat >>confdefs.h <<_ACEOF
16417 #define size_t unsigned int
16424 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16425 if test "x$ac_cv_type_intmax_t" = xyes; then :
16427 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16430 test $ac_cv_type_long_long_int = yes \
16431 && ac_type='long long int' \
16432 || ac_type='long int'
16434 cat >>confdefs.h <<_ACEOF
16435 #define intmax_t $ac_type
16443 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16444 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16446 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16449 test $ac_cv_type_unsigned_long_long_int = yes \
16450 && ac_type='unsigned long long int' \
16451 || ac_type='unsigned long int'
16453 cat >>confdefs.h <<_ACEOF
16454 #define uintmax_t $ac_type
16461 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16462 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16464 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16467 for ac_type in 'unsigned int' 'unsigned long int' \
16468 'unsigned long long int'; do
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 $ac_includes_default
16475 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16476 test_array [0] = 0;
16477 return test_array [0];
16483 if ac_fn_c_try_compile "$LINENO"; then :
16485 cat >>confdefs.h <<_ACEOF
16486 #define uintptr_t $ac_type
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 test -z "$ac_type" && break
16497 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16498 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_PTRDIFF_T 1
16507 for ac_func in localeconv
16509 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
16510 if test "x$ac_cv_func_localeconv" = xyes; then :
16511 cat >>confdefs.h <<_ACEOF
16512 #define HAVE_LOCALECONV 1
16519 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16521 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16522 if ${ac_cv_c_const+:} false; then :
16523 $as_echo_n "(cached) " >&6
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16532 #ifndef __cplusplus
16533 /* Ultrix mips cc rejects this sort of thing. */
16534 typedef int charset[2];
16535 const charset cs = { 0, 0 };
16536 /* SunOS 4.1.1 cc rejects this. */
16537 char const *const *pcpcc;
16539 /* NEC SVR4.0.2 mips cc rejects this. */
16540 struct point {int x, y;};
16541 static struct point const zero = {0,0};
16542 /* AIX XL C 1.02.0.0 rejects this.
16543 It does not let you subtract one const X* pointer from another in
16544 an arm of an if-expression whose if-part is not a constant
16546 const char *g = "string";
16547 pcpcc = &g + (g ? g-g : 0);
16548 /* HPUX 7.0 cc rejects these. */
16550 ppc = (char**) pcpcc;
16551 pcpcc = (char const *const *) ppc;
16552 { /* SCO 3.2v4 cc rejects this sort of thing. */
16555 char const *s = 0 ? (char *) 0 : (char const *) 0;
16560 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16561 int x[] = {25, 17};
16562 const int *foo = &x[0];
16565 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16566 typedef const int *iptr;
16570 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16571 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16572 struct s { int j; const int *ap[3]; } bx;
16573 struct s *b = &bx; b->j = 5;
16575 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16576 const int foo = 10;
16577 if (!foo) return 0;
16579 return !cs[0] && !zero.x;
16586 if ac_fn_c_try_compile "$LINENO"; then :
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16594 $as_echo "$ac_cv_c_const" >&6; }
16595 if test $ac_cv_c_const = no; then
16597 $as_echo "#define const /**/" >>confdefs.h
16604 case " $LIBOBJS " in
16605 *" snprintf.$ac_objext "* ) ;;
16606 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16610 _hw_cv_func_xprintf_replace_done=yes
16616 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16617 if test "x$ac_cv_func_snprintf" = xyes; then :
16618 hw_cv_func_snprintf=yes
16620 hw_cv_func_snprintf=no
16623 if test "$hw_cv_func_snprintf" = yes; then :
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
16625 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
16626 if ${hw_cv_func_snprintf_c99+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 if test "$cross_compiling" = yes; then :
16630 hw_cv_func_snprintf_c99=no
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16639 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16640 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16641 buf[0] != 'T' || buf[3] != '\0')
16647 if ac_fn_c_try_run "$LINENO"; then :
16648 hw_cv_func_snprintf_c99=yes
16650 hw_cv_func_snprintf_c99=no
16652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16653 conftest.$ac_objext conftest.beam conftest.$ac_ext
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
16658 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
16660 hw_cv_func_snprintf_c99=no
16663 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
16666 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
16667 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
16668 hw_use_rpl_snprintf=yes
16670 hw_use_rpl_snprintf=no
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
16673 $as_echo "$hw_use_rpl_snprintf" >&6; }
16674 if test "$hw_use_rpl_snprintf" = yes; then :
16676 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
16678 if test ${hw_nodef_snprintf=no} = no; then :
16680 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
16684 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16686 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16687 if ${ac_cv_c_const+:} false; then :
16688 $as_echo_n "(cached) " >&6
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16697 #ifndef __cplusplus
16698 /* Ultrix mips cc rejects this sort of thing. */
16699 typedef int charset[2];
16700 const charset cs = { 0, 0 };
16701 /* SunOS 4.1.1 cc rejects this. */
16702 char const *const *pcpcc;
16704 /* NEC SVR4.0.2 mips cc rejects this. */
16705 struct point {int x, y;};
16706 static struct point const zero = {0,0};
16707 /* AIX XL C 1.02.0.0 rejects this.
16708 It does not let you subtract one const X* pointer from another in
16709 an arm of an if-expression whose if-part is not a constant
16711 const char *g = "string";
16712 pcpcc = &g + (g ? g-g : 0);
16713 /* HPUX 7.0 cc rejects these. */
16715 ppc = (char**) pcpcc;
16716 pcpcc = (char const *const *) ppc;
16717 { /* SCO 3.2v4 cc rejects this sort of thing. */
16720 char const *s = 0 ? (char *) 0 : (char const *) 0;
16725 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16726 int x[] = {25, 17};
16727 const int *foo = &x[0];
16730 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16731 typedef const int *iptr;
16735 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16736 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16737 struct s { int j; const int *ap[3]; } bx;
16738 struct s *b = &bx; b->j = 5;
16740 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16741 const int foo = 10;
16742 if (!foo) return 0;
16744 return !cs[0] && !zero.x;
16751 if ac_fn_c_try_compile "$LINENO"; then :
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16759 $as_echo "$ac_cv_c_const" >&6; }
16760 if test $ac_cv_c_const = no; then
16762 $as_echo "#define const /**/" >>confdefs.h
16769 case " $LIBOBJS " in
16770 *" snprintf.$ac_objext "* ) ;;
16771 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16775 _hw_cv_func_xprintf_replace_done=yes
16784 # HMS: Save $LIBS and empty it.
16785 # any LIBS we add here should go in to LDADD_LIBNTP
16792 # [Bug 2332] because we need to know if we are using GNU ld...
16795 # Check whether --with-gnu-ld was given.
16796 if test "${with_gnu_ld+set}" = set; then :
16797 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16803 if test yes = "$GCC"; then
16804 # Check if gcc -print-prog-name=ld gives a path.
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16806 $as_echo_n "checking for ld used by $CC... " >&6; }
16809 # gcc leaves a trailing carriage return, which upsets mingw
16810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16815 # Accept absolute paths.
16817 re_direlt='/[^/][^/]*/\.\./'
16818 # Canonicalize the pathname of ld
16819 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16820 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16821 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16823 test -z "$LD" && LD=$ac_prog
16826 # If it fails, then pretend we aren't using GCC.
16830 # If it is relative, then search for the first ld in PATH.
16831 with_gnu_ld=unknown
16834 elif test yes = "$with_gnu_ld"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16836 $as_echo_n "checking for GNU ld... " >&6; }
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16839 $as_echo_n "checking for non-GNU ld... " >&6; }
16841 if ${lt_cv_path_LD+:} false; then :
16842 $as_echo_n "(cached) " >&6
16844 if test -z "$LD"; then
16845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16846 for ac_dir in $PATH; do
16848 test -z "$ac_dir" && ac_dir=.
16849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850 lt_cv_path_LD=$ac_dir/$ac_prog
16851 # Check to see if the program is GNU ld. I'd rather use --version,
16852 # but apparently some variants of GNU ld only accept -v.
16853 # Break only if it was the GNU/non-GNU ld that we prefer.
16854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16855 *GNU* | *'with BFD'*)
16856 test no != "$with_gnu_ld" && break
16859 test yes != "$with_gnu_ld" && break
16866 lt_cv_path_LD=$LD # Let the user override the test with a path.
16871 if test -n "$LD"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16873 $as_echo "$LD" >&6; }
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16878 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16880 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16881 if ${lt_cv_prog_gnu_ld+:} false; then :
16882 $as_echo_n "(cached) " >&6
16884 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16885 case `$LD -v 2>&1 </dev/null` in
16886 *GNU* | *'with BFD'*)
16887 lt_cv_prog_gnu_ld=yes
16890 lt_cv_prog_gnu_ld=no
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16895 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16896 with_gnu_ld=$lt_cv_prog_gnu_ld
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
16906 $as_echo_n "checking for directory path separator... " >&6; }
16907 if ${ntp_cv_dir_sep+:} false; then :
16908 $as_echo_n "(cached) " >&6
16911 case "$ntp_cv_dir_sep" in
16914 *djgpp | *mingw32* | *emx*)
16915 ntp_cv_dir_sep="'\\'"
16918 ntp_cv_dir_sep="'/'"
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
16926 $as_echo "$ntp_cv_dir_sep" >&6; }
16928 cat >>confdefs.h <<_ACEOF
16929 #define DIR_SEP $ntp_cv_dir_sep
16934 NTP_ORIG_LIBS="$LIBS"
16936 # Check whether --with-lineeditlibs was given.
16937 if test "${with_lineeditlibs+set}" = set; then :
16938 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
16940 use_lineeditlibs="edit,editline"
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
16945 $as_echo_n "checking line editing libraries... " >&6; }
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
16947 $as_echo "$use_lineeditlibs" >&6; }
16948 case "$use_lineeditlibs" in
16950 ntp_lib_lineedit=no
16953 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
16954 for term_lib in "" termcap curses ncurses; do
16955 case "$term_lib" in
16957 TRY_LIB="-l$lineedit_lib"
16960 TRY_LIB="-l$lineedit_lib -l$term_lib"
16963 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
16965 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16969 /* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
16979 return readline ();
16984 if ac_fn_c_try_link "$LINENO"; then :
16985 ntp_lib_lineedit="$TRY_LIB"
16987 rm -f core conftest.err conftest.$ac_objext \
16988 conftest$ac_exeext conftest.$ac_ext
16989 case "$ntp_lib_lineedit" in
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997 $as_echo "yes" >&6; }
17000 case "$term_lib" in
17002 # do not try el_gets without a terminal library
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
17006 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17025 if ac_fn_c_try_link "$LINENO"; then :
17026 ntp_lib_lineedit="$TRY_LIB"
17028 rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17030 case "$ntp_lib_lineedit" in
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17037 $as_echo "yes" >&6; }
17040 esac # $ntp_lib_lineedit
17043 case "$ntp_lib_lineedit" in
17051 LIBS="$NTP_ORIG_LIBS"
17053 esac # $use_lineeditlibs
17055 case "$ntp_lib_lineedit" in
17057 ntp_lib_lineedit="no"
17062 EDITLINE_LIBS="$ntp_lib_lineedit"
17065 esac # $ntp_lib_lineedit
17067 case "$ntp_lib_lineedit" in
17071 for ac_header in readline.h readline/readline.h histedit.h
17073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17074 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17076 cat >>confdefs.h <<_ACEOF
17077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17084 for ac_header in history.h readline/history.h
17086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17089 cat >>confdefs.h <<_ACEOF
17090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17098 case "$ac_cv_header_histedit_h" in
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
17101 $as_echo_n "checking number of arguments to el_init()... " >&6; }
17102 if ${ntp_cv_el_init_args+:} false; then :
17103 $as_echo_n "(cached) " >&6
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17109 #include <histedit.h>
17115 el_init("conftest", stdin, stdout, stderr);
17122 if ac_fn_c_try_compile "$LINENO"; then :
17123 ntp_cv_el_init_args=4
17125 ntp_cv_el_init_args=3
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
17132 $as_echo "$ntp_cv_el_init_args" >&6; }
17134 cat >>confdefs.h <<_ACEOF
17135 #define EL_INIT_ARGS $ntp_cv_el_init_args
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17141 $as_echo_n "checking whether readline supports history... " >&6; }
17143 ntp_lib_lineedit_history="no"
17145 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17149 /* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17155 char add_history ();
17159 return add_history ();
17164 if ac_fn_c_try_link "$LINENO"; then :
17165 ntp_lib_lineedit_history="yes"
17167 rm -f core conftest.err conftest.$ac_objext \
17168 conftest$ac_exeext conftest.$ac_ext
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
17172 $as_echo "$ntp_lib_lineedit_history" >&6; }
17174 case "$ntp_lib_lineedit_history" in
17177 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17180 esac # $ntp_lib_lineedit
17181 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
17182 { ORIG_LIBS=; unset ORIG_LIBS;}
17183 { TRY_LIB=; unset TRY_LIB;}
17184 { use_lineeditlibs=; unset use_lineeditlibs;}
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
17194 $as_echo_n "checking for library containing cos... " >&6; }
17195 if ${ac_cv_search_cos+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 ac_func_search_save_LIBS=$LIBS
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17202 /* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
17217 for ac_lib in '' m; do
17218 if test -z "$ac_lib"; then
17219 ac_res="none required"
17222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17224 if ac_fn_c_try_link "$LINENO"; then :
17225 ac_cv_search_cos=$ac_res
17227 rm -f core conftest.err conftest.$ac_objext \
17229 if ${ac_cv_search_cos+:} false; then :
17233 if ${ac_cv_search_cos+:} false; then :
17236 ac_cv_search_cos=no
17238 rm conftest.$ac_ext
17239 LIBS=$ac_func_search_save_LIBS
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
17242 $as_echo "$ac_cv_search_cos" >&6; }
17243 ac_res=$ac_cv_search_cos
17244 if test "$ac_res" != no; then :
17245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17253 { _libs=; unset _libs;}
17256 for ac_header in vfork.h
17258 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17259 if test "x$ac_cv_header_vfork_h" = xyes; then :
17260 cat >>confdefs.h <<_ACEOF
17261 #define HAVE_VFORK_H 1
17268 for ac_func in fork vfork
17270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17272 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17273 cat >>confdefs.h <<_ACEOF
17274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280 if test "x$ac_cv_func_fork" = xyes; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17282 $as_echo_n "checking for working fork... " >&6; }
17283 if ${ac_cv_func_fork_works+:} false; then :
17284 $as_echo_n "(cached) " >&6
17286 if test "$cross_compiling" = yes; then :
17287 ac_cv_func_fork_works=cross
17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h. */
17291 $ac_includes_default
17296 /* By Ruediger Kuhlmann. */
17297 return fork () < 0;
17303 if ac_fn_c_try_run "$LINENO"; then :
17304 ac_cv_func_fork_works=yes
17306 ac_cv_func_fork_works=no
17308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17309 conftest.$ac_objext conftest.beam conftest.$ac_ext
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17314 $as_echo "$ac_cv_func_fork_works" >&6; }
17317 ac_cv_func_fork_works=$ac_cv_func_fork
17319 if test "x$ac_cv_func_fork_works" = xcross; then
17321 *-*-amigaos* | *-*-msdosdjgpp*)
17322 # Override, as these systems have only a dummy fork() stub
17323 ac_cv_func_fork_works=no
17326 ac_cv_func_fork_works=yes
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17330 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17332 ac_cv_func_vfork_works=$ac_cv_func_vfork
17333 if test "x$ac_cv_func_vfork" = xyes; then
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17335 $as_echo_n "checking for working vfork... " >&6; }
17336 if ${ac_cv_func_vfork_works+:} false; then :
17337 $as_echo_n "(cached) " >&6
17339 if test "$cross_compiling" = yes; then :
17340 ac_cv_func_vfork_works=cross
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344 /* Thanks to Paul Eggert for this test. */
17345 $ac_includes_default
17346 #include <sys/wait.h>
17347 #ifdef HAVE_VFORK_H
17348 # include <vfork.h>
17350 /* On some sparc systems, changes by the child to local and incoming
17351 argument registers are propagated back to the parent. The compiler
17352 is told about this with #include <vfork.h>, but some compilers
17353 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17354 static variable whose address is put into a register that is
17355 clobbered by the vfork. */
17358 sparc_address_test (int arg)
17360 sparc_address_test (arg) int arg;
17363 static pid_t child;
17381 pid_t parent = getpid ();
17384 sparc_address_test (0);
17389 /* Here is another test for sparc vfork register problems. This
17390 test uses lots of local variables, at least as many local
17391 variables as main has allocated so far including compiler
17392 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17393 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17394 reuse the register of parent for one of the local variables,
17395 since it will think that parent can't possibly be used any more
17396 in this routine. Assigning to the local variable will thus
17397 munge parent in the parent process. */
17399 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17400 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17401 /* Convince the compiler that p..p7 are live; otherwise, it might
17402 use the same hardware register for all 8 local variables. */
17403 if (p != p1 || p != p2 || p != p3 || p != p4
17404 || p != p5 || p != p6 || p != p7)
17407 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17408 from child file descriptors. If the child closes a descriptor
17409 before it execs or exits, this munges the parent's descriptor
17410 as well. Test for this by closing stdout in the child. */
17411 _exit(close(fileno(stdout)) != 0);
17416 while (wait(&status) != child)
17419 /* Was there some problem with vforking? */
17422 /* Did the child fail? (This shouldn't happen.) */
17425 /* Did the vfork/compiler bug occur? */
17426 || parent != getpid()
17428 /* Did the file descriptor bug occur? */
17429 || fstat(fileno(stdout), &st) != 0
17434 if ac_fn_c_try_run "$LINENO"; then :
17435 ac_cv_func_vfork_works=yes
17437 ac_cv_func_vfork_works=no
17439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17440 conftest.$ac_objext conftest.beam conftest.$ac_ext
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17445 $as_echo "$ac_cv_func_vfork_works" >&6; }
17448 if test "x$ac_cv_func_fork_works" = xcross; then
17449 ac_cv_func_vfork_works=$ac_cv_func_vfork
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17451 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17454 if test "x$ac_cv_func_vfork_works" = xyes; then
17456 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17460 $as_echo "#define vfork fork" >>confdefs.h
17463 if test "x$ac_cv_func_fork_works" = xyes; then
17465 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17470 # for constant arguments. Useless!
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17472 $as_echo_n "checking for working alloca.h... " >&6; }
17473 if ${ac_cv_working_alloca_h+:} false; then :
17474 $as_echo_n "(cached) " >&6
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 #include <alloca.h>
17482 char *p = (char *) alloca (2 * sizeof (int));
17488 if ac_fn_c_try_link "$LINENO"; then :
17489 ac_cv_working_alloca_h=yes
17491 ac_cv_working_alloca_h=no
17493 rm -f core conftest.err conftest.$ac_objext \
17494 conftest$ac_exeext conftest.$ac_ext
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17497 $as_echo "$ac_cv_working_alloca_h" >&6; }
17498 if test $ac_cv_working_alloca_h = yes; then
17500 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17505 $as_echo_n "checking for alloca... " >&6; }
17506 if ${ac_cv_func_alloca_works+:} false; then :
17507 $as_echo_n "(cached) " >&6
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17512 # define alloca __builtin_alloca
17515 # include <malloc.h>
17516 # define alloca _alloca
17518 # ifdef HAVE_ALLOCA_H
17519 # include <alloca.h>
17524 # ifndef alloca /* predefined by HP cc +Olibcalls */
17525 void *alloca (size_t);
17535 char *p = (char *) alloca (1);
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 ac_cv_func_alloca_works=yes
17544 ac_cv_func_alloca_works=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17550 $as_echo "$ac_cv_func_alloca_works" >&6; }
17552 if test $ac_cv_func_alloca_works = yes; then
17554 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17558 # that cause trouble. Some versions do not even contain alloca or
17559 # contain a buggy version. If you still want to use their alloca,
17560 # use ar to extract alloca.o from them instead of compiling alloca.c.
17562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17564 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17569 if ${ac_cv_os_cray+:} false; then :
17570 $as_echo_n "(cached) " >&6
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 #if defined CRAY && ! defined CRAY2
17581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17582 $EGREP "webecray" >/dev/null 2>&1; then :
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17591 $as_echo "$ac_cv_os_cray" >&6; }
17592 if test $ac_cv_os_cray = yes; then
17593 for ac_func in _getb67 GETB67 getb67; do
17594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17598 cat >>confdefs.h <<_ACEOF
17599 #define CRAY_STACKSEG_END $ac_func
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17609 $as_echo_n "checking stack direction for C alloca... " >&6; }
17610 if ${ac_cv_c_stack_direction+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 if test "$cross_compiling" = yes; then :
17614 ac_cv_c_stack_direction=0
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 $ac_includes_default
17620 find_stack_direction (int *addr, int depth)
17622 int dir, dummy = 0;
17625 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17626 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17627 return dir + dummy;
17631 main (int argc, char **argv)
17633 return find_stack_direction (0, argc + !argv + 20) < 0;
17636 if ac_fn_c_try_run "$LINENO"; then :
17637 ac_cv_c_stack_direction=1
17639 ac_cv_c_stack_direction=-1
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17642 conftest.$ac_objext conftest.beam conftest.$ac_ext
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17647 $as_echo "$ac_cv_c_stack_direction" >&6; }
17648 cat >>confdefs.h <<_ACEOF
17649 #define STACK_DIRECTION $ac_cv_c_stack_direction
17655 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17656 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17662 cat >>confdefs.h <<_ACEOF
17663 #define HAVE_DECL_STRERROR_R $ac_have_decl
17666 for ac_func in strerror_r
17668 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17669 if test "x$ac_cv_func_strerror_r" = xyes; then :
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_STRERROR_R 1
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17678 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17679 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17680 $as_echo_n "(cached) " >&6
17683 ac_cv_func_strerror_r_char_p=no
17684 if test $ac_cv_have_decl_strerror_r = yes; then
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 $ac_includes_default
17693 char x = *strerror_r (0, buf, sizeof buf);
17694 char *p = strerror_r (0, buf, sizeof buf);
17701 if ac_fn_c_try_compile "$LINENO"; then :
17702 ac_cv_func_strerror_r_char_p=yes
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 # strerror_r is not declared. Choose between
17707 # systems that have relatively inaccessible declarations for the
17708 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17709 # former has a strerror_r that returns char*, while the latter
17710 # has a strerror_r that returns `int'.
17711 # This test should segfault on the DEC system.
17712 if test "$cross_compiling" = yes; then :
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 $ac_includes_default
17718 extern char *strerror_r ();
17723 char x = *strerror_r (0, buf, sizeof buf);
17724 return ! isalpha (x);
17729 if ac_fn_c_try_run "$LINENO"; then :
17730 ac_cv_func_strerror_r_char_p=yes
17732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17733 conftest.$ac_objext conftest.beam conftest.$ac_ext
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17740 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17741 if test $ac_cv_func_strerror_r_char_p = yes; then
17743 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17748 ac_busted_vpath_in_make=no
17750 *-*-irix6.1*) # 64 bit only
17753 *-*-irix6*) # 6.2 (and later?)
17754 ac_busted_vpath_in_make=yes
17757 ac_busted_vpath_in_make=yes
17760 ac_busted_vpath_in_make=yes
17764 case "$ac_busted_vpath_in_make$srcdir" in
17767 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
17769 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
17777 # Was *-*-aix[[4-9]]*
17778 # XXX only verified thru AIX6. But...
17779 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
17780 # that this support would be in 5.3, removed in 6, and added back.
17782 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
17783 # (returning ENOSYS). I didn't check 4.2. If, in the future,
17784 # IBM pulls its thumbs out long enough to implement clock_settime,
17785 # this conditional will need to change. Maybe use AC_TRY_RUN
17786 # instead to try to set the time to itself and check errno.
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17790 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17791 if ${ac_cv_search_clock_gettime+:} false; then :
17792 $as_echo_n "(cached) " >&6
17794 ac_func_search_save_LIBS=$LIBS
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17804 char clock_gettime ();
17808 return clock_gettime ();
17813 for ac_lib in '' rt; do
17814 if test -z "$ac_lib"; then
17815 ac_res="none required"
17818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17820 if ac_fn_c_try_link "$LINENO"; then :
17821 ac_cv_search_clock_gettime=$ac_res
17823 rm -f core conftest.err conftest.$ac_objext \
17825 if ${ac_cv_search_clock_gettime+:} false; then :
17829 if ${ac_cv_search_clock_gettime+:} false; then :
17832 ac_cv_search_clock_gettime=no
17834 rm conftest.$ac_ext
17835 LIBS=$ac_func_search_save_LIBS
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17838 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17839 ac_res=$ac_cv_search_clock_gettime
17840 if test "$ac_res" != no; then :
17841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17842 case "$ac_cv_search_clock_gettime" in
17843 'none required') ;;
17845 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
17850 for ac_func in clock_getres clock_gettime clock_settime
17852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17854 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17855 cat >>confdefs.h <<_ACEOF
17856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 for ac_func in getclock stime timegm strlcpy strlcat
17867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17869 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17870 cat >>confdefs.h <<_ACEOF
17871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
17882 $as_echo_n "checking for library containing snprintb... " >&6; }
17883 if ${ac_cv_search_snprintb+:} false; then :
17884 $as_echo_n "(cached) " >&6
17886 ac_func_search_save_LIBS=$LIBS
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17890 /* Override any GCC internal prototype to avoid an error.
17891 Use char because int might match the return type of a GCC
17892 builtin and then its argument prototype would still apply. */
17900 return snprintb ();
17905 for ac_lib in '' util; do
17906 if test -z "$ac_lib"; then
17907 ac_res="none required"
17910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17912 if ac_fn_c_try_link "$LINENO"; then :
17913 ac_cv_search_snprintb=$ac_res
17915 rm -f core conftest.err conftest.$ac_objext \
17917 if ${ac_cv_search_snprintb+:} false; then :
17921 if ${ac_cv_search_snprintb+:} false; then :
17924 ac_cv_search_snprintb=no
17926 rm conftest.$ac_ext
17927 LIBS=$ac_func_search_save_LIBS
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
17930 $as_echo "$ac_cv_search_snprintb" >&6; }
17931 ac_res=$ac_cv_search_snprintb
17932 if test "$ac_res" != no; then :
17933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17934 case "$ac_cv_search_snprintb" in
17935 'none required') ;;
17937 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
17940 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
17946 for ac_header in errno.h sys/socket.h sys/types.h time.h
17948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17951 cat >>confdefs.h <<_ACEOF
17952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17959 for ac_header in net/if.h
17961 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
17962 #ifdef HAVE_SYS_SOCKET_H
17963 # include <sys/socket.h>
17967 if test "x$ac_cv_header_net_if_h" = xyes; then :
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_NET_IF_H 1
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
17979 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
17980 if ${ntp_cv_predecl_mpinfou+:} false; then :
17981 $as_echo_n "(cached) " >&6
17984 np_cv_predecl_mpinfou=no
17985 case "$ac_cv_header_net_if_h" in
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17990 typedef union mpinfou {
17991 struct pdk_mpinfo *pdkptr;
17992 struct mpinfo *pikptr;
17994 #ifdef HAVE_SYS_SOCKET_H
17995 # include <sys/socket.h>
17997 #include <net/if.h>
18009 if ac_fn_c_try_compile "$LINENO"; then :
18011 ntp_cv_predecl_mpinfou=yes
18012 ac_cv_header_net_if_h=yes
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
18022 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
18023 case "$ntp_cv_predecl_mpinfou" in
18025 cat >>confdefs.h <<_ACEOF
18026 #ifndef MPINFOU_PREDECLARED
18027 # define MPINFOU_PREDECLARED
18028 typedef union mpinfou {
18029 struct pdk_mpinfo *pdkptr;
18030 struct mpinfo *pikptr;
18040 for ac_header in linux/if_addr.h
18042 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
18043 #ifdef HAVE_SYS_SOCKET_H
18044 # include <sys/socket.h>
18048 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_LINUX_IF_ADDR_H 1
18058 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
18062 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
18064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18065 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18067 cat >>confdefs.h <<_ACEOF
18068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18075 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
18076 for ac_header in sys/sysctl.h
18078 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
18079 #if defined HAVE_SYS_PARAM_H
18080 # include <sys/param.h>
18084 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18085 cat >>confdefs.h <<_ACEOF
18086 #define HAVE_SYS_SYSCTL_H 1
18093 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
18095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18098 cat >>confdefs.h <<_ACEOF
18099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18107 for ac_header in resolv.h
18109 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
18110 #ifdef HAVE_SYS_TYPES_H
18111 # include <sys/types.h>
18113 #ifdef HAVE_NETINET_IN_H
18114 # include <netinet/in.h>
18116 #ifdef HAVE_ARPA_NAMESER_H
18117 # include <arpa/nameser.h>
18121 if test "x$ac_cv_header_resolv_h" = xyes; then :
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_RESOLV_H 1
18131 for ac_header in net/if_var.h
18133 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
18134 #if HAVE_SYS_TYPES_H
18135 # include <sys/types.h>
18137 #ifdef HAVE_SYS_SOCKET_H
18138 # include <sys/socket.h>
18140 #ifdef HAVE_NETINET_IN_H
18141 # include <netinet/in.h>
18143 #ifdef HAVE_NET_IF_H
18144 # include <net/if.h>
18148 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
18149 cat >>confdefs.h <<_ACEOF
18150 #define HAVE_NET_IF_VAR_H 1
18158 for ac_header in netinet/ip.h netinet/in_var.h
18160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18162 #ifdef HAVE_SYS_TYPES_H
18163 # include <sys/types.h>
18165 #ifdef HAVE_SYS_SOCKET_H
18166 # include <sys/socket.h>
18168 #ifdef HAVE_NET_IF_H
18169 # include <net/if.h>
18171 #ifdef HAVE_NETINET_IN_H
18172 # include <netinet/in.h>
18174 #ifdef HAVE_NET_IF_VAR_H
18175 # include <net/if_var.h>
18177 #ifdef HAVE_NETINET_IN_SYSTM_H
18178 # include <netinet/in_systm.h>
18182 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18183 cat >>confdefs.h <<_ACEOF
18184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18192 # HMS: Do we need to check for -lsocket before or after these tests?
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18194 $as_echo_n "checking for library containing inet_pton... " >&6; }
18195 if ${ac_cv_search_inet_pton+:} false; then :
18196 $as_echo_n "(cached) " >&6
18198 ac_func_search_save_LIBS=$LIBS
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18202 /* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18212 return inet_pton ();
18217 for ac_lib in '' nsl; do
18218 if test -z "$ac_lib"; then
18219 ac_res="none required"
18222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18224 if ac_fn_c_try_link "$LINENO"; then :
18225 ac_cv_search_inet_pton=$ac_res
18227 rm -f core conftest.err conftest.$ac_objext \
18229 if ${ac_cv_search_inet_pton+:} false; then :
18233 if ${ac_cv_search_inet_pton+:} false; then :
18236 ac_cv_search_inet_pton=no
18238 rm conftest.$ac_ext
18239 LIBS=$ac_func_search_save_LIBS
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
18242 $as_echo "$ac_cv_search_inet_pton" >&6; }
18243 ac_res=$ac_cv_search_inet_pton
18244 if test "$ac_res" != no; then :
18245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18246 case "$ac_cv_search_inet_pton" in
18247 'none required') ;;
18249 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18255 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18256 if ${ac_cv_search_inet_ntop+:} false; then :
18257 $as_echo_n "(cached) " >&6
18259 ac_func_search_save_LIBS=$LIBS
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18273 return inet_ntop ();
18278 for ac_lib in '' resolv; do
18279 if test -z "$ac_lib"; then
18280 ac_res="none required"
18283 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
18285 if ac_fn_c_try_link "$LINENO"; then :
18286 ac_cv_search_inet_ntop=$ac_res
18288 rm -f core conftest.err conftest.$ac_objext \
18290 if ${ac_cv_search_inet_ntop+:} false; then :
18294 if ${ac_cv_search_inet_ntop+:} false; then :
18297 ac_cv_search_inet_ntop=no
18299 rm conftest.$ac_ext
18300 LIBS=$ac_func_search_save_LIBS
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18303 $as_echo "$ac_cv_search_inet_ntop" >&6; }
18304 ac_res=$ac_cv_search_inet_ntop
18305 if test "$ac_res" != no; then :
18306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18307 case "$ac_cv_search_inet_ntop" in
18308 'none required') ;;
18310 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
18316 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
18317 # avoid keying on the OS name: If we find socket functions in
18318 # libsocket, next try for them in libxnet without libsocket, if found,
18319 # list both. If we simply tested libxnet first, we would find the
18320 # functions there and never add libsocket. See also [Bug 660]
18321 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18324 $as_echo_n "checking for library containing setsockopt... " >&6; }
18325 if ${ac_cv_search_setsockopt+:} false; then :
18326 $as_echo_n "(cached) " >&6
18328 ac_func_search_save_LIBS=$LIBS
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 /* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18338 char setsockopt ();
18342 return setsockopt ();
18347 for ac_lib in '' socket; do
18348 if test -z "$ac_lib"; then
18349 ac_res="none required"
18352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18354 if ac_fn_c_try_link "$LINENO"; then :
18355 ac_cv_search_setsockopt=$ac_res
18357 rm -f core conftest.err conftest.$ac_objext \
18359 if ${ac_cv_search_setsockopt+:} false; then :
18363 if ${ac_cv_search_setsockopt+:} false; then :
18366 ac_cv_search_setsockopt=no
18368 rm conftest.$ac_ext
18369 LIBS=$ac_func_search_save_LIBS
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18372 $as_echo "$ac_cv_search_setsockopt" >&6; }
18373 ac_res=$ac_cv_search_setsockopt
18374 if test "$ac_res" != no; then :
18375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18376 case "$ac_cv_search_setsockopt" in
18377 'none required') ;;
18379 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
18384 case "$ac_cv_search_setsockopt" in
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
18388 $as_echo_n "checking for library containing getsockopt... " >&6; }
18389 if ${ac_cv_search_getsockopt+:} false; then :
18390 $as_echo_n "(cached) " >&6
18392 ac_func_search_save_LIBS=$LIBS
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18402 char getsockopt ();
18406 return getsockopt ();
18411 for ac_lib in '' xnet; do
18412 if test -z "$ac_lib"; then
18413 ac_res="none required"
18416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 ac_cv_search_getsockopt=$ac_res
18421 rm -f core conftest.err conftest.$ac_objext \
18423 if ${ac_cv_search_getsockopt+:} false; then :
18427 if ${ac_cv_search_getsockopt+:} false; then :
18430 ac_cv_search_getsockopt=no
18432 rm conftest.$ac_ext
18433 LIBS=$ac_func_search_save_LIBS
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
18436 $as_echo "$ac_cv_search_getsockopt" >&6; }
18437 ac_res=$ac_cv_search_getsockopt
18438 if test "$ac_res" != no; then :
18439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18440 case "$ac_cv_search_getsockopt" in
18441 'none required') ;;
18443 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
18448 # XXX Possible trouble here - reading the comments above and looking at the
18449 # code below I wonder if we'll add -lxnet when we don't need it.
18450 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
18451 # there when it is not needed?
18452 case "$ac_cv_search_getsockopt" in
18454 LIBS="-lxnet -lsocket $saved_LIBS"
18456 *) LIBS="-lsocket $saved_LIBS"
18461 { saved_LIBS=; unset saved_LIBS;}
18463 # Bug 2427 - look for recvmsg here.
18464 for ac_func in recvmsg
18466 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
18467 if test "x$ac_cv_func_recvmsg" = xyes; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_RECVMSG 1
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18477 $as_echo_n "checking for inline... " >&6; }
18478 if ${ac_cv_c_inline+:} false; then :
18479 $as_echo_n "(cached) " >&6
18482 for ac_kw in inline __inline__ __inline; do
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #ifndef __cplusplus
18487 static $ac_kw foo_t static_foo () {return 0; }
18488 $ac_kw foo_t foo () {return 0; }
18492 if ac_fn_c_try_compile "$LINENO"; then :
18493 ac_cv_c_inline=$ac_kw
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496 test "$ac_cv_c_inline" != no && break
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18501 $as_echo "$ac_cv_c_inline" >&6; }
18503 case $ac_cv_c_inline in
18506 case $ac_cv_c_inline in
18508 *) ac_val=$ac_cv_c_inline;;
18510 cat >>confdefs.h <<_ACEOF
18511 #ifndef __cplusplus
18512 #define inline $ac_val
18519 case "$ac_cv_c_inline" in
18524 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18530 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18531 if ${ac_cv_header_time+:} false; then :
18532 $as_echo_n "(cached) " >&6
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #include <sys/time.h>
18543 if ((struct tm *) 0)
18549 if ac_fn_c_try_compile "$LINENO"; then :
18550 ac_cv_header_time=yes
18552 ac_cv_header_time=no
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18557 $as_echo "$ac_cv_header_time" >&6; }
18558 if test $ac_cv_header_time = yes; then
18560 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18564 # The cast to long int works around a bug in the HP C Compiler
18565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18567 # This bug is HP SR number 8606223364.
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18569 $as_echo_n "checking size of time_t... " >&6; }
18570 if ${ac_cv_sizeof_time_t+:} false; then :
18571 $as_echo_n "(cached) " >&6
18573 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
18576 if test "$ac_cv_type_time_t" = yes; then
18577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18579 as_fn_error 77 "cannot compute sizeof (time_t)
18580 See \`config.log' for more details" "$LINENO" 5; }
18582 ac_cv_sizeof_time_t=0
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18588 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18592 cat >>confdefs.h <<_ACEOF
18593 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
18598 $as_echo_n "checking whether char is unsigned... " >&6; }
18599 if ${ac_cv_c_char_unsigned+:} false; then :
18600 $as_echo_n "(cached) " >&6
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604 $ac_includes_default
18608 static int test_array [1 - 2 * !(((char) -1) < 0)];
18609 test_array [0] = 0;
18610 return test_array [0];
18616 if ac_fn_c_try_compile "$LINENO"; then :
18617 ac_cv_c_char_unsigned=no
18619 ac_cv_c_char_unsigned=yes
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
18624 $as_echo "$ac_cv_c_char_unsigned" >&6; }
18625 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18626 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
18629 # The cast to long int works around a bug in the HP C Compiler
18630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18632 # This bug is HP SR number 8606223364.
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
18634 $as_echo_n "checking size of signed char... " >&6; }
18635 if ${ac_cv_sizeof_signed_char+:} false; then :
18636 $as_echo_n "(cached) " >&6
18638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
18641 if test "$ac_cv_type_signed_char" = yes; then
18642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18644 as_fn_error 77 "cannot compute sizeof (signed char)
18645 See \`config.log' for more details" "$LINENO" 5; }
18647 ac_cv_sizeof_signed_char=0
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
18653 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
18657 cat >>confdefs.h <<_ACEOF
18658 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18662 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
18663 if test "x$ac_cv_type_s_char" = xyes; then :
18665 cat >>confdefs.h <<_ACEOF
18666 #define HAVE_S_CHAR 1
18671 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18672 if test "x$ac_cv_type_long_long" = xyes; then :
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_LONG_LONG 1
18681 # The cast to long int works around a bug in the HP C Compiler
18682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18684 # This bug is HP SR number 8606223364.
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18686 $as_echo_n "checking size of short... " >&6; }
18687 if ${ac_cv_sizeof_short+:} false; then :
18688 $as_echo_n "(cached) " >&6
18690 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18693 if test "$ac_cv_type_short" = yes; then
18694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18696 as_fn_error 77 "cannot compute sizeof (short)
18697 See \`config.log' for more details" "$LINENO" 5; }
18699 ac_cv_sizeof_short=0
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18705 $as_echo "$ac_cv_sizeof_short" >&6; }
18709 cat >>confdefs.h <<_ACEOF
18710 #define SIZEOF_SHORT $ac_cv_sizeof_short
18714 # The cast to long int works around a bug in the HP C Compiler
18715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18717 # This bug is HP SR number 8606223364.
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18719 $as_echo_n "checking size of int... " >&6; }
18720 if ${ac_cv_sizeof_int+:} false; then :
18721 $as_echo_n "(cached) " >&6
18723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18726 if test "$ac_cv_type_int" = yes; then
18727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18729 as_fn_error 77 "cannot compute sizeof (int)
18730 See \`config.log' for more details" "$LINENO" 5; }
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18738 $as_echo "$ac_cv_sizeof_int" >&6; }
18742 cat >>confdefs.h <<_ACEOF
18743 #define SIZEOF_INT $ac_cv_sizeof_int
18747 # The cast to long int works around a bug in the HP C Compiler
18748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18750 # This bug is HP SR number 8606223364.
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18752 $as_echo_n "checking size of long... " >&6; }
18753 if ${ac_cv_sizeof_long+:} false; then :
18754 $as_echo_n "(cached) " >&6
18756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18759 if test "$ac_cv_type_long" = yes; then
18760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18762 as_fn_error 77 "cannot compute sizeof (long)
18763 See \`config.log' for more details" "$LINENO" 5; }
18765 ac_cv_sizeof_long=0
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18771 $as_echo "$ac_cv_sizeof_long" >&6; }
18775 cat >>confdefs.h <<_ACEOF
18776 #define SIZEOF_LONG $ac_cv_sizeof_long
18781 case "$ac_cv_type_long_long" in
18785 # The cast to long int works around a bug in the HP C Compiler
18786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18788 # This bug is HP SR number 8606223364.
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18790 $as_echo_n "checking size of long long... " >&6; }
18791 if ${ac_cv_sizeof_long_long+:} false; then :
18792 $as_echo_n "(cached) " >&6
18794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
18797 if test "$ac_cv_type_long_long" = yes; then
18798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18800 as_fn_error 77 "cannot compute sizeof (long long)
18801 See \`config.log' for more details" "$LINENO" 5; }
18803 ac_cv_sizeof_long_long=0
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18809 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18813 cat >>confdefs.h <<_ACEOF
18814 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18821 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
18823 # We have a typedef for s_char. Might as well believe it...
18826 # We have signed chars, can't say 'signed char', no s_char typedef.
18828 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18832 # We have signed chars, can say 'signed char', no s_char typedef.
18834 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18838 # We have unsigned chars, can't say 'signed char', no s_char typedef.
18839 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
18842 # We have unsigned chars, can say 'signed char', no s_char typedef.
18844 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18850 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18851 if ${ac_cv_type_uid_t+:} false; then :
18852 $as_echo_n "(cached) " >&6
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <sys/types.h>
18859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18860 $EGREP "uid_t" >/dev/null 2>&1; then :
18861 ac_cv_type_uid_t=yes
18863 ac_cv_type_uid_t=no
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18869 $as_echo "$ac_cv_type_uid_t" >&6; }
18870 if test $ac_cv_type_uid_t = no; then
18872 $as_echo "#define uid_t int" >>confdefs.h
18875 $as_echo "#define gid_t int" >>confdefs.h
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
18885 $as_echo_n "checking if we're including debugging code... " >&6; }
18886 # Check whether --enable-debugging was given.
18887 if test "${enable_debugging+set}" = set; then :
18888 enableval=$enable_debugging; ntp_ok=$enableval
18897 $as_echo "#define DEBUG 1" >>confdefs.h
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
18901 $as_echo "$ntp_ok" >&6; }
18905 # check if we can compile with pthreads
18906 for ac_header in semaphore.h
18908 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
18909 if test "x$ac_cv_header_semaphore_h" = xyes; then :
18910 cat >>confdefs.h <<_ACEOF
18911 #define HAVE_SEMAPHORE_H 1
18918 for ac_func in socketpair
18920 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
18921 if test "x$ac_cv_func_socketpair" = xyes; then :
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_SOCKETPAIR 1
18929 # Check whether --enable-thread-support was given.
18930 if test "${enable_thread_support+set}" = set; then :
18931 enableval=$enable_thread_support;
18933 enable_thread_support=yes
18938 case "$enable_thread_support" in
18941 ol_found_pthreads=no
18946 ac_cpp='$CPP $CPPFLAGS'
18947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951 # OpenLDAP --with-threads
18953 # Check whether --with-threads was given.
18954 if test "${with_threads+set}" = set; then :
18955 withval=$with_threads;
18957 for ol_val in auto nt posix mach pth lwp yes no manual ; do
18958 if test "$withval" = "$ol_val" ; then
18962 if test "$ol_arg" = "invalid" ; then
18963 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
18965 ol_with_threads="$ol_arg"
18968 ol_with_threads="auto"
18970 # end --with-threads
18973 case "$ol_with_threads$host" in
18974 auto*-*-solaris2.[0-6])
18982 *-*-aix*) if test -z "$CC" ; then
18983 case "$ol_with_threads" in
18984 auto | yes | posix) ol_aix_threads=yes ;;
18990 if test $ol_aix_threads = yes ; then
18991 if test -z "${CC}" ; then
18992 for ac_prog in cc_r xlc_r cc
18994 # Extract the first word of "$ac_prog", so it can be a program name with args.
18995 set dummy $ac_prog; ac_word=$2
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18997 $as_echo_n "checking for $ac_word... " >&6; }
18998 if ${ac_cv_prog_CC+:} false; then :
18999 $as_echo_n "(cached) " >&6
19001 if test -n "$CC"; then
19002 ac_cv_prog_CC="$CC" # Let the user override the test.
19004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19005 for as_dir in $PATH
19008 test -z "$as_dir" && as_dir=.
19009 for ac_exec_ext in '' $ac_executable_extensions; do
19010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19011 ac_cv_prog_CC="$ac_prog"
19012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19022 if test -n "$CC"; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19024 $as_echo "$CC" >&6; }
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19031 test -n "$CC" && break
19035 if test "$CC" = cc ; then
19036 if test $ol_with_threads != auto ; then
19037 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
19040 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
19046 case ${CC} in cc_r | xlc_r)
19047 ol_with_threads=posix
19048 ol_cv_pthread_create=yes
19054 # OpenLDAP --with-yielding_select
19056 # Check whether --with-yielding_select was given.
19057 if test "${with_yielding_select+set}" = set; then :
19058 withval=$with_yielding_select;
19060 for ol_val in auto yes no manual ; do
19061 if test "$withval" = "$ol_val" ; then
19065 if test "$ol_arg" = "invalid" ; then
19066 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
19068 ol_with_yielding_select="$ol_arg"
19071 ol_with_yielding_select="auto"
19073 # end --with-yielding_select
19076 case $ol_with_threads in auto | yes | nt)
19079 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
19080 if test "x$ac_cv_func__beginthread" = xyes; then :
19085 if test $ac_cv_func__beginthread = yes ; then
19087 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
19089 ol_cv_nt_threads=yes
19093 if test "$ol_cv_nt_threads" = yes ; then
19095 ol_with_threads=found
19096 ol_with_yielding_select=yes
19099 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
19102 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
19106 if test $ol_with_threads = nt ; then
19107 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
19112 case $ol_with_threads in auto | yes | posix)
19114 for ac_header in pthread.h
19116 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19117 if test "x$ac_cv_header_pthread_h" = xyes; then :
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_PTHREAD_H 1
19127 if test $ac_cv_header_pthread_h = yes ; then
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
19129 $as_echo_n "checking POSIX thread version... " >&6; }
19130 if ${ol_cv_pthread_version+:} false; then :
19131 $as_echo_n "(cached) " >&6
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19137 # include <pthread.h>
19143 int i = PTHREAD_CREATE_JOINABLE;
19149 if ac_fn_c_try_compile "$LINENO"; then :
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153 #include <pthread.h>
19156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19157 $EGREP "pthread_detach" >/dev/null 2>&1; then :
19158 ol_cv_pthread_version=10
19160 ol_cv_pthread_version=8
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19169 # include <pthread.h>
19170 # ifdef PTHREAD_CREATE_UNDETACHED
19175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176 $EGREP "draft7" >/dev/null 2>&1; then :
19177 ol_cv_pthread_version=7
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19182 #include <pthread.h>
19185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19186 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
19187 ol_cv_pthread_version=6
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 # include <pthread.h>
19194 #ifdef PTHREAD_MUTEX_INITIALIZER
19199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19200 $EGREP "draft5" >/dev/null 2>&1; then :
19201 ol_cv_pthread_version=5
19203 ol_cv_pthread_version=4
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
19218 $as_echo "$ol_cv_pthread_version" >&6; }
19221 if test $ol_cv_pthread_version != 0 ; then
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_PTHREADS $ol_cv_pthread_version
19228 as_fn_error $? "unknown pthread version" "$LINENO" 5
19231 # consider threads found
19232 ol_with_threads=found
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19236 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19237 if ${ol_cv_header_linux_threads+:} false; then :
19238 $as_echo_n "(cached) " >&6
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242 #include <pthread.h>
19244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19245 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19246 ol_cv_header_linux_threads=yes
19248 ol_cv_header_linux_threads=no
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19255 $as_echo "$ol_cv_header_linux_threads" >&6; }
19256 if test $ol_cv_header_linux_threads = yes; then
19258 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
19264 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
19265 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
19266 $as_echo_n "(cached) " >&6
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270 #include <pthread.h>
19271 #ifdef _POSIX_THREAD_IS_GNU_PTH
19276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19277 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
19278 ol_cv_header_gnu_pth_pthread_h=yes
19280 ol_cv_header_gnu_pth_pthread_h=no
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19287 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
19290 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19291 for ac_header in sched.h
19293 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19294 if test "x$ac_cv_header_sched_h" = xyes; then :
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_SCHED_H 1
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
19307 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
19308 if ${ol_cv_pthread_create+:} false; then :
19309 $as_echo_n "(cached) " >&6
19312 if test "$cross_compiling" = yes; then :
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19316 /* pthread test headers */
19317 #include <pthread.h>
19318 #if HAVE_PTHREADS < 7
19322 #define NULL (void*)0
19325 static void *task(p)
19328 return (void *) (p == NULL);
19335 /* pthread test function */
19336 #ifndef PTHREAD_CREATE_DETACHED
19337 #define PTHREAD_CREATE_DETACHED 1
19341 int detach = PTHREAD_CREATE_DETACHED;
19343 #if HAVE_PTHREADS > 4
19344 /* Final pthreads */
19345 pthread_attr_t attr;
19347 status = pthread_attr_init(&attr);
19348 if( status ) return status;
19350 #if HAVE_PTHREADS < 7
19351 status = pthread_attr_setdetachstate(&attr, &detach);
19352 if( status < 0 ) status = errno;
19354 status = pthread_attr_setdetachstate(&attr, detach);
19356 if( status ) return status;
19357 status = pthread_create( &t, &attr, task, NULL );
19358 #if HAVE_PTHREADS < 7
19359 if( status < 0 ) status = errno;
19361 if( status ) return status;
19363 /* Draft 4 pthreads */
19364 status = pthread_create( &t, pthread_attr_default, task, NULL );
19365 if( status ) return errno;
19367 /* give thread a chance to complete */
19368 /* it should remain joinable and hence detachable */
19371 status = pthread_detach( &t );
19372 if( status ) return errno;
19375 #ifdef HAVE_LINUX_THREADS
19376 pthread_kill_other_threads_np();
19385 if ac_fn_c_try_link "$LINENO"; then :
19386 ol_cv_pthread_create=yes
19388 ol_cv_pthread_create=no
19390 rm -f core conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19397 /* pthread test headers */
19398 #include <pthread.h>
19399 #if HAVE_PTHREADS < 7
19403 #define NULL (void*)0
19406 static void *task(p)
19409 return (void *) (p == NULL);
19413 int main(argc, argv)
19418 /* pthread test function */
19419 #ifndef PTHREAD_CREATE_DETACHED
19420 #define PTHREAD_CREATE_DETACHED 1
19424 int detach = PTHREAD_CREATE_DETACHED;
19426 #if HAVE_PTHREADS > 4
19427 /* Final pthreads */
19428 pthread_attr_t attr;
19430 status = pthread_attr_init(&attr);
19431 if( status ) return status;
19433 #if HAVE_PTHREADS < 7
19434 status = pthread_attr_setdetachstate(&attr, &detach);
19435 if( status < 0 ) status = errno;
19437 status = pthread_attr_setdetachstate(&attr, detach);
19439 if( status ) return status;
19440 status = pthread_create( &t, &attr, task, NULL );
19441 #if HAVE_PTHREADS < 7
19442 if( status < 0 ) status = errno;
19444 if( status ) return status;
19446 /* Draft 4 pthreads */
19447 status = pthread_create( &t, pthread_attr_default, task, NULL );
19448 if( status ) return errno;
19450 /* give thread a chance to complete */
19451 /* it should remain joinable and hence detachable */
19454 status = pthread_detach( &t );
19455 if( status ) return errno;
19458 #ifdef HAVE_LINUX_THREADS
19459 pthread_kill_other_threads_np();
19467 if ac_fn_c_try_run "$LINENO"; then :
19468 ol_cv_pthread_create=yes
19470 ol_cv_pthread_create=no
19472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473 conftest.$ac_objext conftest.beam conftest.$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
19478 $as_echo "$ol_cv_pthread_create" >&6; }
19480 if test $ol_cv_pthread_create != no ; then
19481 ol_link_threads=posix
19482 ol_link_pthreads=""
19485 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19486 if test "$ol_link_threads" = no ; then
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
19489 $as_echo_n "checking for pthread link with -kthread... " >&6; }
19490 if ${ol_cv_pthread_kthread+:} false; then :
19491 $as_echo_n "(cached) " >&6
19496 LIBS="-kthread $LIBS"
19498 if test "$cross_compiling" = yes; then :
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19502 /* pthread test headers */
19503 #include <pthread.h>
19504 #if HAVE_PTHREADS < 7
19508 #define NULL (void*)0
19511 static void *task(p)
19514 return (void *) (p == NULL);
19521 /* pthread test function */
19522 #ifndef PTHREAD_CREATE_DETACHED
19523 #define PTHREAD_CREATE_DETACHED 1
19527 int detach = PTHREAD_CREATE_DETACHED;
19529 #if HAVE_PTHREADS > 4
19530 /* Final pthreads */
19531 pthread_attr_t attr;
19533 status = pthread_attr_init(&attr);
19534 if( status ) return status;
19536 #if HAVE_PTHREADS < 7
19537 status = pthread_attr_setdetachstate(&attr, &detach);
19538 if( status < 0 ) status = errno;
19540 status = pthread_attr_setdetachstate(&attr, detach);
19542 if( status ) return status;
19543 status = pthread_create( &t, &attr, task, NULL );
19544 #if HAVE_PTHREADS < 7
19545 if( status < 0 ) status = errno;
19547 if( status ) return status;
19549 /* Draft 4 pthreads */
19550 status = pthread_create( &t, pthread_attr_default, task, NULL );
19551 if( status ) return errno;
19553 /* give thread a chance to complete */
19554 /* it should remain joinable and hence detachable */
19557 status = pthread_detach( &t );
19558 if( status ) return errno;
19561 #ifdef HAVE_LINUX_THREADS
19562 pthread_kill_other_threads_np();
19571 if ac_fn_c_try_link "$LINENO"; then :
19572 ol_cv_pthread_kthread=yes
19574 ol_cv_pthread_kthread=no
19576 rm -f core conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19583 /* pthread test headers */
19584 #include <pthread.h>
19585 #if HAVE_PTHREADS < 7
19589 #define NULL (void*)0
19592 static void *task(p)
19595 return (void *) (p == NULL);
19599 int main(argc, argv)
19604 /* pthread test function */
19605 #ifndef PTHREAD_CREATE_DETACHED
19606 #define PTHREAD_CREATE_DETACHED 1
19610 int detach = PTHREAD_CREATE_DETACHED;
19612 #if HAVE_PTHREADS > 4
19613 /* Final pthreads */
19614 pthread_attr_t attr;
19616 status = pthread_attr_init(&attr);
19617 if( status ) return status;
19619 #if HAVE_PTHREADS < 7
19620 status = pthread_attr_setdetachstate(&attr, &detach);
19621 if( status < 0 ) status = errno;
19623 status = pthread_attr_setdetachstate(&attr, detach);
19625 if( status ) return status;
19626 status = pthread_create( &t, &attr, task, NULL );
19627 #if HAVE_PTHREADS < 7
19628 if( status < 0 ) status = errno;
19630 if( status ) return status;
19632 /* Draft 4 pthreads */
19633 status = pthread_create( &t, pthread_attr_default, task, NULL );
19634 if( status ) return errno;
19636 /* give thread a chance to complete */
19637 /* it should remain joinable and hence detachable */
19640 status = pthread_detach( &t );
19641 if( status ) return errno;
19644 #ifdef HAVE_LINUX_THREADS
19645 pthread_kill_other_threads_np();
19653 if ac_fn_c_try_run "$LINENO"; then :
19654 ol_cv_pthread_kthread=yes
19656 ol_cv_pthread_kthread=no
19658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19659 conftest.$ac_objext conftest.beam conftest.$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
19668 $as_echo "$ol_cv_pthread_kthread" >&6; }
19670 if test $ol_cv_pthread_kthread = yes ; then
19671 ol_link_pthreads="-kthread"
19672 ol_link_threads=posix
19676 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19677 if test "$ol_link_threads" = no ; then
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
19680 $as_echo_n "checking for pthread link with -pthread... " >&6; }
19681 if ${ol_cv_pthread_pthread+:} false; then :
19682 $as_echo_n "(cached) " >&6
19687 LIBS="-pthread $LIBS"
19689 if test "$cross_compiling" = yes; then :
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19693 /* pthread test headers */
19694 #include <pthread.h>
19695 #if HAVE_PTHREADS < 7
19699 #define NULL (void*)0
19702 static void *task(p)
19705 return (void *) (p == NULL);
19712 /* pthread test function */
19713 #ifndef PTHREAD_CREATE_DETACHED
19714 #define PTHREAD_CREATE_DETACHED 1
19718 int detach = PTHREAD_CREATE_DETACHED;
19720 #if HAVE_PTHREADS > 4
19721 /* Final pthreads */
19722 pthread_attr_t attr;
19724 status = pthread_attr_init(&attr);
19725 if( status ) return status;
19727 #if HAVE_PTHREADS < 7
19728 status = pthread_attr_setdetachstate(&attr, &detach);
19729 if( status < 0 ) status = errno;
19731 status = pthread_attr_setdetachstate(&attr, detach);
19733 if( status ) return status;
19734 status = pthread_create( &t, &attr, task, NULL );
19735 #if HAVE_PTHREADS < 7
19736 if( status < 0 ) status = errno;
19738 if( status ) return status;
19740 /* Draft 4 pthreads */
19741 status = pthread_create( &t, pthread_attr_default, task, NULL );
19742 if( status ) return errno;
19744 /* give thread a chance to complete */
19745 /* it should remain joinable and hence detachable */
19748 status = pthread_detach( &t );
19749 if( status ) return errno;
19752 #ifdef HAVE_LINUX_THREADS
19753 pthread_kill_other_threads_np();
19762 if ac_fn_c_try_link "$LINENO"; then :
19763 ol_cv_pthread_pthread=yes
19765 ol_cv_pthread_pthread=no
19767 rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19774 /* pthread test headers */
19775 #include <pthread.h>
19776 #if HAVE_PTHREADS < 7
19780 #define NULL (void*)0
19783 static void *task(p)
19786 return (void *) (p == NULL);
19790 int main(argc, argv)
19795 /* pthread test function */
19796 #ifndef PTHREAD_CREATE_DETACHED
19797 #define PTHREAD_CREATE_DETACHED 1
19801 int detach = PTHREAD_CREATE_DETACHED;
19803 #if HAVE_PTHREADS > 4
19804 /* Final pthreads */
19805 pthread_attr_t attr;
19807 status = pthread_attr_init(&attr);
19808 if( status ) return status;
19810 #if HAVE_PTHREADS < 7
19811 status = pthread_attr_setdetachstate(&attr, &detach);
19812 if( status < 0 ) status = errno;
19814 status = pthread_attr_setdetachstate(&attr, detach);
19816 if( status ) return status;
19817 status = pthread_create( &t, &attr, task, NULL );
19818 #if HAVE_PTHREADS < 7
19819 if( status < 0 ) status = errno;
19821 if( status ) return status;
19823 /* Draft 4 pthreads */
19824 status = pthread_create( &t, pthread_attr_default, task, NULL );
19825 if( status ) return errno;
19827 /* give thread a chance to complete */
19828 /* it should remain joinable and hence detachable */
19831 status = pthread_detach( &t );
19832 if( status ) return errno;
19835 #ifdef HAVE_LINUX_THREADS
19836 pthread_kill_other_threads_np();
19844 if ac_fn_c_try_run "$LINENO"; then :
19845 ol_cv_pthread_pthread=yes
19847 ol_cv_pthread_pthread=no
19849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19850 conftest.$ac_objext conftest.beam conftest.$ac_ext
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
19859 $as_echo "$ol_cv_pthread_pthread" >&6; }
19861 if test $ol_cv_pthread_pthread = yes ; then
19862 ol_link_pthreads="-pthread"
19863 ol_link_threads=posix
19867 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
19868 if test "$ol_link_threads" = no ; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
19871 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
19872 if ${ol_cv_pthread_pthreads+:} false; then :
19873 $as_echo_n "(cached) " >&6
19878 LIBS="-pthreads $LIBS"
19880 if test "$cross_compiling" = yes; then :
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19884 /* pthread test headers */
19885 #include <pthread.h>
19886 #if HAVE_PTHREADS < 7
19890 #define NULL (void*)0
19893 static void *task(p)
19896 return (void *) (p == NULL);
19903 /* pthread test function */
19904 #ifndef PTHREAD_CREATE_DETACHED
19905 #define PTHREAD_CREATE_DETACHED 1
19909 int detach = PTHREAD_CREATE_DETACHED;
19911 #if HAVE_PTHREADS > 4
19912 /* Final pthreads */
19913 pthread_attr_t attr;
19915 status = pthread_attr_init(&attr);
19916 if( status ) return status;
19918 #if HAVE_PTHREADS < 7
19919 status = pthread_attr_setdetachstate(&attr, &detach);
19920 if( status < 0 ) status = errno;
19922 status = pthread_attr_setdetachstate(&attr, detach);
19924 if( status ) return status;
19925 status = pthread_create( &t, &attr, task, NULL );
19926 #if HAVE_PTHREADS < 7
19927 if( status < 0 ) status = errno;
19929 if( status ) return status;
19931 /* Draft 4 pthreads */
19932 status = pthread_create( &t, pthread_attr_default, task, NULL );
19933 if( status ) return errno;
19935 /* give thread a chance to complete */
19936 /* it should remain joinable and hence detachable */
19939 status = pthread_detach( &t );
19940 if( status ) return errno;
19943 #ifdef HAVE_LINUX_THREADS
19944 pthread_kill_other_threads_np();
19953 if ac_fn_c_try_link "$LINENO"; then :
19954 ol_cv_pthread_pthreads=yes
19956 ol_cv_pthread_pthreads=no
19958 rm -f core conftest.err conftest.$ac_objext \
19959 conftest$ac_exeext conftest.$ac_ext
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19965 /* pthread test headers */
19966 #include <pthread.h>
19967 #if HAVE_PTHREADS < 7
19971 #define NULL (void*)0
19974 static void *task(p)
19977 return (void *) (p == NULL);
19981 int main(argc, argv)
19986 /* pthread test function */
19987 #ifndef PTHREAD_CREATE_DETACHED
19988 #define PTHREAD_CREATE_DETACHED 1
19992 int detach = PTHREAD_CREATE_DETACHED;
19994 #if HAVE_PTHREADS > 4
19995 /* Final pthreads */
19996 pthread_attr_t attr;
19998 status = pthread_attr_init(&attr);
19999 if( status ) return status;
20001 #if HAVE_PTHREADS < 7
20002 status = pthread_attr_setdetachstate(&attr, &detach);
20003 if( status < 0 ) status = errno;
20005 status = pthread_attr_setdetachstate(&attr, detach);
20007 if( status ) return status;
20008 status = pthread_create( &t, &attr, task, NULL );
20009 #if HAVE_PTHREADS < 7
20010 if( status < 0 ) status = errno;
20012 if( status ) return status;
20014 /* Draft 4 pthreads */
20015 status = pthread_create( &t, pthread_attr_default, task, NULL );
20016 if( status ) return errno;
20018 /* give thread a chance to complete */
20019 /* it should remain joinable and hence detachable */
20022 status = pthread_detach( &t );
20023 if( status ) return errno;
20026 #ifdef HAVE_LINUX_THREADS
20027 pthread_kill_other_threads_np();
20035 if ac_fn_c_try_run "$LINENO"; then :
20036 ol_cv_pthread_pthreads=yes
20038 ol_cv_pthread_pthreads=no
20040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041 conftest.$ac_objext conftest.beam conftest.$ac_ext
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
20050 $as_echo "$ol_cv_pthread_pthreads" >&6; }
20052 if test $ol_cv_pthread_pthreads = yes ; then
20053 ol_link_pthreads="-pthreads"
20054 ol_link_threads=posix
20058 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20059 if test "$ol_link_threads" = no ; then
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
20062 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
20063 if ${ol_cv_pthread_mthreads+:} false; then :
20064 $as_echo_n "(cached) " >&6
20069 LIBS="-mthreads $LIBS"
20071 if test "$cross_compiling" = yes; then :
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20075 /* pthread test headers */
20076 #include <pthread.h>
20077 #if HAVE_PTHREADS < 7
20081 #define NULL (void*)0
20084 static void *task(p)
20087 return (void *) (p == NULL);
20094 /* pthread test function */
20095 #ifndef PTHREAD_CREATE_DETACHED
20096 #define PTHREAD_CREATE_DETACHED 1
20100 int detach = PTHREAD_CREATE_DETACHED;
20102 #if HAVE_PTHREADS > 4
20103 /* Final pthreads */
20104 pthread_attr_t attr;
20106 status = pthread_attr_init(&attr);
20107 if( status ) return status;
20109 #if HAVE_PTHREADS < 7
20110 status = pthread_attr_setdetachstate(&attr, &detach);
20111 if( status < 0 ) status = errno;
20113 status = pthread_attr_setdetachstate(&attr, detach);
20115 if( status ) return status;
20116 status = pthread_create( &t, &attr, task, NULL );
20117 #if HAVE_PTHREADS < 7
20118 if( status < 0 ) status = errno;
20120 if( status ) return status;
20122 /* Draft 4 pthreads */
20123 status = pthread_create( &t, pthread_attr_default, task, NULL );
20124 if( status ) return errno;
20126 /* give thread a chance to complete */
20127 /* it should remain joinable and hence detachable */
20130 status = pthread_detach( &t );
20131 if( status ) return errno;
20134 #ifdef HAVE_LINUX_THREADS
20135 pthread_kill_other_threads_np();
20144 if ac_fn_c_try_link "$LINENO"; then :
20145 ol_cv_pthread_mthreads=yes
20147 ol_cv_pthread_mthreads=no
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h. */
20156 /* pthread test headers */
20157 #include <pthread.h>
20158 #if HAVE_PTHREADS < 7
20162 #define NULL (void*)0
20165 static void *task(p)
20168 return (void *) (p == NULL);
20172 int main(argc, argv)
20177 /* pthread test function */
20178 #ifndef PTHREAD_CREATE_DETACHED
20179 #define PTHREAD_CREATE_DETACHED 1
20183 int detach = PTHREAD_CREATE_DETACHED;
20185 #if HAVE_PTHREADS > 4
20186 /* Final pthreads */
20187 pthread_attr_t attr;
20189 status = pthread_attr_init(&attr);
20190 if( status ) return status;
20192 #if HAVE_PTHREADS < 7
20193 status = pthread_attr_setdetachstate(&attr, &detach);
20194 if( status < 0 ) status = errno;
20196 status = pthread_attr_setdetachstate(&attr, detach);
20198 if( status ) return status;
20199 status = pthread_create( &t, &attr, task, NULL );
20200 #if HAVE_PTHREADS < 7
20201 if( status < 0 ) status = errno;
20203 if( status ) return status;
20205 /* Draft 4 pthreads */
20206 status = pthread_create( &t, pthread_attr_default, task, NULL );
20207 if( status ) return errno;
20209 /* give thread a chance to complete */
20210 /* it should remain joinable and hence detachable */
20213 status = pthread_detach( &t );
20214 if( status ) return errno;
20217 #ifdef HAVE_LINUX_THREADS
20218 pthread_kill_other_threads_np();
20226 if ac_fn_c_try_run "$LINENO"; then :
20227 ol_cv_pthread_mthreads=yes
20229 ol_cv_pthread_mthreads=no
20231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20232 conftest.$ac_objext conftest.beam conftest.$ac_ext
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
20241 $as_echo "$ol_cv_pthread_mthreads" >&6; }
20243 if test $ol_cv_pthread_mthreads = yes ; then
20244 ol_link_pthreads="-mthreads"
20245 ol_link_threads=posix
20249 # Pthread try link: -thread (ol_cv_pthread_thread)
20250 if test "$ol_link_threads" = no ; then
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
20253 $as_echo_n "checking for pthread link with -thread... " >&6; }
20254 if ${ol_cv_pthread_thread+:} false; then :
20255 $as_echo_n "(cached) " >&6
20260 LIBS="-thread $LIBS"
20262 if test "$cross_compiling" = yes; then :
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 /* pthread test headers */
20267 #include <pthread.h>
20268 #if HAVE_PTHREADS < 7
20272 #define NULL (void*)0
20275 static void *task(p)
20278 return (void *) (p == NULL);
20285 /* pthread test function */
20286 #ifndef PTHREAD_CREATE_DETACHED
20287 #define PTHREAD_CREATE_DETACHED 1
20291 int detach = PTHREAD_CREATE_DETACHED;
20293 #if HAVE_PTHREADS > 4
20294 /* Final pthreads */
20295 pthread_attr_t attr;
20297 status = pthread_attr_init(&attr);
20298 if( status ) return status;
20300 #if HAVE_PTHREADS < 7
20301 status = pthread_attr_setdetachstate(&attr, &detach);
20302 if( status < 0 ) status = errno;
20304 status = pthread_attr_setdetachstate(&attr, detach);
20306 if( status ) return status;
20307 status = pthread_create( &t, &attr, task, NULL );
20308 #if HAVE_PTHREADS < 7
20309 if( status < 0 ) status = errno;
20311 if( status ) return status;
20313 /* Draft 4 pthreads */
20314 status = pthread_create( &t, pthread_attr_default, task, NULL );
20315 if( status ) return errno;
20317 /* give thread a chance to complete */
20318 /* it should remain joinable and hence detachable */
20321 status = pthread_detach( &t );
20322 if( status ) return errno;
20325 #ifdef HAVE_LINUX_THREADS
20326 pthread_kill_other_threads_np();
20335 if ac_fn_c_try_link "$LINENO"; then :
20336 ol_cv_pthread_thread=yes
20338 ol_cv_pthread_thread=no
20340 rm -f core conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20347 /* pthread test headers */
20348 #include <pthread.h>
20349 #if HAVE_PTHREADS < 7
20353 #define NULL (void*)0
20356 static void *task(p)
20359 return (void *) (p == NULL);
20363 int main(argc, argv)
20368 /* pthread test function */
20369 #ifndef PTHREAD_CREATE_DETACHED
20370 #define PTHREAD_CREATE_DETACHED 1
20374 int detach = PTHREAD_CREATE_DETACHED;
20376 #if HAVE_PTHREADS > 4
20377 /* Final pthreads */
20378 pthread_attr_t attr;
20380 status = pthread_attr_init(&attr);
20381 if( status ) return status;
20383 #if HAVE_PTHREADS < 7
20384 status = pthread_attr_setdetachstate(&attr, &detach);
20385 if( status < 0 ) status = errno;
20387 status = pthread_attr_setdetachstate(&attr, detach);
20389 if( status ) return status;
20390 status = pthread_create( &t, &attr, task, NULL );
20391 #if HAVE_PTHREADS < 7
20392 if( status < 0 ) status = errno;
20394 if( status ) return status;
20396 /* Draft 4 pthreads */
20397 status = pthread_create( &t, pthread_attr_default, task, NULL );
20398 if( status ) return errno;
20400 /* give thread a chance to complete */
20401 /* it should remain joinable and hence detachable */
20404 status = pthread_detach( &t );
20405 if( status ) return errno;
20408 #ifdef HAVE_LINUX_THREADS
20409 pthread_kill_other_threads_np();
20417 if ac_fn_c_try_run "$LINENO"; then :
20418 ol_cv_pthread_thread=yes
20420 ol_cv_pthread_thread=no
20422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20423 conftest.$ac_objext conftest.beam conftest.$ac_ext
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
20432 $as_echo "$ol_cv_pthread_thread" >&6; }
20434 if test $ol_cv_pthread_thread = yes ; then
20435 ol_link_pthreads="-thread"
20436 ol_link_threads=posix
20441 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20442 if test "$ol_link_threads" = no ; then
20443 # try -lpthread -lmach -lexc -lc_r
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20445 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
20446 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
20447 $as_echo_n "(cached) " >&6
20452 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20454 if test "$cross_compiling" = yes; then :
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20458 /* pthread test headers */
20459 #include <pthread.h>
20460 #if HAVE_PTHREADS < 7
20464 #define NULL (void*)0
20467 static void *task(p)
20470 return (void *) (p == NULL);
20477 /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20483 int detach = PTHREAD_CREATE_DETACHED;
20485 #if HAVE_PTHREADS > 4
20486 /* Final pthreads */
20487 pthread_attr_t attr;
20489 status = pthread_attr_init(&attr);
20490 if( status ) return status;
20492 #if HAVE_PTHREADS < 7
20493 status = pthread_attr_setdetachstate(&attr, &detach);
20494 if( status < 0 ) status = errno;
20496 status = pthread_attr_setdetachstate(&attr, detach);
20498 if( status ) return status;
20499 status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501 if( status < 0 ) status = errno;
20503 if( status ) return status;
20505 /* Draft 4 pthreads */
20506 status = pthread_create( &t, pthread_attr_default, task, NULL );
20507 if( status ) return errno;
20509 /* give thread a chance to complete */
20510 /* it should remain joinable and hence detachable */
20513 status = pthread_detach( &t );
20514 if( status ) return errno;
20517 #ifdef HAVE_LINUX_THREADS
20518 pthread_kill_other_threads_np();
20527 if ac_fn_c_try_link "$LINENO"; then :
20528 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20530 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20532 rm -f core conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20539 /* pthread test headers */
20540 #include <pthread.h>
20541 #if HAVE_PTHREADS < 7
20545 #define NULL (void*)0
20548 static void *task(p)
20551 return (void *) (p == NULL);
20555 int main(argc, argv)
20560 /* pthread test function */
20561 #ifndef PTHREAD_CREATE_DETACHED
20562 #define PTHREAD_CREATE_DETACHED 1
20566 int detach = PTHREAD_CREATE_DETACHED;
20568 #if HAVE_PTHREADS > 4
20569 /* Final pthreads */
20570 pthread_attr_t attr;
20572 status = pthread_attr_init(&attr);
20573 if( status ) return status;
20575 #if HAVE_PTHREADS < 7
20576 status = pthread_attr_setdetachstate(&attr, &detach);
20577 if( status < 0 ) status = errno;
20579 status = pthread_attr_setdetachstate(&attr, detach);
20581 if( status ) return status;
20582 status = pthread_create( &t, &attr, task, NULL );
20583 #if HAVE_PTHREADS < 7
20584 if( status < 0 ) status = errno;
20586 if( status ) return status;
20588 /* Draft 4 pthreads */
20589 status = pthread_create( &t, pthread_attr_default, task, NULL );
20590 if( status ) return errno;
20592 /* give thread a chance to complete */
20593 /* it should remain joinable and hence detachable */
20596 status = pthread_detach( &t );
20597 if( status ) return errno;
20600 #ifdef HAVE_LINUX_THREADS
20601 pthread_kill_other_threads_np();
20609 if ac_fn_c_try_run "$LINENO"; then :
20610 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20612 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20615 conftest.$ac_objext conftest.beam conftest.$ac_ext
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
20624 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
20626 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
20627 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
20628 ol_link_threads=posix
20632 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
20633 if test "$ol_link_threads" = no ; then
20634 # try -lpthread -lmach -lexc
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
20636 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
20637 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
20638 $as_echo_n "(cached) " >&6
20643 LIBS="-lpthread -lmach -lexc $LIBS"
20645 if test "$cross_compiling" = yes; then :
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20649 /* pthread test headers */
20650 #include <pthread.h>
20651 #if HAVE_PTHREADS < 7
20655 #define NULL (void*)0
20658 static void *task(p)
20661 return (void *) (p == NULL);
20668 /* pthread test function */
20669 #ifndef PTHREAD_CREATE_DETACHED
20670 #define PTHREAD_CREATE_DETACHED 1
20674 int detach = PTHREAD_CREATE_DETACHED;
20676 #if HAVE_PTHREADS > 4
20677 /* Final pthreads */
20678 pthread_attr_t attr;
20680 status = pthread_attr_init(&attr);
20681 if( status ) return status;
20683 #if HAVE_PTHREADS < 7
20684 status = pthread_attr_setdetachstate(&attr, &detach);
20685 if( status < 0 ) status = errno;
20687 status = pthread_attr_setdetachstate(&attr, detach);
20689 if( status ) return status;
20690 status = pthread_create( &t, &attr, task, NULL );
20691 #if HAVE_PTHREADS < 7
20692 if( status < 0 ) status = errno;
20694 if( status ) return status;
20696 /* Draft 4 pthreads */
20697 status = pthread_create( &t, pthread_attr_default, task, NULL );
20698 if( status ) return errno;
20700 /* give thread a chance to complete */
20701 /* it should remain joinable and hence detachable */
20704 status = pthread_detach( &t );
20705 if( status ) return errno;
20708 #ifdef HAVE_LINUX_THREADS
20709 pthread_kill_other_threads_np();
20718 if ac_fn_c_try_link "$LINENO"; then :
20719 ol_cv_pthread_lpthread_lmach_lexc=yes
20721 ol_cv_pthread_lpthread_lmach_lexc=no
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20730 /* pthread test headers */
20731 #include <pthread.h>
20732 #if HAVE_PTHREADS < 7
20736 #define NULL (void*)0
20739 static void *task(p)
20742 return (void *) (p == NULL);
20746 int main(argc, argv)
20751 /* pthread test function */
20752 #ifndef PTHREAD_CREATE_DETACHED
20753 #define PTHREAD_CREATE_DETACHED 1
20757 int detach = PTHREAD_CREATE_DETACHED;
20759 #if HAVE_PTHREADS > 4
20760 /* Final pthreads */
20761 pthread_attr_t attr;
20763 status = pthread_attr_init(&attr);
20764 if( status ) return status;
20766 #if HAVE_PTHREADS < 7
20767 status = pthread_attr_setdetachstate(&attr, &detach);
20768 if( status < 0 ) status = errno;
20770 status = pthread_attr_setdetachstate(&attr, detach);
20772 if( status ) return status;
20773 status = pthread_create( &t, &attr, task, NULL );
20774 #if HAVE_PTHREADS < 7
20775 if( status < 0 ) status = errno;
20777 if( status ) return status;
20779 /* Draft 4 pthreads */
20780 status = pthread_create( &t, pthread_attr_default, task, NULL );
20781 if( status ) return errno;
20783 /* give thread a chance to complete */
20784 /* it should remain joinable and hence detachable */
20787 status = pthread_detach( &t );
20788 if( status ) return errno;
20791 #ifdef HAVE_LINUX_THREADS
20792 pthread_kill_other_threads_np();
20800 if ac_fn_c_try_run "$LINENO"; then :
20801 ol_cv_pthread_lpthread_lmach_lexc=yes
20803 ol_cv_pthread_lpthread_lmach_lexc=no
20805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20806 conftest.$ac_objext conftest.beam conftest.$ac_ext
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
20815 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
20817 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
20818 ol_link_pthreads="-lpthread -lmach -lexc"
20819 ol_link_threads=posix
20824 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
20825 if test "$ol_link_threads" = no ; then
20826 # try -lpthread -Wl,-woff,85
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
20828 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
20829 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
20830 $as_echo_n "(cached) " >&6
20835 LIBS="-lpthread -Wl,-woff,85 $LIBS"
20837 if test "$cross_compiling" = yes; then :
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20841 /* pthread test headers */
20842 #include <pthread.h>
20843 #if HAVE_PTHREADS < 7
20847 #define NULL (void*)0
20850 static void *task(p)
20853 return (void *) (p == NULL);
20860 /* pthread test function */
20861 #ifndef PTHREAD_CREATE_DETACHED
20862 #define PTHREAD_CREATE_DETACHED 1
20866 int detach = PTHREAD_CREATE_DETACHED;
20868 #if HAVE_PTHREADS > 4
20869 /* Final pthreads */
20870 pthread_attr_t attr;
20872 status = pthread_attr_init(&attr);
20873 if( status ) return status;
20875 #if HAVE_PTHREADS < 7
20876 status = pthread_attr_setdetachstate(&attr, &detach);
20877 if( status < 0 ) status = errno;
20879 status = pthread_attr_setdetachstate(&attr, detach);
20881 if( status ) return status;
20882 status = pthread_create( &t, &attr, task, NULL );
20883 #if HAVE_PTHREADS < 7
20884 if( status < 0 ) status = errno;
20886 if( status ) return status;
20888 /* Draft 4 pthreads */
20889 status = pthread_create( &t, pthread_attr_default, task, NULL );
20890 if( status ) return errno;
20892 /* give thread a chance to complete */
20893 /* it should remain joinable and hence detachable */
20896 status = pthread_detach( &t );
20897 if( status ) return errno;
20900 #ifdef HAVE_LINUX_THREADS
20901 pthread_kill_other_threads_np();
20910 if ac_fn_c_try_link "$LINENO"; then :
20911 ol_cv_pthread_lib_lpthread_woff=yes
20913 ol_cv_pthread_lib_lpthread_woff=no
20915 rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20922 /* pthread test headers */
20923 #include <pthread.h>
20924 #if HAVE_PTHREADS < 7
20928 #define NULL (void*)0
20931 static void *task(p)
20934 return (void *) (p == NULL);
20938 int main(argc, argv)
20943 /* pthread test function */
20944 #ifndef PTHREAD_CREATE_DETACHED
20945 #define PTHREAD_CREATE_DETACHED 1
20949 int detach = PTHREAD_CREATE_DETACHED;
20951 #if HAVE_PTHREADS > 4
20952 /* Final pthreads */
20953 pthread_attr_t attr;
20955 status = pthread_attr_init(&attr);
20956 if( status ) return status;
20958 #if HAVE_PTHREADS < 7
20959 status = pthread_attr_setdetachstate(&attr, &detach);
20960 if( status < 0 ) status = errno;
20962 status = pthread_attr_setdetachstate(&attr, detach);
20964 if( status ) return status;
20965 status = pthread_create( &t, &attr, task, NULL );
20966 #if HAVE_PTHREADS < 7
20967 if( status < 0 ) status = errno;
20969 if( status ) return status;
20971 /* Draft 4 pthreads */
20972 status = pthread_create( &t, pthread_attr_default, task, NULL );
20973 if( status ) return errno;
20975 /* give thread a chance to complete */
20976 /* it should remain joinable and hence detachable */
20979 status = pthread_detach( &t );
20980 if( status ) return errno;
20983 #ifdef HAVE_LINUX_THREADS
20984 pthread_kill_other_threads_np();
20992 if ac_fn_c_try_run "$LINENO"; then :
20993 ol_cv_pthread_lib_lpthread_woff=yes
20995 ol_cv_pthread_lib_lpthread_woff=no
20997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20998 conftest.$ac_objext conftest.beam conftest.$ac_ext
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21007 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
21009 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21010 ol_link_pthreads="-lpthread -Wl,-woff,85"
21011 ol_link_threads=posix
21016 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21017 if test "$ol_link_threads" = no ; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
21020 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
21021 if ${ol_cv_pthread_lpthread+:} false; then :
21022 $as_echo_n "(cached) " >&6
21027 LIBS="-lpthread $LIBS"
21029 if test "$cross_compiling" = yes; then :
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21033 /* pthread test headers */
21034 #include <pthread.h>
21035 #if HAVE_PTHREADS < 7
21039 #define NULL (void*)0
21042 static void *task(p)
21045 return (void *) (p == NULL);
21052 /* pthread test function */
21053 #ifndef PTHREAD_CREATE_DETACHED
21054 #define PTHREAD_CREATE_DETACHED 1
21058 int detach = PTHREAD_CREATE_DETACHED;
21060 #if HAVE_PTHREADS > 4
21061 /* Final pthreads */
21062 pthread_attr_t attr;
21064 status = pthread_attr_init(&attr);
21065 if( status ) return status;
21067 #if HAVE_PTHREADS < 7
21068 status = pthread_attr_setdetachstate(&attr, &detach);
21069 if( status < 0 ) status = errno;
21071 status = pthread_attr_setdetachstate(&attr, detach);
21073 if( status ) return status;
21074 status = pthread_create( &t, &attr, task, NULL );
21075 #if HAVE_PTHREADS < 7
21076 if( status < 0 ) status = errno;
21078 if( status ) return status;
21080 /* Draft 4 pthreads */
21081 status = pthread_create( &t, pthread_attr_default, task, NULL );
21082 if( status ) return errno;
21084 /* give thread a chance to complete */
21085 /* it should remain joinable and hence detachable */
21088 status = pthread_detach( &t );
21089 if( status ) return errno;
21092 #ifdef HAVE_LINUX_THREADS
21093 pthread_kill_other_threads_np();
21102 if ac_fn_c_try_link "$LINENO"; then :
21103 ol_cv_pthread_lpthread=yes
21105 ol_cv_pthread_lpthread=no
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21114 /* pthread test headers */
21115 #include <pthread.h>
21116 #if HAVE_PTHREADS < 7
21120 #define NULL (void*)0
21123 static void *task(p)
21126 return (void *) (p == NULL);
21130 int main(argc, argv)
21135 /* pthread test function */
21136 #ifndef PTHREAD_CREATE_DETACHED
21137 #define PTHREAD_CREATE_DETACHED 1
21141 int detach = PTHREAD_CREATE_DETACHED;
21143 #if HAVE_PTHREADS > 4
21144 /* Final pthreads */
21145 pthread_attr_t attr;
21147 status = pthread_attr_init(&attr);
21148 if( status ) return status;
21150 #if HAVE_PTHREADS < 7
21151 status = pthread_attr_setdetachstate(&attr, &detach);
21152 if( status < 0 ) status = errno;
21154 status = pthread_attr_setdetachstate(&attr, detach);
21156 if( status ) return status;
21157 status = pthread_create( &t, &attr, task, NULL );
21158 #if HAVE_PTHREADS < 7
21159 if( status < 0 ) status = errno;
21161 if( status ) return status;
21163 /* Draft 4 pthreads */
21164 status = pthread_create( &t, pthread_attr_default, task, NULL );
21165 if( status ) return errno;
21167 /* give thread a chance to complete */
21168 /* it should remain joinable and hence detachable */
21171 status = pthread_detach( &t );
21172 if( status ) return errno;
21175 #ifdef HAVE_LINUX_THREADS
21176 pthread_kill_other_threads_np();
21184 if ac_fn_c_try_run "$LINENO"; then :
21185 ol_cv_pthread_lpthread=yes
21187 ol_cv_pthread_lpthread=no
21189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21190 conftest.$ac_objext conftest.beam conftest.$ac_ext
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
21199 $as_echo "$ol_cv_pthread_lpthread" >&6; }
21201 if test $ol_cv_pthread_lpthread = yes ; then
21202 ol_link_pthreads="-lpthread"
21203 ol_link_threads=posix
21207 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21208 if test "$ol_link_threads" = no ; then
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
21211 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
21212 if ${ol_cv_pthread_lc_r+:} false; then :
21213 $as_echo_n "(cached) " >&6
21220 if test "$cross_compiling" = yes; then :
21221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21222 /* end confdefs.h. */
21224 /* pthread test headers */
21225 #include <pthread.h>
21226 #if HAVE_PTHREADS < 7
21230 #define NULL (void*)0
21233 static void *task(p)
21236 return (void *) (p == NULL);
21243 /* pthread test function */
21244 #ifndef PTHREAD_CREATE_DETACHED
21245 #define PTHREAD_CREATE_DETACHED 1
21249 int detach = PTHREAD_CREATE_DETACHED;
21251 #if HAVE_PTHREADS > 4
21252 /* Final pthreads */
21253 pthread_attr_t attr;
21255 status = pthread_attr_init(&attr);
21256 if( status ) return status;
21258 #if HAVE_PTHREADS < 7
21259 status = pthread_attr_setdetachstate(&attr, &detach);
21260 if( status < 0 ) status = errno;
21262 status = pthread_attr_setdetachstate(&attr, detach);
21264 if( status ) return status;
21265 status = pthread_create( &t, &attr, task, NULL );
21266 #if HAVE_PTHREADS < 7
21267 if( status < 0 ) status = errno;
21269 if( status ) return status;
21271 /* Draft 4 pthreads */
21272 status = pthread_create( &t, pthread_attr_default, task, NULL );
21273 if( status ) return errno;
21275 /* give thread a chance to complete */
21276 /* it should remain joinable and hence detachable */
21279 status = pthread_detach( &t );
21280 if( status ) return errno;
21283 #ifdef HAVE_LINUX_THREADS
21284 pthread_kill_other_threads_np();
21293 if ac_fn_c_try_link "$LINENO"; then :
21294 ol_cv_pthread_lc_r=yes
21296 ol_cv_pthread_lc_r=no
21298 rm -f core conftest.err conftest.$ac_objext \
21299 conftest$ac_exeext conftest.$ac_ext
21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h. */
21305 /* pthread test headers */
21306 #include <pthread.h>
21307 #if HAVE_PTHREADS < 7
21311 #define NULL (void*)0
21314 static void *task(p)
21317 return (void *) (p == NULL);
21321 int main(argc, argv)
21326 /* pthread test function */
21327 #ifndef PTHREAD_CREATE_DETACHED
21328 #define PTHREAD_CREATE_DETACHED 1
21332 int detach = PTHREAD_CREATE_DETACHED;
21334 #if HAVE_PTHREADS > 4
21335 /* Final pthreads */
21336 pthread_attr_t attr;
21338 status = pthread_attr_init(&attr);
21339 if( status ) return status;
21341 #if HAVE_PTHREADS < 7
21342 status = pthread_attr_setdetachstate(&attr, &detach);
21343 if( status < 0 ) status = errno;
21345 status = pthread_attr_setdetachstate(&attr, detach);
21347 if( status ) return status;
21348 status = pthread_create( &t, &attr, task, NULL );
21349 #if HAVE_PTHREADS < 7
21350 if( status < 0 ) status = errno;
21352 if( status ) return status;
21354 /* Draft 4 pthreads */
21355 status = pthread_create( &t, pthread_attr_default, task, NULL );
21356 if( status ) return errno;
21358 /* give thread a chance to complete */
21359 /* it should remain joinable and hence detachable */
21362 status = pthread_detach( &t );
21363 if( status ) return errno;
21366 #ifdef HAVE_LINUX_THREADS
21367 pthread_kill_other_threads_np();
21375 if ac_fn_c_try_run "$LINENO"; then :
21376 ol_cv_pthread_lc_r=yes
21378 ol_cv_pthread_lc_r=no
21380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21381 conftest.$ac_objext conftest.beam conftest.$ac_ext
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
21390 $as_echo "$ol_cv_pthread_lc_r" >&6; }
21392 if test $ol_cv_pthread_lc_r = yes ; then
21393 ol_link_pthreads="-lc_r"
21394 ol_link_threads=posix
21399 # Pthread try link: -threads (ol_cv_pthread_threads)
21400 if test "$ol_link_threads" = no ; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
21403 $as_echo_n "checking for pthread link with -threads... " >&6; }
21404 if ${ol_cv_pthread_threads+:} false; then :
21405 $as_echo_n "(cached) " >&6
21410 LIBS="-threads $LIBS"
21412 if test "$cross_compiling" = yes; then :
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21416 /* pthread test headers */
21417 #include <pthread.h>
21418 #if HAVE_PTHREADS < 7
21422 #define NULL (void*)0
21425 static void *task(p)
21428 return (void *) (p == NULL);
21435 /* pthread test function */
21436 #ifndef PTHREAD_CREATE_DETACHED
21437 #define PTHREAD_CREATE_DETACHED 1
21441 int detach = PTHREAD_CREATE_DETACHED;
21443 #if HAVE_PTHREADS > 4
21444 /* Final pthreads */
21445 pthread_attr_t attr;
21447 status = pthread_attr_init(&attr);
21448 if( status ) return status;
21450 #if HAVE_PTHREADS < 7
21451 status = pthread_attr_setdetachstate(&attr, &detach);
21452 if( status < 0 ) status = errno;
21454 status = pthread_attr_setdetachstate(&attr, detach);
21456 if( status ) return status;
21457 status = pthread_create( &t, &attr, task, NULL );
21458 #if HAVE_PTHREADS < 7
21459 if( status < 0 ) status = errno;
21461 if( status ) return status;
21463 /* Draft 4 pthreads */
21464 status = pthread_create( &t, pthread_attr_default, task, NULL );
21465 if( status ) return errno;
21467 /* give thread a chance to complete */
21468 /* it should remain joinable and hence detachable */
21471 status = pthread_detach( &t );
21472 if( status ) return errno;
21475 #ifdef HAVE_LINUX_THREADS
21476 pthread_kill_other_threads_np();
21485 if ac_fn_c_try_link "$LINENO"; then :
21486 ol_cv_pthread_threads=yes
21488 ol_cv_pthread_threads=no
21490 rm -f core conftest.err conftest.$ac_objext \
21491 conftest$ac_exeext conftest.$ac_ext
21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h. */
21497 /* pthread test headers */
21498 #include <pthread.h>
21499 #if HAVE_PTHREADS < 7
21503 #define NULL (void*)0
21506 static void *task(p)
21509 return (void *) (p == NULL);
21513 int main(argc, argv)
21518 /* pthread test function */
21519 #ifndef PTHREAD_CREATE_DETACHED
21520 #define PTHREAD_CREATE_DETACHED 1
21524 int detach = PTHREAD_CREATE_DETACHED;
21526 #if HAVE_PTHREADS > 4
21527 /* Final pthreads */
21528 pthread_attr_t attr;
21530 status = pthread_attr_init(&attr);
21531 if( status ) return status;
21533 #if HAVE_PTHREADS < 7
21534 status = pthread_attr_setdetachstate(&attr, &detach);
21535 if( status < 0 ) status = errno;
21537 status = pthread_attr_setdetachstate(&attr, detach);
21539 if( status ) return status;
21540 status = pthread_create( &t, &attr, task, NULL );
21541 #if HAVE_PTHREADS < 7
21542 if( status < 0 ) status = errno;
21544 if( status ) return status;
21546 /* Draft 4 pthreads */
21547 status = pthread_create( &t, pthread_attr_default, task, NULL );
21548 if( status ) return errno;
21550 /* give thread a chance to complete */
21551 /* it should remain joinable and hence detachable */
21554 status = pthread_detach( &t );
21555 if( status ) return errno;
21558 #ifdef HAVE_LINUX_THREADS
21559 pthread_kill_other_threads_np();
21567 if ac_fn_c_try_run "$LINENO"; then :
21568 ol_cv_pthread_threads=yes
21570 ol_cv_pthread_threads=no
21572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21573 conftest.$ac_objext conftest.beam conftest.$ac_ext
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
21582 $as_echo "$ol_cv_pthread_threads" >&6; }
21584 if test $ol_cv_pthread_threads = yes ; then
21585 ol_link_pthreads="-threads"
21586 ol_link_threads=posix
21591 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
21592 if test "$ol_link_threads" = no ; then
21593 # try -lpthreads -lmach -lexc -lc_r
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
21595 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
21596 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
21597 $as_echo_n "(cached) " >&6
21602 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
21604 if test "$cross_compiling" = yes; then :
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21608 /* pthread test headers */
21609 #include <pthread.h>
21610 #if HAVE_PTHREADS < 7
21614 #define NULL (void*)0
21617 static void *task(p)
21620 return (void *) (p == NULL);
21627 /* pthread test function */
21628 #ifndef PTHREAD_CREATE_DETACHED
21629 #define PTHREAD_CREATE_DETACHED 1
21633 int detach = PTHREAD_CREATE_DETACHED;
21635 #if HAVE_PTHREADS > 4
21636 /* Final pthreads */
21637 pthread_attr_t attr;
21639 status = pthread_attr_init(&attr);
21640 if( status ) return status;
21642 #if HAVE_PTHREADS < 7
21643 status = pthread_attr_setdetachstate(&attr, &detach);
21644 if( status < 0 ) status = errno;
21646 status = pthread_attr_setdetachstate(&attr, detach);
21648 if( status ) return status;
21649 status = pthread_create( &t, &attr, task, NULL );
21650 #if HAVE_PTHREADS < 7
21651 if( status < 0 ) status = errno;
21653 if( status ) return status;
21655 /* Draft 4 pthreads */
21656 status = pthread_create( &t, pthread_attr_default, task, NULL );
21657 if( status ) return errno;
21659 /* give thread a chance to complete */
21660 /* it should remain joinable and hence detachable */
21663 status = pthread_detach( &t );
21664 if( status ) return errno;
21667 #ifdef HAVE_LINUX_THREADS
21668 pthread_kill_other_threads_np();
21677 if ac_fn_c_try_link "$LINENO"; then :
21678 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21680 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21682 rm -f core conftest.err conftest.$ac_objext \
21683 conftest$ac_exeext conftest.$ac_ext
21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h. */
21689 /* pthread test headers */
21690 #include <pthread.h>
21691 #if HAVE_PTHREADS < 7
21695 #define NULL (void*)0
21698 static void *task(p)
21701 return (void *) (p == NULL);
21705 int main(argc, argv)
21710 /* pthread test function */
21711 #ifndef PTHREAD_CREATE_DETACHED
21712 #define PTHREAD_CREATE_DETACHED 1
21716 int detach = PTHREAD_CREATE_DETACHED;
21718 #if HAVE_PTHREADS > 4
21719 /* Final pthreads */
21720 pthread_attr_t attr;
21722 status = pthread_attr_init(&attr);
21723 if( status ) return status;
21725 #if HAVE_PTHREADS < 7
21726 status = pthread_attr_setdetachstate(&attr, &detach);
21727 if( status < 0 ) status = errno;
21729 status = pthread_attr_setdetachstate(&attr, detach);
21731 if( status ) return status;
21732 status = pthread_create( &t, &attr, task, NULL );
21733 #if HAVE_PTHREADS < 7
21734 if( status < 0 ) status = errno;
21736 if( status ) return status;
21738 /* Draft 4 pthreads */
21739 status = pthread_create( &t, pthread_attr_default, task, NULL );
21740 if( status ) return errno;
21742 /* give thread a chance to complete */
21743 /* it should remain joinable and hence detachable */
21746 status = pthread_detach( &t );
21747 if( status ) return errno;
21750 #ifdef HAVE_LINUX_THREADS
21751 pthread_kill_other_threads_np();
21759 if ac_fn_c_try_run "$LINENO"; then :
21760 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21762 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21765 conftest.$ac_objext conftest.beam conftest.$ac_ext
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
21774 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
21776 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
21777 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
21778 ol_link_threads=posix
21782 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
21783 if test "$ol_link_threads" = no ; then
21784 # try -lpthreads -lmach -lexc
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
21786 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
21787 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
21788 $as_echo_n "(cached) " >&6
21793 LIBS="-lpthreads -lmach -lexc $LIBS"
21795 if test "$cross_compiling" = yes; then :
21796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21799 /* pthread test headers */
21800 #include <pthread.h>
21801 #if HAVE_PTHREADS < 7
21805 #define NULL (void*)0
21808 static void *task(p)
21811 return (void *) (p == NULL);
21818 /* pthread test function */
21819 #ifndef PTHREAD_CREATE_DETACHED
21820 #define PTHREAD_CREATE_DETACHED 1
21824 int detach = PTHREAD_CREATE_DETACHED;
21826 #if HAVE_PTHREADS > 4
21827 /* Final pthreads */
21828 pthread_attr_t attr;
21830 status = pthread_attr_init(&attr);
21831 if( status ) return status;
21833 #if HAVE_PTHREADS < 7
21834 status = pthread_attr_setdetachstate(&attr, &detach);
21835 if( status < 0 ) status = errno;
21837 status = pthread_attr_setdetachstate(&attr, detach);
21839 if( status ) return status;
21840 status = pthread_create( &t, &attr, task, NULL );
21841 #if HAVE_PTHREADS < 7
21842 if( status < 0 ) status = errno;
21844 if( status ) return status;
21846 /* Draft 4 pthreads */
21847 status = pthread_create( &t, pthread_attr_default, task, NULL );
21848 if( status ) return errno;
21850 /* give thread a chance to complete */
21851 /* it should remain joinable and hence detachable */
21854 status = pthread_detach( &t );
21855 if( status ) return errno;
21858 #ifdef HAVE_LINUX_THREADS
21859 pthread_kill_other_threads_np();
21868 if ac_fn_c_try_link "$LINENO"; then :
21869 ol_cv_pthread_lpthreads_lmach_lexc=yes
21871 ol_cv_pthread_lpthreads_lmach_lexc=no
21873 rm -f core conftest.err conftest.$ac_objext \
21874 conftest$ac_exeext conftest.$ac_ext
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21880 /* pthread test headers */
21881 #include <pthread.h>
21882 #if HAVE_PTHREADS < 7
21886 #define NULL (void*)0
21889 static void *task(p)
21892 return (void *) (p == NULL);
21896 int main(argc, argv)
21901 /* pthread test function */
21902 #ifndef PTHREAD_CREATE_DETACHED
21903 #define PTHREAD_CREATE_DETACHED 1
21907 int detach = PTHREAD_CREATE_DETACHED;
21909 #if HAVE_PTHREADS > 4
21910 /* Final pthreads */
21911 pthread_attr_t attr;
21913 status = pthread_attr_init(&attr);
21914 if( status ) return status;
21916 #if HAVE_PTHREADS < 7
21917 status = pthread_attr_setdetachstate(&attr, &detach);
21918 if( status < 0 ) status = errno;
21920 status = pthread_attr_setdetachstate(&attr, detach);
21922 if( status ) return status;
21923 status = pthread_create( &t, &attr, task, NULL );
21924 #if HAVE_PTHREADS < 7
21925 if( status < 0 ) status = errno;
21927 if( status ) return status;
21929 /* Draft 4 pthreads */
21930 status = pthread_create( &t, pthread_attr_default, task, NULL );
21931 if( status ) return errno;
21933 /* give thread a chance to complete */
21934 /* it should remain joinable and hence detachable */
21937 status = pthread_detach( &t );
21938 if( status ) return errno;
21941 #ifdef HAVE_LINUX_THREADS
21942 pthread_kill_other_threads_np();
21950 if ac_fn_c_try_run "$LINENO"; then :
21951 ol_cv_pthread_lpthreads_lmach_lexc=yes
21953 ol_cv_pthread_lpthreads_lmach_lexc=no
21955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21956 conftest.$ac_objext conftest.beam conftest.$ac_ext
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
21965 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
21967 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
21968 ol_link_pthreads="-lpthreads -lmach -lexc"
21969 ol_link_threads=posix
21973 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
21974 if test "$ol_link_threads" = no ; then
21975 # try -lpthreads -lexc
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
21977 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
21978 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
21979 $as_echo_n "(cached) " >&6
21984 LIBS="-lpthreads -lexc $LIBS"
21986 if test "$cross_compiling" = yes; then :
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21990 /* pthread test headers */
21991 #include <pthread.h>
21992 #if HAVE_PTHREADS < 7
21996 #define NULL (void*)0
21999 static void *task(p)
22002 return (void *) (p == NULL);
22009 /* pthread test function */
22010 #ifndef PTHREAD_CREATE_DETACHED
22011 #define PTHREAD_CREATE_DETACHED 1
22015 int detach = PTHREAD_CREATE_DETACHED;
22017 #if HAVE_PTHREADS > 4
22018 /* Final pthreads */
22019 pthread_attr_t attr;
22021 status = pthread_attr_init(&attr);
22022 if( status ) return status;
22024 #if HAVE_PTHREADS < 7
22025 status = pthread_attr_setdetachstate(&attr, &detach);
22026 if( status < 0 ) status = errno;
22028 status = pthread_attr_setdetachstate(&attr, detach);
22030 if( status ) return status;
22031 status = pthread_create( &t, &attr, task, NULL );
22032 #if HAVE_PTHREADS < 7
22033 if( status < 0 ) status = errno;
22035 if( status ) return status;
22037 /* Draft 4 pthreads */
22038 status = pthread_create( &t, pthread_attr_default, task, NULL );
22039 if( status ) return errno;
22041 /* give thread a chance to complete */
22042 /* it should remain joinable and hence detachable */
22045 status = pthread_detach( &t );
22046 if( status ) return errno;
22049 #ifdef HAVE_LINUX_THREADS
22050 pthread_kill_other_threads_np();
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ol_cv_pthread_lpthreads_lexc=yes
22062 ol_cv_pthread_lpthreads_lexc=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22068 /* end confdefs.h. */
22071 /* pthread test headers */
22072 #include <pthread.h>
22073 #if HAVE_PTHREADS < 7
22077 #define NULL (void*)0
22080 static void *task(p)
22083 return (void *) (p == NULL);
22087 int main(argc, argv)
22092 /* pthread test function */
22093 #ifndef PTHREAD_CREATE_DETACHED
22094 #define PTHREAD_CREATE_DETACHED 1
22098 int detach = PTHREAD_CREATE_DETACHED;
22100 #if HAVE_PTHREADS > 4
22101 /* Final pthreads */
22102 pthread_attr_t attr;
22104 status = pthread_attr_init(&attr);
22105 if( status ) return status;
22107 #if HAVE_PTHREADS < 7
22108 status = pthread_attr_setdetachstate(&attr, &detach);
22109 if( status < 0 ) status = errno;
22111 status = pthread_attr_setdetachstate(&attr, detach);
22113 if( status ) return status;
22114 status = pthread_create( &t, &attr, task, NULL );
22115 #if HAVE_PTHREADS < 7
22116 if( status < 0 ) status = errno;
22118 if( status ) return status;
22120 /* Draft 4 pthreads */
22121 status = pthread_create( &t, pthread_attr_default, task, NULL );
22122 if( status ) return errno;
22124 /* give thread a chance to complete */
22125 /* it should remain joinable and hence detachable */
22128 status = pthread_detach( &t );
22129 if( status ) return errno;
22132 #ifdef HAVE_LINUX_THREADS
22133 pthread_kill_other_threads_np();
22141 if ac_fn_c_try_run "$LINENO"; then :
22142 ol_cv_pthread_lpthreads_lexc=yes
22144 ol_cv_pthread_lpthreads_lexc=no
22146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22147 conftest.$ac_objext conftest.beam conftest.$ac_ext
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
22156 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
22158 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22159 ol_link_pthreads="-lpthreads -lexc"
22160 ol_link_threads=posix
22165 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22166 if test "$ol_link_threads" = no ; then
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
22169 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
22170 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
22171 $as_echo_n "(cached) " >&6
22176 LIBS="-lpthreads $LIBS"
22178 if test "$cross_compiling" = yes; then :
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22182 /* pthread test headers */
22183 #include <pthread.h>
22184 #if HAVE_PTHREADS < 7
22188 #define NULL (void*)0
22191 static void *task(p)
22194 return (void *) (p == NULL);
22201 /* pthread test function */
22202 #ifndef PTHREAD_CREATE_DETACHED
22203 #define PTHREAD_CREATE_DETACHED 1
22207 int detach = PTHREAD_CREATE_DETACHED;
22209 #if HAVE_PTHREADS > 4
22210 /* Final pthreads */
22211 pthread_attr_t attr;
22213 status = pthread_attr_init(&attr);
22214 if( status ) return status;
22216 #if HAVE_PTHREADS < 7
22217 status = pthread_attr_setdetachstate(&attr, &detach);
22218 if( status < 0 ) status = errno;
22220 status = pthread_attr_setdetachstate(&attr, detach);
22222 if( status ) return status;
22223 status = pthread_create( &t, &attr, task, NULL );
22224 #if HAVE_PTHREADS < 7
22225 if( status < 0 ) status = errno;
22227 if( status ) return status;
22229 /* Draft 4 pthreads */
22230 status = pthread_create( &t, pthread_attr_default, task, NULL );
22231 if( status ) return errno;
22233 /* give thread a chance to complete */
22234 /* it should remain joinable and hence detachable */
22237 status = pthread_detach( &t );
22238 if( status ) return errno;
22241 #ifdef HAVE_LINUX_THREADS
22242 pthread_kill_other_threads_np();
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 ol_cv_pthread_lib_lpthreads=yes
22254 ol_cv_pthread_lib_lpthreads=no
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h. */
22263 /* pthread test headers */
22264 #include <pthread.h>
22265 #if HAVE_PTHREADS < 7
22269 #define NULL (void*)0
22272 static void *task(p)
22275 return (void *) (p == NULL);
22279 int main(argc, argv)
22284 /* pthread test function */
22285 #ifndef PTHREAD_CREATE_DETACHED
22286 #define PTHREAD_CREATE_DETACHED 1
22290 int detach = PTHREAD_CREATE_DETACHED;
22292 #if HAVE_PTHREADS > 4
22293 /* Final pthreads */
22294 pthread_attr_t attr;
22296 status = pthread_attr_init(&attr);
22297 if( status ) return status;
22299 #if HAVE_PTHREADS < 7
22300 status = pthread_attr_setdetachstate(&attr, &detach);
22301 if( status < 0 ) status = errno;
22303 status = pthread_attr_setdetachstate(&attr, detach);
22305 if( status ) return status;
22306 status = pthread_create( &t, &attr, task, NULL );
22307 #if HAVE_PTHREADS < 7
22308 if( status < 0 ) status = errno;
22310 if( status ) return status;
22312 /* Draft 4 pthreads */
22313 status = pthread_create( &t, pthread_attr_default, task, NULL );
22314 if( status ) return errno;
22316 /* give thread a chance to complete */
22317 /* it should remain joinable and hence detachable */
22320 status = pthread_detach( &t );
22321 if( status ) return errno;
22324 #ifdef HAVE_LINUX_THREADS
22325 pthread_kill_other_threads_np();
22333 if ac_fn_c_try_run "$LINENO"; then :
22334 ol_cv_pthread_lib_lpthreads=yes
22336 ol_cv_pthread_lib_lpthreads=no
22338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22339 conftest.$ac_objext conftest.beam conftest.$ac_ext
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
22348 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
22350 if test $ol_cv_pthread_lib_lpthreads = yes ; then
22351 ol_link_pthreads="-lpthreads"
22352 ol_link_threads=posix
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
22358 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
22360 if test $ol_link_threads != no ; then
22361 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
22363 save_CPPFLAGS="$CPPFLAGS"
22365 LIBS="$LTHREAD_LIBS $LIBS"
22367 for ac_func in sched_yield pthread_yield thr_yield
22369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22372 cat >>confdefs.h <<_ACEOF
22373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22380 if test $ac_cv_func_sched_yield = no &&
22381 test $ac_cv_func_pthread_yield = no &&
22382 test $ac_cv_func_thr_yield = no ; then
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22384 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22385 if ${ac_cv_lib_rt_sched_yield+:} false; then :
22386 $as_echo_n "(cached) " >&6
22388 ac_check_lib_save_LIBS=$LIBS
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22393 /* Override any GCC internal prototype to avoid an error.
22394 Use char because int might match the return type of a GCC
22395 builtin and then its argument prototype would still apply. */
22399 char sched_yield ();
22403 return sched_yield ();
22408 if ac_fn_c_try_link "$LINENO"; then :
22409 ac_cv_lib_rt_sched_yield=yes
22411 ac_cv_lib_rt_sched_yield=no
22413 rm -f core conftest.err conftest.$ac_objext \
22414 conftest$ac_exeext conftest.$ac_ext
22415 LIBS=$ac_check_lib_save_LIBS
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22418 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22419 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
22420 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
22422 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22424 ac_cv_func_sched_yield=yes
22426 ac_cv_func_sched_yield=no
22430 if test $ac_cv_func_sched_yield = no &&
22431 test $ac_cv_func_pthread_yield = no &&
22432 test "$ac_cv_func_thr_yield" = no ; then
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
22434 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
22437 for ac_func in pthread_kill
22439 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
22440 if test "x$ac_cv_func_pthread_kill" = xyes; then :
22441 cat >>confdefs.h <<_ACEOF
22442 #define HAVE_PTHREAD_KILL 1
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
22450 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
22451 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
22452 $as_echo_n "(cached) " >&6
22455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456 /* end confdefs.h. */
22458 #include <pthread.h>
22459 pthread_rwlock_t rwlock;
22464 pthread_rwlock_destroy(&rwlock);
22469 if ac_fn_c_try_link "$LINENO"; then :
22470 ol_cv_func_pthread_rwlock_destroy=yes
22472 ol_cv_func_pthread_rwlock_destroy=no
22474 rm -f core conftest.err conftest.$ac_objext \
22475 conftest$ac_exeext conftest.$ac_ext
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
22479 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
22480 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
22482 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
22487 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
22488 if ${ol_cv_func_pthread_detach+:} false; then :
22489 $as_echo_n "(cached) " >&6
22492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493 /* end confdefs.h. */
22495 #include <pthread.h>
22497 #define NULL (void*)0
22503 pthread_detach(NULL);
22508 if ac_fn_c_try_link "$LINENO"; then :
22509 ol_cv_func_pthread_detach=yes
22511 ol_cv_func_pthread_detach=no
22513 rm -f core conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
22518 $as_echo "$ol_cv_func_pthread_detach" >&6; }
22520 if test $ol_cv_func_pthread_detach = no ; then
22521 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
22525 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
22529 pthread_setconcurrency \
22530 pthread_getconcurrency \
22531 thr_setconcurrency \
22532 thr_getconcurrency \
22535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22538 cat >>confdefs.h <<_ACEOF
22539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22547 for ac_func in pthread_kill_other_threads_np
22549 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
22550 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
22559 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
22560 if ${ol_cv_sys_linux_threads+:} false; then :
22561 $as_echo_n "(cached) " >&6
22563 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
22566 $as_echo "$ol_cv_sys_linux_threads" >&6; }
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
22572 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
22573 if ${ol_cv_linux_threads+:} false; then :
22574 $as_echo_n "(cached) " >&6
22577 if test $ol_cv_header_linux_threads = yes &&
22578 test $ol_cv_sys_linux_threads = yes; then
22579 ol_cv_linux_threads=yes
22580 elif test $ol_cv_header_linux_threads = no &&
22581 test $ol_cv_sys_linux_threads = no; then
22582 ol_cv_linux_threads=no
22584 ol_cv_linux_threads=error
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
22589 $as_echo "$ol_cv_linux_threads" >&6; }
22592 if test $ol_cv_linux_threads = error; then
22593 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
22597 $as_echo_n "checking if pthread_create() works... " >&6; }
22598 if ${ol_cv_pthread_create_works+:} false; then :
22599 $as_echo_n "(cached) " >&6
22602 if test "$cross_compiling" = yes; then :
22603 ol_cv_pthread_create_works=yes
22605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22606 /* end confdefs.h. */
22609 /* pthread test headers */
22610 #include <pthread.h>
22611 #if HAVE_PTHREADS < 7
22615 #define NULL (void*)0
22618 static void *task(p)
22621 return (void *) (p == NULL);
22625 int main(argc, argv)
22630 /* pthread test function */
22631 #ifndef PTHREAD_CREATE_DETACHED
22632 #define PTHREAD_CREATE_DETACHED 1
22636 int detach = PTHREAD_CREATE_DETACHED;
22638 #if HAVE_PTHREADS > 4
22639 /* Final pthreads */
22640 pthread_attr_t attr;
22642 status = pthread_attr_init(&attr);
22643 if( status ) return status;
22645 #if HAVE_PTHREADS < 7
22646 status = pthread_attr_setdetachstate(&attr, &detach);
22647 if( status < 0 ) status = errno;
22649 status = pthread_attr_setdetachstate(&attr, detach);
22651 if( status ) return status;
22652 status = pthread_create( &t, &attr, task, NULL );
22653 #if HAVE_PTHREADS < 7
22654 if( status < 0 ) status = errno;
22656 if( status ) return status;
22658 /* Draft 4 pthreads */
22659 status = pthread_create( &t, pthread_attr_default, task, NULL );
22660 if( status ) return errno;
22662 /* give thread a chance to complete */
22663 /* it should remain joinable and hence detachable */
22666 status = pthread_detach( &t );
22667 if( status ) return errno;
22670 #ifdef HAVE_LINUX_THREADS
22671 pthread_kill_other_threads_np();
22679 if ac_fn_c_try_run "$LINENO"; then :
22680 ol_cv_pthread_create_works=yes
22682 ol_cv_pthread_create_works=no
22684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22685 conftest.$ac_objext conftest.beam conftest.$ac_ext
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
22690 $as_echo "$ol_cv_pthread_create_works" >&6; }
22692 if test $ol_cv_pthread_create_works = no ; then
22693 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
22696 ol_replace_broken_yield=no
22698 if test $ol_replace_broken_yield = yes ; then
22700 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
22704 if test x$ol_with_yielding_select = xauto ; then
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
22706 $as_echo_n "checking if select yields when using pthreads... " >&6; }
22707 if ${ol_cv_pthread_select_yields+:} false; then :
22708 $as_echo_n "(cached) " >&6
22711 if test "$cross_compiling" = yes; then :
22712 ol_cv_pthread_select_yields=cross
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22717 #include <sys/types.h>
22718 #include <sys/time.h>
22719 #include <unistd.h>
22720 #include <pthread.h>
22722 #define NULL (void*) 0
22725 static int fildes[2];
22727 static void *task(p)
22739 FD_SET(fildes[0], &rfds);
22741 /* we're not interested in any fds */
22742 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
22749 exit(0); /* if we exit here, the select blocked the whole process */
22752 int main(argc, argv)
22758 /* create a pipe to select */
22759 if(pipe(&fildes[0])) {
22764 #ifdef HAVE_PTHREAD_SETCONCURRENCY
22765 (void) pthread_setconcurrency(2);
22767 #ifdef HAVE_THR_SETCONCURRENCY
22768 /* Set Solaris LWP concurrency to 2 */
22769 thr_setconcurrency(2);
22773 #if HAVE_PTHREADS < 6
22774 pthread_create(&t, pthread_attr_default, task, NULL);
22776 pthread_create(&t, NULL, task, NULL);
22779 /* make sure task runs first */
22780 #ifdef HAVE_THR_YIELD
22782 #elif defined( HAVE_SCHED_YIELD )
22784 #elif defined( HAVE_PTHREAD_YIELD )
22791 if ac_fn_c_try_run "$LINENO"; then :
22792 ol_cv_pthread_select_yields=no
22794 ol_cv_pthread_select_yields=yes
22796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22797 conftest.$ac_objext conftest.beam conftest.$ac_ext
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
22802 $as_echo "$ol_cv_pthread_select_yields" >&6; }
22804 if test $ol_cv_pthread_select_yields = cross ; then
22805 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
22808 if test $ol_cv_pthread_select_yields = yes ; then
22809 ol_with_yielding_select=yes
22813 CPPFLAGS="$save_CPPFLAGS"
22816 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
22820 if test $ol_with_threads = posix ; then
22821 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
22826 case $ol_with_threads in auto | yes | mach)
22828 for ac_header in mach/cthreads.h cthreads.h
22830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22831 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22833 cat >>confdefs.h <<_ACEOF
22834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22841 if test $ac_cv_header_mach_cthreads_h = yes ; then
22842 ol_with_threads=found
22844 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22845 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22846 ol_link_threads=yes
22850 if test $ol_link_threads = no ; then
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
22852 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
22853 if ${ol_cv_cthread_all_load+:} false; then :
22854 $as_echo_n "(cached) " >&6
22858 LIBS="-all_load $LIBS"
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861 #include <mach/cthreads.h>
22866 cthread_fork((void *)0, (void *)0);
22872 if ac_fn_c_try_link "$LINENO"; then :
22873 ol_cv_cthread_all_load=yes
22875 ol_cv_cthread_all_load=no
22877 rm -f core conftest.err conftest.$ac_objext \
22878 conftest$ac_exeext conftest.$ac_ext
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
22883 $as_echo "$ol_cv_cthread_all_load" >&6; }
22885 if test $ol_cv_cthread_all_load = yes ; then
22886 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
22887 ol_link_threads=mach
22888 ol_with_threads=found
22892 elif test $ac_cv_header_cthreads_h = yes ; then
22894 ol_with_threads=found
22897 LIBS="$LIBS -lthreads"
22898 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22899 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22900 ol_link_threads=yes
22905 if test $ol_link_threads = yes ; then
22906 LTHREAD_LIBS="-lthreads"
22907 ol_link_threads=mach
22908 ol_with_threads=found
22910 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22913 elif test $ol_with_threads = mach ; then
22914 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
22917 if test $ol_link_threads = mach ; then
22919 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
22921 elif test $ol_with_threads = found ; then
22922 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22927 case $ol_with_threads in auto | yes | pth)
22929 for ac_header in pth.h
22931 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
22932 if test "x$ac_cv_header_pth_h" = xyes; then :
22933 cat >>confdefs.h <<_ACEOF
22934 #define HAVE_PTH_H 1
22942 if test $ac_cv_header_pth_h = yes ; then
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
22944 $as_echo_n "checking for pth_version in -lpth... " >&6; }
22945 if ${ac_cv_lib_pth_pth_version+:} false; then :
22946 $as_echo_n "(cached) " >&6
22948 ac_check_lib_save_LIBS=$LIBS
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 /* Override any GCC internal prototype to avoid an error.
22954 Use char because int might match the return type of a GCC
22955 builtin and then its argument prototype would still apply. */
22959 char pth_version ();
22963 return pth_version ();
22968 if ac_fn_c_try_link "$LINENO"; then :
22969 ac_cv_lib_pth_pth_version=yes
22971 ac_cv_lib_pth_pth_version=no
22973 rm -f core conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
22975 LIBS=$ac_check_lib_save_LIBS
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
22978 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
22979 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
22986 if test $have_pth = yes ; then
22988 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
22990 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
22991 ol_link_threads=pth
22992 ol_with_threads=found
22994 if test x$ol_with_yielding_select = xauto ; then
22995 ol_with_yielding_select=yes
23002 case $ol_with_threads in auto | yes | lwp)
23004 for ac_header in thread.h synch.h
23006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23009 cat >>confdefs.h <<_ACEOF
23010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23017 if test $ac_cv_header_thread_h = yes &&
23018 test $ac_cv_header_synch_h = yes ; then
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
23020 $as_echo_n "checking for thr_create in -lthread... " >&6; }
23021 if ${ac_cv_lib_thread_thr_create+:} false; then :
23022 $as_echo_n "(cached) " >&6
23024 ac_check_lib_save_LIBS=$LIBS
23025 LIBS="-lthread $LIBS"
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23029 /* Override any GCC internal prototype to avoid an error.
23030 Use char because int might match the return type of a GCC
23031 builtin and then its argument prototype would still apply. */
23035 char thr_create ();
23039 return thr_create ();
23044 if ac_fn_c_try_link "$LINENO"; then :
23045 ac_cv_lib_thread_thr_create=yes
23047 ac_cv_lib_thread_thr_create=no
23049 rm -f core conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23051 LIBS=$ac_check_lib_save_LIBS
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
23054 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
23055 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
23062 if test $have_thr = yes ; then
23064 $as_echo "#define HAVE_THR 1" >>confdefs.h
23066 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
23067 ol_link_threads=thr
23069 if test x$ol_with_yielding_select = xauto ; then
23070 ol_with_yielding_select=yes
23074 thr_setconcurrency \
23075 thr_getconcurrency \
23078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23081 cat >>confdefs.h <<_ACEOF
23082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23091 for ac_header in lwp/lwp.h
23093 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23094 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23095 cat >>confdefs.h <<_ACEOF
23096 #define HAVE_LWP_LWP_H 1
23103 if test $ac_cv_header_lwp_lwp_h = yes ; then
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
23105 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
23106 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
23107 $as_echo_n "(cached) " >&6
23109 ac_check_lib_save_LIBS=$LIBS
23111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112 /* end confdefs.h. */
23114 /* Override any GCC internal prototype to avoid an error.
23115 Use char because int might match the return type of a GCC
23116 builtin and then its argument prototype would still apply. */
23120 char lwp_create ();
23124 return lwp_create ();
23129 if ac_fn_c_try_link "$LINENO"; then :
23130 ac_cv_lib_lwp_lwp_create=yes
23132 ac_cv_lib_lwp_lwp_create=no
23134 rm -f core conftest.err conftest.$ac_objext \
23135 conftest$ac_exeext conftest.$ac_ext
23136 LIBS=$ac_check_lib_save_LIBS
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
23139 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
23140 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
23147 if test $have_lwp = yes ; then
23149 $as_echo "#define HAVE_LWP 1" >>confdefs.h
23151 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
23152 ol_link_threads=lwp
23154 if test x$ol_with_yielding_select = xauto ; then
23155 ol_with_yielding_select=no
23162 if test $ol_with_yielding_select = yes ; then
23164 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
23168 if test $ol_with_threads = manual ; then
23169 ol_link_threads=yes
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
23172 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
23174 for ac_header in pthread.h sched.h
23176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23179 cat >>confdefs.h <<_ACEOF
23180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23187 for ac_func in sched_yield pthread_yield
23189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23192 cat >>confdefs.h <<_ACEOF
23193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23201 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23202 if ${ol_cv_header_linux_threads+:} false; then :
23203 $as_echo_n "(cached) " >&6
23205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23206 /* end confdefs.h. */
23207 #include <pthread.h>
23209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23210 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23211 ol_cv_header_linux_threads=yes
23213 ol_cv_header_linux_threads=no
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23220 $as_echo "$ol_cv_header_linux_threads" >&6; }
23221 if test $ol_cv_header_linux_threads = yes; then
23223 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23228 for ac_header in mach/cthreads.h
23230 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23231 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
23232 cat >>confdefs.h <<_ACEOF
23233 #define HAVE_MACH_CTHREADS_H 1
23240 for ac_header in lwp/lwp.h
23242 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23243 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23244 cat >>confdefs.h <<_ACEOF
23245 #define HAVE_LWP_LWP_H 1
23252 for ac_header in thread.h synch.h
23254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23255 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23257 cat >>confdefs.h <<_ACEOF
23258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23267 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
23269 $as_echo "#define REENTRANT 1" >>confdefs.h
23272 $as_echo "#define _REENTRANT 1" >>confdefs.h
23275 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
23278 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
23281 $as_echo "#define THREADSAFE 1" >>confdefs.h
23284 $as_echo "#define _THREADSAFE 1" >>confdefs.h
23287 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
23291 $as_echo_n "checking for thread specific errno... " >&6; }
23292 if ${ol_cv_errno_thread_specific+:} false; then :
23293 $as_echo_n "(cached) " >&6
23296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23297 /* end confdefs.h. */
23307 if ac_fn_c_try_link "$LINENO"; then :
23308 ol_cv_errno_thread_specific=yes
23310 ol_cv_errno_thread_specific=no
23312 rm -f core conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
23317 $as_echo "$ol_cv_errno_thread_specific" >&6; }
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
23320 $as_echo_n "checking for thread specific h_errno... " >&6; }
23321 if ${ol_cv_h_errno_thread_specific+:} false; then :
23322 $as_echo_n "(cached) " >&6
23325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h. */
23336 if ac_fn_c_try_link "$LINENO"; then :
23337 ol_cv_h_errno_thread_specific=yes
23339 ol_cv_h_errno_thread_specific=no
23341 rm -f core conftest.err conftest.$ac_objext \
23342 conftest$ac_exeext conftest.$ac_ext
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
23346 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
23348 if test $ol_cv_errno_thread_specific != yes ||
23349 test $ol_cv_h_errno_thread_specific != yes ; then
23350 LIBS="$LTHREAD_LIBS $LIBS"
23356 if test $ol_link_threads = no ; then
23357 if test $ol_with_threads = yes ; then
23358 as_fn_error $? "no suitable thread support" "$LINENO" 5
23361 if test $ol_with_threads = auto ; then
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
23363 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
23368 $as_echo "#define NO_THREADS 1" >>confdefs.h
23376 if test $ol_link_threads != no ; then
23378 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
23382 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23383 case "$ol_with_threads" in
23389 ol_found_pthreads=yes
23394 ac_cpp='$CPP $CPPFLAGS'
23395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23404 case "$ol_found_pthreads" in
23407 LIBS="$LTHREAD_LIBS $LIBS"
23408 saved_CFLAGS="$CFLAGS"
23409 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23410 for ac_func in sem_timedwait
23412 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
23413 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_SEM_TIMEDWAIT 1
23422 { saved_LIBS=; unset saved_LIBS;}
23423 CFLAGS="$saved_CFLAGS"
23424 { saved_CFLAGS=; unset saved_CFLAGS;}
23425 case "$ac_cv_func_sem_timedwait" in
23427 PTHREAD_LIBS="$LTHREAD_LIBS"
23433 case "$have_pthreads" in
23435 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
23437 LIBS="$LTHREAD_LIBS $LIBS"
23438 saved_CFLAGS="$CFLAGS"
23439 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23440 # The cast to long int works around a bug in the HP C Compiler
23441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23443 # This bug is HP SR number 8606223364.
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
23445 $as_echo_n "checking size of pthread_t... " >&6; }
23446 if ${ac_cv_sizeof_pthread_t+:} false; then :
23447 $as_echo_n "(cached) " >&6
23449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
23450 $ac_includes_default
23451 #include <pthread.h>
23457 if test "$ac_cv_type_pthread_t" = yes; then
23458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23460 as_fn_error 77 "cannot compute sizeof (pthread_t)
23461 See \`config.log' for more details" "$LINENO" 5; }
23463 ac_cv_sizeof_pthread_t=0
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
23469 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
23473 cat >>confdefs.h <<_ACEOF
23474 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
23478 LIBISC_PTHREADS_NOTHREADS=pthreads
23480 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
23483 # We'd like to use sigwait() too
23485 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
23486 if test "x$ac_cv_func_sigwait" = xyes; then :
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
23490 $as_echo_n "checking for sigwait in -lc... " >&6; }
23491 if ${ac_cv_lib_c_sigwait+:} false; then :
23492 $as_echo_n "(cached) " >&6
23494 ac_check_lib_save_LIBS=$LIBS
23496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23497 /* end confdefs.h. */
23499 /* Override any GCC internal prototype to avoid an error.
23500 Use char because int might match the return type of a GCC
23501 builtin and then its argument prototype would still apply. */
23514 if ac_fn_c_try_link "$LINENO"; then :
23515 ac_cv_lib_c_sigwait=yes
23517 ac_cv_lib_c_sigwait=no
23519 rm -f core conftest.err conftest.$ac_objext \
23520 conftest$ac_exeext conftest.$ac_ext
23521 LIBS=$ac_check_lib_save_LIBS
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
23524 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
23525 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
23529 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
23530 if ${ac_cv_lib_pthread_sigwait+:} false; then :
23531 $as_echo_n "(cached) " >&6
23533 ac_check_lib_save_LIBS=$LIBS
23534 LIBS="-lpthread $LIBS"
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23553 if ac_fn_c_try_link "$LINENO"; then :
23554 ac_cv_lib_pthread_sigwait=yes
23556 ac_cv_lib_pthread_sigwait=no
23558 rm -f core conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23560 LIBS=$ac_check_lib_save_LIBS
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
23563 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
23564 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
23568 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
23569 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
23570 $as_echo_n "(cached) " >&6
23572 ac_check_lib_save_LIBS=$LIBS
23573 LIBS="-lpthread $LIBS"
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23587 return _Psigwait ();
23592 if ac_fn_c_try_link "$LINENO"; then :
23593 ac_cv_lib_pthread__Psigwait=yes
23595 ac_cv_lib_pthread__Psigwait=no
23597 rm -f core conftest.err conftest.$ac_objext \
23598 conftest$ac_exeext conftest.$ac_ext
23599 LIBS=$ac_check_lib_save_LIBS
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
23602 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
23603 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
23619 case "$host:$have_sigwait" in
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
23622 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
23623 if ${ac_cv_lib_c_r_sigwait+:} false; then :
23624 $as_echo_n "(cached) " >&6
23626 ac_check_lib_save_LIBS=$LIBS
23628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629 /* end confdefs.h. */
23631 /* Override any GCC internal prototype to avoid an error.
23632 Use char because int might match the return type of a GCC
23633 builtin and then its argument prototype would still apply. */
23646 if ac_fn_c_try_link "$LINENO"; then :
23647 ac_cv_lib_c_r_sigwait=yes
23649 ac_cv_lib_c_r_sigwait=no
23651 rm -f core conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23653 LIBS=$ac_check_lib_save_LIBS
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
23656 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
23657 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
23663 case "$have_sigwait" in
23665 ac_cv_func_sigwait=yes
23667 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23671 for ac_func in pthread_attr_getstacksize
23673 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
23674 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
23675 cat >>confdefs.h <<_ACEOF
23676 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
23682 for ac_func in pthread_attr_setstacksize sysconf
23684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23687 cat >>confdefs.h <<_ACEOF
23688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23696 *-freebsd5.[012]|*-freebsd5.[012].*)
23698 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
23700 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23703 *-bsdi3.*|*-bsdi4.0*)
23705 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
23710 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
23714 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
23716 for ac_func in pthread_setconcurrency
23718 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23719 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
23720 cat >>confdefs.h <<_ACEOF
23721 #define HAVE_PTHREAD_SETCONCURRENCY 1
23727 case "$ac_cv_func_pthread_setconcurrency" in
23730 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23734 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23736 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
23740 hack_shutup_pthreadonceinit=no
23743 hack_shutup_pthreadonceinit=yes
23746 hack_shutup_pthreadonceinit=yes
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
23750 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
23751 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
23752 $as_echo_n "(cached) " >&6
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23757 #include <pthread.h>
23763 static pthread_once_t once_test =
23771 if ac_fn_c_try_compile "$LINENO"; then :
23772 ntp_cv_braces_around_pthread_once_init=no
23774 ntp_cv_braces_around_pthread_once_init=yes
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
23781 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
23782 case "$ntp_cv_braces_around_pthread_once_init" in
23784 hack_shutup_pthreadonceinit=yes
23788 case "$hack_shutup_pthreadonceinit" in
23791 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
23795 { saved_LIBS=; unset saved_LIBS;}
23796 CFLAGS="$saved_CFLAGS"
23797 { saved_CFLAGS=; unset saved_CFLAGS;}
23800 LIBISC_PTHREADS_NOTHREADS=nothreads
23804 if test "$have_pthreads" != "no"; then
23818 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
23821 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
23822 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
23823 $as_echo_n "(cached) " >&6
23825 if test "$cross_compiling" = yes; then :
23826 ntp_cv_vsnprintf_percent_m=no
23829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23830 /* end confdefs.h. */
23832 #include <stdarg.h>
23835 #include <string.h>
23837 int call_vsnprintf(
23844 int call_vsnprintf(
23855 rc = vsnprintf(dst, sz, fmt, ap);
23869 strcpy(sbuf, strerror(ENOENT));
23871 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
23873 return strcmp(sbuf, pbuf);
23880 if ac_fn_c_try_run "$LINENO"; then :
23881 ntp_cv_vsnprintf_percent_m=yes
23883 ntp_cv_vsnprintf_percent_m=no
23885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23886 conftest.$ac_objext conftest.beam conftest.$ac_ext
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
23892 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
23893 case "$ntp_cv_vsnprintf_percent_m" in
23896 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
23901 for ac_header in sys/clockctl.h
23903 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
23904 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
23905 cat >>confdefs.h <<_ACEOF
23906 #define HAVE_SYS_CLOCKCTL_H 1
23914 # Check whether --enable-clockctl was given.
23915 if test "${enable_clockctl+set}" = set; then :
23916 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
23918 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
23924 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
23926 $as_echo "$ntp_use_dev_clockctl" >&6; }
23929 for ac_header in sys/capability.h sys/prctl.h
23931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23934 cat >>confdefs.h <<_ACEOF
23935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
23944 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
23946 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
23950 ntp_have_linuxcaps=no
23952 *) ntp_have_linuxcaps=yes
23957 ntp_have_linuxcaps=no
23961 # Check whether --enable-linuxcaps was given.
23962 if test "${enable_linuxcaps+set}" = set; then :
23963 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
23969 $as_echo "$ntp_have_linuxcaps" >&6; }
23971 case "$ntp_have_linuxcaps" in
23974 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
23981 for ac_header in priv.h
23983 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
23984 if test "x$ac_cv_header_priv_h" = xyes; then :
23985 cat >>confdefs.h <<_ACEOF
23986 #define HAVE_PRIV_H 1
23993 case "$ac_cv_header_priv_h" in
23997 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
23998 if test "x$ac_cv_func_setppriv" = xyes; then :
23999 ntp_have_solarisprivs=yes
24001 ntp_have_solarisprivs=no
24009 # Check whether --enable-solarisprivs was given.
24010 if test "${enable_solarisprivs+set}" = set; then :
24011 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
24017 $as_echo_n "checking if we have solaris privileges... " >&6; }
24019 case "$ntp_have_solarisprivs" in
24022 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
24027 $as_echo "$ntp_have_solarisprivs" >&6; }
24029 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
24032 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
24039 $as_echo_n "checking for library containing res_9_init... " >&6; }
24040 if ${ac_cv_search_res_9_init+:} false; then :
24041 $as_echo_n "(cached) " >&6
24043 ac_func_search_save_LIBS=$LIBS
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24053 char res_9_init ();
24057 return res_9_init ();
24062 for ac_lib in '' resolv; do
24063 if test -z "$ac_lib"; then
24064 ac_res="none required"
24067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24069 if ac_fn_c_try_link "$LINENO"; then :
24070 ac_cv_search_res_9_init=$ac_res
24072 rm -f core conftest.err conftest.$ac_objext \
24074 if ${ac_cv_search_res_9_init+:} false; then :
24078 if ${ac_cv_search_res_9_init+:} false; then :
24081 ac_cv_search_res_9_init=no
24083 rm conftest.$ac_ext
24084 LIBS=$ac_func_search_save_LIBS
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
24087 $as_echo "$ac_cv_search_res_9_init" >&6; }
24088 ac_res=$ac_cv_search_res_9_init
24089 if test "$ac_res" != no; then :
24090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24095 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
24096 $as_echo_n "checking for library containing res_init... " >&6; }
24097 if ${ac_cv_search_res_init+:} false; then :
24098 $as_echo_n "(cached) " >&6
24100 ac_func_search_save_LIBS=$LIBS
24101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102 /* end confdefs.h. */
24104 /* Override any GCC internal prototype to avoid an error.
24105 Use char because int might match the return type of a GCC
24106 builtin and then its argument prototype would still apply. */
24114 return res_init ();
24119 for ac_lib in '' resolv; do
24120 if test -z "$ac_lib"; then
24121 ac_res="none required"
24124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24126 if ac_fn_c_try_link "$LINENO"; then :
24127 ac_cv_search_res_init=$ac_res
24129 rm -f core conftest.err conftest.$ac_objext \
24131 if ${ac_cv_search_res_init+:} false; then :
24135 if ${ac_cv_search_res_init+:} false; then :
24138 ac_cv_search_res_init=no
24140 rm conftest.$ac_ext
24141 LIBS=$ac_func_search_save_LIBS
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
24144 $as_echo "$ac_cv_search_res_init" >&6; }
24145 ac_res=$ac_cv_search_res_init
24146 if test "$ac_res" != no; then :
24147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24153 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
24155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
24157 # include <sys/types.h>
24159 #ifdef HAVE_NETINET_IN_H
24160 # include <netinet/in.h> /* inet_ functions / structs */
24162 #ifdef HAVE_ARPA_NAMESER_H
24163 # include <arpa/nameser.h> /* DNS HEADER struct */
24165 #ifdef HAVE_NETDB_H
24166 # include <netdb.h>
24169 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24170 cat >>confdefs.h <<_ACEOF
24171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24179 #HMS: Why do we do this check so "early"?
24180 for ac_func in res_init
24182 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
24183 if test "x$ac_cv_func_res_init" = xyes; then :
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_RES_INIT 1
24189 for ac_func in __res_init
24191 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
24192 if test "x$ac_cv_func___res_init" = xyes; then :
24193 cat >>confdefs.h <<_ACEOF
24194 #define HAVE___RES_INIT 1
24204 # We also need -lsocket, but we have tested for that already.
24205 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24206 if test "x$ac_cv_func_inet_ntop" = xyes; then :
24210 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
24214 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
24215 if test "x$ac_cv_func_inet_pton" = xyes; then :
24219 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
24224 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24225 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24227 cat >>confdefs.h <<_ACEOF
24228 #define HAVE_UINTPTR_T 1
24233 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
24234 if test "x$ac_cv_type_int32" = xyes; then :
24236 cat >>confdefs.h <<_ACEOF
24237 #define HAVE_INT32 1
24242 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
24243 if test "x$ac_cv_type_u_int32" = xyes; then :
24245 cat >>confdefs.h <<_ACEOF
24246 #define HAVE_U_INT32 1
24255 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
24258 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
24259 if ${ntp_cv_type_int32_with_dns+:} false; then :
24260 $as_echo_n "(cached) " >&6
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24265 #ifdef HAVE_ARPA_NAMESER_H
24266 # include <arpa/nameser.h>
24268 #include <resolv.h>
24274 size_t cb = sizeof(int32);
24281 if ac_fn_c_try_compile "$LINENO"; then :
24282 ntp_cv_type_int32_with_dns=yes
24284 ntp_cv_type_int32_with_dns=no
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
24291 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
24292 case "$ntp_cv_type_int32_with_dns" in
24295 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24300 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
24303 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
24304 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
24305 $as_echo_n "(cached) " >&6
24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308 /* end confdefs.h. */
24310 #ifdef HAVE_ARPA_NAMESER_H
24311 # include <arpa/nameser.h>
24313 #include <resolv.h>
24319 size_t cb = sizeof(u_int32);
24326 if ac_fn_c_try_compile "$LINENO"; then :
24327 ntp_cv_type_u_int32_with_dns=yes
24329 ntp_cv_type_u_int32_with_dns=no
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
24336 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
24337 case "$ntp_cv_type_u_int32_with_dns" in
24340 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24345 for ac_header in sys/timepps.h
24347 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
24348 #ifdef HAVE_SYS_TIME_H
24349 # include <sys/time.h>
24351 #ifdef HAVE_ERRNO_H
24352 # include <errno.h>
24357 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
24358 cat >>confdefs.h <<_ACEOF
24359 #define HAVE_SYS_TIMEPPS_H 1
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
24368 $as_echo_n "checking for struct timespec... " >&6; }
24369 if ${ntp_cv_struct_timespec+:} false; then :
24370 $as_echo_n "(cached) " >&6
24372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h. */
24375 #include <sys/time.h>
24376 /* Under SunOS, timespec is in sys/timepps.h,
24377 which needs errno.h and FRAC */
24378 #ifdef HAVE_ERRNO_H
24379 # include <errno.h>
24381 #ifdef HAVE_SYS_TIMEPPS_H
24382 # define FRAC 4294967296
24383 # include <sys/timepps.h>
24397 if ac_fn_c_try_compile "$LINENO"; then :
24398 ntp_cv_struct_timespec=yes
24400 ntp_cv_struct_timespec=no
24403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
24407 $as_echo "$ntp_cv_struct_timespec" >&6; }
24408 case "$ntp_cv_struct_timespec" in
24411 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
24416 $as_echo_n "checking for struct ntptimeval... " >&6; }
24417 if ${ntp_cv_struct_ntptimeval+:} false; then :
24418 $as_echo_n "(cached) " >&6
24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421 /* end confdefs.h. */
24423 #include <sys/time.h>
24424 #include <sys/timex.h>
24430 struct ntptimeval n;
24437 if ac_fn_c_try_compile "$LINENO"; then :
24438 ntp_cv_struct_ntptimeval=yes
24440 ntp_cv_struct_ntptimeval=no
24443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
24447 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
24448 case "$ntp_cv_struct_ntptimeval" in
24451 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
24455 for ac_header in md5.h
24457 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
24458 #ifdef HAVE_SYS_TYPES_H
24459 # include <sys/types.h>
24464 if test "x$ac_cv_header_md5_h" = xyes; then :
24465 cat >>confdefs.h <<_ACEOF
24466 #define HAVE_MD5_H 1
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
24475 $as_echo_n "checking for library containing MD5Init... " >&6; }
24476 if ${ac_cv_search_MD5Init+:} false; then :
24477 $as_echo_n "(cached) " >&6
24479 ac_func_search_save_LIBS=$LIBS
24480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24481 /* end confdefs.h. */
24483 /* Override any GCC internal prototype to avoid an error.
24484 Use char because int might match the return type of a GCC
24485 builtin and then its argument prototype would still apply. */
24498 for ac_lib in '' md5 md; do
24499 if test -z "$ac_lib"; then
24500 ac_res="none required"
24503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24505 if ac_fn_c_try_link "$LINENO"; then :
24506 ac_cv_search_MD5Init=$ac_res
24508 rm -f core conftest.err conftest.$ac_objext \
24510 if ${ac_cv_search_MD5Init+:} false; then :
24514 if ${ac_cv_search_MD5Init+:} false; then :
24517 ac_cv_search_MD5Init=no
24519 rm conftest.$ac_ext
24520 LIBS=$ac_func_search_save_LIBS
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
24523 $as_echo "$ac_cv_search_MD5Init" >&6; }
24524 ac_res=$ac_cv_search_MD5Init
24525 if test "$ac_res" != no; then :
24526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24530 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
24532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24535 cat >>confdefs.h <<_ACEOF
24536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
24544 $as_echo_n "checking for SIGIO... " >&6; }
24545 if ${ntp_cv_hdr_def_sigio+:} false; then :
24546 $as_echo_n "(cached) " >&6
24548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24549 /* end confdefs.h. */
24551 #include <signal.h>
24558 if ac_fn_c_try_cpp "$LINENO"; then :
24559 ntp_cv_hdr_def_sigio=yes
24561 ntp_cv_hdr_def_sigio=no
24564 rm -f conftest.err conftest.i conftest.$ac_ext
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
24568 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
24571 $as_echo_n "checking if we want to use SIGIO... " >&6; }
24573 case "$ntp_cv_hdr_def_sigio" in
24577 alpha*-dec-osf4*|alpha*-dec-osf5*)
24622 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24626 $as_echo "$ans" >&6; }
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
24629 $as_echo_n "checking for SIGPOLL... " >&6; }
24630 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
24631 $as_echo_n "(cached) " >&6
24633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24634 /* end confdefs.h. */
24636 #include <signal.h>
24643 if ac_fn_c_try_cpp "$LINENO"; then :
24644 ntp_cv_hdr_def_sigpoll=yes
24646 ntp_cv_hdr_def_sigpoll=no
24649 rm -f conftest.err conftest.i conftest.$ac_ext
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
24653 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
24656 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
24658 case "$ntp_cv_hdr_def_sigpoll" in
24677 # XXX Only verified thru AIX6
24715 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24719 $as_echo "$ans" >&6; }
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
24722 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
24724 case "$ntp_cv_hdr_def_sigpoll" in
24743 # XXX Only verified thru AIX6
24778 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24782 $as_echo "$ans" >&6; }
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
24785 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
24786 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
24787 $as_echo_n "(cached) " >&6
24789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24790 /* end confdefs.h. */
24792 #include <sys/time.h>
24798 gettimeofday(0, 0);
24799 settimeofday(0, 0);
24806 if ac_fn_c_try_compile "$LINENO"; then :
24807 ntp_cv_func_Xettimeofday_nargs=2
24809 ntp_cv_func_Xettimeofday_nargs=1
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
24816 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
24817 case "$ntp_cv_func_Xettimeofday_nargs" in
24820 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
24824 for ac_func in settimeofday
24826 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
24827 if test "x$ac_cv_func_settimeofday" = xyes; then :
24828 cat >>confdefs.h <<_ACEOF
24829 #define HAVE_SETTIMEOFDAY 1
24835 *-*-mpeix*) ac_cv_func_settimeofday=yes
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
24843 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
24844 ntp_warning='GRONK'
24846 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
24849 ans='clock_settime()'
24852 ntp_warning='But clock_settime() would be better (if we had it)'
24853 ans='settimeofday()'
24856 ntp_warning='Which is the worst of the three'
24862 ntp_warning='Which leaves us with nothing to use!'
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24866 $as_echo "$ans" >&6; }
24867 case "$ntp_warning" in
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
24872 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
24877 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
24879 { __LIBS=; unset __LIBS;}
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
24884 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
24886 # Check whether --with-arlib was given.
24887 if test "${with_arlib+set}" = set; then :
24888 withval=$with_arlib; ans=$withval
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24894 $as_echo "$ans" >&6; }
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5
24899 $as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;}
24903 for ac_prog in gawk mawk nawk awk
24905 # Extract the first word of "$ac_prog", so it can be a program name with args.
24906 set dummy $ac_prog; ac_word=$2
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24908 $as_echo_n "checking for $ac_word... " >&6; }
24909 if ${ac_cv_prog_AWK+:} false; then :
24910 $as_echo_n "(cached) " >&6
24912 if test -n "$AWK"; then
24913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24916 for as_dir in $PATH
24919 test -z "$as_dir" && as_dir=.
24920 for ac_exec_ext in '' $ac_executable_extensions; do
24921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24922 ac_cv_prog_AWK="$ac_prog"
24923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24932 AWK=$ac_cv_prog_AWK
24933 if test -n "$AWK"; then
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24935 $as_echo "$AWK" >&6; }
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24938 $as_echo "no" >&6; }
24942 test -n "$AWK" && break
24945 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24950 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24951 $as_echo_n "(cached) " >&6
24953 cat >conftest.make <<\_ACEOF
24956 @echo '@@@%%%=$(MAKE)=@@@%%%'
24958 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
24960 *@@@%%%=?*=@@@%%%*)
24961 eval ac_cv_prog_make_${ac_make}_set=yes;;
24963 eval ac_cv_prog_make_${ac_make}_set=no;;
24965 rm -f conftest.make
24967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24969 $as_echo "yes" >&6; }
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24973 $as_echo "no" >&6; }
24974 SET_MAKE="MAKE=${MAKE-make}"
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
24982 $as_echo_n "checking whether ln -s works... " >&6; }
24984 if test "$LN_S" = "ln -s"; then
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24986 $as_echo "yes" >&6; }
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
24989 $as_echo "no, using $LN_S" >&6; }
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
24993 $as_echo_n "checking for library containing strerror... " >&6; }
24994 if ${ac_cv_search_strerror+:} false; then :
24995 $as_echo_n "(cached) " >&6
24997 ac_func_search_save_LIBS=$LIBS
24998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25001 /* Override any GCC internal prototype to avoid an error.
25002 Use char because int might match the return type of a GCC
25003 builtin and then its argument prototype would still apply. */
25011 return strerror ();
25016 for ac_lib in '' cposix; do
25017 if test -z "$ac_lib"; then
25018 ac_res="none required"
25021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25023 if ac_fn_c_try_link "$LINENO"; then :
25024 ac_cv_search_strerror=$ac_res
25026 rm -f core conftest.err conftest.$ac_objext \
25028 if ${ac_cv_search_strerror+:} false; then :
25032 if ${ac_cv_search_strerror+:} false; then :
25035 ac_cv_search_strerror=no
25037 rm conftest.$ac_ext
25038 LIBS=$ac_func_search_save_LIBS
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
25041 $as_echo "$ac_cv_search_strerror" >&6; }
25042 ac_res=$ac_cv_search_strerror
25043 if test "$ac_res" != no; then :
25044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25050 # Extract the first word of "perl", so it can be a program name with args.
25051 set dummy perl; ac_word=$2
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25053 $as_echo_n "checking for $ac_word... " >&6; }
25054 if ${ac_cv_path_PATH_PERL+:} false; then :
25055 $as_echo_n "(cached) " >&6
25059 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
25062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25063 for as_dir in $PATH
25066 test -z "$as_dir" && as_dir=.
25067 for ac_exec_ext in '' $ac_executable_extensions; do
25068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25069 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
25070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25080 PATH_PERL=$ac_cv_path_PATH_PERL
25081 if test -n "$PATH_PERL"; then
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
25083 $as_echo "$PATH_PERL" >&6; }
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25086 $as_echo "no" >&6; }
25090 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
25091 # Extract the first word of "test", so it can be a program name with args.
25092 set dummy test; ac_word=$2
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25094 $as_echo_n "checking for $ac_word... " >&6; }
25095 if ${ac_cv_path_PATH_TEST+:} false; then :
25096 $as_echo_n "(cached) " >&6
25100 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
25103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25104 for as_dir in $PATH
25107 test -z "$as_dir" && as_dir=.
25108 for ac_exec_ext in '' $ac_executable_extensions; do
25109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25110 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
25111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25121 PATH_TEST=$ac_cv_path_PATH_TEST
25122 if test -n "$PATH_TEST"; then
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
25124 $as_echo "$PATH_TEST" >&6; }
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25127 $as_echo "no" >&6; }
25131 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
25132 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
25135 # Check whether --with-net-snmp-config was given.
25136 if test "${with_net_snmp_config+set}" = set; then :
25137 withval=$with_net_snmp_config; ans=$withval
25147 ans=net-snmp-config
25152 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
25157 PROG_NET_SNMP_CONFIG=$ans
25158 case "$PROG_NET_SNMP_CONFIG" in
25161 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
25164 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
25165 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25167 $as_echo_n "checking for $ac_word... " >&6; }
25168 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
25169 $as_echo_n "(cached) " >&6
25171 case $PATH_NET_SNMP_CONFIG in
25173 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
25176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177 for as_dir in $PATH
25180 test -z "$as_dir" && as_dir=.
25181 for ac_exec_ext in '' $ac_executable_extensions; do
25182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25183 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25194 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
25195 if test -n "$PATH_NET_SNMP_CONFIG"; then
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25197 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25200 $as_echo "no" >&6; }
25204 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
25208 $as_echo_n "checking for net-snmp-config path... " >&6; }
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25210 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25212 case "$PATH_NET_SNMP_CONFIG" in
25213 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
25214 $as_echo_n "checking for net-snmp version... " >&6; }
25215 if ${ntp_cv_net_snmp_version+:} false; then :
25216 $as_echo_n "(cached) " >&6
25218 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
25222 $as_echo "$ntp_cv_net_snmp_version" >&6; }
25228 ac_link="$ac_link $VX_KERNEL"
25232 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25234 $as_echo_n "checking for library containing openlog... " >&6; }
25235 if ${ac_cv_search_openlog+:} false; then :
25236 $as_echo_n "(cached) " >&6
25238 ac_func_search_save_LIBS=$LIBS
25239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240 /* end confdefs.h. */
25242 /* Override any GCC internal prototype to avoid an error.
25243 Use char because int might match the return type of a GCC
25244 builtin and then its argument prototype would still apply. */
25257 for ac_lib in '' gen syslog; do
25258 if test -z "$ac_lib"; then
25259 ac_res="none required"
25262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25264 if ac_fn_c_try_link "$LINENO"; then :
25265 ac_cv_search_openlog=$ac_res
25267 rm -f core conftest.err conftest.$ac_objext \
25269 if ${ac_cv_search_openlog+:} false; then :
25273 if ${ac_cv_search_openlog+:} false; then :
25276 ac_cv_search_openlog=no
25278 rm conftest.$ac_ext
25279 LIBS=$ac_func_search_save_LIBS
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25282 $as_echo "$ac_cv_search_openlog" >&6; }
25283 ac_res=$ac_cv_search_openlog
25284 if test "$ac_res" != no; then :
25285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25289 # XXX library list will be in ac_cv_search_openlog
25291 # LIBSECCOMP is off by default -- needs testing with all the features
25292 # Please send bug reports to loganaden@gmail.com
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
25294 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
25295 # Check whether --enable-libseccomp was given.
25296 if test "${enable_libseccomp+set}" = set; then :
25297 enableval=$enable_libseccomp; ntp_ok=$enableval
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25304 $as_echo "$ntp_ok" >&6; }
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
25308 $as_echo_n "checking for library containing seccomp_init... " >&6; }
25309 if ${ac_cv_search_seccomp_init+:} false; then :
25310 $as_echo_n "(cached) " >&6
25312 ac_func_search_save_LIBS=$LIBS
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25316 /* Override any GCC internal prototype to avoid an error.
25317 Use char because int might match the return type of a GCC
25318 builtin and then its argument prototype would still apply. */
25322 char seccomp_init ();
25326 return seccomp_init ();
25331 for ac_lib in '' seccomp; do
25332 if test -z "$ac_lib"; then
25333 ac_res="none required"
25336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25338 if ac_fn_c_try_link "$LINENO"; then :
25339 ac_cv_search_seccomp_init=$ac_res
25341 rm -f core conftest.err conftest.$ac_objext \
25343 if ${ac_cv_search_seccomp_init+:} false; then :
25347 if ${ac_cv_search_seccomp_init+:} false; then :
25350 ac_cv_search_seccomp_init=no
25352 rm conftest.$ac_ext
25353 LIBS=$ac_func_search_save_LIBS
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
25356 $as_echo "$ac_cv_search_seccomp_init" >&6; }
25357 ac_res=$ac_cv_search_seccomp_init
25358 if test "$ac_res" != no; then :
25359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25361 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
25366 if test "$cross_compiling" = yes; then :
25367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25369 as_fn_error $? "cannot run test program while cross compiling
25370 See \`config.log' for more details" "$LINENO" 5; }
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h. */
25376 #include <stdlib.h>
25378 #include <sys/prctl.h>
25379 #include <linux/seccomp.h>
25384 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
25396 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
25412 if ac_fn_c_try_run "$LINENO"; then :
25414 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
25418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25419 conftest.$ac_objext conftest.beam conftest.$ac_ext
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25427 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25428 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25429 $as_echo_n "(cached) " >&6
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25435 #define SYSLOG_NAMES
25436 #include <stdlib.h>
25437 #include <syslog.h>
25442 void *fnames; fnames = facilitynames;
25447 if ac_fn_c_try_compile "$LINENO"; then :
25448 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25450 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25455 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25456 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25459 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25464 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25468 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25479 # HMS: Make sure we check for -lrt for clock_* before this...
25480 case "$ac_cv_search_clock_gettime" in
25481 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
25484 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
25485 if ${ac_cv_search_sched_setscheduler+:} false; then :
25486 $as_echo_n "(cached) " >&6
25488 ac_func_search_save_LIBS=$LIBS
25489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490 /* end confdefs.h. */
25492 /* Override any GCC internal prototype to avoid an error.
25493 Use char because int might match the return type of a GCC
25494 builtin and then its argument prototype would still apply. */
25498 char sched_setscheduler ();
25502 return sched_setscheduler ();
25507 for ac_lib in '' rt posix4; do
25508 if test -z "$ac_lib"; then
25509 ac_res="none required"
25512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25514 if ac_fn_c_try_link "$LINENO"; then :
25515 ac_cv_search_sched_setscheduler=$ac_res
25517 rm -f core conftest.err conftest.$ac_objext \
25519 if ${ac_cv_search_sched_setscheduler+:} false; then :
25523 if ${ac_cv_search_sched_setscheduler+:} false; then :
25526 ac_cv_search_sched_setscheduler=no
25528 rm conftest.$ac_ext
25529 LIBS=$ac_func_search_save_LIBS
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
25532 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
25533 ac_res=$ac_cv_search_sched_setscheduler
25534 if test "$ac_res" != no; then :
25535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25542 for ac_header in bstring.h
25544 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
25545 if test "x$ac_cv_header_bstring_h" = xyes; then :
25546 cat >>confdefs.h <<_ACEOF
25547 #define HAVE_BSTRING_H 1
25554 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
25555 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
25557 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
25558 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25559 $as_echo_n "(cached) " >&6
25561 ac_func_search_save_LIBS=$LIBS
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25565 /* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply. */
25571 char DNSServiceRegister ();
25575 return DNSServiceRegister ();
25580 for ac_lib in '' dns_sd; do
25581 if test -z "$ac_lib"; then
25582 ac_res="none required"
25585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25587 if ac_fn_c_try_link "$LINENO"; then :
25588 ac_cv_search_DNSServiceRegister=$ac_res
25590 rm -f core conftest.err conftest.$ac_objext \
25592 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25596 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25599 ac_cv_search_DNSServiceRegister=no
25601 rm conftest.$ac_ext
25602 LIBS=$ac_func_search_save_LIBS
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
25605 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
25606 ac_res=$ac_cv_search_DNSServiceRegister
25607 if test "$ac_res" != no; then :
25608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25610 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
25619 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
25621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25624 cat >>confdefs.h <<_ACEOF
25625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25633 for ac_header in memory.h netdb.h poll.h
25635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25636 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25638 cat >>confdefs.h <<_ACEOF
25639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25646 for ac_header in sgtty.h stdatomic.h
25648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25651 cat >>confdefs.h <<_ACEOF
25652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25660 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25661 if ${ac_cv_header_stdbool_h+:} false; then :
25662 $as_echo_n "(cached) " >&6
25664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h. */
25667 #include <stdbool.h>
25669 "error: bool is not defined"
25672 "error: false is not defined"
25675 "error: false is not 0"
25678 "error: true is not defined"
25681 "error: true is not 1"
25683 #ifndef __bool_true_false_are_defined
25684 "error: __bool_true_false_are_defined is not defined"
25687 struct s { _Bool s: 1; _Bool t; } s;
25689 char a[true == 1 ? 1 : -1];
25690 char b[false == 0 ? 1 : -1];
25691 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25692 char d[(bool) 0.5 == true ? 1 : -1];
25693 /* See body of main program for 'e'. */
25694 char f[(_Bool) 0.0 == false ? 1 : -1];
25696 char h[sizeof (_Bool)];
25697 char i[sizeof s.t];
25698 enum { j = false, k = true, l = false * true, m = true * 256 };
25699 /* The following fails for
25700 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25702 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25703 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25704 /* Catch a bug in an HP-UX C compiler. See
25705 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25706 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25718 /* Refer to every declared value, to avoid compiler optimizations. */
25719 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25720 + !m + !n + !o + !p + !q + !pq);
25726 if ac_fn_c_try_compile "$LINENO"; then :
25727 ac_cv_header_stdbool_h=yes
25729 ac_cv_header_stdbool_h=no
25731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25734 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25735 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25736 if test "x$ac_cv_type__Bool" = xyes; then :
25738 cat >>confdefs.h <<_ACEOF
25739 #define HAVE__BOOL 1
25746 if test $ac_cv_header_stdbool_h = yes; then
25748 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25752 for ac_header in stdlib.h string.h termio.h
25754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25755 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25757 cat >>confdefs.h <<_ACEOF
25758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25765 for ac_header in termios.h timepps.h timex.h unistd.h
25767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25768 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25770 cat >>confdefs.h <<_ACEOF
25771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25781 for ac_header in utmpx.h
25783 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
25784 if test "x$ac_cv_header_utmpx_h" = xyes; then :
25785 cat >>confdefs.h <<_ACEOF
25786 #define HAVE_UTMPX_H 1
25793 case "$ac_cv_header_utmpx_h" in
25797 for ac_header in utmp.h
25799 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
25800 if test "x$ac_cv_header_utmp_h" = xyes; then :
25801 cat >>confdefs.h <<_ACEOF
25802 #define HAVE_UTMP_H 1
25813 for ac_header in utmp.h utmpx.h
25815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25818 cat >>confdefs.h <<_ACEOF
25819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25830 # On Suns only (so far) getpass() truncates the typed password to 8
25831 # characters, but getpassphrase() allows up to 257. Most systems'
25832 # getpass() does not truncate, at least not so as to affect ntpq and
25833 # ntpdc password prompts.
25835 # So check for getpassphrase(), but only on Sun operating systems.
25838 *-*-sunos*|*-*-solaris*)
25839 for ac_func in getpassphrase
25841 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
25842 if test "x$ac_cv_func_getpassphrase" = xyes; then :
25843 cat >>confdefs.h <<_ACEOF
25844 #define HAVE_GETPASSPHRASE 1
25853 for ac_header in net/if6.h
25855 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
25856 if test "x$ac_cv_header_net_if6_h" = xyes; then :
25857 cat >>confdefs.h <<_ACEOF
25858 #define HAVE_NET_IF6_H 1
25865 for ac_header in net/route.h
25867 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
25868 #include <sys/types.h>
25869 #include <sys/socket.h>
25870 #include <net/if.h>
25873 if test "x$ac_cv_header_net_route_h" = xyes; then :
25874 cat >>confdefs.h <<_ACEOF
25875 #define HAVE_NET_ROUTE_H 1
25883 for ac_header in netinfo/ni.h
25885 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
25886 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_NETINFO_NI_H 1
25895 case "$ac_cv_header_netinfo_ni_h" in
25898 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
25901 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
25903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25906 cat >>confdefs.h <<_ACEOF
25907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25918 for ac_header in sys/ioctl.h
25920 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25921 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
25922 cat >>confdefs.h <<_ACEOF
25923 #define HAVE_SYS_IOCTL_H 1
25932 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
25934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25935 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25937 cat >>confdefs.h <<_ACEOF
25938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25945 # HMS: Check sys/proc.h and sys/resource.h after some others
25946 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
25948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25951 cat >>confdefs.h <<_ACEOF
25952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25959 case "$ac_cv_header_sched_h" in
25963 for ac_header in sys/sched.h
25965 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
25966 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
25967 cat >>confdefs.h <<_ACEOF
25968 #define HAVE_SYS_SCHED_H 1
25977 # HMS: Check sys/shm.h after some others
25978 for ac_header in sys/select.h sys/signal.h sys/sockio.h
25980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25983 cat >>confdefs.h <<_ACEOF
25984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25991 # HMS: Checked sys/socket.h earlier
25996 for ac_header in machine/soundcard.h sys/soundcard.h
25998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26001 cat >>confdefs.h <<_ACEOF
26002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26011 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
26013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26016 cat >>confdefs.h <<_ACEOF
26017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26024 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
26026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26029 cat >>confdefs.h <<_ACEOF
26030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26039 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
26041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26044 cat >>confdefs.h <<_ACEOF
26045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26054 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
26056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26058 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26059 cat >>confdefs.h <<_ACEOF
26060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26070 case "$ac_cv_header_stdatomic_h" in
26072 for ac_func in atomic_thread_fence
26074 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
26075 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
26076 cat >>confdefs.h <<_ACEOF
26077 #define HAVE_ATOMIC_THREAD_FENCE 1
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
26084 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
26085 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
26086 $as_echo_n "(cached) " >&6
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26091 #include <stdatomic.h>
26097 atomic_thread_fence(memory_order_seq_cst);
26103 ntp_cv_func_atomic_thread_fence=yes
26105 if ac_fn_c_try_compile "$LINENO"; then :
26106 ntp_cv_func_atomic_thread_fence=no
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
26113 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
26122 for ac_func in ntp_adjtime ntp_gettime
26124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26126 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26127 cat >>confdefs.h <<_ACEOF
26128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26139 case "$ac_cv_func_ntp_gettime" in
26143 for ac_func in __ntp_gettime
26145 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
26146 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
26147 cat >>confdefs.h <<_ACEOF
26148 #define HAVE___NTP_GETTIME 1
26154 case "$ac_cv_func___ntp_gettime" in
26157 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
26160 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
26165 for ac_func in adjtimex
26167 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
26168 if test "x$ac_cv_func_adjtimex" = xyes; then :
26169 cat >>confdefs.h <<_ACEOF
26170 #define HAVE_ADJTIMEX 1
26176 case "$ac_cv_func_adjtimex" in
26179 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
26182 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26187 for ac_func in __adjtimex
26189 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
26190 if test "x$ac_cv_func___adjtimex" = xyes; then :
26191 cat >>confdefs.h <<_ACEOF
26192 #define HAVE___ADJTIMEX 1
26198 case "$ac_cv_func___adjtimex" in
26201 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
26204 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26207 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
26210 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
26217 case "$have_adjtimex" in
26219 # nlist stuff is only needed for tickadj.
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
26223 $as_echo_n "checking for library containing nlist... " >&6; }
26224 if ${ac_cv_search_nlist+:} false; then :
26225 $as_echo_n "(cached) " >&6
26227 ac_func_search_save_LIBS=$LIBS
26228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h. */
26231 /* Override any GCC internal prototype to avoid an error.
26232 Use char because int might match the return type of a GCC
26233 builtin and then its argument prototype would still apply. */
26246 for ac_lib in '' elf ld mld; do
26247 if test -z "$ac_lib"; then
26248 ac_res="none required"
26251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26253 if ac_fn_c_try_link "$LINENO"; then :
26254 ac_cv_search_nlist=$ac_res
26256 rm -f core conftest.err conftest.$ac_objext \
26258 if ${ac_cv_search_nlist+:} false; then :
26262 if ${ac_cv_search_nlist+:} false; then :
26265 ac_cv_search_nlist=no
26267 rm conftest.$ac_ext
26268 LIBS=$ac_func_search_save_LIBS
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
26271 $as_echo "$ac_cv_search_nlist" >&6; }
26272 ac_res=$ac_cv_search_nlist
26273 if test "$ac_res" != no; then :
26274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26278 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
26280 $as_echo_n "checking for library containing kvm_open... " >&6; }
26281 if ${ac_cv_search_kvm_open+:} false; then :
26282 $as_echo_n "(cached) " >&6
26284 ac_func_search_save_LIBS=$LIBS
26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286 /* end confdefs.h. */
26288 /* Override any GCC internal prototype to avoid an error.
26289 Use char because int might match the return type of a GCC
26290 builtin and then its argument prototype would still apply. */
26298 return kvm_open ();
26303 for ac_lib in '' kvm; do
26304 if test -z "$ac_lib"; then
26305 ac_res="none required"
26308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26310 if ac_fn_c_try_link "$LINENO"; then :
26311 ac_cv_search_kvm_open=$ac_res
26313 rm -f core conftest.err conftest.$ac_objext \
26315 if ${ac_cv_search_kvm_open+:} false; then :
26319 if ${ac_cv_search_kvm_open+:} false; then :
26322 ac_cv_search_kvm_open=no
26324 rm conftest.$ac_ext
26325 LIBS=$ac_func_search_save_LIBS
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
26328 $as_echo "$ac_cv_search_kvm_open" >&6; }
26329 ac_res=$ac_cv_search_kvm_open
26330 if test "$ac_res" != no; then :
26331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26334 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
26335 for ac_header in nlist.h sys/var.h
26337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26338 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26340 cat >>confdefs.h <<_ACEOF
26341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26348 case "$ac_cv_header_nlist_h" in
26351 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
26354 $as_echo_n "checking for n_un in struct nlist... " >&6; }
26355 if ${ntp_cv_struct_nlist_n_un+:} false; then :
26356 $as_echo_n "(cached) " >&6
26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h. */
26374 ntp_cv_struct_nlist_n_un=yes
26376 if ac_fn_c_try_compile "$LINENO"; then :
26377 ntp_cv_struct_nlist_n_un=no
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
26384 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
26385 case "$ntp_cv_struct_nlist_n_un" in
26388 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
26393 LDADD_NLIST="$LIBS"
26395 { saved_LIBS=; unset saved_LIBS;}
26398 for ac_header in sys/proc.h
26400 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
26401 #ifdef HAVE_SYS_TYPES_H
26402 # include <sys/types.h>
26404 #ifdef HAVE_SYS_TIME_H
26405 # include <sys/time.h>
26409 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
26410 cat >>confdefs.h <<_ACEOF
26411 #define HAVE_SYS_PROC_H 1
26419 for ac_header in sys/resource.h
26421 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
26422 #ifdef HAVE_SYS_TIME_H
26423 # include <sys/time.h>
26427 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
26428 cat >>confdefs.h <<_ACEOF
26429 #define HAVE_SYS_RESOURCE_H 1
26437 for ac_header in sys/shm.h
26439 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
26440 #ifdef HAVE_SYS_TYPES_H
26441 # include <sys/types.h>
26443 #ifdef HAVE_SYS_IPC_H
26444 # include <sys/ipc.h>
26448 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
26449 cat >>confdefs.h <<_ACEOF
26450 #define HAVE_SYS_SHM_H 1
26458 for ac_header in sys/timex.h
26460 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
26461 #ifdef HAVE_SYS_TIME_H
26462 # include <sys/time.h>
26466 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_SYS_TIMEX_H 1
26478 # We could do a cv check here, but is it worth it?
26480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h. */
26483 #include <sys/socket.h>
26485 #include "Bletch: AF_UNSPEC is undefined!"
26488 #include "Bletch: AF_UNSPEC != 0"
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
26495 $as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
26501 if ac_fn_c_try_compile "$LINENO"; then :
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26507 $as_echo_n "checking return type of signal handlers... " >&6; }
26508 if ${ac_cv_type_signal+:} false; then :
26509 $as_echo_n "(cached) " >&6
26511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512 /* end confdefs.h. */
26513 #include <sys/types.h>
26514 #include <signal.h>
26519 return *(signal (0, 0)) (0) == 1;
26524 if ac_fn_c_try_compile "$LINENO"; then :
26525 ac_cv_type_signal=int
26527 ac_cv_type_signal=void
26529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26532 $as_echo "$ac_cv_type_signal" >&6; }
26534 cat >>confdefs.h <<_ACEOF
26535 #define RETSIGTYPE $ac_cv_type_signal
26539 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26540 if test "x$ac_cv_type_off_t" = xyes; then :
26544 cat >>confdefs.h <<_ACEOF
26545 #define off_t long int
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26551 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26552 if ${ac_cv_struct_tm+:} false; then :
26553 $as_echo_n "(cached) " >&6
26555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556 /* end confdefs.h. */
26557 #include <sys/types.h>
26564 int *p = &tm.tm_sec;
26570 if ac_fn_c_try_compile "$LINENO"; then :
26571 ac_cv_struct_tm=time.h
26573 ac_cv_struct_tm=sys/time.h
26575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26578 $as_echo "$ac_cv_struct_tm" >&6; }
26579 if test $ac_cv_struct_tm = sys/time.h; then
26581 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
26586 $as_echo_n "checking for a fallback value for HZ... " >&6; }
26587 if ${ntp_cv_default_hz+:} false; then :
26588 $as_echo_n "(cached) " >&6
26591 ntp_cv_default_hz=100
26593 alpha*-dec-osf4*|alpha*-dec-osf5*)
26594 ntp_cv_default_hz=1024
26597 ntp_cv_default_hz=256
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
26604 $as_echo "$ntp_cv_default_hz" >&6; }
26606 cat >>confdefs.h <<_ACEOF
26607 #define DEFAULT_HZ $ntp_cv_default_hz
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
26612 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
26613 if ${ntp_cv_override_hz+:} false; then :
26614 $as_echo_n "(cached) " >&6
26617 ntp_cv_override_hz=no
26619 alpha*-dec-osf4*|alpha*-dec-osf5*)
26620 ntp_cv_override_hz=yes
26623 ntp_cv_override_hz=yes
26626 ntp_cv_override_hz=yes
26629 ntp_cv_override_hz=yes
26632 ntp_cv_override_hz=yes
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
26639 $as_echo "$ntp_cv_override_hz" >&6; }
26640 case "$ntp_cv_override_hz" in
26643 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
26650 $as_echo_n "checking for struct rt_msghdr... " >&6; }
26651 if ${ntp_cv_struct_rt_msghdr+:} false; then :
26652 $as_echo_n "(cached) " >&6
26654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26655 /* end confdefs.h. */
26657 #include <sys/types.h>
26658 #include <sys/socket.h>
26659 #include <net/if.h>
26660 #include <net/route.h>
26666 struct rt_msghdr p;
26673 if ac_fn_c_try_compile "$LINENO"; then :
26674 ntp_cv_struct_rt_msghdr=yes
26676 ntp_cv_struct_rt_msghdr=no
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
26683 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
26686 $as_echo_n "checking for struct rtattr... " >&6; }
26687 if ${ntp_cv_rtattr+:} false; then :
26688 $as_echo_n "(cached) " >&6
26690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26691 /* end confdefs.h. */
26693 #include <stddef.h>
26694 #include <sys/socket.h>
26695 #include <linux/rtnetlink.h>
26708 if ac_fn_c_try_compile "$LINENO"; then :
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
26718 $as_echo "$ntp_cv_rtattr" >&6; }
26720 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
26723 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
26725 case "$ntp_cv_rtattr" in
26728 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
26734 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
26735 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
26736 $as_echo_n "(cached) " >&6
26738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26739 /* end confdefs.h. */
26741 #include <signal.h>
26747 struct sigaction act;
26748 act.sa_sigaction = 0;
26755 if ac_fn_c_try_compile "$LINENO"; then :
26756 ntp_cv_struct_sigaction_has_sa_sigaction=yes
26758 ntp_cv_struct_sigaction_has_sa_sigaction=no
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
26765 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
26766 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
26769 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
26774 $as_echo_n "checking for struct ppsclockev... " >&6; }
26775 if ${ntp_cv_struct_ppsclockev+:} false; then :
26776 $as_echo_n "(cached) " >&6
26778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h. */
26781 #ifdef HAVE_SYS_TYPES_H
26782 # include <sys/types.h>
26784 #ifdef HAVE_SYS_TERMIOS_H
26785 # include <sys/termios.h>
26787 #ifdef HAVE_SYS_TIME_H
26788 # include <sys/time.h>
26790 #ifdef HAVE_SYS_PPSCLOCK_H
26791 # include <sys/ppsclock.h>
26798 extern struct ppsclockev *pce;
26799 return pce->serial;
26806 if ac_fn_c_try_compile "$LINENO"; then :
26807 ntp_cv_struct_ppsclockev=yes
26809 ntp_cv_struct_ppsclockev=no
26812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
26816 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
26817 case "$ntp_cv_struct_ppsclockev" in
26820 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
26824 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
26827 $as_echo_n "checking for struct snd_size... " >&6; }
26828 if ${ntp_cv_struct_snd_size+:} false; then :
26829 $as_echo_n "(cached) " >&6
26831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832 /* end confdefs.h. */
26834 #ifdef HAVE_MACHINE_SOUNDCARD_H
26835 # include <machine/soundcard.h>
26837 #ifdef HAVE_SYS_SOUNDCARD_H
26838 # include <sys/soundcard.h>
26845 extern struct snd_size *ss;
26846 return ss->rec_size;
26853 if ac_fn_c_try_compile "$LINENO"; then :
26854 ntp_cv_struct_snd_size=yes
26856 ntp_cv_struct_snd_size=no
26859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
26863 $as_echo "$ntp_cv_struct_snd_size" >&6; }
26864 case "$ntp_cv_struct_snd_size" in
26867 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
26873 $as_echo_n "checking struct clockinfo for hz... " >&6; }
26874 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26875 $as_echo_n "(cached) " >&6
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26880 #include <sys/time.h>
26886 extern struct clockinfo *pc;
26894 if ac_fn_c_try_compile "$LINENO"; then :
26895 ntp_cv_struct_clockinfo_has_hz=yes
26897 ntp_cv_struct_clockinfo_has_hz=no
26900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26904 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26905 case "$ntp_cv_struct_clockinfo_has_hz" in
26908 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
26913 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
26914 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26915 $as_echo_n "(cached) " >&6
26917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918 /* end confdefs.h. */
26920 #include <sys/time.h>
26926 extern struct clockinfo *pc;
26927 return pc->tickadj;
26934 if ac_fn_c_try_compile "$LINENO"; then :
26935 ntp_cv_struct_clockinfo_has_hz=yes
26937 ntp_cv_struct_clockinfo_has_hz=no
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26944 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26945 case "$ntp_cv_struct_clockinfo_has_hz" in
26948 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26952 case "$ntp_cv_struct_ntptimeval" in
26954 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
26955 #ifdef HAVE_SYS_TIME_H
26956 # include <sys/time.h>
26958 # ifdef HAVE_TIME_H
26962 #ifdef HAVE_SYS_TIMEX_H
26963 # include <sys/timex.h>
26965 # ifdef HAVE_TIMEX_H
26966 # include <timex.h>
26972 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
26974 cat >>confdefs.h <<_ACEOF
26975 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
26985 for ac_func in arc4random_buf
26987 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
26988 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
26989 cat >>confdefs.h <<_ACEOF
26990 #define HAVE_ARC4RANDOM_BUF 1
27000 LIBS="$LIBS $LDADD_LIBNTP"
27001 for ac_func in daemon
27003 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
27004 if test "x$ac_cv_func_daemon" = xyes; then :
27005 cat >>confdefs.h <<_ACEOF
27006 #define HAVE_DAEMON 1
27012 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
27014 { saved_LIBS=; unset saved_LIBS;}
27016 for ac_func in finite
27018 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
27019 if test "x$ac_cv_func_finite" = xyes; then :
27020 cat >>confdefs.h <<_ACEOF
27021 #define HAVE_FINITE 1
27025 for ac_func in isfinite
27027 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
27028 if test "x$ac_cv_func_isfinite" = xyes; then :
27029 cat >>confdefs.h <<_ACEOF
27030 #define HAVE_ISFINITE 1
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
27036 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
27040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h. */
27057 if ac_fn_c_try_link "$LINENO"; then :
27063 rm -f core conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27067 $as_echo "$ans" >&6; }
27070 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
27083 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
27085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27088 cat >>confdefs.h <<_ACEOF
27089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27096 # kvm_open() is only used by tickadj. Also see above.
27097 case "$ac_cv_header_kvm_h" in
27099 for ac_func in kvm_open
27101 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
27102 if test "x$ac_cv_func_kvm_open" = xyes; then :
27103 cat >>confdefs.h <<_ACEOF
27104 #define HAVE_KVM_OPEN 1
27115 # Just stubs. Sigh.
27117 *) for ac_func in mkstemp
27119 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
27120 if test "x$ac_cv_func_mkstemp" = xyes; then :
27121 cat >>confdefs.h <<_ACEOF
27122 #define HAVE_MKSTEMP 1
27130 for ac_func in mktime
27132 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
27133 if test "x$ac_cv_func_mktime" = xyes; then :
27134 cat >>confdefs.h <<_ACEOF
27135 #define HAVE_MKTIME 1
27143 # XXX only verified thru AIX6.
27144 # Just a stub. Sigh.
27147 # Just a stub in "old" Irix. Sigh.
27149 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
27151 # # there, but more trouble than it is worth for now (resolver problems)
27154 # Apparently there but not working in QNX. Sigh?
27157 # Just a stub. Sigh.
27159 alpha*-dec-osf4*|alpha*-dec-osf5*)
27160 # mlockall is there, as a #define calling memlk via <sys/mman.h>
27161 # Not easy to test for - cheat.
27162 for ac_func in memlk
27164 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
27165 if test "x$ac_cv_func_memlk" = xyes; then :
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_MEMLK 1
27169 ac_cv_func_mlockall=yes
27173 for ac_func in mlockall
27175 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27176 if test "x$ac_cv_func_mlockall" = xyes; then :
27177 cat >>confdefs.h <<_ACEOF
27178 #define HAVE_MLOCKALL 1
27185 *) for ac_func in mlockall
27187 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27188 if test "x$ac_cv_func_mlockall" = xyes; then :
27189 cat >>confdefs.h <<_ACEOF
27190 #define HAVE_MLOCKALL 1
27198 for ac_func in nice plock pututline pututxline readlink rtprio
27200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27203 cat >>confdefs.h <<_ACEOF
27204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27212 # XXX only verified thru AIX6.
27213 # Just a stub in AIX 4. Sigh.
27216 # Just stubs in solaris2.5. Sigh.
27218 *) for ac_func in sched_setscheduler
27220 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
27221 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
27222 cat >>confdefs.h <<_ACEOF
27223 #define HAVE_SCHED_SETSCHEDULER 1
27231 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
27233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27236 cat >>confdefs.h <<_ACEOF
27237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27243 for ac_func in strdup strerror setrlimit strchr
27245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27248 cat >>confdefs.h <<_ACEOF
27249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27257 # XXX only verified thru AIX6.
27258 # Just stubs. Sigh.
27261 # Just stubs. Sigh.
27264 # Just stubs. Sigh.
27267 # Just stubs. Sigh.
27270 for ac_func in timer_create
27272 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
27273 if test "x$ac_cv_func_timer_create" = xyes; then :
27274 cat >>confdefs.h <<_ACEOF
27275 #define HAVE_TIMER_CREATE 1
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
27287 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
27288 if ${ntp_cv_rlimit_memlock+:} false; then :
27289 $as_echo_n "(cached) " >&6
27291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h. */
27294 #ifdef HAVE_SYS_TYPES_H
27295 # include <sys/types.h>
27297 #ifdef HAVE_SYS_TIME_H
27298 # include <sys/time.h>
27300 #ifdef HAVE_SYS_RESOURCE_H
27301 # include <sys/resource.h>
27308 getrlimit(RLIMIT_MEMLOCK, 0);
27315 if ac_fn_c_try_compile "$LINENO"; then :
27316 ntp_cv_rlimit_memlock=yes
27318 ntp_cv_rlimit_memlock=no
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
27325 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
27328 ntp_dflt_rlimit_memlock="-1" ;;
27329 *) ntp_dflt_rlimit_memlock="32" ;;
27331 case "$ntp_cv_rlimit_memlock" in
27334 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
27338 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
27339 if ${ntp_cv_rlimit_stack+:} false; then :
27340 $as_echo_n "(cached) " >&6
27342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27343 /* end confdefs.h. */
27345 #ifdef HAVE_SYS_TYPES_H
27346 # include <sys/types.h>
27348 #ifdef HAVE_SYS_TIME_H
27349 # include <sys/time.h>
27351 #ifdef HAVE_SYS_RESOURCE_H
27352 # include <sys/resource.h>
27359 getrlimit(RLIMIT_STACK, 0);
27366 if ac_fn_c_try_compile "$LINENO"; then :
27367 ntp_cv_rlimit_stack=yes
27369 ntp_cv_rlimit_stack=no
27372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
27376 $as_echo "$ntp_cv_rlimit_stack" >&6; }
27377 case "$ntp_cv_rlimit_stack" in
27380 HAVE_RLIMIT_STACK=" stacksize 50"
27383 # HMS: Only if we are doing the MLOCKALL stuff...
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
27385 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
27387 # Check whether --with-stack-limit was given.
27388 if test "${with_stack_limit+set}" = set; then :
27389 withval=$with_stack_limit; ans=$withval
27407 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27411 $as_echo "$ans" >&6; }
27413 cat >>confdefs.h <<_ACEOF
27414 #define DFLT_RLIMIT_STACK $ans
27418 # HMS: only if we have RLIMIT_MEMLOCK
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
27420 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
27422 # Check whether --with-memlock was given.
27423 if test "${with_memlock+set}" = set; then :
27424 withval=$with_memlock; ans=$withval
27432 ans=$ntp_dflt_rlimit_memlock
27435 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27439 $as_echo "$ans" >&6; }
27441 cat >>confdefs.h <<_ACEOF
27442 #define DFLT_RLIMIT_MEMLOCK $ans
27448 # some OSes prefer _exit() in forked children to exit()
27449 for ac_func in _exit
27451 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
27452 if test "x$ac_cv_func__exit" = xyes; then :
27453 cat >>confdefs.h <<_ACEOF
27454 #define HAVE__EXIT 1
27460 ntp_worker_child_exit=exit
27461 case "$ac_cv_func__exit::$host_os" in
27463 ntp_worker_child_exit=_exit
27466 ntp_worker_child_exit=_exit
27470 cat >>confdefs.h <<_ACEOF
27471 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
27475 for ac_func in umask uname updwtmp updwtmpx
27477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27480 cat >>confdefs.h <<_ACEOF
27481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27490 # http://bugs.ntp.org/737
27491 case "$ac_cv_func_recvmsg" in
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
27494 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
27495 if ${ntp_cv_struct_iovec_help+:} false; then :
27496 $as_echo_n "(cached) " >&6
27500 for ntp_cv_struct_iovec_help in '0' '1'; do
27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h. */
27504 #ifdef HAVE_SYS_TYPES_H
27505 # include <sys/types.h>
27507 #ifdef HAVE_SYS_SOCKET_H
27508 # include <sys/socket.h>
27510 #if $ntp_cv_struct_iovec_help
27511 # include <sys/uio.h>
27526 x = recvmsg(s, &mh, flags);
27534 if ac_fn_c_try_compile "$LINENO"; then :
27535 compiled=yes ; break 1
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 case "$compiled" in
27541 ntp_cv_struct_iovec_help=0
27543 { compiled=; unset compiled;}
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
27548 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
27549 case "$ntp_cv_struct_iovec_help" in
27552 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
27558 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
27559 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
27560 $as_echo_n "(cached) " >&6
27562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27563 /* end confdefs.h. */
27565 #ifdef HAVE_SYS_TYPES_H
27566 # include <sys/types.h>
27568 #ifdef HAVE_UNISTD_H
27569 # include <unistd.h>
27583 if ac_fn_c_try_compile "$LINENO"; then :
27584 ntp_cv_func_setpgrp_nargs=2
27586 ntp_cv_func_setpgrp_nargs=0
27589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
27593 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
27594 case "$ntp_cv_func_setpgrp_nargs" in
27597 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
27602 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
27603 if ${ntp_cv_decl_errno+:} false; then :
27604 $as_echo_n "(cached) " >&6
27606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607 /* end confdefs.h. */
27609 #ifdef HAVE_ERRNO_H
27610 # include <errno.h>
27624 if ac_fn_c_try_compile "$LINENO"; then :
27625 ntp_cv_decl_errno=no
27627 ntp_cv_decl_errno=yes
27630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
27634 $as_echo "$ntp_cv_decl_errno" >&6; }
27635 case "$ntp_cv_decl_errno" in
27638 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
27643 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
27644 if ${ntp_cv_decl_h_errno+:} false; then :
27645 $as_echo_n "(cached) " >&6
27647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27648 /* end confdefs.h. */
27650 #include <sys/types.h>
27651 #ifdef HAVE_NETINET_IN_H
27652 # include <netinet/in.h>
27654 #ifdef HAVE_ARPA_NAMESER_H
27655 # include <arpa/nameser.h>
27657 #ifdef HAVE_NETDB_H
27658 # include <netdb.h>
27660 #ifdef HAVE_RESOLV_H
27661 # include <resolv.h>
27668 extern int h_errno;
27675 if ac_fn_c_try_compile "$LINENO"; then :
27676 ntp_cv_decl_h_errno=yes
27678 ntp_cv_decl_h_errno=no
27681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
27685 $as_echo "$ntp_cv_decl_h_errno" >&6; }
27686 case "$ntp_cv_decl_h_errno" in
27689 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
27694 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
27695 if ${ntp_cv_decl_syscall+:} false; then :
27696 $as_echo_n "(cached) " >&6
27698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27699 /* end confdefs.h. */
27701 #ifdef HAVE_SYS_TYPES_H
27702 # include <sys/types.h>
27704 #ifdef HAVE_UNISTD_H
27705 # include <unistd.h>
27712 extern int syscall (int, ...);
27718 ntp_cv_decl_syscall=yes
27720 if ac_fn_c_try_compile "$LINENO"; then :
27721 ntp_cv_decl_syscall=no
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
27728 $as_echo "$ntp_cv_decl_syscall" >&6; }
27729 case "$ntp_cv_decl_syscall" in
27732 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
27739 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
27740 # Needed for XLC under AIX 4.3.2
27744 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27747 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
27750 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27753 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27756 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27759 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27762 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27767 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27770 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
27775 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27780 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27783 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27786 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27789 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27792 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27795 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27798 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27801 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27804 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27807 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27810 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27813 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27816 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27819 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27822 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27825 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27830 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27833 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
27838 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27845 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27848 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
27851 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27854 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27857 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27860 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27863 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27866 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27869 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27872 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27875 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27878 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27881 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
27883 case "`basename $ac_cv_prog_CC`" in
27886 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27891 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27894 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27897 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27900 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27903 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27906 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
27909 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
27914 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27917 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27920 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
27923 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27926 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27929 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27932 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
27935 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27938 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27941 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27944 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27947 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
27950 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27953 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27961 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
27969 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
27974 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
27975 if ${ntp_cv_var_open_bcast_socket+:} false; then :
27976 $as_echo_n "(cached) " >&6
27984 ntp_cv_var_open_bcast_socket=$ans
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
27989 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
27990 case "$ntp_cv_var_open_bcast_socket" in
27993 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
28000 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
28005 $as_echo_n "checking if process groups are set with -pid... " >&6; }
28006 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
28007 $as_echo_n "(cached) " >&6
28030 ntp_cv_arg_setpgrp_negpid=$ans
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
28035 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
28036 case "$ntp_cv_arg_setpgrp_negpid" in
28039 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
28044 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
28045 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
28046 $as_echo_n "(cached) " >&6
28056 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
28057 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
28058 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
28059 # in $host may be followed by "aout", "ecoff", or "elf".
28060 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
28063 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
28079 ntp_cv_func_ctty_for_f_setown=$ans
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
28084 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
28085 case "$ntp_cv_func_ctty_for_f_setown" in
28088 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
28093 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
28094 if ${ntp_cv_os_routeupdates+:} false; then :
28095 $as_echo_n "(cached) " >&6
28106 ntp_cv_os_routeupdates=$ans
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
28111 $as_echo "$ntp_cv_os_routeupdates" >&6; }
28112 case "$ntp_cv_os_routeupdates" in
28115 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
28120 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
28121 if ${ntp_cv_os_wildcardreuse+:} false; then :
28122 $as_echo_n "(cached) " >&6
28132 ntp_cv_os_wildcardreuse=$ans
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
28137 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
28138 case "$ntp_cv_os_wildcardreuse" in
28141 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
28148 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
28153 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
28154 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
28155 $as_echo_n "(cached) " >&6
28164 ntp_cv_var_min_rec_tickadj=$ans
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
28169 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
28170 case "$ntp_cv_var_min_rec_tickadj" in
28175 cat >>confdefs.h <<_ACEOF
28176 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
28182 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
28183 if ${ntp_cv_no_parenb_ignpar+:} false; then :
28184 $as_echo_n "(cached) " >&6
28195 i?86-*-freebsd[123].*)
28204 ntp_cv_no_parenb_ignpar=$ans
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
28209 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
28210 case "$ntp_cv_no_parenb_ignpar" in
28213 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
28218 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
28219 # Check whether --enable-debug-timing was given.
28220 if test "${enable_debug_timing+set}" = set; then :
28221 enableval=$enable_debug_timing; ntp_ok=$enableval
28230 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28234 $as_echo "$ntp_ok" >&6; }
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
28237 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
28238 # Check whether --enable-dst-minutes was given.
28239 if test "${enable_dst_minutes+set}" = set; then :
28240 enableval=$enable_dst_minutes; ans=$enableval
28247 cat >>confdefs.h <<_ACEOF
28248 #define DSTMINUTES $ans
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28252 $as_echo "$ans" >&6; }
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
28255 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
28256 # Check whether --enable-ignore-dns-errors was given.
28257 if test "${enable_ignore_dns_errors+set}" = set; then :
28258 enableval=$enable_ignore_dns_errors; ans=$enableval
28267 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28271 $as_echo "$ans" >&6; }
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
28274 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
28275 if ${ntp_cv_var_ntp_syscalls+:} false; then :
28276 $as_echo_n "(cached) " >&6
28279 ntp_cv_var_ntp_syscalls=no
28280 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
28282 ntp_cv_var_ntp_syscalls=libc
28285 ntp_cv_var_ntp_syscalls=inline
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28291 #include <sys/syscall.h>
28292 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
28297 if ac_fn_c_try_cpp "$LINENO"; then :
28298 ntp_cv_var_ntp_syscalls=kernel
28301 rm -f conftest.err conftest.i conftest.$ac_ext
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
28308 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
28309 case "$ntp_cv_var_ntp_syscalls" in
28312 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
28317 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
28323 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
28324 if ${ntp_cv_var_sta_fll+:} false; then :
28325 $as_echo_n "(cached) " >&6
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h. */
28330 #include <sys/timex.h>
28336 if ac_fn_c_try_cpp "$LINENO"; then :
28337 ntp_cv_var_sta_fll=yes
28339 ntp_cv_var_sta_fll=no
28342 rm -f conftest.err conftest.i conftest.$ac_ext
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
28346 $as_echo "$ntp_cv_var_sta_fll" >&6; }
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
28349 $as_echo_n "checking if we have kernel PLL support... " >&6; }
28350 if ${ntp_cv_var_kernel_pll+:} false; then :
28351 $as_echo_n "(cached) " >&6
28353 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
28355 ntp_cv_var_kernel_pll=no
28357 *) ntp_cv_var_kernel_pll=yes
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
28364 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
28365 case "$ntp_cv_var_kernel_pll" in
28368 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
28373 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
28374 if ${ntp_cv_size_returned_in_buffer+:} false; then :
28375 $as_echo_n "(cached) " >&6
28390 ntp_cv_size_returned_in_buffer=$ans
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
28395 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
28396 case "$ntp_cv_size_returned_in_buffer" in
28399 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
28403 # Check for ioctls TIOCGPPSEV
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
28405 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
28406 case "$ac_cv_header_termios_h" in
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h. */
28411 #include <termios.h>
28417 if ac_fn_c_try_cpp "$LINENO"; then :
28423 rm -f conftest.err conftest.i conftest.$ac_ext
28432 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28436 $as_echo "$ntp_ok" >&6; }
28438 # Check for ioctls TIOCSPPS
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
28440 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
28441 case "$ac_cv_header_termios_h" in
28443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h. */
28446 #include <termios.h>
28452 if ac_fn_c_try_cpp "$LINENO"; then :
28458 rm -f conftest.err conftest.i conftest.$ac_ext
28467 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28471 $as_echo "$ntp_ok" >&6; }
28473 # Check for ioctls CIOGETEV
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
28475 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
28476 case "$ac_cv_header_sys_ppsclock_h" in
28478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28479 /* end confdefs.h. */
28481 #include <sys/ppsclock.h>
28487 if ac_fn_c_try_cpp "$LINENO"; then :
28493 rm -f conftest.err conftest.i conftest.$ac_ext
28502 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28506 $as_echo "$ntp_ok" >&6; }
28508 # ATOM/PPSAPI stuff.
28512 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
28514 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
28515 # The PPSAPI needs struct timespec.
28516 # The PPSAPI also needs a timepps header.
28518 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
28520 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
28521 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
28523 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
28528 ntp_ripe_ncc_ok=yes
28534 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
28535 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
28536 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
28541 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
28544 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
28545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546 /* end confdefs.h. */
28548 #include <sys/time.h>
28550 #include <sys/ppsclock.h>
28551 #include <linux/serial.h>
28553 #ifndef TIOCGSERIAL
28556 #ifndef TIOCSSERIAL
28559 #ifndef ASYNC_PPS_CD_POS
28562 #ifndef ASYNC_PPS_CD_NEG
28570 if ac_fn_c_try_cpp "$LINENO"; then :
28576 rm -f conftest.err conftest.i conftest.$ac_ext
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28578 $as_echo "$ntp_ok" >&6; }
28587 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
28591 # Check for SHMEM_STATUS support
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
28593 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
28594 case "$ac_cv_header_sys_mman_h" in
28605 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28609 $as_echo "$ntp_ok" >&6; }
28613 # HPUX only, and by explicit request
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
28615 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
28616 # Check whether --enable-BANCOMM was given.
28617 if test "${enable_BANCOMM+set}" = set; then :
28618 enableval=$enable_BANCOMM; ntp_ok=$enableval
28628 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28633 $as_echo "$ntp_ok" >&6; }
28634 case "$ntp_ok$host" in
28636 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28637 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28640 #HPUX only, and only by explicit request
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
28642 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
28643 # Check whether --enable-GPSVME was given.
28644 if test "${enable_GPSVME+set}" = set; then :
28645 enableval=$enable_GPSVME; ntp_ok=$enableval
28655 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28660 $as_echo "$ntp_ok" >&6; }
28661 case "$ntp_ok$host" in
28663 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28664 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
28668 $as_echo_n "checking for PCL720 clock support... " >&6; }
28669 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
28672 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28681 $as_echo "$ans" >&6; }
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
28684 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
28685 # Check whether --enable-all-clocks was given.
28686 if test "${enable_all_clocks+set}" = set; then :
28687 enableval=$enable_all_clocks; ntp_eac=$enableval
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
28694 $as_echo "$ntp_eac" >&6; }
28696 # HMS: Should we also require ntp_parse_ok?
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
28698 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
28699 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
28707 $as_echo "$ntp_canparse" >&6; }
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
28710 $as_echo_n "checking if we have support for audio clocks... " >&6; }
28711 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
28715 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
28718 *) ntp_canaudio=no ;;
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
28721 $as_echo "$ntp_canaudio" >&6; }
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
28724 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
28725 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
28729 *) ntp_canshm=no ;;
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
28732 $as_echo "$ntp_canshm" >&6; }
28734 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
28736 $as_echo_n "checking for termios modem control... " >&6; }
28737 if ${ntp_cv_modem_control+:} false; then :
28738 $as_echo_n "(cached) " >&6
28740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741 /* end confdefs.h. */
28743 #ifdef HAVE_UNISTD_H
28744 # include <unistd.h>
28746 #ifdef HAVE_TERMIOS_H
28747 # include <termios.h>
28749 #ifdef HAVE_SYS_IOCTL_H
28750 # include <sys/ioctl.h>
28757 int dtr = TIOCM_DTR;
28759 ioctl(1, TIOCMBIS, (char *)&dtr);
28766 if ac_fn_c_try_compile "$LINENO"; then :
28767 ntp_cv_modem_control=yes
28769 ntp_cv_modem_control=no
28772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
28776 $as_echo "$ntp_cv_modem_control" >&6; }
28777 case "$ntp_eac::$ntp_cv_modem_control" in
28779 ntp_enable_all_modem_control_clocks=yes
28782 ntp_enable_all_modem_control_clocks=no
28786 # Requires modem control
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
28788 $as_echo_n "checking ACTS modem service... " >&6; }
28789 # Check whether --enable-ACTS was given.
28790 if test "${enable_ACTS+set}" = set; then :
28791 enableval=$enable_ACTS; ntp_ok=$enableval
28793 ntp_ok=$ntp_enable_all_modem_control_clocks
28801 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28806 $as_echo "$ntp_ok" >&6; }
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
28809 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
28810 # Check whether --enable-ARBITER was given.
28811 if test "${enable_ARBITER+set}" = set; then :
28812 enableval=$enable_ARBITER; ntp_ok=$enableval
28822 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28827 $as_echo "$ntp_ok" >&6; }
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
28830 $as_echo_n "checking Arcron MSF receiver... " >&6; }
28831 # Check whether --enable-ARCRON_MSF was given.
28832 if test "${enable_ARCRON_MSF+set}" = set; then :
28833 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
28843 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28848 $as_echo "$ntp_ok" >&6; }
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
28851 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
28852 # Check whether --enable-AS2201 was given.
28853 if test "${enable_AS2201+set}" = set; then :
28854 enableval=$enable_AS2201; ntp_ok=$enableval
28864 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28869 $as_echo "$ntp_ok" >&6; }
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
28872 $as_echo_n "checking ATOM PPS interface... " >&6; }
28873 # Check whether --enable-ATOM was given.
28874 if test "${enable_ATOM+set}" = set; then :
28875 enableval=$enable_ATOM; ntp_ok=$enableval
28881 case "$ntp_atom_ok" in
28888 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28893 $as_echo "$ntp_ok" >&6; }
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
28896 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
28897 # Check whether --enable-CHRONOLOG was given.
28898 if test "${enable_CHRONOLOG+set}" = set; then :
28899 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
28909 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28914 $as_echo "$ntp_ok" >&6; }
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
28917 $as_echo_n "checking CHU modem/decoder... " >&6; }
28918 # Check whether --enable-CHU was given.
28919 if test "${enable_CHU+set}" = set; then :
28920 enableval=$enable_CHU; ntp_ok=$enableval
28930 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28935 $as_echo "$ntp_ok" >&6; }
28936 ntp_refclock_chu=$ntp_ok
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
28939 $as_echo_n "checking CHU audio/decoder... " >&6; }
28940 # Check whether --enable-AUDIO-CHU was given.
28941 if test "${enable_AUDIO_CHU+set}" = set; then :
28942 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
28945 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28954 $as_echo "$ntp_ok" >&6; }
28955 # We used to check for sunos/solaris target...
28956 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
28957 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
28958 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
28963 $as_echo_n "checking Datum Programmable Time System... " >&6; }
28964 # Check whether --enable-DATUM was given.
28965 if test "${enable_DATUM+set}" = set; then :
28966 enableval=$enable_DATUM; ntp_ok=$enableval
28969 case "$ac_cv_header_termios_h" in
28984 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28989 $as_echo "$ntp_ok" >&6; }
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
28992 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
28993 # Check whether --enable-DUMBCLOCK was given.
28994 if test "${enable_DUMBCLOCK+set}" = set; then :
28995 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
29005 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29010 $as_echo "$ntp_ok" >&6; }
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
29013 $as_echo_n "checking Forum Graphic GPS... " >&6; }
29014 # Check whether --enable-FG was given.
29015 if test "${enable_FG+set}" = set; then :
29016 enableval=$enable_FG; ntp_ok=$enableval
29026 $as_echo "#define CLOCK_FG 1" >>confdefs.h
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29031 $as_echo "$ntp_ok" >&6; }
29033 # Requires modem control
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
29035 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
29036 # Check whether --enable-HEATH was given.
29037 if test "${enable_HEATH+set}" = set; then :
29038 enableval=$enable_HEATH; ntp_ok=$enableval
29040 ntp_ok=$ntp_enable_all_modem_control_clocks
29048 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29053 $as_echo "$ntp_ok" >&6; }
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
29056 $as_echo_n "checking for hopf serial clock device... " >&6; }
29057 # Check whether --enable-HOPFSERIAL was given.
29058 if test "${enable_HOPFSERIAL+set}" = set; then :
29059 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
29069 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29074 $as_echo "$ntp_ok" >&6; }
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
29077 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
29078 # Check whether --enable-HOPFPCI was given.
29079 if test "${enable_HOPFPCI+set}" = set; then :
29080 enableval=$enable_HOPFPCI; ntp_ok=$enableval
29090 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29095 $as_echo "$ntp_ok" >&6; }
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
29098 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
29099 # Check whether --enable-HPGPS was given.
29100 if test "${enable_HPGPS+set}" = set; then :
29101 enableval=$enable_HPGPS; ntp_ok=$enableval
29111 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29116 $as_echo "$ntp_ok" >&6; }
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
29119 $as_echo_n "checking IRIG audio decoder... " >&6; }
29120 # Check whether --enable-IRIG was given.
29121 if test "${enable_IRIG+set}" = set; then :
29122 enableval=$enable_IRIG; ntp_ok=$enableval
29125 case "$ntp_eac$ntp_canaudio" in
29137 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29142 $as_echo "$ntp_ok" >&6; }
29143 case "$ntp_ok$ntp_canaudio" in
29144 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29145 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
29149 $as_echo_n "checking for JJY receiver... " >&6; }
29150 # Check whether --enable-JJY was given.
29151 if test "${enable_JJY+set}" = set; then :
29152 enableval=$enable_JJY; ntp_ok=$enableval
29162 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29167 $as_echo "$ntp_ok" >&6; }
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
29170 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
29171 # Check whether --enable-JUPITER was given.
29172 if test "${enable_JUPITER+set}" = set; then :
29173 enableval=$enable_JUPITER; ntp_ok=$enableval
29178 case "$ntp_jupiter_ok" in
29185 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29190 $as_echo "$ntp_ok" >&6; }
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
29193 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
29194 # Check whether --enable-LEITCH was given.
29195 if test "${enable_LEITCH+set}" = set; then :
29196 enableval=$enable_LEITCH; ntp_ok=$enableval
29206 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29211 $as_echo "$ntp_ok" >&6; }
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
29214 $as_echo_n "checking local clock reference... " >&6; }
29215 # Check whether --enable-LOCAL-CLOCK was given.
29216 if test "${enable_LOCAL_CLOCK+set}" = set; then :
29217 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
29227 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29232 $as_echo "$ntp_ok" >&6; }
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
29237 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
29238 # Check whether --enable-MX4200 was given.
29239 if test "${enable_MX4200+set}" = set; then :
29240 enableval=$enable_MX4200; ntp_ok=$enableval
29243 case "$ac_cv_var_ppsclock" in
29259 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29264 $as_echo "$ntp_ok" >&6; }
29265 case "$ntp_ok$host" in
29266 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29267 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
29271 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
29272 # Check whether --enable-NEOCLOCK4X was given.
29273 if test "${enable_NEOCLOCK4X+set}" = set; then :
29274 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
29284 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29289 $as_echo "$ntp_ok" >&6; }
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
29292 $as_echo_n "checking NMEA GPS receiver... " >&6; }
29293 # Check whether --enable-NMEA was given.
29294 if test "${enable_NMEA+set}" = set; then :
29295 enableval=$enable_NMEA; ntp_ok=$enableval
29305 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29310 $as_echo "$ntp_ok" >&6; }
29312 for ac_func in strtoll
29314 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
29315 if test "x$ac_cv_func_strtoll" = xyes; then :
29316 cat >>confdefs.h <<_ACEOF
29317 #define HAVE_STRTOLL 1
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
29324 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
29325 # Check whether --enable-GPSD was given.
29326 if test "${enable_GPSD+set}" = set; then :
29327 enableval=$enable_GPSD; ntp_ok=$enableval
29329 case "$ac_cv_func_strtoll" in
29330 yes) ntp_ok=$ntp_eac ;;
29340 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29345 $as_echo "$ntp_ok" >&6; }
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
29348 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
29349 # Check whether --enable-ONCORE was given.
29350 if test "${enable_ONCORE+set}" = set; then :
29351 enableval=$enable_ONCORE; ntp_ok=$enableval
29357 case "$ntp_oncore_ok" in
29364 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29369 $as_echo "$ntp_ok" >&6; }
29371 # Requires modem control
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
29373 $as_echo_n "checking for Palisade clock... " >&6; }
29374 # Check whether --enable-PALISADE was given.
29375 if test "${enable_PALISADE+set}" = set; then :
29376 enableval=$enable_PALISADE; ntp_ok=$enableval
29378 ntp_ok=$ntp_enable_all_modem_control_clocks
29386 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29391 $as_echo "$ntp_ok" >&6; }
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
29394 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
29395 # Check whether --enable-PCF was given.
29396 if test "${enable_PCF+set}" = set; then :
29397 enableval=$enable_PCF; ntp_ok=$enableval
29407 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29412 $as_echo "$ntp_ok" >&6; }
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
29415 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
29416 # Check whether --enable-PST was given.
29417 if test "${enable_PST+set}" = set; then :
29418 enableval=$enable_PST; ntp_ok=$enableval
29428 $as_echo "#define CLOCK_PST 1" >>confdefs.h
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29433 $as_echo "$ntp_ok" >&6; }
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
29436 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
29437 # Check whether --enable-RIPENCC was given.
29438 if test "${enable_RIPENCC+set}" = set; then :
29439 enableval=$enable_RIPENCC; ntp_ok=$enableval
29445 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
29446 case "$ntp_ripe_ncc_ok" in
29453 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29458 $as_echo "$ntp_ok" >&6; }
29460 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
29461 # For *IX, we need sys/ipc.h and sys/shm.h.
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
29463 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
29464 # Check whether --enable-SHM was given.
29465 if test "${enable_SHM+set}" = set; then :
29466 enableval=$enable_SHM; ntp_ok=$enableval
29469 case "$ntp_eac$ntp_canshm" in
29481 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29486 $as_echo "$ntp_ok" >&6; }
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
29489 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
29490 # Check whether --enable-SPECTRACOM was given.
29491 if test "${enable_SPECTRACOM+set}" = set; then :
29492 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
29502 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29507 $as_echo "$ntp_ok" >&6; }
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
29510 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
29511 # Check whether --enable-TPRO was given.
29512 if test "${enable_TPRO+set}" = set; then :
29513 enableval=$enable_TPRO; ntp_ok=$enableval
29516 case "$ac_cv_header_sys_tpro_h" in
29532 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29537 $as_echo "$ntp_ok" >&6; }
29538 case "$ntp_ok$ac_cv_header_sys_tpro" in
29539 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29540 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29543 # Not on a vax-dec-bsd
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
29545 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
29546 # Check whether --enable-TRUETIME was given.
29547 if test "${enable_TRUETIME+set}" = set; then :
29548 enableval=$enable_TRUETIME; ntp_ok=$enableval
29567 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29572 $as_echo "$ntp_ok" >&6; }
29573 case "$ntp_ok$host" in
29574 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29575 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
29579 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
29580 # Check whether --enable-TT560 was given.
29581 if test "${enable_TT560+set}" = set; then :
29582 enableval=$enable_TT560; ntp_ok=$enableval
29592 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29597 $as_echo "$ntp_ok" >&6; }
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
29600 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
29601 # Check whether --enable-ULINK was given.
29602 if test "${enable_ULINK+set}" = set; then :
29603 enableval=$enable_ULINK; ntp_ok=$enableval
29613 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29618 $as_echo "$ntp_ok" >&6; }
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
29621 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
29622 # Check whether --enable-TSYNCPCI was given.
29623 if test "${enable_TSYNCPCI+set}" = set; then :
29624 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
29642 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29647 $as_echo "$ntp_ok" >&6; }
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
29650 $as_echo_n "checking WWV receiver... " >&6; }
29651 # Check whether --enable-WWV was given.
29652 if test "${enable_WWV+set}" = set; then :
29653 enableval=$enable_WWV; ntp_ok=$enableval
29656 case "$ntp_eac$ntp_canaudio" in
29668 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29673 $as_echo "$ntp_ok" >&6; }
29674 case "$ntp_ok$ntp_canaudio" in
29675 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29676 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
29680 $as_echo_n "checking for Zyfer receiver... " >&6; }
29681 # Check whether --enable-ZYFER was given.
29682 if test "${enable_ZYFER+set}" = set; then :
29683 enableval=$enable_ZYFER; ntp_ok=$enableval
29693 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29698 $as_echo "$ntp_ok" >&6; }
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
29701 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
29702 # Check whether --enable-parse-clocks was given.
29703 if test "${enable_parse_clocks+set}" = set; then :
29704 enableval=$enable_parse_clocks; ntp_eapc=$enableval
29708 yes) ntp_eapc=$ntp_canparse ;;
29711 # Delete the next line one of these days
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
29718 $as_echo "$ntp_eapc" >&6; }
29720 case "$ntp_eac$ntp_eapc$ntp_canparse" in
29722 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
29725 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
29734 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
29735 # Check whether --enable-COMPUTIME was given.
29736 if test "${enable_COMPUTIME+set}" = set; then :
29737 enableval=$enable_COMPUTIME; ntp_ok=$enableval
29748 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29753 $as_echo "$ntp_ok" >&6; }
29754 case "$ntp_ok$ntp_canparse" in
29756 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
29760 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
29761 # Check whether --enable-DCF7000 was given.
29762 if test "${enable_DCF7000+set}" = set; then :
29763 enableval=$enable_DCF7000; ntp_ok=$enableval
29774 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29779 $as_echo "$ntp_ok" >&6; }
29780 case "$ntp_ok$ntp_canparse" in
29782 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
29786 $as_echo_n "checking HOPF 6021 clock... " >&6; }
29787 # Check whether --enable-HOPF6021 was given.
29788 if test "${enable_HOPF6021+set}" = set; then :
29789 enableval=$enable_HOPF6021; ntp_ok=$enableval
29800 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29805 $as_echo "$ntp_ok" >&6; }
29806 case "$ntp_ok$ntp_canparse" in
29808 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
29812 $as_echo_n "checking Meinberg clocks... " >&6; }
29813 # Check whether --enable-MEINBERG was given.
29814 if test "${enable_MEINBERG+set}" = set; then :
29815 enableval=$enable_MEINBERG; ntp_ok=$enableval
29826 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29831 $as_echo "$ntp_ok" >&6; }
29832 case "$ntp_ok$ntp_canparse" in
29834 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
29838 $as_echo_n "checking DCF77 raw time code... " >&6; }
29839 # Check whether --enable-RAWDCF was given.
29840 if test "${enable_RAWDCF+set}" = set; then :
29841 enableval=$enable_RAWDCF; ntp_ok=$enableval
29854 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
29858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29859 $as_echo "$ntp_ok" >&6; }
29860 case "$ntp_ok$ntp_canparse" in
29862 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29865 case "$ntp_rawdcf" in
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
29868 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
29869 if ${ntp_cv_rawdcf_parity+:} false; then :
29870 $as_echo_n "(cached) " >&6
29879 ntp_cv_rawdcf_parity=$ans
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
29884 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
29885 case "$ntp_cv_rawdcf_parity" in
29888 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
29894 $as_echo_n "checking RCC 8000 clock... " >&6; }
29895 # Check whether --enable-RCC8000 was given.
29896 if test "${enable_RCC8000+set}" = set; then :
29897 enableval=$enable_RCC8000; ntp_ok=$enableval
29908 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29913 $as_echo "$ntp_ok" >&6; }
29914 case "$ntp_ok$ntp_canparse" in
29916 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
29920 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
29921 # Check whether --enable-SCHMID was given.
29922 if test "${enable_SCHMID+set}" = set; then :
29923 enableval=$enable_SCHMID; ntp_ok=$enableval
29934 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29939 $as_echo "$ntp_ok" >&6; }
29940 case "$ntp_ok$ntp_canparse" in
29942 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
29946 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
29947 # Check whether --enable-TRIMTAIP was given.
29948 if test "${enable_TRIMTAIP+set}" = set; then :
29949 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
29960 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29965 $as_echo "$ntp_ok" >&6; }
29966 case "$ntp_ok$ntp_canparse" in
29968 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
29972 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
29973 # Check whether --enable-TRIMTSIP was given.
29974 if test "${enable_TRIMTSIP+set}" = set; then :
29975 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
29986 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29991 $as_echo "$ntp_ok" >&6; }
29992 case "$ntp_ok$ntp_canparse" in
29994 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
29998 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
29999 # Check whether --enable-WHARTON was given.
30000 if test "${enable_WHARTON+set}" = set; then :
30001 enableval=$enable_WHARTON; ntp_ok=$enableval
30012 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30017 $as_echo "$ntp_ok" >&6; }
30018 case "$ntp_ok$ntp_canparse" in
30020 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
30024 $as_echo_n "checking VARITEXT clock... " >&6; }
30025 # Check whether --enable-VARITEXT was given.
30026 if test "${enable_VARITEXT+set}" = set; then :
30027 enableval=$enable_VARITEXT; ntp_ok=$enableval
30038 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30043 $as_echo "$ntp_ok" >&6; }
30044 case "$ntp_ok$ntp_canparse" in
30046 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
30050 $as_echo_n "checking SEL240X clock... " >&6; }
30051 # Check whether --enable-SEL240X was given.
30052 if test "${enable_SEL240X+set}" = set; then :
30053 enableval=$enable_SEL240X; ntp_ok=$enableval
30058 if test "$ntp_ok" = "yes"; then
30062 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30066 $as_echo "$ntp_ok" >&6; }
30067 case "$ntp_ok$ntp_canparse" in
30069 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
30079 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
30081 case "$ntp_libparse" in
30085 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
30087 LIBPARSE=../libparse/libparse.a
30088 MAKE_LIBPARSE=libparse.a
30089 # HMS: check_y2k trips the 34 year problem now...
30090 false && MAKE_CHECK_Y2K=check_y2k
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30093 $as_echo "$ans" >&6; }
30103 # Check whether --with-crypto was given.
30104 if test "${with_crypto+set}" = set; then :
30105 withval=$with_crypto;
30109 # Check whether --with-openssl-libdir was given.
30110 if test "${with_openssl_libdir+set}" = set; then :
30111 withval=$with_openssl_libdir;
30115 # Check whether --with-openssl-incdir was given.
30116 if test "${with_openssl_incdir+set}" = set; then :
30117 withval=$with_openssl_incdir;
30121 # Check whether --with-rpath was given.
30122 if test "${with_rpath+set}" = set; then :
30123 withval=$with_rpath;
30128 ntp_openssl_from_pkg_config=no
30130 with_crypto=${with_crypto:-openssl,libcrypto}
30131 case "$with_crypto" in
30133 with_crypto=openssl,libcrypto
30137 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
30139 *:notempty:notgiven:notgiven)
30140 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
30142 $as_echo_n "checking pkg-config for $pkg... " >&6; }
30143 if $PKG_CONFIG --exists $pkg ; then
30144 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
30145 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
30146 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
30147 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
30148 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
30151 ntp_openssl_from_pkg_config=yes
30152 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
30153 case "$ntp_openssl_version" in
30155 *) ntp_openssl_version='(unknown)' ;;
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
30158 $as_echo "yes, version $ntp_openssl_version" >&6; }
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163 $as_echo "no" >&6; }
30166 case "$with_crypto:$ntp_openssl" in
30171 case "${with_rpath-notgiven}" in
30173 # Lame - what to do if we need -Wl... but not -R?
30179 # This may really only be true for gcc
30180 need_dash_Wlrpath=1
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
30193 $as_echo_n "checking for openssl library directory... " >&6; }
30194 with_openssl_libdir=${with_openssl_libdir-notgiven}
30195 case "$with_openssl_libdir" in
30199 with_openssl_libdir=default
30202 with_openssl_libdir=no
30206 case "$with_openssl_libdir" in
30209 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
30210 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
30211 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
30213 case "$with_openssl_libdir" in
30216 *) # Look for libcrypto.a and libssl.a:
30217 for i in $with_openssl_libdir no
30221 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
30224 test -f $i/libcrypto.so -a -f $i/libssl.so && break
30225 test -f $i/libcrypto.a -a -f $i/libssl.a && break
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
30233 $as_echo "$openssl_libdir" >&6; }
30234 case "$openssl_libdir" in
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
30238 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
30242 $as_echo_n "checking for openssl include directory... " >&6; }
30243 with_openssl_incdir=${with_openssl_incdir-notgiven}
30244 case "$with_openssl_incdir" in
30247 with_openssl_incdir="/usr/include /usr/sfw/include"
30248 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
30249 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
30251 case "$with_openssl_incdir" in
30254 *) # look for openssl/evp.h:
30255 for i in $with_openssl_incdir no
30257 test -f $i/openssl/evp.h && break
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
30264 $as_echo "$openssl_incdir" >&6; }
30265 case "$openssl_incdir" in
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
30269 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
30271 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
30278 case "$ntp_openssl" in
30280 # We have OpenSSL inc/lib dirs - use them.
30281 case "$openssl_incdir" in
30285 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
30288 case "$openssl_libdir" in
30292 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
30293 case "$need_dash_r" in
30295 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
30297 case "$need_dash_Wlrpath" in
30299 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
30303 LDADD_NTP="$LDADD_NTP -lcrypto"
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
30308 $as_echo_n "checking if we will use crypto... " >&6; }
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
30310 $as_echo "$ntp_openssl" >&6; }
30312 case "$ntp_openssl" in
30315 $as_echo "#define OPENSSL /**/" >>confdefs.h
30317 case "$VER_SUFFIX" in
30319 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
30324 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
30325 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
30326 NTPO_SAVED_LIBS="$LIBS"
30329 # check for linking with -lcrypto failure, and try -lcrypto -lz.
30330 # Helps m68k-atari-mint
30332 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
30334 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
30336 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
30337 if ${ntp_cv_bare_lcrypto+:} false; then :
30338 $as_echo_n "(cached) " >&6
30340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30341 /* end confdefs.h. */
30343 #include "openssl/err.h"
30344 #include "openssl/evp.h"
30350 ERR_load_crypto_strings();
30351 OpenSSL_add_all_algorithms();
30358 if ac_fn_c_try_link "$LINENO"; then :
30359 ntp_cv_bare_lcrypto=yes
30361 ntp_cv_bare_lcrypto=no
30364 rm -f core conftest.err conftest.$ac_objext \
30365 conftest$ac_exeext conftest.$ac_ext
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
30369 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
30370 case "$ntp_cv_bare_lcrypto" in
30372 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
30374 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
30375 if ${ntp_cv_lcrypto_lz+:} false; then :
30376 $as_echo_n "(cached) " >&6
30378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30379 /* end confdefs.h. */
30381 #include "openssl/err.h"
30382 #include "openssl/evp.h"
30388 ERR_load_crypto_strings();
30389 OpenSSL_add_all_algorithms();
30396 if ac_fn_c_try_link "$LINENO"; then :
30397 ntp_cv_lcrypto_lz=yes
30399 ntp_cv_lcrypto_lz=no
30402 rm -f core conftest.err conftest.$ac_objext \
30403 conftest$ac_exeext conftest.$ac_ext
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
30407 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
30408 case "$ntp_cv_lcrypto_lz" in
30410 LDADD_NTP="$LDADD_NTP -lz"
30416 # Older OpenSSL headers have a number of callback prototypes inside
30417 # other function prototypes which trigger copious warnings with gcc's
30418 # -Wstrict-prototypes, which is included in -Wall.
30422 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
30423 # int (*cb)(), int sgckey);
30428 openssl_triggers_warnings=unknown
30429 NTPO_SAVED_CFLAGS="$CFLAGS"
30431 case "$ntp_openssl:$GCC" in
30433 CFLAGS="$CFLAGS -Werror"
30434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30435 /* end confdefs.h. */
30442 /* see if -Werror breaks gcc */
30449 if ac_fn_c_try_compile "$LINENO"; then :
30450 gcc_handles_Werror=yes
30452 gcc_handles_Werror=no
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456 case "$gcc_handles_Werror" in
30458 # if this gcc doesn't do -Werror go ahead and use
30459 # -Wstrict-prototypes.
30460 openssl_triggers_warnings=yes
30463 CFLAGS="$CFLAGS -Wstrict-prototypes"
30464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465 /* end confdefs.h. */
30467 #include "openssl/asn1_mac.h"
30468 #include "openssl/bn.h"
30469 #include "openssl/err.h"
30470 #include "openssl/evp.h"
30471 #include "openssl/pem.h"
30472 #include "openssl/rand.h"
30473 #include "openssl/x509v3.h"
30486 if ac_fn_c_try_compile "$LINENO"; then :
30487 openssl_triggers_warnings=no
30489 openssl_triggers_warnings=yes
30492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30494 case "$openssl_triggers_warnings" in
30496 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
30499 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30503 # gcc without OpenSSL
30504 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30507 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
30508 CFLAGS="$NTPO_SAVED_CFLAGS"
30510 case "$ntp_openssl" in
30512 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30513 for ac_func in EVP_MD_do_all_sorted
30515 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
30516 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
30517 cat >>confdefs.h <<_ACEOF
30518 #define HAVE_EVP_MD_DO_ALL_SORTED 1
30528 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
30529 LIBS="$NTPO_SAVED_LIBS"
30530 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
30531 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
30532 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
30533 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
30534 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
30541 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
30542 # Check whether --enable-openssl-random was given.
30543 if test "${enable_openssl_random+set}" = set; then :
30544 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
30546 ntp_use_openssl_random=yes
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
30551 $as_echo "$ntp_use_openssl_random" >&6; }
30553 # The following might need extra libraries
30554 NTPO_SAVED_LIBS="$LIBS"
30555 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30556 for ac_func in RAND_bytes RAND_poll
30558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30561 cat >>confdefs.h <<_ACEOF
30562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30568 LIBS="$NTPO_SAVED_LIBS"
30569 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
30572 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
30575 *) ntp_use_openssl_random=no ;;
30580 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
30582 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
30583 # Check whether --enable-autokey was given.
30584 if test "${enable_autokey+set}" = set; then :
30585 enableval=$enable_autokey; ntp_autokey=$enableval
30587 ntp_autokey=$ntp_openssl
30591 case "$ntp_autokey" in
30595 case "$ntp_openssl" in
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
30598 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
30603 $as_echo "#define AUTOKEY 1" >>confdefs.h
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
30611 $as_echo "$ntp_autokey" >&6; }
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
30615 $as_echo_n "checking if we want to run check-layout... " >&6; }
30616 case "$cross_compiling$PATH_PERL" in
30618 MAKE_CHECK_LAYOUT=check-layout
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30626 $as_echo "$ans" >&6; }
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
30631 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
30633 case "$ntp_parseutil" in
30636 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30644 $as_echo "$ans" >&6; }
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
30648 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
30650 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
30654 case "$ntp_cv_var_kernel_pll" in
30657 $as_echo "#define PPS_SYNC 1" >>confdefs.h
30662 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
30666 MAKE_PARSEKMODULE=parse
30667 for ac_header in strings.h
30669 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
30670 if test "x$ac_cv_header_strings_h" = xyes; then :
30671 cat >>confdefs.h <<_ACEOF
30672 #define HAVE_STRINGS_H 1
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30684 $as_echo "$ans" >&6; }
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
30687 $as_echo_n "checking if we need basic refclock support... " >&6; }
30688 case "$ntp_refclock" in
30691 $as_echo "#define REFCLOCK 1" >>confdefs.h
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
30696 $as_echo "$ntp_refclock" >&6; }
30698 PROPDELAY=propdelay
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
30703 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
30713 MAKE_ADJTIMED=adjtimed
30715 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30725 $as_echo "$ans" >&6; }
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
30728 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
30739 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30744 $as_echo "$ans" >&6; }
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
30747 $as_echo_n "checking if we can read kmem... " >&6; }
30749 # the default is to enable it if the system has the capability
30751 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
30760 *-*-domainos) # Won't be found...
30780 # --enable-kmem / --disable-kmem controls if present
30781 # Check whether --enable-kmem was given.
30782 if test "${enable_kmem+set}" = set; then :
30783 enableval=$enable_kmem; ans=$enableval
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30789 $as_echo "$ans" >&6; }
30798 $as_echo "#define NOKMEM 1" >>confdefs.h
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
30804 $as_echo_n "checking if adjtime is accurate... " >&6; }
30806 # target-dependent defaults
30812 i386-unknown-osf1*)
30815 mips-sgi-irix[456]*)
30822 # XXX only verified thru AIX6.
30841 # --enable-accurate-adjtime / --disable-accurate-adjtime
30842 # override the default
30843 # Check whether --enable-accurate-adjtime was given.
30844 if test "${enable_accurate_adjtime+set}" = set; then :
30845 enableval=$enable_accurate_adjtime; ans=$enableval
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30851 $as_echo "$ans" >&6; }
30856 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
30858 adjtime_is_accurate=yes
30861 adjtime_is_accurate=no
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
30866 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
30867 if ${ntp_cv_nlist_tick+:} false; then :
30868 $as_echo_n "(cached) " >&6
30873 m68*-hp-hpux*) # HP9000/300?
30883 # XXX only verified thru AIX6.
30902 ntp_cv_nlist_tick=$ans
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
30907 $as_echo "$ntp_cv_nlist_tick" >&6; }
30908 case "$ntp_cv_nlist_tick" in
30910 ;; # HMS: I think we can only get 'no' here...
30913 cat >>confdefs.h <<_ACEOF
30914 #define K_TICK_NAME "$ntp_cv_nlist_tick"
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
30920 $as_echo_n "checking for the units of 'tick'... " >&6; }
30921 if ${ntp_cv_tick_nano+:} false; then :
30922 $as_echo_n "(cached) " >&6
30931 ntp_cv_tick_nano=$ans
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
30936 $as_echo "$ntp_cv_tick_nano" >&6; }
30937 case "$ntp_cv_tick_nano" in
30940 $as_echo "#define TICK_NANO 1" >>confdefs.h
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
30945 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
30946 if ${ntp_cv_nlist_tickadj+:} false; then :
30947 $as_echo_n "(cached) " >&6
30952 m68*-hp-hpux*) # HP9000/300?
30983 ans=no # hrestime_adj
30989 ntp_cv_nlist_tickadj=$ans
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
30994 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
30995 case "$ntp_cv_nlist_tickadj" in
30997 ;; # HMS: I think we can only get 'no' here...
31000 cat >>confdefs.h <<_ACEOF
31001 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
31007 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
31008 if ${ntp_cv_tickadj_nano+:} false; then :
31009 $as_echo_n "(cached) " >&6
31018 ntp_cv_tickadj_nano=$ans
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
31023 $as_echo "$ntp_cv_tickadj_nano" >&6; }
31024 case "$ntp_cv_tickadj_nano" in
31027 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
31032 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
31033 if ${ntp_cv_nlist_dosynctodr+:} false; then :
31034 $as_echo_n "(cached) " >&6
31078 ntp_cv_nlist_dosynctodr=$ans
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
31083 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
31084 case "$ntp_cv_nlist_dosynctodr" in
31089 cat >>confdefs.h <<_ACEOF
31090 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
31097 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
31098 if ${ntp_cv_nlist_noprintf+:} false; then :
31099 $as_echo_n "(cached) " >&6
31137 ntp_cv_nlist_noprintf=$ans
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
31142 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
31143 case "$ntp_cv_nlist_noprintf" in
31148 cat >>confdefs.h <<_ACEOF
31149 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
31159 $as_echo_n "checking for a default value for 'tick'... " >&6; }
31161 # target-dependent default for tick
31165 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
31190 # Check whether --enable-tick was given.
31191 if test "${enable_tick+set}" = set; then :
31192 enableval=$enable_tick; ans=$enableval
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31198 $as_echo "$ans" >&6; }
31202 ;; # HMS: I think we can only get 'no' here...
31205 cat >>confdefs.h <<_ACEOF
31206 #define PRESET_TICK $ans
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
31212 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
31214 # target-specific default
31218 case "$adjtime_is_accurate" in
31227 case "$can_kmem" in
31233 *-*-domainos) # Skippy: won't be found...
31234 case "$can_kmem" in
31241 case "$adjtime_is_accurate" in
31264 # Check whether --enable-tickadj was given.
31265 if test "${enable_tickadj+set}" = set; then :
31266 enableval=$enable_tickadj; ans=$enableval
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31272 $as_echo "$ans" >&6; }
31274 default_tickadj=$ans
31276 case "$default_tickadj" in
31278 ;; # HMS: I think we can only get 'no' here...
31281 cat >>confdefs.h <<_ACEOF
31282 #define PRESET_TICKADJ $default_tickadj
31287 # Newer versions of ReliantUNIX round adjtime() values down to
31288 # 1/100s (system tick). Sigh ...
31289 # Unfortunately, there is no easy way to know if particular release
31290 # has this "feature" or any obvious way to test for it.
31294 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
31301 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
31305 ntp_cv_make_tickadj=yes
31306 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
31307 nonono) # Don't read KMEM, no presets. Bogus.
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
31309 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
31310 ntp_cv_make_tickadj=no
31312 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
31314 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
31315 ntp_cv_make_tickadj=no
31317 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
31319 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
31320 ntp_cv_make_tickadj=no
31322 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
31324 yesnono) # Read KMEM, no presets. Cool.
31326 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
31328 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
31330 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
31332 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
31334 *) # Generally bogus.
31335 as_fn_error $? "This shouldn't happen." "$LINENO" 5
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
31341 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
31342 if ${ac_cv_make_ntptime+:} false; then :
31343 $as_echo_n "(cached) " >&6
31346 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
31356 ac_cv_make_ntptime=$ans
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
31359 $as_echo "$ac_cv_make_ntptime" >&6; }
31360 case "$ac_cv_make_ntptime" in
31362 MAKE_NTPTIME=ntptime
31375 # tickadj is pretty useless on newer versions of ReliantUNIX
31377 ntp_cv_make_tickadj=no
31380 ntp_cv_make_tickadj=no
31383 # DLM says tickadj is a no-no starting with solaris2.5
31385 *-*-solaris2.1[0-9]*)
31386 ntp_cv_make_tickadj=no
31388 *-*-solaris2.[0-4]*) ;;
31389 *) ntp_cv_make_tickadj=no ;;
31393 ntp_cv_make_tickadj=no
31398 # Despite all the above, we always make tickadj. Setting
31399 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
31400 # report that the configuration variable was cached. It may
31401 # be better to simply remove the hunk above, I did not want
31402 # to remove it if there is hope it will be used again.
31404 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
31407 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
31408 if ${ntp_cv_make_tickadj+:} false; then :
31409 $as_echo_n "(cached) " >&6
31411 ntp_cv_make_tickadj=yes
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
31415 $as_echo "$ntp_cv_make_tickadj" >&6; }
31416 case "$ntp_cv_make_tickadj" in
31418 MAKE_TICKADJ=tickadj
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
31434 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
31435 if ${ntp_cv_make_timetrim+:} false; then :
31436 $as_echo_n "(cached) " >&6
31441 ntp_cv_make_timetrim=yes
31444 ntp_cv_make_timetrim=yes
31447 ntp_cv_make_timetrim=no
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
31454 $as_echo "$ntp_cv_make_timetrim" >&6; }
31455 case "$ntp_cv_make_timetrim" in
31457 MAKE_TIMETRIM=timetrim
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
31470 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
31471 # Check whether --enable-simulator was given.
31472 if test "${enable_simulator+set}" = set; then :
31473 enableval=$enable_simulator; ans=$enableval
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31480 $as_echo "$ans" >&6; }
31483 MAKE_NTPDSIM=ntpdsim
31484 MAKE_LIBNTPSIM=libntpsim.a
31499 LDFLAGS="$LDFLAGS -r"
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
31508 $as_echo_n "checking if sntp will be built... " >&6; }
31510 # Check whether --with-sntp was given.
31511 if test "${with_sntp+set}" = set; then :
31512 withval=$with_sntp;
31514 with_sntp="${withsntp=yes}"
31518 case "$with_sntp" in
31527 if test -n "$SNTP"; then
31529 BUILD_SNTP_FALSE='#'
31531 BUILD_SNTP_TRUE='#'
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
31536 $as_echo "$with_sntp" >&6; }
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
31541 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
31543 # Check whether --with-ntpsnmpd was given.
31544 if test "${with_ntpsnmpd+set}" = set; then :
31545 withval=$with_ntpsnmpd; ans=$withval
31548 case "$PATH_NET_SNMP_CONFIG" in
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31557 $as_echo "$ans" >&6; }
31560 case "$PATH_NET_SNMP_CONFIG" in
31562 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
31563 # Bug 2815. This is a bit of a hack, but it works...
31564 case "$ntp_cv_net_snmp_version" in
31565 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
31569 # HMS: we really want to separate CPPFLAGS and CFLAGS
31570 foo=`$PATH_NET_SNMP_CONFIG --cflags`
31576 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
31578 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
31585 save_CFLAGS=$CFLAGS
31586 save_CPPFLAGS=$CPPFLAGS
31588 CFLAGS=$SNMP_CFLAGS
31589 CPPFLAGS=$SNMP_CPPFLAGS
31591 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
31592 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
31593 MAKE_NTPSNMPD=ntpsnmpd
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
31596 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
31602 # Do this last, as we're messing up LIBS.
31603 # check -lnetsnmp for netsnmp_daemonize
31604 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
31606 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
31607 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
31608 $as_echo_n "(cached) " >&6
31610 ac_check_lib_save_LIBS=$LIBS
31611 LIBS="-lnetsnmp $LIBS"
31612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31613 /* end confdefs.h. */
31615 /* Override any GCC internal prototype to avoid an error.
31616 Use char because int might match the return type of a GCC
31617 builtin and then its argument prototype would still apply. */
31621 char netsnmp_daemonize ();
31625 return netsnmp_daemonize ();
31630 if ac_fn_c_try_link "$LINENO"; then :
31631 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
31633 ac_cv_lib_netsnmp_netsnmp_daemonize=no
31635 rm -f core conftest.err conftest.$ac_objext \
31636 conftest$ac_exeext conftest.$ac_ext
31637 LIBS=$ac_check_lib_save_LIBS
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
31640 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
31641 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
31651 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
31655 CFLAGS=$save_CFLAGS
31656 { save_CFLAGS=; unset save_CFLAGS;}
31657 CPPFLAGS=$save_CPPFLAGS
31658 { save_CPPFLAGS=; unset save_CPPFLAGS;}
31660 { save_LIBS=; unset save_LIBS;}
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
31664 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
31671 case "$MAKE_NTPSNMPD" in
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
31681 $as_echo_n "checking if we should always slew the time... " >&6; }
31683 # target-specific defaults
31695 *-*-openvms*) # HMS: won't be found
31702 # --enable-slew-always / --disable-slew-always overrides default
31704 # Check whether --enable-slew-always was given.
31705 if test "${enable_slew_always+set}" = set; then :
31706 enableval=$enable_slew_always; ans=$enableval
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31712 $as_echo "$ans" >&6; }
31717 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
31722 $as_echo_n "checking if we should step and slew the time... " >&6; }
31737 *-*-solaris2.1[0-9]*)
31740 *-*-solaris2.[012]*)
31743 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
31750 # Check whether --enable-step-slew was given.
31751 if test "${enable_step_slew+set}" = set; then :
31752 enableval=$enable_step_slew; ans=$enableval
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31758 $as_echo "$ans" >&6; }
31763 $as_echo "#define STEP_SLEW 1" >>confdefs.h
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
31768 $as_echo_n "checking if ntpdate should step the time... " >&6; }
31778 # Check whether --enable-ntpdate-step was given.
31779 if test "${enable_ntpdate_step+set}" = set; then :
31780 enableval=$enable_ntpdate_step; ans=$enableval
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31786 $as_echo "$ans" >&6; }
31791 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
31797 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
31803 *-*-openvms*) # HMS: won't be found
31811 # Check whether --enable-hourly-todr-sync was given.
31812 if test "${enable_hourly_todr_sync+set}" = set; then :
31813 enableval=$enable_hourly_todr_sync; ans=$enableval
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31819 $as_echo "$ans" >&6; }
31821 case "$ac_cv_var_sync_todr" in
31824 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
31829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
31830 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
31841 if test "$2" -ge 17
31843 # Generic_105181-17 and higher
31862 if test "$2" -ge 07
31864 # Generic_106541-07 and higher
31880 # Check whether --enable-kernel-fll-bug was given.
31881 if test "${enable_kernel_fll_bug+set}" = set; then :
31882 enableval=$enable_kernel_fll_bug; ans=$enableval
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31888 $as_echo "$ans" >&6; }
31893 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
31899 $as_echo_n "checking if we want new session key behavior... " >&6; }
31900 # Check whether --enable-bug1243-fix was given.
31901 if test "${enable_bug1243_fix+set}" = set; then :
31902 enableval=$enable_bug1243_fix; ans=$enableval
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31909 $as_echo "$ans" >&6; }
31913 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
31919 $as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
31920 # Check whether --enable-bug3020-fix was given.
31921 if test "${enable_bug3020_fix+set}" = set; then :
31922 enableval=$enable_bug3020_fix; ans=$enableval
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31929 $as_echo "$ans" >&6; }
31933 $as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
31938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
31939 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
31945 *-*-solaris2.1[0-9]*)
31952 # Check whether --enable-irig-sawtooth was given.
31953 if test "${enable_irig_sawtooth+set}" = set; then :
31954 enableval=$enable_irig_sawtooth; ans=$enableval
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31960 $as_echo "$ans" >&6; }
31965 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
31970 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
31971 # Check whether --enable-nist was given.
31972 if test "${enable_nist+set}" = set; then :
31973 enableval=$enable_nist; ans=$enableval
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31981 $as_echo "$ans" >&6; }
31986 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
31991 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
31992 # Check whether --enable-ntp-signd was given.
31993 if test "${enable_ntp_signd+set}" = set; then :
31994 enableval=$enable_ntp_signd; ans=$enableval
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32002 $as_echo "$ans" >&6; }
32009 ntp_signd_path=/var/run/ntp_signd
32012 ntp_signd_path="$ans"
32015 case "$ntp_signd_path" in
32020 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
32023 cat >>confdefs.h <<_ACEOF
32024 #define NTP_SIGND_PATH "$ntp_signd_path"
32030 for ac_header in libscf.h
32032 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
32033 if test "x$ac_cv_header_libscf_h" = xyes; then :
32034 cat >>confdefs.h <<_ACEOF
32035 #define HAVE_LIBSCF_H 1
32043 case "$ac_cv_header_libscf_h" in
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
32052 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
32053 if ${ntp_cv_sockaddr_storage+:} false; then :
32054 $as_echo_n "(cached) " >&6
32056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32057 /* end confdefs.h. */
32059 #ifdef HAVE_SYS_TYPES_H
32060 # include <sys/types.h>
32062 #ifdef HAVE_SYS_SOCKET_H
32063 # include <sys/socket.h>
32065 #ifdef HAVE_NETINET_IN_H
32066 # include <netinet/in.h>
32073 struct sockaddr_storage n;
32080 if ac_fn_c_try_compile "$LINENO"; then :
32081 ntp_cv_sockaddr_storage=yes
32083 ntp_cv_sockaddr_storage=no
32086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
32090 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
32091 case "$ntp_cv_sockaddr_storage" in
32094 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
32097 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
32098 if ${ntp_cv_have___ss_family+:} false; then :
32099 $as_echo_n "(cached) " >&6
32101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32102 /* end confdefs.h. */
32104 #ifdef HAVE_SYS_TYPES_H
32105 # include <sys/types.h>
32107 #ifdef HAVE_SYS_SOCKET_H
32108 # include <sys/socket.h>
32110 #ifdef HAVE_NETINET_IN_H
32111 # include <netinet/in.h>
32118 struct sockaddr_storage s;
32126 if ac_fn_c_try_compile "$LINENO"; then :
32127 ntp_cv_have___ss_family=yes
32129 ntp_cv_have___ss_family=no
32132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
32136 $as_echo "$ntp_cv_have___ss_family" >&6; }
32137 case "$ntp_cv_have___ss_family" in
32140 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
32148 # Look for in_port_t.
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
32151 $as_echo_n "checking for in_port_t... " >&6; }
32152 if ${isc_cv_have_in_port_t+:} false; then :
32153 $as_echo_n "(cached) " >&6
32155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32156 /* end confdefs.h. */
32158 #include <sys/types.h>
32159 #include <netinet/in.h>
32165 in_port_t port = 25;
32173 if ac_fn_c_try_compile "$LINENO"; then :
32174 isc_cv_have_in_port_t=yes
32176 isc_cv_have_in_port_t=no
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
32183 $as_echo "$isc_cv_have_in_port_t" >&6; }
32184 case "$isc_cv_have_in_port_t" in
32187 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
32192 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
32193 if ${ntp_cv_getsockname_socklen_type+:} false; then :
32194 $as_echo_n "(cached) " >&6
32197 getsockname_socklen_type_found=no
32198 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
32199 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
32200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32201 /* end confdefs.h. */
32203 #ifdef HAVE_SYS_TYPES_H
32204 # include <sys/types.h>
32206 #ifdef HAVE_SYS_SOCKET_H
32207 # include <sys/socket.h>
32215 getsockname(int, $getsockname_arg2,
32216 $ntp_cv_getsockname_socklen_type *);
32223 if ac_fn_c_try_compile "$LINENO"; then :
32224 getsockname_socklen_type_found=yes ; break 2
32226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32229 case "$getsockname_socklen_type_found" in
32231 ntp_cv_getsockname_socklen_type='socklen_t'
32233 { getsockname_arg2=; unset getsockname_arg2;}
32234 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
32239 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
32241 cat >>confdefs.h <<_ACEOF
32242 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
32247 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
32248 if ${isc_cv_platform_havesalen+:} false; then :
32249 $as_echo_n "(cached) " >&6
32251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252 /* end confdefs.h. */
32254 #include <sys/types.h>
32255 #include <sys/socket.h>
32261 extern struct sockaddr *ps;
32269 if ac_fn_c_try_compile "$LINENO"; then :
32270 isc_cv_platform_havesalen=yes
32272 isc_cv_platform_havesalen=no
32275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
32279 $as_echo "$isc_cv_platform_havesalen" >&6; }
32280 case "$isc_cv_platform_havesalen" in
32283 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
32287 # Check whether --enable-ipv6 was given.
32288 if test "${enable_ipv6+set}" = set; then :
32289 enableval=$enable_ipv6;
32293 case "$enable_ipv6" in
32300 $as_echo "#define WANT_IPV6 1" >>confdefs.h
32313 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
32319 $as_echo_n "checking for IPv6 structures... " >&6; }
32320 if ${isc_cv_found_ipv6+:} false; then :
32321 $as_echo_n "(cached) " >&6
32323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32324 /* end confdefs.h. */
32326 #include <sys/types.h>
32327 #include <sys/socket.h>
32328 #include <netinet/in.h>
32334 struct sockaddr_in6 sin6;
32341 if ac_fn_c_try_compile "$LINENO"; then :
32342 isc_cv_found_ipv6=yes
32344 isc_cv_found_ipv6=no
32347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
32351 $as_echo "$isc_cv_found_ipv6" >&6; }
32354 # See whether IPv6 support is provided via a Kame add-on.
32355 # This is done before other IPv6 linking tests so LIBS is properly set.
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
32358 $as_echo_n "checking for Kame IPv6 support... " >&6; }
32360 # Check whether --with-kame was given.
32361 if test "${with_kame+set}" = set; then :
32362 withval=$with_kame; use_kame="$withval"
32368 case "$use_kame" in
32372 kame_path=/usr/local/v6
32375 kame_path="$use_kame"
32378 case "$use_kame" in
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32381 $as_echo "no" >&6; }
32384 if test -f $kame_path/lib/libinet6.a; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
32386 $as_echo "$kame_path/lib/libinet6.a" >&6; }
32387 LIBS="-L$kame_path/lib -linet6 $LIBS"
32389 as_fn_error $? "$kame_path/lib/libinet6.a not found.
32391 Please choose the proper path with the following command:
32393 configure --with-kame=PATH
32400 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
32401 # Including it on Kame-using platforms is very bad, though, because
32402 # Kame uses #error against direct inclusion. So include it on only
32403 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
32404 # This is done before the in6_pktinfo check because that's what
32405 # netinet6/in6.h is needed for.
32410 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
32412 isc_netinet6in6_hack="#include <netinet6/in6.h>"
32415 isc_netinet6in6_hack=""
32420 # This is similar to the netinet6/in6.h issue.
32423 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
32425 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
32427 isc_netinetin6_hack="#include <netinet/in6.h>"
32430 isc_netinetin6_hack=""
32435 case "$isc_cv_found_ipv6" in
32438 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
32440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
32441 $as_echo_n "checking for in6_pktinfo... " >&6; }
32442 if ${isc_cv_have_in6_pktinfo+:} false; then :
32443 $as_echo_n "(cached) " >&6
32445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32446 /* end confdefs.h. */
32448 #include <sys/types.h>
32449 #include <sys/socket.h>
32450 #include <netinet/in.h>
32451 $isc_netinetin6_hack
32452 $isc_netinet6in6_hack
32458 struct in6_pktinfo xyzzy;
32465 if ac_fn_c_try_compile "$LINENO"; then :
32466 isc_cv_have_in6_pktinfo=yes
32468 isc_cv_have_in6_pktinfo=no
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
32475 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
32476 case "$isc_cv_have_in6_pktinfo" in
32479 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
32484 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
32486 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
32487 if ${isc_cv_have_sin6_scope_id+:} false; then :
32488 $as_echo_n "(cached) " >&6
32490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32491 /* end confdefs.h. */
32493 #include <sys/types.h>
32494 #include <sys/socket.h>
32495 #include <netinet/in.h>
32496 $isc_netinetin6_hack
32497 $isc_netinet6in6_hack
32503 struct sockaddr_in6 xyzzy;
32504 xyzzy.sin6_scope_id = 0;
32511 if ac_fn_c_try_compile "$LINENO"; then :
32512 isc_cv_have_sin6_scope_id=yes
32514 isc_cv_have_sin6_scope_id=no
32517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
32521 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
32523 case "$isc_cv_have_sin6_scope_id" in
32526 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
32532 # We need this check run even without isc_cv_found_ipv6=yes
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
32535 $as_echo_n "checking for in6addr_any... " >&6; }
32536 if ${isc_cv_in6addr_any_links+:} false; then :
32537 $as_echo_n "(cached) " >&6
32541 LIBS="$LDADD_LIBNTP $LIBS"
32542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32543 /* end confdefs.h. */
32544 $ac_includes_default
32545 #include <sys/socket.h>
32546 #include <netinet/in.h>
32547 $isc_netinetin6_hack
32548 $isc_netinet6in6_hack
32554 printf("%x", in6addr_any.s6_addr[15]);
32561 if ac_fn_c_try_link "$LINENO"; then :
32562 isc_cv_in6addr_any_links=yes
32564 isc_cv_in6addr_any_links=no
32567 rm -f core conftest.err conftest.$ac_objext \
32568 conftest$ac_exeext conftest.$ac_ext
32570 { SAVED_LIBS=; unset SAVED_LIBS;}
32574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
32575 $as_echo "$isc_cv_in6addr_any_links" >&6; }
32577 case "$isc_cv_in6addr_any_links" in
32580 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
32586 $as_echo_n "checking for struct if_laddrconf... " >&6; }
32587 if ${isc_cv_struct_if_laddrconf+:} false; then :
32588 $as_echo_n "(cached) " >&6
32590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32591 /* end confdefs.h. */
32593 #include <sys/types.h>
32594 #include <net/if6.h>
32600 struct if_laddrconf a;
32607 if ac_fn_c_try_compile "$LINENO"; then :
32608 isc_cv_struct_if_laddrconf=yes
32610 isc_cv_struct_if_laddrconf=no
32613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
32617 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
32619 case "$isc_cv_struct_if_laddrconf" in
32622 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
32627 $as_echo_n "checking for struct if_laddrreq... " >&6; }
32628 if ${isc_cv_struct_if_laddrreq+:} false; then :
32629 $as_echo_n "(cached) " >&6
32631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32632 /* end confdefs.h. */
32634 #include <sys/types.h>
32635 #include <net/if6.h>
32641 struct if_laddrreq a;
32648 if ac_fn_c_try_compile "$LINENO"; then :
32649 isc_cv_struct_if_laddrreq=yes
32651 isc_cv_struct_if_laddrreq=no
32654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
32658 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
32660 case "$isc_cv_struct_if_laddrreq" in
32663 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
32668 $as_echo_n "checking for multicast IP support... " >&6; }
32669 if ${ntp_cv_multicast+:} false; then :
32670 $as_echo_n "(cached) " >&6
32673 ntp_cv_multicast=no
32675 i386-sequent-sysv4)
32678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32679 /* end confdefs.h. */
32681 #ifdef HAVE_NETINET_IN_H
32682 # include <netinet/in.h>
32689 struct ip_mreq ipmr;
32690 ipmr.imr_interface.s_addr = 0;
32697 if ac_fn_c_try_compile "$LINENO"; then :
32698 ntp_cv_multicast=yes
32700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
32707 $as_echo "$ntp_cv_multicast" >&6; }
32708 case "$ntp_cv_multicast" in
32711 $as_echo "#define MCAST 1" >>confdefs.h
32713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
32714 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
32715 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
32716 $as_echo_n "(cached) " >&6
32720 *-*-netbsd*|*-*-*linux*)
32721 ntp_cv_typeof_ip_multicast_loop=u_int
32724 ntp_cv_typeof_ip_multicast_loop=u_char
32730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
32731 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
32733 cat >>confdefs.h <<_ACEOF
32734 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
32739 # Check whether --enable-getifaddrs was given.
32740 if test "${enable_getifaddrs+set}" = set; then :
32741 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
32743 want_getifaddrs="yes"
32748 case $want_getifaddrs in
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
32751 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
32753 case $want_getifaddrs in
32758 LIBS="$LDADD_LIBNTP $LIBS"
32759 for ac_func in getifaddrs
32761 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
32762 if test "x$ac_cv_func_getifaddrs" = xyes; then :
32763 cat >>confdefs.h <<_ACEOF
32764 #define HAVE_GETIFADDRS 1
32771 { SAVED_LIBS=; unset SAVED_LIBS;}
32776 # Check for if_nametoindex() for IPv6 scoped addresses support
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
32781 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
32782 if ${ac_cv_search_if_nametoindex+:} false; then :
32783 $as_echo_n "(cached) " >&6
32785 ac_func_search_save_LIBS=$LIBS
32786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787 /* end confdefs.h. */
32789 /* Override any GCC internal prototype to avoid an error.
32790 Use char because int might match the return type of a GCC
32791 builtin and then its argument prototype would still apply. */
32795 char if_nametoindex ();
32799 return if_nametoindex ();
32804 for ac_lib in '' ipv6; do
32805 if test -z "$ac_lib"; then
32806 ac_res="none required"
32809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32811 if ac_fn_c_try_link "$LINENO"; then :
32812 ac_cv_search_if_nametoindex=$ac_res
32814 rm -f core conftest.err conftest.$ac_objext \
32816 if ${ac_cv_search_if_nametoindex+:} false; then :
32820 if ${ac_cv_search_if_nametoindex+:} false; then :
32823 ac_cv_search_if_nametoindex=no
32825 rm conftest.$ac_ext
32826 LIBS=$ac_func_search_save_LIBS
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
32829 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
32830 ac_res=$ac_cv_search_if_nametoindex
32831 if test "$ac_res" != no; then :
32832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32838 LIBS="$LDADD_LIBNTP $LIBS"
32839 for ac_func in if_nametoindex
32841 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
32842 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
32843 cat >>confdefs.h <<_ACEOF
32844 #define HAVE_IF_NAMETOINDEX 1
32851 { SAVED_LIBS=; unset SAVED_LIBS;}
32852 case "$ac_cv_func_if_nametoindex" in
32855 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
32863 # Look for a sysctl call to get the list of network interfaces.
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
32866 $as_echo_n "checking for interface list sysctl... " >&6; }
32867 if ${ntp_cv_iflist_sysctl+:} false; then :
32868 $as_echo_n "(cached) " >&6
32870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32871 /* end confdefs.h. */
32873 #include <sys/param.h>
32874 #include <sys/sysctl.h>
32875 #include <sys/socket.h>
32876 #ifndef NET_RT_IFLIST
32881 if ac_fn_c_try_cpp "$LINENO"; then :
32882 ntp_cv_iflist_sysctl=yes
32884 ntp_cv_iflist_sysctl=no
32887 rm -f conftest.err conftest.i conftest.$ac_ext
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
32891 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
32892 case "$ntp_cv_iflist_sysctl" in
32895 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
32901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
32902 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
32903 # Check whether --enable-saveconfig was given.
32904 if test "${enable_saveconfig+set}" = set; then :
32905 enableval=$enable_saveconfig; ntp_ok=$enableval
32911 ntp_saveconfig_enabled=0
32914 ntp_saveconfig_enabled=1
32916 $as_echo "#define SAVECONFIG 1" >>confdefs.h
32920 if test x$ntp_saveconfig_enabled = x1; then
32921 SAVECONFIG_ENABLED_TRUE=
32922 SAVECONFIG_ENABLED_FALSE='#'
32924 SAVECONFIG_ENABLED_TRUE='#'
32925 SAVECONFIG_ENABLED_FALSE=
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32929 $as_echo "$ntp_ok" >&6; }
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
32934 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
32935 # Check whether --enable-leap-smear was given.
32936 if test "${enable_leap_smear+set}" = set; then :
32937 enableval=$enable_leap_smear; ntp_ok=$enableval
32943 ntp_leap_smear_enabled=0
32946 ntp_leap_smear_enabled=1
32948 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
32951 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32955 $as_echo "$ntp_ok" >&6; }
32959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
32960 $as_echo_n "checking if we want dynamic interleave support... " >&6; }
32961 # Check whether --enable-dynamic-interleave was given.
32962 if test "${enable_dynamic_interleave+set}" = set; then :
32963 enableval=$enable_dynamic_interleave; ntp_ok=$enableval
32969 ntp_dynamic_interleave=0
32972 ntp_dynamic_interleave=1
32976 cat >>confdefs.h <<_ACEOF
32977 #define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
32980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32981 $as_echo "$ntp_ok" >&6; }
32984 # We may not need have_unity
32986 # Extract the first word of "ruby", so it can be a program name with args.
32987 set dummy ruby; ac_word=$2
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32989 $as_echo_n "checking for $ac_word... " >&6; }
32990 if ${ac_cv_path_PATH_RUBY+:} false; then :
32991 $as_echo_n "(cached) " >&6
32995 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
32998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32999 for as_dir in $PATH
33002 test -z "$as_dir" && as_dir=.
33003 for ac_exec_ext in '' $ac_executable_extensions; do
33004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33005 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
33006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33016 PATH_RUBY=$ac_cv_path_PATH_RUBY
33017 if test -n "$PATH_RUBY"; then
33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
33019 $as_echo "$PATH_RUBY" >&6; }
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022 $as_echo "no" >&6; }
33026 case "$PATH_RUBY" in
33030 *) PATH_RUBY="false"
33033 # We may not need UNITYBUILD_AVAILABLE
33034 if $have_unity; then
33035 UNITYBUILD_AVAILABLE_TRUE=
33036 UNITYBUILD_AVAILABLE_FALSE='#'
33038 UNITYBUILD_AVAILABLE_TRUE='#'
33039 UNITYBUILD_AVAILABLE_FALSE=
33048 # Check whether --with-gtest was given.
33049 if test "${with_gtest+set}" = set; then :
33050 withval=$with_gtest; try_gtest=$withval
33056 case "$try_gtest" in
33058 # Extract the first word of "gtest-config", so it can be a program name with args.
33059 set dummy gtest-config; ac_word=$2
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33061 $as_echo_n "checking for $ac_word... " >&6; }
33062 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
33063 $as_echo_n "(cached) " >&6
33065 case $GTEST_CONFIG in
33067 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
33070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071 for as_dir in $PATH
33074 test -z "$as_dir" && as_dir=.
33075 for ac_exec_ext in '' $ac_executable_extensions; do
33076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33077 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33088 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
33089 if test -n "$GTEST_CONFIG"; then
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
33091 $as_echo "$GTEST_CONFIG" >&6; }
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094 $as_echo "no" >&6; }
33098 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
33099 case x${GTEST_CONFIG} in
33102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
33103 $as_echo_n "checking gtest version... " >&6; }
33104 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
33105 case "$gtest_version_test" in
33109 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
33110 GTEST_LIBS=`$GTEST_CONFIG --libs`
33111 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
33112 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
33120 gtest_version=`$GTEST_CONFIG --version`
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
33124 $as_echo "($gtest_version) ok" >&6; }
33126 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
33127 $as_echo "($gtest_version) not ok" >&6; }
33130 { gtest_version_test=; unset gtest_version_test;}
33131 { gtest_version=; unset gtest_version;}
33135 GTEST_AVAILABLE_TRUE=
33136 GTEST_AVAILABLE_FALSE='#'
33138 GTEST_AVAILABLE_TRUE='#'
33139 GTEST_AVAILABLE_FALSE=
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
33152 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
33153 # Check whether --enable-problem-tests was given.
33154 if test "${enable_problem_tests+set}" = set; then :
33155 enableval=$enable_problem_tests; ntp_ept=$enableval
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
33162 $as_echo "$ntp_ept" >&6; }
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
33165 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
33166 ntp_test_ntp_restrict="no"
33167 case "$ntp_ept:$cross:$host" in
33168 no:0:*-*-freebsd6.4) ;;
33169 no:0:*-*-hpux11.23*) ;;
33170 no:0:*-*-solaris*) ;;
33171 *) ntp_test_ntp_restrict="yes" ;;
33173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
33174 $as_echo "$ntp_test_ntp_restrict" >&6; }
33175 if test x$ntp_test_ntp_restrict = xyes; then
33176 BUILD_TEST_NTP_RESTRICT_TRUE=
33177 BUILD_TEST_NTP_RESTRICT_FALSE='#'
33179 BUILD_TEST_NTP_RESTRICT_TRUE='#'
33180 BUILD_TEST_NTP_RESTRICT_FALSE=
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
33185 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
33186 ntp_test_ntp_scanner="no"
33187 case "$ntp_ept:$cross:$host" in
33188 no:0:*-*-freebsd6.4) ;;
33189 no:0:*-*-solaris*) ;;
33190 *) ntp_test_ntp_scanner="yes" ;;
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
33193 $as_echo "$ntp_test_ntp_scanner" >&6; }
33194 if test x$ntp_test_ntp_scanner = xyes; then
33195 BUILD_TEST_NTP_SCANNER_TRUE=
33196 BUILD_TEST_NTP_SCANNER_FALSE='#'
33198 BUILD_TEST_NTP_SCANNER_TRUE='#'
33199 BUILD_TEST_NTP_SCANNER_FALSE=
33203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
33204 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
33205 ntp_test_ntp_signd="no"
33206 case "$ntp_ept:$cross:$host" in
33207 no:0:*-*-freebsd6.4) ;;
33208 no:0:*-*-solaris*) ;;
33209 *) ntp_test_ntp_signd="yes" ;;
33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
33212 $as_echo "$ntp_test_ntp_signd" >&6; }
33213 if test x$ntp_test_ntp_signd = xyes; then
33214 BUILD_TEST_NTP_SIGND_TRUE=
33215 BUILD_TEST_NTP_SIGND_FALSE='#'
33217 BUILD_TEST_NTP_SIGND_TRUE='#'
33218 BUILD_TEST_NTP_SIGND_FALSE=
33229 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33230 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33231 eval ac_define_dir="\"$sysconfdir\""
33232 eval ac_define_dir="\"$ac_define_dir\""
33233 NTP_KEYSDIR="$ac_define_dir"
33236 cat >>confdefs.h <<_ACEOF
33237 #define NTP_KEYSDIR "$ac_define_dir"
33240 test "$prefix_NONE" && prefix=NONE
33241 test "$exec_prefix_NONE" && exec_prefix=NONE
33244 ac_config_files="$ac_config_files Makefile"
33246 ac_config_files="$ac_config_files adjtimed/Makefile"
33248 ac_config_files="$ac_config_files clockstuff/Makefile"
33250 ac_config_files="$ac_config_files include/Makefile"
33252 ac_config_files="$ac_config_files include/isc/Makefile"
33254 ac_config_files="$ac_config_files kernel/Makefile"
33256 ac_config_files="$ac_config_files kernel/sys/Makefile"
33258 ac_config_files="$ac_config_files libntp/Makefile"
33260 ac_config_files="$ac_config_files libparse/Makefile"
33262 ac_config_files="$ac_config_files ntpd/Makefile"
33264 ac_config_files="$ac_config_files ntpd/complete.conf"
33266 ac_config_files="$ac_config_files ntpdate/Makefile"
33268 ac_config_files="$ac_config_files ntpdc/Makefile"
33270 ac_config_files="$ac_config_files ntpdc/nl.pl"
33272 ac_config_files="$ac_config_files ntpq/Makefile"
33274 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
33276 ac_config_files="$ac_config_files parseutil/Makefile"
33278 ac_config_files="$ac_config_files scripts/Makefile"
33280 ac_config_files="$ac_config_files scripts/build/Makefile"
33282 ac_config_files="$ac_config_files scripts/build/genAuthors"
33284 ac_config_files="$ac_config_files scripts/build/mkver"
33286 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
33288 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
33290 ac_config_files="$ac_config_files scripts/lib/Makefile"
33292 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
33294 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
33296 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
33298 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
33300 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
33302 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
33304 ac_config_files="$ac_config_files scripts/ntpver"
33306 ac_config_files="$ac_config_files scripts/plot_summary"
33308 ac_config_files="$ac_config_files scripts/summary"
33310 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
33312 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
33314 ac_config_files="$ac_config_files tests/Makefile"
33316 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
33318 ac_config_files="$ac_config_files tests/libntp/Makefile"
33320 ac_config_files="$ac_config_files tests/ntpd/Makefile"
33322 ac_config_files="$ac_config_files tests/ntpq/Makefile"
33324 ac_config_files="$ac_config_files tests/sandbox/Makefile"
33326 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
33328 ac_config_files="$ac_config_files util/Makefile"
33331 perllibdir="${datadir}/ntp/lib"
33335 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33336 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33337 eval ac_define_dir="\"$perllibdir\""
33338 eval ac_define_dir="\"$ac_define_dir\""
33339 PERLLIBDIR="$ac_define_dir"
33342 cat >>confdefs.h <<_ACEOF
33343 #define PERLLIBDIR "$ac_define_dir"
33346 test "$prefix_NONE" && prefix=NONE
33347 test "$exec_prefix_NONE" && exec_prefix=NONE
33350 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
33352 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
33354 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
33356 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
33358 summary_opts="$srcdir/scripts/summary-opts"
33360 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
33365 subdirs="$subdirs sntp"
33368 cat >confcache <<\_ACEOF
33369 # This file is a shell script that caches the results of configure
33370 # tests run on this system so they can be shared between configure
33371 # scripts and configure runs, see configure's option --config-cache.
33372 # It is not useful on other systems. If it contains results you don't
33373 # want to keep, you may remove or edit it.
33375 # config.status only pays attention to the cache file if you give it
33376 # the --recheck option to rerun configure.
33378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33380 # following values.
33384 # The following way of writing the cache mishandles newlines in values,
33385 # but we know of no workaround that is simple, portable, and efficient.
33386 # So, we kill variables containing newlines.
33387 # Ultrix sh set writes to stderr and can't be redirected directly,
33388 # and sets the high bit in the cache file unless we assign to the vars.
33390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33391 eval ac_val=\$$ac_var
33395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33399 _ | IFS | as_nl) ;; #(
33400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33401 *) { eval $ac_var=; unset $ac_var;} ;;
33407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33408 *${as_nl}ac_space=\ *)
33409 # `set' does not quote correctly, so add quotes: double-quote
33410 # substitution turns \\\\ into \\, and sed turns \\ into \.
33413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33416 # `set' quotes correctly as required by POSIX, so do not add quotes.
33417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33431 if test -w "$cache_file"; then
33432 if test "x$cache_file" != "x/dev/null"; then
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33434 $as_echo "$as_me: updating cache $cache_file" >&6;}
33435 if test ! -f "$cache_file" || test -h "$cache_file"; then
33436 cat confcache >"$cache_file"
33438 case $cache_file in #(
33440 mv -f confcache "$cache_file"$$ &&
33441 mv -f "$cache_file"$$ "$cache_file" ;; #(
33443 mv -f confcache "$cache_file" ;;
33448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33455 # Let make expand exec_prefix.
33456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33458 DEFS=-DHAVE_CONFIG_H
33463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33464 # 1. Remove the extension, and $U if already installed.
33465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33466 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33468 # will be set to the directory where LIBOBJS objects are built.
33469 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33470 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33472 LIBOBJS=$ac_libobjs
33474 LTLIBOBJS=$ac_ltlibobjs
33477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33478 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33479 if test -n "$am_sleep_pid"; then
33480 # Hide warnings about reused PIDs.
33481 wait $am_sleep_pid 2>/dev/null
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33484 $as_echo "done" >&6; }
33485 if test -n "$EXEEXT"; then
33487 am__EXEEXT_FALSE='#'
33489 am__EXEEXT_TRUE='#'
33493 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33494 as_fn_error $? "conditional \"AMDEP\" was never defined.
33495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33497 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33498 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33502 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
33503 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
33504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33506 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
33507 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
33508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33510 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
33511 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
33512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33514 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
33515 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
33516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33518 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
33519 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
33520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33522 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
33523 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
33524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33526 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
33527 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
33528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33530 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
33531 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
33532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33534 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
33535 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
33536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33538 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
33539 as_fn_error $? "conditional \"PTHREADS\" was never defined.
33540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33542 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
33543 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
33544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33546 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
33547 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
33548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33550 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
33551 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
33552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33554 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
33555 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
33556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33558 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
33559 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
33560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33562 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
33563 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
33564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33566 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
33567 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
33568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33571 : "${CONFIG_STATUS=./config.status}"
33573 ac_clean_files_save=$ac_clean_files
33574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33576 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33578 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33580 # Generated by $as_me.
33581 # Run this file to recreate the current configuration.
33582 # Compiler output produced by configure, useful for debugging
33583 # configure, is in config.log if it exists.
33586 ac_cs_recheck=false
33589 SHELL=\${CONFIG_SHELL-$SHELL}
33592 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33593 ## -------------------- ##
33594 ## M4sh Initialization. ##
33595 ## -------------------- ##
33597 # Be more Bourne compatible
33598 DUALCASE=1; export DUALCASE # for MKS sh
33599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33603 # is contrary to our usage. Disable this feature.
33604 alias -g '${1+"$@"}'='"$@"'
33605 setopt NO_GLOB_SUBST
33607 case `(set -o) 2>/dev/null` in #(
33619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33623 # Prefer a ksh shell builtin over an external printf program on Solaris,
33624 # but without wasting forks for bash or zsh.
33625 if test -z "$BASH_VERSION$ZSH_VERSION" \
33626 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33627 as_echo='print -r --'
33628 as_echo_n='print -rn --'
33629 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33630 as_echo='printf %s\n'
33631 as_echo_n='printf %s'
33633 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33635 as_echo_n='/usr/ucb/echo -n'
33637 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33638 as_echo_n_body='eval
33642 expr "X$arg" : "X\\(.*\\)$as_nl";
33643 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33645 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33647 export as_echo_n_body
33648 as_echo_n='sh -c $as_echo_n_body as_echo'
33650 export as_echo_body
33651 as_echo='sh -c $as_echo_body as_echo'
33654 # The user is always right.
33655 if test "${PATH_SEPARATOR+set}" != set; then
33657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33665 # We need space, tab and new line, in precisely that order. Quoting is
33666 # there to prevent editors from complaining about space-tab.
33667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33668 # splitting by setting IFS to empty value.)
33671 # Find who we are. Look in the path if we contain no directory separator.
33674 *[\\/]* ) as_myself=$0 ;;
33675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676 for as_dir in $PATH
33679 test -z "$as_dir" && as_dir=.
33680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33686 # We did not find ourselves, most probably we were run as `sh COMMAND'
33687 # in which case we are not to be found in the path.
33688 if test "x$as_myself" = x; then
33691 if test ! -f "$as_myself"; then
33692 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33696 # Unset variables that we do not need and which cause bugs (e.g. in
33697 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33698 # suppresses any "Segmentation fault" message there. '((' could
33699 # trigger a bug in pdksh 5.2.14.
33700 for as_var in BASH_ENV ENV MAIL MAILPATH
33701 do eval test x\${$as_var+set} = xset \
33702 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33718 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33719 # ----------------------------------------
33720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33722 # script with STATUS, using 1 if that was 0.
33725 as_status=$1; test $as_status -eq 0 && as_status=1
33727 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33728 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33730 $as_echo "$as_me: error: $2" >&2
33731 as_fn_exit $as_status
33735 # as_fn_set_status STATUS
33736 # -----------------------
33737 # Set $? to STATUS, without forking.
33738 as_fn_set_status ()
33741 } # as_fn_set_status
33743 # as_fn_exit STATUS
33744 # -----------------
33745 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33749 as_fn_set_status $1
33755 # Portably unset VAR.
33758 { eval $1=; unset $1;}
33760 as_unset=as_fn_unset
33761 # as_fn_append VAR VALUE
33762 # ----------------------
33763 # Append the text in VALUE to the end of the definition contained in VAR. Take
33764 # advantage of any shell optimizations that allow amortized linear growth over
33765 # repeated appends, instead of the typical quadratic growth present in naive
33767 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33768 eval 'as_fn_append ()
33779 # as_fn_arith ARG...
33780 # ------------------
33781 # Perform arithmetic evaluation on the ARGs, and store the result in the
33782 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33783 # must be portable across $(()) and expr.
33784 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33785 eval 'as_fn_arith ()
33792 as_val=`expr "$@" || test $? -eq 1`
33797 if expr a : '\(a\)' >/dev/null 2>&1 &&
33798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33805 as_basename=basename
33810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33816 as_me=`$as_basename -- "$0" ||
33817 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33818 X"$0" : 'X\(//\)$' \| \
33819 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33821 sed '/^.*\/\([^/][^/]*\)\/*$/{
33835 # Avoid depending upon Character Ranges.
33836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33839 as_cr_digits='0123456789'
33840 as_cr_alnum=$as_cr_Letters$as_cr_digits
33842 ECHO_C= ECHO_N= ECHO_T=
33843 case `echo -n x` in #(((((
33845 case `echo 'xy\c'` in
33846 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33848 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33855 rm -f conf$$ conf$$.exe conf$$.file
33856 if test -d conf$$.dir; then
33857 rm -f conf$$.dir/conf$$.file
33860 mkdir conf$$.dir 2>/dev/null
33862 if (echo >conf$$.file) 2>/dev/null; then
33863 if ln -s conf$$.file conf$$ 2>/dev/null; then
33865 # ... but there are two gotchas:
33866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33868 # In both cases, we have to default to `cp -pR'.
33869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33871 elif ln conf$$.file conf$$ 2>/dev/null; then
33879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33880 rmdir conf$$.dir 2>/dev/null
33885 # Create "$as_dir" as a directory, including parents if necessary.
33890 -*) as_dir=./$as_dir;;
33892 test -d "$as_dir" || eval $as_mkdir_p || {
33896 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33897 *) as_qdir=$as_dir;;
33899 as_dirs="'$as_qdir' $as_dirs"
33900 as_dir=`$as_dirname -- "$as_dir" ||
33901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33902 X"$as_dir" : 'X\(//\)[^/]' \| \
33903 X"$as_dir" : 'X\(//\)$' \| \
33904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33905 $as_echo X"$as_dir" |
33906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33910 /^X\(\/\/\)[^/].*/{
33923 test -d "$as_dir" && break
33925 test -z "$as_dirs" || eval "mkdir $as_dirs"
33926 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33930 if mkdir -p . 2>/dev/null; then
33931 as_mkdir_p='mkdir -p "$as_dir"'
33933 test -d ./-p && rmdir ./-p
33938 # as_fn_executable_p FILE
33939 # -----------------------
33940 # Test if FILE is an executable regular file.
33941 as_fn_executable_p ()
33943 test -f "$1" && test -x "$1"
33944 } # as_fn_executable_p
33945 as_test_x='test -x'
33946 as_executable_p=as_fn_executable_p
33948 # Sed expression to map a string onto a valid CPP name.
33949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33951 # Sed expression to map a string onto a valid variable name.
33952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33956 ## ----------------------------------- ##
33957 ## Main body of $CONFIG_STATUS script. ##
33958 ## ----------------------------------- ##
33960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33963 # Save the log message, to keep $0 and so on meaningful, and to
33964 # report actual input values of CONFIG_FILES etc. instead of their
33965 # values after options handling.
33967 This file was extended by ntp $as_me 4.2.8p11, which was
33968 generated by GNU Autoconf 2.69. Invocation command line was
33970 CONFIG_FILES = $CONFIG_FILES
33971 CONFIG_HEADERS = $CONFIG_HEADERS
33972 CONFIG_LINKS = $CONFIG_LINKS
33973 CONFIG_COMMANDS = $CONFIG_COMMANDS
33976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33981 case $ac_config_files in *"
33982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33985 case $ac_config_headers in *"
33986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33991 # Files that config.status was made for.
33992 config_files="$ac_config_files"
33993 config_headers="$ac_config_headers"
33994 config_commands="$ac_config_commands"
33998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34000 \`$as_me' instantiates files and other configuration actions
34001 from templates according to the current configuration. Unless the files
34002 and actions are specified as TAGs, all are instantiated by default.
34004 Usage: $0 [OPTION]... [TAG]...
34006 -h, --help print this help, then exit
34007 -V, --version print version number and configuration settings, then exit
34008 --config print configuration, then exit
34009 -q, --quiet, --silent
34010 do not print progress messages
34011 -d, --debug don't remove temporary files
34012 --recheck update $as_me by reconfiguring in the same conditions
34013 --file=FILE[:TEMPLATE]
34014 instantiate the configuration file FILE
34015 --header=FILE[:TEMPLATE]
34016 instantiate the configuration header FILE
34018 Configuration files:
34021 Configuration headers:
34024 Configuration commands:
34027 Report bugs to <http://bugs.ntp.org./>.
34028 ntp home page: <http://www.ntp.org./>."
34031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34034 ntp config.status 4.2.8p11
34035 configured by $0, generated by GNU Autoconf 2.69,
34036 with options \\"\$ac_cs_config\\"
34038 Copyright (C) 2012 Free Software Foundation, Inc.
34039 This config.status script is free software; the Free Software Foundation
34040 gives unlimited permission to copy, distribute and modify it."
34047 test -n "\$AWK" || AWK=awk
34050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34051 # The default lists apply if the user does not specify any file.
34057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34074 # Handling of the options.
34075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34078 $as_echo "$ac_cs_version"; exit ;;
34079 --config | --confi | --conf | --con | --co | --c )
34080 $as_echo "$ac_cs_config"; exit ;;
34081 --debug | --debu | --deb | --de | --d | -d )
34083 --file | --fil | --fi | --f )
34086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34087 '') as_fn_error $? "missing file argument" ;;
34089 as_fn_append CONFIG_FILES " '$ac_optarg'"
34090 ac_need_defaults=false;;
34091 --header | --heade | --head | --hea )
34094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34096 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34097 ac_need_defaults=false;;
34099 # Conflict between --help and --header
34100 as_fn_error $? "ambiguous option: \`$1'
34101 Try \`$0 --help' for more information.";;
34102 --help | --hel | -h )
34103 $as_echo "$ac_cs_usage"; exit ;;
34104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34105 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34108 # This is an error.
34109 -*) as_fn_error $? "unrecognized option: \`$1'
34110 Try \`$0 --help' for more information." ;;
34112 *) as_fn_append ac_config_targets " $1"
34113 ac_need_defaults=false ;;
34119 ac_configure_extra_args=
34121 if $ac_cs_silent; then
34123 ac_configure_extra_args="$ac_configure_extra_args --silent"
34127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34128 if \$ac_cs_recheck; then
34129 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34132 CONFIG_SHELL='$SHELL'
34133 export CONFIG_SHELL
34138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34143 ## Running $as_me. ##
34149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34156 # The HP-UX ksh and POSIX shell print the target directory to stdout
34157 # if CDPATH is set.
34158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34160 sed_quote_subst='$sed_quote_subst'
34161 double_quote_subst='$double_quote_subst'
34162 delay_variable_subst='$delay_variable_subst'
34163 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34164 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34165 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34166 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34167 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34168 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34169 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34170 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34171 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34172 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34173 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34174 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34175 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34176 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34177 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34178 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34179 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34180 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34181 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34182 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34183 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34184 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34185 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34186 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34187 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34188 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34189 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34190 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34191 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34192 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34193 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34194 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34195 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34196 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34197 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34198 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34199 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34200 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34201 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34202 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34203 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34204 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34205 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34206 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34207 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34208 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34209 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34210 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34211 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34212 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34213 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34214 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34215 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34216 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34217 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34218 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34219 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34220 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34222 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34223 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34224 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34225 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34226 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34227 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34228 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34229 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34230 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34231 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34232 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34233 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34234 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34235 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34236 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34237 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34238 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34239 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34240 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34241 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34242 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34243 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34244 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34245 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34246 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34247 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34248 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34249 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34250 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34251 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34252 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34253 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34254 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34255 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34256 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34257 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34258 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34259 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34260 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34261 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34262 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34263 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34264 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34265 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34266 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34267 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34268 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34269 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34270 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34271 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34272 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34273 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34274 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34275 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34276 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34277 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34278 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34279 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34280 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34281 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34282 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34283 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34284 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34285 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34286 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34287 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34288 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34289 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34290 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34291 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34292 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34293 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34294 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34295 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34296 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34297 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34300 LTCFLAGS='$LTCFLAGS'
34301 compiler='$compiler_DEFAULT'
34303 # A function that is used when there is no print builtin or printf.
34304 func_fallback_echo ()
34306 eval 'cat <<_LTECHO_EOF
34311 # Quote evaled strings.
34326 deplibs_check_method \
34331 sharedlib_from_linklib_cmd \
34334 archiver_list_spec \
34340 lt_cv_sys_global_symbol_pipe \
34341 lt_cv_sys_global_symbol_to_cdecl \
34342 lt_cv_sys_global_symbol_to_import \
34343 lt_cv_sys_global_symbol_to_c_name_address \
34344 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34345 lt_cv_nm_interface \
34346 nm_file_list_spec \
34347 lt_cv_truncate_bin \
34348 lt_prog_compiler_no_builtin_flag \
34349 lt_prog_compiler_pic \
34350 lt_prog_compiler_wl \
34351 lt_prog_compiler_static \
34352 lt_cv_prog_compiler_c_o \
34361 export_dynamic_flag_spec \
34362 whole_archive_flag_spec \
34363 compiler_needs_object \
34365 allow_undefined_flag \
34366 no_undefined_flag \
34367 hardcode_libdir_flag_spec \
34368 hardcode_libdir_separator \
34372 variables_saved_for_relink \
34374 library_names_spec \
34376 install_override_mode \
34380 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34381 *[\\\\\\\`\\"\\\$]*)
34382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34390 # Double-quote double-evaled strings.
34391 for var in reload_cmds \
34392 old_postinstall_cmds \
34393 old_postuninstall_cmds \
34395 extract_expsyms_cmds \
34396 old_archive_from_new_cmds \
34397 old_archive_from_expsyms_cmds \
34399 archive_expsym_cmds \
34401 module_expsym_cmds \
34402 export_symbols_cmds \
34406 postuninstall_cmds \
34408 sys_lib_search_path_spec \
34409 configure_time_dlsearch_path \
34410 configure_time_lt_sys_library_path; do
34411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34412 *[\\\\\\\`\\"\\\$]*)
34413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34421 ac_aux_dir='$ac_aux_dir'
34423 # See if we are running on zsh, and set the options that allow our
34424 # commands through without removal of \ escapes INIT.
34425 if test -n "\${ZSH_VERSION+set}"; then
34426 setopt NO_GLOB_SUBST
34440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34442 # Handling of arguments.
34443 for ac_config_target in $ac_config_targets
34445 case $ac_config_target in
34446 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34447 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34448 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34450 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
34451 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
34452 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34453 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
34454 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
34455 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
34456 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
34457 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
34458 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
34459 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
34460 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
34461 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
34462 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
34463 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
34464 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
34465 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
34466 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34467 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
34468 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
34469 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
34470 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
34471 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
34472 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
34473 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
34474 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
34475 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
34476 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
34477 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
34478 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
34479 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
34480 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
34481 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
34482 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
34483 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
34484 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34485 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
34486 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
34487 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
34488 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
34489 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
34490 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
34491 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
34493 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34498 # If the user did not use the arguments to specify the items to instantiate,
34499 # then the envvar interface is used. Set only those that are not.
34500 # We use the long form for the default assignment because of an extremely
34501 # bizarre bug on SunOS 4.1.3.
34502 if $ac_need_defaults; then
34503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34508 # Have a temporary directory for convenience. Make it in the build tree
34509 # simply because there is no reason against having it here, and in addition,
34510 # creating and moving files from /tmp can sometimes cause problems.
34511 # Hook for its removal unless debugging.
34512 # Note that there is a small window in which the directory will not be cleaned:
34513 # after its creation but before its name has been assigned to `$tmp'.
34517 trap 'exit_status=$?
34518 : "${ac_tmp:=$tmp}"
34519 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34521 trap 'as_fn_exit 1' 1 2 13 15
34523 # Create a (secure) tmp directory for tmp files.
34526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34530 tmp=./conf$$-$RANDOM
34531 (umask 077 && mkdir "$tmp")
34532 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34535 # Set up the scripts for CONFIG_FILES section.
34536 # No need to generate them if there are no CONFIG_FILES.
34537 # This happens for instance with `./config.status config.h'.
34538 if test -n "$CONFIG_FILES"; then
34540 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34541 ac_cs_awk_getline=:
34542 ac_cs_awk_pipe_init=
34543 ac_cs_awk_read_file='
34544 while ((getline aline < (F[key])) > 0)
34547 ac_cs_awk_pipe_fini=
34549 ac_cs_awk_getline=false
34550 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34551 ac_cs_awk_read_file='
34553 print "cat " F[key] " &&"
34554 '$ac_cs_awk_pipe_init
34555 # The final `:' finishes the AND list.
34556 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34558 ac_cr=`echo X | tr X '\015'`
34559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34560 # But we know of no other shell where ac_cr would be empty at this
34561 # point, so we can use a bashism as a fallback.
34562 if test "x$ac_cr" = x; then
34563 eval ac_cr=\$\'\\r\'
34565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34569 ac_cs_awk_cr=$ac_cr
34572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34575 # Create commands to substitute file output variables.
34577 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34578 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34579 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34582 } >conf$$files.sh &&
34583 . ./conf$$files.sh ||
34584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34585 rm -f conf$$files.sh
34588 echo "cat >conf$$subs.awk <<_ACEOF" &&
34589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34591 } >conf$$subs.sh ||
34592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34595 for ac_last_try in false false false false false :; do
34596 . ./conf$$subs.sh ||
34597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34600 if test $ac_delim_n = $ac_delim_num; then
34602 elif $ac_last_try; then
34603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34608 rm -f conf$$subs.sh
34610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34615 s/^/S["/; s/!.*/"]=/
34625 s/\(.\{148\}\)..*/\1/
34627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34639 s/\(.\{148\}\)..*/\1/
34641 s/["\\]/\\&/g; s/^/"/; s/$/"/
34645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34650 ' <conf$$subs.awk | sed '
34655 ' >>$CONFIG_STATUS || ac_write_fail=1
34656 rm -f conf$$subs.awk
34657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34660 for (key in S) S_is_set[key] = 1
34662 \$ac_cs_awk_pipe_init
34666 nfields = split(line, field, "@")
34668 len = length(field[1])
34669 for (i = 2; i < nfields; i++) {
34671 keylen = length(key)
34672 if (S_is_set[key]) {
34674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34675 len += length(value) + length(field[++i])
34680 if (nfields == 3 && !substed) {
34682 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34683 \$ac_cs_awk_read_file
34689 \$ac_cs_awk_pipe_fini
34692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34693 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34694 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34697 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34698 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34701 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34702 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34703 # trailing colons and then remove the whole line if VPATH becomes empty
34704 # (actually we leave an empty line to preserve line numbers).
34705 if test "x$srcdir" = x.; then
34706 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34725 fi # test -n "$CONFIG_FILES"
34727 # Set up the scripts for CONFIG_HEADERS section.
34728 # No need to generate them if there are no CONFIG_HEADERS.
34729 # This happens for instance with `./config.status Makefile'.
34730 if test -n "$CONFIG_HEADERS"; then
34731 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34735 # Transform confdefs.h into an awk script `defines.awk', embedded as
34736 # here-document in config.status, that substitutes the proper values into
34737 # config.h.in to produce config.h.
34739 # Create a delimiter string that does not exist in confdefs.h, to ease
34740 # handling of long lines.
34742 for ac_last_try in false false :; do
34743 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34744 if test -z "$ac_tt"; then
34746 elif $ac_last_try; then
34747 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34753 # For the awk script, D is an array of macro values keyed by name,
34754 # likewise P contains macro parameters if any. Preserve backslash
34755 # newline sequences.
34757 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34759 s/.\{148\}/&'"$ac_delim"'/g
34762 s/^[ ]*#[ ]*define[ ][ ]*/ /
34769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34776 D["\1"]=" \3\\\\\\n"\\/p
34778 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34783 s/.\{148\}/&'"$ac_delim"'/g
34788 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34791 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34793 ' <confdefs.h | sed '
34794 s/'"$ac_delim"'/"\\\
34795 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34798 for (key in D) D_is_set[key] = 1
34801 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34803 split(line, arg, " ")
34804 if (arg[1] == "#") {
34808 defundef = substr(arg[1], 2)
34811 split(mac1, mac2, "(") #)
34813 prefix = substr(line, 1, index(line, defundef) - 1)
34814 if (D_is_set[macro]) {
34815 # Preserve the white space surrounding the "#".
34816 print prefix "define", macro P[macro] D[macro]
34819 # Replace #undef with comments. This is necessary, for example,
34820 # in the case of _POSIX_SOURCE, which is predefined and required
34821 # on some systems where configure will not decide to define it.
34822 if (defundef == "undef") {
34823 print "/*", prefix defundef, macro, "*/"
34831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34832 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34833 fi # test -n "$CONFIG_HEADERS"
34836 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34841 :[FHLC]) ac_mode=$ac_tag; continue;;
34843 case $ac_mode$ac_tag in
34845 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34846 :[FH]-) ac_tag=-:-;;
34847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34864 -) ac_f="$ac_tmp/stdin";;
34865 *) # Look for the file first in the build tree, then in the source tree
34866 # (if the path is not absolute). The absolute path cannot be DOS-style,
34867 # because $ac_f cannot contain `:'.
34871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34873 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34875 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34876 as_fn_append ac_file_inputs " '$ac_f'"
34879 # Let's still pretend it is `configure' which instantiates (i.e., don't
34880 # use $as_me), people would be surprised to read:
34881 # /* config.h. Generated by config.status. */
34882 configure_input='Generated from '`
34883 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34885 if test x"$ac_file" != x-; then
34886 configure_input="$ac_file. $configure_input"
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34888 $as_echo "$as_me: creating $ac_file" >&6;}
34890 # Neutralize special characters interpreted by sed in replacement strings.
34891 case $configure_input in #(
34892 *\&* | *\|* | *\\* )
34893 ac_sed_conf_input=`$as_echo "$configure_input" |
34894 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34895 *) ac_sed_conf_input=$configure_input;;
34899 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34905 ac_dir=`$as_dirname -- "$ac_file" ||
34906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34907 X"$ac_file" : 'X\(//\)[^/]' \| \
34908 X"$ac_file" : 'X\(//\)$' \| \
34909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34910 $as_echo X"$ac_file" |
34911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34915 /^X\(\/\/\)[^/].*/{
34928 as_dir="$ac_dir"; as_fn_mkdir_p
34932 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34934 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34935 # A ".." for each directory in $ac_dir_suffix.
34936 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34937 case $ac_top_builddir_sub in
34938 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34939 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34942 ac_abs_top_builddir=$ac_pwd
34943 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34944 # for backward compatibility:
34945 ac_top_builddir=$ac_top_build_prefix
34948 .) # We are building in place.
34950 ac_top_srcdir=$ac_top_builddir_sub
34951 ac_abs_top_srcdir=$ac_pwd ;;
34952 [\\/]* | ?:[\\/]* ) # Absolute name.
34953 ac_srcdir=$srcdir$ac_dir_suffix;
34954 ac_top_srcdir=$srcdir
34955 ac_abs_top_srcdir=$srcdir ;;
34956 *) # Relative name.
34957 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34958 ac_top_srcdir=$ac_top_build_prefix$srcdir
34959 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34961 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34971 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34972 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34974 ac_MKDIR_P=$MKDIR_P
34976 [\\/$]* | ?:[\\/]* ) ;;
34977 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34982 # If the template does not know about datarootdir, expand it.
34983 # FIXME: This hack should be removed a few years after 2.60.
34984 ac_datarootdir_hack=; ac_datarootdir_seen=
34995 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34996 *datarootdir*) ac_datarootdir_seen=yes;;
34997 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34999 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35002 ac_datarootdir_hack='
35003 s&@datadir@&$datadir&g
35004 s&@docdir@&$docdir&g
35005 s&@infodir@&$infodir&g
35006 s&@localedir@&$localedir&g
35007 s&@mandir@&$mandir&g
35008 s&\\\${datarootdir}&$datarootdir&g' ;;
35012 # Neutralize VPATH when `$srcdir' = `.'.
35013 # Shell code in configure.ac might set extrasub.
35014 # FIXME: do we really want to maintain this feature?
35015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35016 ac_sed_extra="$ac_vpsub
35019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35022 s|@configure_input@|$ac_sed_conf_input|;t t
35023 s&@top_builddir@&$ac_top_builddir_sub&;t t
35024 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35025 s&@srcdir@&$ac_srcdir&;t t
35026 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35027 s&@top_srcdir@&$ac_top_srcdir&;t t
35028 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35029 s&@builddir@&$ac_builddir&;t t
35030 s&@abs_builddir@&$ac_abs_builddir&;t t
35031 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35032 s&@INSTALL@&$ac_INSTALL&;t t
35033 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35034 $ac_datarootdir_hack
35036 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35037 if $ac_cs_awk_getline; then
35038 $AWK -f "$ac_tmp/subs.awk"
35040 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35042 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35045 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35047 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35049 which seems to be undefined. Please make sure it is defined" >&5
35050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35051 which seems to be undefined. Please make sure it is defined" >&2;}
35053 rm -f "$ac_tmp/stdin"
35055 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35056 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35064 if test x"$ac_file" != x-; then
35066 $as_echo "/* $configure_input */" \
35067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35068 } >"$ac_tmp/config.h" \
35069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35070 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35075 mv "$ac_tmp/config.h" "$ac_file" \
35076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35079 $as_echo "/* $configure_input */" \
35080 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35081 || as_fn_error $? "could not create -" "$LINENO" 5
35083 # Compute "$ac_file"'s index in $config_headers.
35086 for _am_header in $config_headers :; do
35087 case $_am_header in
35088 $_am_arg | $_am_arg:* )
35091 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35094 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35095 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35096 X"$_am_arg" : 'X\(//\)[^/]' \| \
35097 X"$_am_arg" : 'X\(//\)$' \| \
35098 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35099 $as_echo X"$_am_arg" |
35100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35104 /^X\(\/\/\)[^/].*/{
35116 s/.*/./; q'`/stamp-h$_am_stamp_count
35119 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35120 $as_echo "$as_me: executing $ac_file commands" >&6;}
35125 case $ac_file$ac_mode in
35126 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35127 # Older Autoconf quotes --file arguments for eval, but not when files
35128 # are listed without --file. Let's play safe and only enable the eval
35129 # if we detect the quoting.
35130 case $CONFIG_FILES in
35131 *\'*) eval set x "$CONFIG_FILES" ;;
35132 *) set x $CONFIG_FILES ;;
35137 # Strip MF so we end up with the name of the file.
35138 mf=`echo "$mf" | sed -e 's/:.*$//'`
35139 # Check whether this is an Automake generated Makefile or not.
35140 # We used to match only the files named 'Makefile.in', but
35141 # some people rename them; so instead we look at the file content.
35142 # Grep'ing the first line is not enough: some people post-process
35143 # each Makefile.in and add a new line on top of each file to say so.
35144 # Grep'ing the whole file is not good either: AIX grep has a line
35145 # limit of 2048, but all sed's we know have understand at least 4000.
35146 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35147 dirpart=`$as_dirname -- "$mf" ||
35148 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35149 X"$mf" : 'X\(//\)[^/]' \| \
35150 X"$mf" : 'X\(//\)$' \| \
35151 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35157 /^X\(\/\/\)[^/].*/{
35173 # Extract the definition of DEPDIR, am__include, and am__quote
35174 # from the Makefile without running 'make'.
35175 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35176 test -z "$DEPDIR" && continue
35177 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35178 test -z "$am__include" && continue
35179 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35180 # Find all dependency output files, they are included files with
35181 # $(DEPDIR) in their names. We invoke sed twice because it is the
35182 # simplest approach to changing $(DEPDIR) to its actual value in the
35184 for file in `sed -n "
35185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35187 # Make sure the directory exists.
35188 test -f "$dirpart/$file" && continue
35189 fdir=`$as_dirname -- "$file" ||
35190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35191 X"$file" : 'X\(//\)[^/]' \| \
35192 X"$file" : 'X\(//\)$' \| \
35193 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35194 $as_echo X"$file" |
35195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35199 /^X\(\/\/\)[^/].*/{
35212 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35213 # echo "creating $dirpart/$file"
35214 echo '# dummy' > "$dirpart/$file"
35221 # See if we are running on zsh, and set the options that allow our
35222 # commands through without removal of \ escapes.
35223 if test -n "${ZSH_VERSION+set}"; then
35224 setopt NO_GLOB_SUBST
35228 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35231 cat <<_LT_EOF >> "$cfgfile"
35233 # Generated automatically by $as_me ($PACKAGE) $VERSION
35234 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35235 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35237 # Provide generalized library-building support services.
35238 # Written by Gordon Matzigkeit, 1996
35240 # Copyright (C) 2014 Free Software Foundation, Inc.
35241 # This is free software; see the source for copying conditions. There is NO
35242 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35244 # GNU Libtool is free software; you can redistribute it and/or modify
35245 # it under the terms of the GNU General Public License as published by
35246 # the Free Software Foundation; either version 2 of of the License, or
35247 # (at your option) any later version.
35249 # As a special exception to the GNU General Public License, if you
35250 # distribute this file as part of a program or library that is built
35251 # using GNU Libtool, you may include this file under the same
35252 # distribution terms that you use for the rest of that program.
35254 # GNU Libtool is distributed in the hope that it will be useful, but
35255 # WITHOUT ANY WARRANTY; without even the implied warranty of
35256 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35257 # GNU General Public License for more details.
35259 # You should have received a copy of the GNU General Public License
35260 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35263 # The names of the tagged configurations supported by this script.
35266 # Configured defaults for sys_lib_dlsearch_path munging.
35267 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35269 # ### BEGIN LIBTOOL CONFIG
35271 # Whether or not to build shared libraries.
35272 build_libtool_libs=$enable_shared
35274 # Which release of libtool.m4 was used?
35275 macro_version=$macro_version
35276 macro_revision=$macro_revision
35278 # Whether or not to build static libraries.
35279 build_old_libs=$enable_static
35281 # What type of objects to build.
35284 # Whether or not to optimize for fast installation.
35285 fast_install=$enable_fast_install
35287 # Shared archive member basename,for filename based shared library versioning on AIX.
35288 shared_archive_member_spec=$shared_archive_member_spec
35290 # Shell to use when invoking shell scripts.
35293 # An echo program that protects backslashes.
35296 # The PATH separator for the build system.
35297 PATH_SEPARATOR=$lt_PATH_SEPARATOR
35300 host_alias=$host_alias
35304 # The build system.
35305 build_alias=$build_alias
35309 # A sed program that does not truncate output.
35312 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35313 Xsed="\$SED -e 1s/^X//"
35315 # A grep program that handles long lines.
35321 # A literal string matcher.
35324 # A BSD- or MS-compatible name lister.
35327 # Whether we need soft or hard links.
35330 # What is the maximum length of a command?
35331 max_cmd_len=$max_cmd_len
35333 # Object file suffix (normally "o").
35336 # Executable file suffix (normally "").
35339 # whether the shell understands "unset".
35342 # turn spaces into newlines.
35345 # turn newlines into spaces.
35348 # convert \$build file names to \$host format.
35349 to_host_file_cmd=$lt_cv_to_host_file_cmd
35351 # convert \$build files to toolchain format.
35352 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35354 # An object symbol dumper.
35355 OBJDUMP=$lt_OBJDUMP
35357 # Method to check whether dependent libraries are shared objects.
35358 deplibs_check_method=$lt_deplibs_check_method
35360 # Command to use when deplibs_check_method = "file_magic".
35361 file_magic_cmd=$lt_file_magic_cmd
35363 # How to find potential files when deplibs_check_method = "file_magic".
35364 file_magic_glob=$lt_file_magic_glob
35366 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35367 want_nocaseglob=$lt_want_nocaseglob
35369 # DLL creation program.
35370 DLLTOOL=$lt_DLLTOOL
35372 # Command to associate shared and link libraries.
35373 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35378 # Flags to create an archive.
35379 AR_FLAGS=$lt_AR_FLAGS
35381 # How to feed a file listing to the archiver.
35382 archiver_list_spec=$lt_archiver_list_spec
35384 # A symbol stripping program.
35387 # Commands used to install an old-style archive.
35389 old_postinstall_cmds=$lt_old_postinstall_cmds
35390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35392 # Whether to use a lock for old archive extraction.
35393 lock_old_archive_extraction=$lock_old_archive_extraction
35398 # LTCC compiler flags.
35399 LTCFLAGS=$lt_CFLAGS
35401 # Take the output of nm and produce a listing of raw symbols and C names.
35402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35404 # Transform the output of nm in a proper C declaration.
35405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35407 # Transform the output of nm into a list of symbols to manually relocate.
35408 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35410 # Transform the output of nm in a C name address pair.
35411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35413 # Transform the output of nm in a C name address pair when lib prefix is needed.
35414 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35416 # The name lister interface.
35417 nm_interface=$lt_lt_cv_nm_interface
35419 # Specify filename containing input files for \$NM.
35420 nm_file_list_spec=$lt_nm_file_list_spec
35422 # The root where to search for dependent libraries,and where our libraries should be installed.
35423 lt_sysroot=$lt_sysroot
35425 # Command to truncate a binary pipe.
35426 lt_truncate_bin=$lt_lt_cv_truncate_bin
35428 # The name of the directory that contains temporary libtool files.
35431 # Used to examine libraries when file_magic_cmd begins with "file".
35432 MAGIC_CMD=$MAGIC_CMD
35434 # Must we lock files when doing compilation?
35435 need_locks=$lt_need_locks
35438 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35440 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35441 DSYMUTIL=$lt_DSYMUTIL
35443 # Tool to change global to local symbols on Mac OS X.
35446 # Tool to manipulate fat objects and archives on Mac OS X.
35449 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35452 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35453 OTOOL64=$lt_OTOOL64
35455 # Old archive suffix (normally "a").
35458 # Shared library suffix (normally ".so").
35459 shrext_cmds=$lt_shrext_cmds
35461 # The commands to extract the exported symbol list from a shared archive.
35462 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35464 # Variables whose values should be saved in libtool wrapper scripts and
35465 # restored at link time.
35466 variables_saved_for_relink=$lt_variables_saved_for_relink
35468 # Do we need the "lib" prefix for modules?
35469 need_lib_prefix=$need_lib_prefix
35471 # Do we need a version for libraries?
35472 need_version=$need_version
35474 # Library versioning type.
35475 version_type=$version_type
35477 # Shared library runtime path variable.
35478 runpath_var=$runpath_var
35480 # Shared library path variable.
35481 shlibpath_var=$shlibpath_var
35483 # Is shlibpath searched before the hard-coded library search path?
35484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35486 # Format of library name prefix.
35487 libname_spec=$lt_libname_spec
35489 # List of archive names. First name is the real one, the rest are links.
35490 # The last name is the one that the linker finds with -lNAME
35491 library_names_spec=$lt_library_names_spec
35493 # The coded name of the library, if different from the real name.
35494 soname_spec=$lt_soname_spec
35496 # Permission mode override for installation of shared libraries.
35497 install_override_mode=$lt_install_override_mode
35499 # Command to use after installation of a shared archive.
35500 postinstall_cmds=$lt_postinstall_cmds
35502 # Command to use after uninstallation of a shared archive.
35503 postuninstall_cmds=$lt_postuninstall_cmds
35505 # Commands used to finish a libtool library installation in a directory.
35506 finish_cmds=$lt_finish_cmds
35508 # As "finish_cmds", except a single script fragment to be evaled but
35510 finish_eval=$lt_finish_eval
35512 # Whether we should hardcode library paths into libraries.
35513 hardcode_into_libs=$hardcode_into_libs
35515 # Compile-time system search path for libraries.
35516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35518 # Detected run-time system search path for libraries.
35519 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35521 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35522 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35524 # Whether dlopen is supported.
35525 dlopen_support=$enable_dlopen
35527 # Whether dlopen of programs is supported.
35528 dlopen_self=$enable_dlopen_self
35530 # Whether dlopen of statically linked programs is supported.
35531 dlopen_self_static=$enable_dlopen_self_static
35533 # Commands to strip libraries.
35534 old_striplib=$lt_old_striplib
35535 striplib=$lt_striplib
35538 # The linker used to build libraries.
35541 # How to create reloadable object files.
35542 reload_flag=$lt_reload_flag
35543 reload_cmds=$lt_reload_cmds
35545 # Commands used to build an old-style archive.
35546 old_archive_cmds=$lt_old_archive_cmds
35548 # A language specific compiler.
35551 # Is the compiler the GNU compiler?
35554 # Compiler flag to turn off builtin functions.
35555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35557 # Additional compiler flags for building library objects.
35558 pic_flag=$lt_lt_prog_compiler_pic
35560 # How to pass a linker flag through the compiler.
35561 wl=$lt_lt_prog_compiler_wl
35563 # Compiler flag to prevent dynamic linking.
35564 link_static_flag=$lt_lt_prog_compiler_static
35566 # Does compiler simultaneously support -c and -o options?
35567 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35569 # Whether or not to add -lc for building shared libraries.
35570 build_libtool_need_lc=$archive_cmds_need_lc
35572 # Whether or not to disallow shared libs when runtime libs are static.
35573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35575 # Compiler flag to allow reflexive dlopens.
35576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35578 # Compiler flag to generate shared objects directly from archives.
35579 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35581 # Whether the compiler copes with passing no objects directly.
35582 compiler_needs_object=$lt_compiler_needs_object
35584 # Create an old-style archive from a shared archive.
35585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35587 # Create a temporary old-style archive to link instead of a shared archive.
35588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35590 # Commands used to build a shared archive.
35591 archive_cmds=$lt_archive_cmds
35592 archive_expsym_cmds=$lt_archive_expsym_cmds
35594 # Commands used to build a loadable module if different from building
35595 # a shared archive.
35596 module_cmds=$lt_module_cmds
35597 module_expsym_cmds=$lt_module_expsym_cmds
35599 # Whether we are building with GNU ld or not.
35600 with_gnu_ld=$lt_with_gnu_ld
35602 # Flag that allows shared libraries with undefined symbols to be built.
35603 allow_undefined_flag=$lt_allow_undefined_flag
35605 # Flag that enforces no undefined symbols.
35606 no_undefined_flag=$lt_no_undefined_flag
35608 # Flag to hardcode \$libdir into a binary during linking.
35609 # This must work even if \$libdir does not exist
35610 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35612 # Whether we need a single "-rpath" flag with a separated argument.
35613 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35615 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35616 # DIR into the resulting binary.
35617 hardcode_direct=$hardcode_direct
35619 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35620 # DIR into the resulting binary and the resulting library dependency is
35621 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35622 # library is relocated.
35623 hardcode_direct_absolute=$hardcode_direct_absolute
35625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35626 # into the resulting binary.
35627 hardcode_minus_L=$hardcode_minus_L
35629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35630 # into the resulting binary.
35631 hardcode_shlibpath_var=$hardcode_shlibpath_var
35633 # Set to "yes" if building a shared library automatically hardcodes DIR
35634 # into the library and all subsequent libraries and executables linked
35636 hardcode_automatic=$hardcode_automatic
35638 # Set to yes if linker adds runtime paths of dependent libraries
35639 # to runtime path list.
35640 inherit_rpath=$inherit_rpath
35642 # Whether libtool must link a program against all its dependency libraries.
35643 link_all_deplibs=$link_all_deplibs
35645 # Set to "yes" if exported symbols are required.
35646 always_export_symbols=$always_export_symbols
35648 # The commands to list exported symbols.
35649 export_symbols_cmds=$lt_export_symbols_cmds
35651 # Symbols that should not be listed in the preloaded symbols.
35652 exclude_expsyms=$lt_exclude_expsyms
35654 # Symbols that must always be exported.
35655 include_expsyms=$lt_include_expsyms
35657 # Commands necessary for linking programs (against libraries) with templates.
35658 prelink_cmds=$lt_prelink_cmds
35660 # Commands necessary for finishing linking programs.
35661 postlink_cmds=$lt_postlink_cmds
35663 # Specify filename containing input files.
35664 file_list_spec=$lt_file_list_spec
35666 # How to hardcode a shared library path into an executable.
35667 hardcode_action=$hardcode_action
35669 # ### END LIBTOOL CONFIG
35673 cat <<'_LT_EOF' >> "$cfgfile"
35675 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35677 # func_munge_path_list VARIABLE PATH
35678 # -----------------------------------
35679 # VARIABLE is name of variable containing _space_ separated list of
35680 # directories to be munged by the contents of PATH, which is string
35683 # string "DIR[ DIR]" will be prepended to VARIABLE
35685 # string "DIR[ DIR]" will be appended to VARIABLE
35686 # "DIRP[:DIRP]::[DIRA:]DIRA"
35687 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35688 # "DIRA[ DIRA]" will be appended to VARIABLE
35690 # VARIABLE will be replaced by "DIR[ DIR]"
35691 func_munge_path_list ()
35697 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35700 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35703 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35704 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35707 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35713 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35714 func_cc_basename ()
35716 for cc_temp in $*""; do
35718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35724 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35728 # ### END FUNCTIONS SHARED WITH CONFIGURE
35734 cat <<\_LT_EOF >> "$cfgfile"
35735 # AIX sometimes has problems with the GCC collect2 program. For some
35736 # reason, if we set the COLLECT_NAMES environment variable, the problems
35737 # vanish in a puff of smoke.
35738 if test set != "${COLLECT_NAMES+set}"; then
35740 export COLLECT_NAMES
35747 ltmain=$ac_aux_dir/ltmain.sh
35750 # We use sed instead of cat because bash on DJGPP gets confused if
35751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35752 # text mode, it properly converts lines to CR/LF. This bash problem
35753 # is reportedly fixed, but why not run on old versions too?
35754 sed '$q' "$ltmain" >> "$cfgfile" \
35755 || (rm -f "$cfgfile"; exit 1)
35757 mv -f "$cfgfile" "$ofile" ||
35758 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35762 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
35763 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
35764 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
35765 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
35766 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
35767 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
35768 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
35769 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
35770 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
35771 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
35772 "scripts/summary":F) chmod +x scripts/summary ;;
35773 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
35781 ac_clean_files=$ac_clean_files_save
35783 test $ac_write_fail = 0 ||
35784 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35787 # configure is writing to config.log, and then calls config.status.
35788 # config.status does its own redirection, appending to config.log.
35789 # Unfortunately, on DOS this fails, as config.log is still kept open
35790 # by configure, so config.status won't be able to write to it; its
35791 # output is simply discarded. So we exec the FD to /dev/null,
35792 # effectively closing config.log, so it can be properly (re)opened and
35793 # appended to by config.status. When coming back to configure, we
35794 # need to make the FD available again.
35795 if test "$no_create" != yes; then
35797 ac_config_status_args=
35798 test "$silent" = yes &&
35799 ac_config_status_args="$ac_config_status_args --quiet"
35801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35804 # would make configure fail if this is the last instruction.
35805 $ac_cs_success || as_fn_exit 1
35809 # CONFIG_SUBDIRS section.
35811 if test "$no_recursion" != yes; then
35813 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35814 # so they do not pile up.
35815 ac_sub_configure_args=
35817 eval "set x $ac_configure_args"
35821 if test -n "$ac_prev"; then
35826 -cache-file | --cache-file | --cache-fil | --cache-fi \
35827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35828 ac_prev=cache_file ;;
35829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35833 --config-cache | -C)
35835 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35837 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35839 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35841 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35843 --disable-option-checking)
35847 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35849 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35853 # Always prepend --prefix to ensure using the same prefix
35854 # in subdir configurations.
35855 ac_arg="--prefix=$prefix"
35857 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35859 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35862 if test "$silent" = yes; then
35863 ac_sub_configure_args="--silent $ac_sub_configure_args"
35866 # Always prepend --disable-option-checking to silence warnings, since
35867 # different subdirs can have different --enable and --with options.
35868 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35871 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35873 # Do not complain, so a configure script can configure whichever
35874 # parts of a large source tree are present.
35875 test -d "$srcdir/$ac_dir" || continue
35877 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35878 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35879 $as_echo "$ac_msg" >&6
35880 as_dir="$ac_dir"; as_fn_mkdir_p
35884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35887 # A ".." for each directory in $ac_dir_suffix.
35888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35889 case $ac_top_builddir_sub in
35890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35894 ac_abs_top_builddir=$ac_pwd
35895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35896 # for backward compatibility:
35897 ac_top_builddir=$ac_top_build_prefix
35900 .) # We are building in place.
35902 ac_top_srcdir=$ac_top_builddir_sub
35903 ac_abs_top_srcdir=$ac_pwd ;;
35904 [\\/]* | ?:[\\/]* ) # Absolute name.
35905 ac_srcdir=$srcdir$ac_dir_suffix;
35906 ac_top_srcdir=$srcdir
35907 ac_abs_top_srcdir=$srcdir ;;
35908 *) # Relative name.
35909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35910 ac_top_srcdir=$ac_top_build_prefix$srcdir
35911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35918 # Check for guested configure; otherwise get Cygnus style configure.
35919 if test -f "$ac_srcdir/configure.gnu"; then
35920 ac_sub_configure=$ac_srcdir/configure.gnu
35921 elif test -f "$ac_srcdir/configure"; then
35922 ac_sub_configure=$ac_srcdir/configure
35923 elif test -f "$ac_srcdir/configure.in"; then
35924 # This should be Cygnus configure.
35925 ac_sub_configure=$ac_aux_dir/configure
35927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
35928 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35932 # The recursion is here.
35933 if test -n "$ac_sub_configure"; then
35934 # Make the cache file name correct relative to the subdirectory.
35935 case $cache_file in
35936 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35937 *) # Relative name.
35938 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35942 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35943 # The eval makes quoting arguments work.
35944 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35945 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35946 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
35952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}